cancel
Showing results for 
Search instead for 
Did you mean: 

Problem when changing the data in SC using BBP_DOC_CHANGE_BADI

Former Member
0 Kudos

Dear SRM Gurus,

I have created 2 custom fields in SC at item and header level. I want to copy the header custom field value to the item custom field, for copying I am using the BAdI <b>BBP_DOC_CHANGE_BADI</b> and i have written the code in method <b>BBP_SC_CHANGE</b> but when i implemented and activated this BAdI some of the values in the SC are becoming blank..

The values such as Purchasing group, location, cost center and G/L Account are becoming blank when i pressed any key...But this is working fine when I deactivated the BAdI..

Please do the needful..

Thanks in Advance,

Chandra Sekhar

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

You have not properly implemented the BADI thats why the values are becoming blank.Move the values of all importing tables to the changing tables.

e.g. move it_item[] to et_item[].

move it_account[] to et_account[].

move it_partner[] to et_partner[].

move it_orgdata[] to et_orgdata[].

move it_hcf[] to et_hcf[].

move it_icf[] to et_icf[].

BR,

Disha.

Pls reward points for useful answers.

Former Member
0 Kudos

Hi Disha,

Thanks for the quick response, problem is resolved and i have rewarded you full points.

Thanks and Regards,

Chandra Sekhar

Answers (3)

Answers (3)

Former Member
0 Kudos

hi gurus,

I've created 5 new fields in the Shopping cart ( nivel position).

I'm facing some problems when I try to create a free text SC in SRM 7.01.

I've noticed that when I complete the new fields created in the SC, they appear empty in the BADI  BBP_SC_CHANGE (debuggin internal table it_item). 

please help

Thank you,

Former Member
0 Kudos

Hi Chandra,

We have used the same BADI to map the customer fields and it does work well. I guess the problem is just in the way the internal tables are being modified. Please post your code here so that we can help you better.

Regards

Kathir

Former Member
0 Kudos

If you look at the documentation provided for this badi in spro. You'll notice that for the BBP_SC_CHANGE method you need to manually map your input parameters to the output parameters. So first (or after) do a mapping of all the IS and IT to ES and ET structures/tables.