cancel
Showing results for 
Search instead for 
Did you mean: 

Changing external requirements data coming from backend

Former Member
0 Kudos

Hi all,

I have to change account category and purchase group to external requirements before they become shopping carts. I'm trying to debug the BADIs calling in the data transmission between R/3 and SRM, but no breakpoints are allowed because the transmission runs in background (RFC calling IN BACKGROUND PROCESS of FM BBP_BC_EXTREQ_INB).

Anyway, I´ve found that I could use BADIs: 'BBP_ACCCAT_MAP_IMP' (for accounting cat.), 'BBP_PGRP_ASSIGN_BADI' (for purch. group), and even 'BBP_DOC_CHANGE_BADI' with its method 'BBP_SC_CHANGE'.

My question is: am I wrong? Are these BADIs useful or not for my purposes?

For example:

I have the following code in my own implementation of BADI 'BBP_ACCCAT_MAP_IMP':


method if_ex_bbp_acccat_map_imp~acccat_map_imp.
  if logical_system eq 'DESCLNT400'."R/3
    select single acc_cat from bbp_c_acc
      into bbp_acc_cat where r3_acc_cat     eq r3_acc_cat and
                             acccat_active  eq 'X'.
  endif.
endmethod.

After running BBP_EXTREQ_TRANSFER (R/3), I check into BBP_PD (SRM) and the accounting data remains the same...

Any help will be appreciated!

Thanks in advance,

Federico.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks everybody, I finally used the DOC_CHANGE, BBP_SC_CHANGE method.

Regards,

Federico

former_member183819
Active Contributor
0 Kudos

Hi Federico,

can you check up this link.

regards

Muthu

former_member206968
Active Contributor
0 Kudos

Hi,

Why don't you try changing the acctng. data through doc_change badi or try enhancing fm-bbp_map_bapiacc_to_pdacc. The badi you mentioned is called here but there are some conditions for it.Pl. check.

Regards,

Sanjeev