Skip to Content

Need to populate the error message while create a shopping Cart

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Posted on Feb 26, 2013 at 01:16 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • Posted on Feb 14, 2013 at 09:00 PM

    Hello,

    You could create an implementation in BBP_DOC_CHECK_BADI for BUS2121.

    Have a look at note 1570500 for further details.

    Regards,

    Ricardo

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 22, 2013 at 03:19 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Feb 27, 2013 at 10:01 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 01, 2013 at 04:19 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.