on 02-14-2013 7:17 PM
Hi Gurus,
We are in SRM 7.01.
Currently when you shop for material against an OLA(Contract) in SRM and the Validity End data has been past and/or the Target Value has been exceeded it will still create a Shopping Cart but on approval will only create a Requisition not a Purchase Order.
Please suggest me how to make a Hard Error Message be created on SRM when a user attempts to shop for material when any of the above two scenarios are invoked.
your help will be greatly appreciated .
Thanks & Regards
Sada
Hi,
There are two things here,
1.Do you want to change the call from PR to PO or vice versa? If so there is a badi to do so called BBP_TARGET_OBJTYPE. You can place your logic here on when you want to call the PR and when you want to call the PO.
2.If you want a hardstop then you need to populate a message as Ritesh and Ricardo mentioned using DOC_CHECK_BADI.
Regards,
Naveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ritesh,
Thanks for suggesting the BAPI, but when we try to use the above BAPI in the SRM system, We get a syntax error saying that the structure doesn't exist .Below is the table we need to pass to the backed for fetching the contract details.
data: ls_header TYPE bapimeoutheader .
Could you please suggest how the BAPI can be called in SRM with sample code..
Thanks,
Sada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ritesh,
The Contract is in ECC. But we are assigning this contract details in Shopping Cart Source of Supply in that time we need to popup the error message based on the valid date and value is exceed.
Please suggest me.
Thanks,
Sada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sada,
So you guys have contracts in backend without replicated them in SRM system. In that case i would recommend you to use BBP_DOC_CHECK_BADI which Ricardo mentioned above and there is Function module in ECC system BAPI_CONTRACT_GETDETAIL which is RFC enabled so when Ordering Shopping cart put logic in this BADI to make RFC call in Backend system with Contract Number to get validity date and value you are looking for.
Hope this will help to solve your problem.
Thank you
Ritesh
Hi Sada,
for SRM contracts Implement BADI BBP_CTR_STAT to lock an expired contract. We can define when exactly an expired contract or shortly expiring contract can be locked.
Thanks
Rakesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
You could create an implementation in BBP_DOC_CHECK_BADI for BUS2121.
Have a look at note 1570500 for further details.
Regards,
Ricardo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Ricardo,
Thanks for suggesting the BADI, BBP_DOC_CHECK_BADI has been implemented in our system but we don't have the contract GUID to pass to the FM BBP_PD_CTR_GETDETAIL.Could you please suggest how to get the contract GUID in BBP_DOC_CHECK_BADI so that we can pass the same to the FM GETDETAIL and fetch all the values related to the contract.
FYI, we have verified in BBP_PD, there also the contract GUID is not available.
Thanks for your help and cooperation in this regard.
Thanks
Sada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.