cancel
Showing results for 
Search instead for 
Did you mean: 

How to Update the Sales Order

Former Member
0 Kudos

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,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

ansered

Former Member
0 Kudos

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

former_member185086
Active Contributor
0 Kudos

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