Skip to Content

BADI_acc_document problem with multiple implementations

Jul 28, 2017 at 09:03 PM


avatar image

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Deepak Dhamat Nov 16, 2017 at 09:10 AM

Hi anwar ,

You can update HSn_SAC code using below method BY IMPLIMENTING badi BADI_ACC_DOCUMENT


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.




Deepak dhamat

10 |10000 characters needed characters left characters exceeded