2007 Feb 28 4:56 PM
Hi,
I have already posted this question in the SRM Forum.
We are using SRM 5.0. I am trying to create a backend PO. SRM defines the standard PO with a doc type as 'EC' and the same in ECC is defined as 'ZSTD'. This is getting created perfectly. Absolutely no problem
I am trying to create other POs from SRM to ECC:
"Blanket PO - Doctype ZBPO"
"Exemption PO - Doctype ZEPO" etc
I am able to select different types of POs from the drop down from the SRM screen. But when I am debugging, I always get the doc type as 'EC' regardless of what ever type of PO I select from SRM screen.
Why am I getting same DOCTYPE for different POs from SRM?
I am implementing the BADI "BBP_CREATE_BE_PO_NEW"
Thanks,
Rajasekhar
2007 Feb 28 5:15 PM
It could be becuase of configuration settings. Check in SPRO 'Define objects in Backend System (Purch. Reqs, Reservations, Purch. Orders) or in the view 'V_BBP_TARGET_OBJ'.
Alternatively, you may have to implement following BADIs based upon your req if required.
Implement BADIs:
BBP_SC_TRANSFER_BE
BBP_TARGET_OBJECTS
BBP_DOC_CHANGE_BADI
Thanks,
Santosh
2007 Feb 28 7:22 PM
Hi,
We already did the config and I tried implementing the BADIs u mentioned, but still no luck.
Thanks,
Rajasekhar
2007 Feb 28 8:54 PM
Ok. In the BADI BBP_SC_TRANSFER_BE, method GET_NUMBER_OR_RANGE, check what is the
cv_number_range.
Check If you are getting the number range related to doc type 'EC'.
If yes, try to change this number range related to doc type which you are expecting.
Alternatively, you pass the doc type in ls_item-be_doc_type of BADI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE.
Thanks,
Santosh
2007 Mar 05 5:40 PM
Hi Santosh,
I was out of office. I did try to do what ever u said. I am getting the number range related to the doc type which I wanted to create.
With respect to changing the DOC_TYPE of BADI BBP_DOC_CHANGE_BADI, method BBP_SC_CHANGE, I always have DOC_TYPE as 'EC' regardless of type of PO I am selecting on the SRM Screen.
Do you have any clue, if we need to make any config changes?
Thanks
Rajasekhar
2007 Mar 05 7:19 PM
As i mentioned in my first reply, there could be some config setting. You may check with your functional consultant.
Thanks,
Santosh