cancel
Showing results for 
Search instead for 
Did you mean: 

Change the purchasing group of shopping cart created in SRM from PR in ECC

Former Member
0 Kudos

Dear All,

When a PR is created in ECC and transferred to SRM using program BBP_EXTREQ_TRANSFER, the purchasing group does not get assigned correctly in the SC created in SRM.

I tried implementing Badi BBP_BADI_EXTREQ_OUT to resolve the same.

But it is not working.

I've passed the value 'O' to the field PROC_GROUP_OT and the puchasing group value to the field PROC_GROUP_ID of the parameter ORG_IMP. But I'm not sure wat value has to be passed to the field PARENT_GUID of the same parameter and tried passing the PR number once and the item number once to it.

But none of it is found to be giving the expected results.

The purchasing group found in the SC in SRM is different from that given in the PR in ECC.

The code that i've written in the Badi implementation is as follows.

move transtab_imp to ls_transtab.

ls_org_imp-PROC_GROUP_OT = 'O'.

ls_org_imp-proc_group_id = ls_transtab-eban-ekgrp.

read table item_imp into ls_item_imp with key item_number = ls_transtab-eban-bnfpo.

if sy-subrc = 0.

ls_org_imp-parent_guid = ls_item_imp-item_guid.

endif.

APPEND ls_org_imp to org_imp.

Can anyone help me to resolve the issue??

Thanks,

Kayal

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Try using the BADI BBP_PGRP_ASSIGN_BADI in the SRM system and doing a

RFC call to the backend to find out the current purchasing group in the backend.

Former Member
0 Kudos

Hi Pradeepa,

Thank you for that.

I tried it that way also.

After making the RFC call, I'm passing the return value to the changing parameter CT_PD_PGRP of the Badi BBP_PGRP_ASSIGN_BADI .

but still it's not happening.

Thanks,

Kayal

Former Member
0 Kudos

Hi kayal,

See the foll threads for sample code/solution:

BR,

Disha.

<b>Pls reward points for useful answers.</b>

Answers (1)

Answers (1)

Former Member
0 Kudos

Disha's answer should help you