Skip to Content
author's profile photo Former Member
Former Member

Prevent a SO line confirmation

Hi Folks ,

Need your help to unconfirm a SO line based on certain logic. Can you suggest me a user-exit where the unconfirm logic can be implemented and share a pseudo code to demonstrate the fields/structures that need to be changed in runtime to achive it

Here's the flow of process:

  • A purchase order is created for an intercompany purchase.
  • When the user clicks save on the PO, a routine is run to create an IDOC to create a sales order.
  • The IDOC processor reads the IDOC and prepares to create the sales order. There are user exits in the sales order create routine that will tailor the sales order data for intercompany sales. This is the spot where the logic has to be checked and the line items un-confirmed before saving the sales order.
  • After the sales order is created, an IDOC is generated that will send that sales order number back to the purchase order so that the user can see that the S.O. was created.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Sep 09, 2013 at 03:41 PM

    shyam,

    Probably you can check -

    Program - RV03VFZZ

    Userexits -

    FORM USEREXIT_AVAILABILITY_IN

    FORM USEREXIT_AVAILABILITY_OUT

    One question -

    This is the spot where the logic has to be checked and the line items un-confirmed before saving the sales order.

    • After the sales order is created, an IDOC is generated

    Checking and populating Confirmed quantity is done by the configuration settings in the sales order. E.g. schedule line category, ATP configuration (checking group, checking rule), MMR availability check etc.

    So why do you want to write extra code?

    This is already taken care in standard SAP.

    Is the program that creates the sales order, somehow "overruling" the check of stock, in the sales order!!

    And thereby, confirming all quantity without any check?

    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.