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

FM for sales order

Hi,

I need to change a material to another one (material substitution) in sales orders. I need also to simulate before updating.

Which fm SD_SALESDOCUMENT_CHANGE or BAPI_SALESORDER_CHANGE is the best to use?

Which parameters are necessary to fill?

Where do I look for the simulation results?

Tarick.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:59 AM

    Hi,

    Use *BAPI_SALESORDER_CHANGE *.

    In general, note that you should:

    Only specify fields that should be changed

    Select these fields by entering an X in the checkboxes

    Enter a U in the UPDATEFLAG field

    Always specify key fields when changing the data, including in the checkboxes

    The configuration is an exception here. If this needs to be changed, you need to complete it again fully.

    Maintain quantities and dates in the schedule line data

    Possible UPDATEFLAGS:

    U = change

    D = delete

    I = add

    1. Minimum entry:

    You must enter the order number in the SALESDOCUMENT structure.

    You must always enter key fields for changes.

    You must always specify the update indicator in the ORDER_HEADER_INX.

    2. Commit control:

    The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:48 AM
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:55 AM

    hi,

    how-to-change-the-material-quantity-by-using-bapis

    hope this helps you...

    regards,

    praveena.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 07:07 AM

    Hi again,

    Where do I look for results when I do a simulation in BAPI_SALESORDER_CHANGE ?

    Tarick.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 19, 2008 at 06:57 AM

    Hi,

    Its always a better option to use a BAPI. You could goto Se37 and check the help provided for this BAPI. You would find all the relevant info there concerned to your BAPI.

    Thanks

    Nayan

    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.