cancel
Showing results for 
Search instead for 
Did you mean: 

Classic Scenario- How we can restrict the creation of purchase order twice for same Rfx in sap srm.

Former Member
0 Kudos

We are working on SRM 7.0 version and we are using SRM Classic scenario where the PO number is generated in SRM and latter flows to SAP ECC. The Rfx is created via CPPR (Collective processing of purchase requisition) and also in SRM directly.

After accepting the best quote bidder we are creating the purchase order for that Rfx .But then after creation of Purchase order has already taken place or created for that Rfx ,the user can be able to create another Purchase order for that same Rfx .Please let us know how we can restrict the creation of Purchase order twice for the same Rfx.

Help is appreciated.



Regards,

Shweta Rathore



Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Shweta, this is the standard behavior, and as far as I know there is no customizing to restrict the number of follow on documents that you can create.

As a workaround maybe you can implement some code in badi check (or another badi you choose) in order to check if for that RFx response already exist a follow on document and in case yes trigger an error message to avoid the creation.

hope this help!

Celeste

Former Member
0 Kudos

Hi Shwetha

In ECS scenario system allows to create MULTIPLE PO's from the same Rfx and that is the standard behaviour.

If you want to restrict multiple creation of PO then you can enhance /SAPSRM/WDC_DODC_QTE_H_PO in which method ONACTIONCREATE_BO can be overwritten in the "overwriteexit".

copy the same code as in the above method and change the mesasge type to '1' from '2' that is ERROR type.

here below



   
if ls_text is not initial.

*   report message

     
call method lo_message_manager->report_message

       
exporting

          message_text
= ls_text

         message_type
= 2

       cancel_navigation  
= 'X'.

One more change required is

CLEAR ms_text in the below class

/SAPSRM/CL_CH_WD_BOM_QTE

method:

CHECK_CREATE_PO

at the end do a implicit enhancement and write the below code

clear : ms_text.

this will solve your problem

Thanks

Abhishekh

ivy_li
Active Contributor
0 Kudos

Hi Shweta,

We have no restriction of number of POs created from RFx response without PR reference.

This is standard design.

However you can restrict this via check badi as below:

BADI IF_EX_BBP_DOC_CHECK_BADI~BBP_DOC_CHECK
Code example (only for your information):
*********************************************
*get the open quantity of SC
          lv_open_qty = ls_sc_item-quantity - lv_ordered_qty.

          IF ls_po_item-quantity GT lv_open_qty.
            CLEAR ls_message.
            ls_message-msgty = 'E'.
            ls_message-msgid = 'Z***'.
            ls_message-msgno = '***'.
            ls_message-item_guid = ls_po_item-guid.
            APPEND ls_message TO et_messages.
***********************************************

Best regards,

Ivy

Former Member
0 Kudos

Hi Ivy,

Thank you for your reply.

We are creating multiple purchase order for single Rfx (Rfx created with reference to purchase requisition).

Help is appreciated.

Regards,

Shweta Rathore

former_member184111
Active Contributor
0 Kudos

Hi Shweta,

You can also restrict this by hiding the create PO button if a PO already exists. Use the meta data configuration for this.

Use a dynamic method and class to control action CREATE_PO.

Thanks,

Anubhav

laurent_burtaire
Active Contributor
0 Kudos

Hello Shweta,

best solution is the one described by Anubhav.

Create a custom dynamic control class for metadata and its method to control follow-on document creation based on FOLLOW_ON_PROCESS method from /SAPSRM/CL_PDO_DYN_MDA_HD_QTE class: if at least one PO exists as follow-on doc for Quotation, do not display the create PO button.

Regards.

Laurent.


ivy_li
Active Contributor
0 Kudos

Hi Shweta,

Would you please share the history for the example RFx?

In standard, for PR reference, it will compare the total quantity of all POs with quantity in PR.

Best regards,

Ivy

former_member190689
Contributor
0 Kudos

Hello Shweta,


After accepting the best quote bidder we are creating the purchase order for that Rfx.

As you said you are into Classic Scenario , then why are  you trying to create PO in SRM. I didn't get you with this sentence are you talking about ECC side or SRM side.

And if you are creating PO in srm then you are into ECS not in CS.

Please confirm



Thanks

Gaurav Gautam


Former Member
0 Kudos

I've created a RFx with reference to Purchase requisition.The vendor has entered the bid.The bid has been accepted by the purchaser.After accepting the bid the button to create a PO appear in Rfx.

We are using SRM Classic scenario where the PO number is generated in SRM and latter flows to SAP ECC.



Help is appreciated.


Regards,

Shweta Rathore

former_member190689
Contributor
0 Kudos

Hello Shweta Rathore

 

    There is no standard process to restrict the creation of PO from Rfx response multiple times.Moreover when once the PO is created , then if someone tries to create a PO from same RFx response then always a warning is displayed. You can change that warning into error and then it will restrict the PO creation for multiple times.

But I would suggest not to make any changes to the standard behavior.If you could explain me why you want to restrict it.

Thanks

Gaurav