a. Check whether customer is under Order and C-Form block b. Order Block: i. Pass the customer code to KNA1 table 1. If KNA1-AUFSD NE Space “BLOCK” 2. If KNA1-AUFSD EQ Space ”NOT-BLOCK” ii. If the KNA1-AUFSD EQ Space. Then pass the customer code to KNVV table 1. If KNVV-AUFSD NE Space “BLOCK” 2. If KNVV-AUFSD EQ Space “NOT-BLOCK” c. C-Form Block: i. Pass the customer code to KNKK table 1. If KNKK-CRBLB EQ “X” “BLOCK” 2. If KNKK-CRBLB EQ Space “NOT-BLOCK” 4. Product Check: a. Check all the Inquiry material are “CLEAR” product b. ZORD_PRTL_INQ-SUBFAM EQ “101” 5. Material Stock Availability: a. Pass Subfamily, Tint, Coating code, Commercial thickness, Pattern code, Laminate code, Length, Width, Quality code, requested quantity, requested UOM, Weight per case and Plant to Function module “ZMATERIAL_STOCK_AVAILABILITY” b. Get the First material from the FM output and check with inquiry quantity. i. Available Stock GE Inquiry Quantity
6. Special price Indicator:
a. Pass the material code and material type to MARA table. Material type “ZG01” b. Check whether the special indicator is initial or not i. If MARA-ZSPLPRIIND NE Space “Y” ii. If MARA-ZSPLPRIIND EQ Space “N” 7. Pack type: a. Pass the material code and check the material is naked i. If MARA-PACK EQ “027” or “050” Consider as “Naked material”
8. Full Order Check:
a. Check the Inquiry items with available stock items. i. If the Inquiry items EQ available stock items Consider as “Full Order”
Table Update:
S No Table Name Description
1. ZORDCONFH Confirmation Header 2. ZORDCONFI Confirmation Item 3. ZSALIQLINE Sale Inquiry line item 4. ZSINQDETS Inquiry to Order details 5. ZDA_PRINT DA print 6. ZORD_PRTL_HEAD Inquiry Header 7. ZORD_PRTL_INQ Inquiry Item 8. ZAUTO_ORD_LOG Auto Order Log Alert Mail:
1. Table Maintenance:
Field name Sample Values
PERSNUMBER <SG ID> TCODE ALERT PGMNA INQUIRY_ORDER_ALERT CLIEN 900 DESCRIP Direct Order Creation DATE_TCURE <Valid to date> ERSDA <Valid from date> ERNAM <SG ID> AFNAM <User name> FLAG <TO / CC>