Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BADI_acc_document problem with multiple implementations

Former Member
0 Kudos

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.

1 REPLY 1

deepak_dhamat
Active Contributor
0 Kudos

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