07-28-2017 10:03 PM
hi experts,
i need to post hsn_Sac from bapi_Acc_document_post extension2 parameter uploaded from excel for the transaction fb60 , There are two implementation for the filter type bkpff already with some buisness(for badi_Acc_document) logic at present ! i need to create new specific implementation to write my logic to update hsn_Sac and gst_part from excel ! so it goes to my newly implemented implementation how can i make sure ! the system to stop in my implementation hence it is already stopping in another existing implementation.
11-16-2017 9:10 AM
Hi anwar ,
You can update HSn_SAC code using below method BY IMPLIMENTING badi BADI_ACC_DOCUMENT
method IF_EX_ACC_DOCUMENT~CHANGE.
if sy-tcode ='ZF130'. " This is MY Tcode for zprogram
READTABLE c_extension2 INTO wa_extension WITHKEY VALUEPART1 ='0000000002'.
IF wa_extension-valuepart2 ='40'.
LOOPAT c_accit INTO wa_accit WHERE POSNR ='0000000002'.
wa_accit-taxit ='X'.
wa_accit-HSN_SAC = wa_extension-valuepart3.""This is HSN_CODE i want to update
MODIFY c_accit FROM wa_accit TRANSPORTING taxit hsn_sac.endloop.
endif.
endmethod.
regards
Deepak dhamat