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

View Entire Topic
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