on 12-15-2009 3:12 PM
Hi Experts,
We are on SRM 4.0 Classic scenario. We have implemented BADI BBP_CREATE_REQ_BACK to modify the DOC_TYPE field of REQ_ITEMS.
Till the end point of execution of this BADI the value of field REQ_ITEMS[1]-DOC_TYPE is correct.But when in debugging we check the value that is passed to BAPI_REQUISITION_CREATE is some thing different.
Event after this the PR is created with correct document type.
In the R/3 System when we check in EBAN the value of field BASRT and in SRM the value of field BE_DOC_TYPE in BBP_PD is different for same SC and PR.
Shouldn't it be the same?
Where does the default value comes from before calling the BAPI from standard code?
Thanks,
Anubhav
Break at FM B470_REQUISITION_CREATE and trace the call stack backwards. Hope this helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Iftekhar,
There were three document types defined in ORG structure NB, UB and ZNB and none wasdefaulted.
I deleted two of them i.e. ZNB and UB and only one is there now i.e. NB.
Still in starting of BBP_CRTEATE_REQ_BACK BADI REQ_ITEMS contains ZNB as doc type and event after modifying it in the BADI the doc type passed to BAPI_REQUISITION_CREATE is ZNB.
Dont think it is picking up doc type from user or org staructure attributes.
Let me know of you have any more info on this.
Thanks,
Anubhav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.