SAP BADI STO in GST

SAP BADI to pass the tax in STO ES_J_1IG_STO.

you can write your logic in STO to select the Tax code say you can select the Tax code from the PO.

CONSTANTSlc_ebeln TYPE char50 VALUE ‘(J_1IG_INB_INV_STO)WA_OUTPUT-EBELN’.

FIELD-SYMBOLS <fs_ebeln> TYPE any.

“Fetch PO No.
ASSIGN (lc_ebelnTO <fs_ebeln>.
IF <fs_ebeln> IS ASSIGNED.
SELECT SINGLE mwskz
FROM ekpo
INTO @DATA(lv_mwskz)
WHERE ebeln @<fs_ebeln>
AND matnr @im_bsegmatnr.
CHECK sysubrc 0.
ch_mwskz lv_mwskz.
ENDIF.

 

Leave a Reply

Your email address will not be published. Required fields are marked *