cancel
Showing results for 
Search instead for 
Did you mean: 

Backend global account assigment using BAP_DOC_CHANGE_BADI

Former Member
0 Kudos

hello geeks,

I have to determine global account in SRM while creating shopping cart using BBP_DOC_CHANGE_BADI (using BBP_SC_CHANGE method).

These has been done by calling RFC ,which is created in ECC 5.0,in that i have to determine the global account in ECC 5.0 using MR_ACCOUNT_ASSIGNMENT function module.

If i can use the structure(BBP_PD_SC_ITEM) in SRM ,whether i can able to proceed this ???

Or i have to use different BADI???

Pls help me out if anyone solve this issue alreay with any sample code?????

Thanks in advance,

help will be rewarded,

srini

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

GOt a answered,Thanks

yann_bouillut
Active Contributor
0 Kudos

Hi,

Yes : you can definetely do it with bbp_doc_change badi.

Kind regards,

Yann

Former Member
0 Kudos

HI Yann,

Can u have any sample code for that like which structure has to change and which table i have to loop for get the other values .

For example in my RFC FM my import parameters are like

CC,PLANT,product category ,Account assignment category.

For more info,

By passin these values i will get the global account from ECC and after that which structure i have to change in SRM to get reflect in Shopping cart backend global account assignment from ECC global account.

Thanks for aproached,

srini

yann_bouillut
Active Contributor
0 Kudos

Hi,

My advice is to create a Z function module in ECC in order to determine the G/L account and then to get the result in bbp_doc_change badi by calling the ECC Z FM.

If you use material master and valuation class, you will have to use :

DATA: vl_bklas TYPE bklas.

DATA: vl_matnr TYPE matnr.

and FM MR_ACCOUNT_ASSIGNMENT

Kind regards,

Yann