You are on page 1of 3

DISPATCH REPORT INPUT

OUTPUT

PROCESSING LOGIC 1.)GET 2.)GET a.)invoice number and b.) date from vbrk table(vbeln,fkdat) a.)Material number (matnr) b.)Quantity (ntgew) from vbrp table By passing vbeln of vbrk into vbrp and plant. 3.)GET a.)sold to party (kunnr) b) ship to party (kunag) from vbpa table And pass these two to kna1 table to get ship to party and party name. 4.)Get a.)material description maktx from makt table by passing vbrp-matnr to makt table 5.)Get a.)Weight in Kg from MARA-BRGEW and if MARA-GEWEI is = 'G' Divide the MARA-BRGEW / 1000. 6.)GET a.)Sales in Kg
WA_FINAL-FKIMG = WA_FINAL-FKIMG + WA_VBRP1-FKIMG. LV_QTY = WA_VBRP1-FKIMG. WA_FINAL-NETWR1 = WA_FINAL-NETWR1 + ( LV_QTY * WA_FINAL-BRGEW1 ).

7.)Get a.)Freight b.)Cst c.)Vat Take any kschl value

from

Konv

table

SELECT KNUMV "Number of the document condition KPOSN "Condition item number KSCHL "Condition type KBETR "Rate (condition amount or percentage) KWERT "Condition value KPEIN "Condition pricing unit FROM KONV INTO TABLE IT_KONV FOR ALL ENTRIES IN IT_VBRK WHERE KNUMV = IT_VBRK-KNUMV AND ( KSCHL = 'YPR0' OR KSCHL = 'JEXP' OR KSCHL = 'JECP' OR KSCHL = 'JSEC' OR KSCHL = 'JIVC' OR KSCHL = 'JIVP' OR KSCHL = 'YVF1' OR KSCHL = 'YVF2' OR KSCHL = 'YCF1' OR KSCHL = 'YCF2' OR KSCHL = 'YHPT' ) AND ( KWERT <> '' OR KBETR <> '' ) AND KINAK = ' '. "ADDED ON 25.02.2013 8.)Get a.)Excise number from J_1IEXCHDR table field By passing Exnum

VBRK-VBELN to RDOC field of J_1IEXCHDR

You might also like