Skip to Content
avatar image
Former Member

Sourcing Cockpit- Process All/ Selected Drafts

Hello All,

Is there a way to put a Hard Stop during Process all/ selected draft during Sourcing 3 rd stage.

We have made some validations on the PO based on price in the BBP_DOC_CHECK_BADI. The PO should not be created if the criteria is not met.

This is working when the user selects - Edit Selected Draft.

However when the user selects Process All Draft/ Process Selected Draft, the error is coming up, however the PO still gets created. There is no hard stop for the PO creation, when the user selects Process All Draft/ Process Selected Draft. Has anyone worked on such a requirement before? Please let us know.

Thanks, M

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Aug 28, 2014 at 04:33 AM

    Hi,

    What SRM version are you using? You can check in methods

    PROCESS_SELECTED_DRAFTS

    PROCESS_ALL_DRAFTS

    in interface /SAPSRM/IF_CLL_DOM_SOCO_GAF3.

    The implementing class is /SAPSRM/CL_CH_WD_DOM_SOCO_GAF3. The system uses this class when processing in SoCo wizard step 3.

    Let me know if this helps or solves your problem.

    Regards,

    Justine

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      To prevent the PO creation, you can put a hard stop error in the same window (SoCo wizard step 3). To do this, you can create an enhancement on the UPDATE method of the mapper class.

      In method /SAPSRM/IF_CLL_MAPPER~UPDATE of interface /SAPSRM/CL_CH_WD_DOM_SOCO_GAF3

      SAMPLE CODE:

      <insert validation logic here>

      ....

      *add error message

               CALL METHOD mo_cll_message_handler->add_validation_error
                 EXPORTING
                   iv_msgno     =
                   iv_msgid      = 
                   iv_msgv1     = .



      This should display an error on the message window to prevent the user from proceeding to the next step/window. This should fit your requirement.


      Let me know should there be any questions.


      Regards,

      Justine

  • Sep 01, 2014 at 01:31 PM

    Dear M,

    The reasons why your BADI is not working in sourcing:

    1) Sourcing cockpit aggregates the shopping cart and it's an interface where you can create different BO's (RFX, Auction, PO, Contract)

    2) Depending on the particular draft chosen the functionality is handled in a BO level.

    3) Then the creation of the follow-on BO will be in "Saved" status, when there missing details.

    Each BO will have their own specific rules. So all the rules of different BO's cannot be handled in Sourcing cockpit.

    So in conclusion, I am afraid there is no way to implement a hard stop from SOCO that can prevent in
    creation of PO.

    I am sorry I do not have a more suitable answer to your query.

    Kind Regards,

    Lisa

    Add comment
    10|10000 characters needed characters exceeded