cancel
Showing results for 
Search instead for 
Did you mean: 

Sourcing Cockpit- Process All/ Selected Drafts

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Justine,

Thanks for your reply. We are on EHP3 SRM 7.3 I already debugged the methods for selected drafts/ all drafts that you mentioned.

My issue is that I am doing some checks on the PO in the Doc Check BADI and do not want the PO to be created if it meets certain conditions. However using process draft option, the user is able to override my code in the doc check badi and able to create the PO even if I throw an error.

Is there a way to process the PO based on some conditions in the process all draft option? Currently it creates the PO no matter what! I have to put a hard stop to that.

Thanks for your help again!

BR, M

Former Member
0 Kudos

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

Answers (1)

Answers (1)

lisa_sheil
Contributor
0 Kudos

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

Former Member
0 Kudos

Thanks all! We were able to put the hard stop on the PO creation.