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

BAPI_SALESORDER_CREATEFROMDAT2 no option for User Status update Order line item

Hi,

Good Morning !!!

We are trying to create the Sales Order in SAP ECC based on the Quote using the BAPI BAPI_SALESORDER_CREATEFROMDAT2.

While Sales Order creation we need to set the User Status at the Order line item level based on some specific rules .We have configured the Status Profile for this and the user Status field is now showing at the Sales Order line item level in the Status Tab.

But in the BAPI BAPI_SALESORDER_CREATEFROMDAT2 there is no option to update the User Status at Sales Order line item.

Please let me know the options for updating the User Status at the Sales Order line item level while performing the Sales order creation through

BAPI_SALESORDER_CREATEFROMDAT2.

Thanks,

Bintu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2013 at 07:01 AM

    Hi Bintu,

    You may have to use the EXTENSIONIN structure of the BAPI to pass the status value and use the FM STATUS_CHANGE_EXTERN inside user exit MV45AFZZ to change the user status.

    take a look at the link http://scn.sap.com/docs/DOC-34891 also,which details about the tables involved.

    Thanks

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Sooraj,

      While Sales Order creation using BAPI and when reach the user exit MV45AFZZ , the User Status is not yet assigned at the Order line item level and the Sales Order number is not generated even so how can we use the FM STATUS_CHANGE_EXTERN at this stage to update the User Status.

      Could you please elaborate a little.

      Thanks,

      Bintu

  • Posted on Oct 16, 2013 at 05:33 AM

    Hello Bintu ,

    Can you make it clear what you mean by User Status as I was not able to find any related field in VBAP ( S O item Table ) with such Description .

    Do you mean Sale Order Status , Overall Status , Delivery Status or anything else .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 16, 2013 at 09:09 AM

    The status is stored in table "JEST". You can update the table using modify statement after successful update from BAPI.

    Regards

    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.