Skip to Content
avatar image
Former Member

How to Update the Sales Order

Dear experts,

I have successfully inserted the sales order using Bapi_Salesorder_createfromdat2, Now I want to update the records ,I know I can do it using Bapi_salesorder_change,but before changing I want to display the previous record using the Sales Document No..

So that end user can see the Previous details and then can update the recods in the table

Please help,

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Mar 17, 2009 at 04:30 AM

    Hi

    1. Display the data in table taking data from return node of Bapi_Salesorder_getSalesOrder (Something like this).So original data will display.

    or

    2. Take a backup of original data using WDCopyService(Source , Target ) and then display wherever u want .

    or

    3. Since u want data from parameter Sales Document No. then find out this service and execute and display before editing happen.

    Best Regards

    Satish Kumar

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 17, 2009 at 04:34 AM

    Hi !

    There are different ways to fulfill your requirement.

    You can create a view in which all the sale order create by that particular user can be displayed in table with radio button option and a button say Display to Change. If he selects radio button and click Display to Change button you can fetch selected sales order number. Once you get the sale order user wants to change you can execute Display BAPI (for example BAPI_SALESORDER_GETLIST / BAPI_SALESORDER_GETDETAIL ). You will get the details of that particular sale order.

    Now you can display that details using view and let user change the details.

    Again you need a Button say Change on your change view.

    On clicking Change you will execute bapi_salesorder_change to reflect the changes.

    Note: Please check the bapi as i don't have idea about these bapi's

    Regards

    Abhijeet

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 12, 2009 at 06:40 AM

    ansered

    Add comment
    10|10000 characters needed characters exceeded