on 10-03-2007 9:35 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Disha's answer should help you
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.