Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Help with SD_SALESDOCUMENT_CHANGE

Former Member
0 Likes
2,209

Good day,

I am trying to use SD_SALESDOCUMENT_CHANGE to update a schedule agreement that was created in VA31. Advice I current have been given is that only the data that needs changed has to be entered. At a bare minimum I use document number in the header_in with an update of 'U' in the header_inx first field. I have then entered a new PO text value, and the associated 'X' in the to be updated structure. When I press execute, the function says the document has been updated and saved. Upon viewing it in VA32/33, no change were made, even through the function said it worked (simulation is not checked).

Ideally, I would like to change quantities and dates in the order and schedule lines. But at this point not even a header text value will change.

Is there a simple flag I am missing? Is there a place to get a nice overview for manditory inputs to get these order changes function to work? Thanks!!

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,581

Hi,

you have to call the FM BAPI_TRANSACTION_COMMIT to commit the changes..

OR

Give COMMIT WORK to commit the changes.

Thanks,

Naren

Hi,

you have to call the FM BAPI_TRANSACTION_COMMIT to commit the changes..

OR

Give COMMIT WORK to commit the changes.

Thanks,

Naren

2 REPLIES 2
Read only

Former Member
0 Likes
1,582

Hi,

you have to call the FM BAPI_TRANSACTION_COMMIT to commit the changes..

OR

Give COMMIT WORK to commit the changes.

Thanks,

Naren

Read only

Former Member
0 Likes
1,581

Hi,

Welcome to SDN.

Are you doing the testing in SE37?

If you are then please use test sequences and add BAPI BAPI_TRANSACTION_COMMIT after FM SD_SALESDOCUMENT_CHANGE.

Please try this ...

Go to SE37

Choose the following path..

FUNCTION MODULE -> TEST -> TEST SEQUENCES

Give the function modules in order ...

Then press F8 ...

Give the input for the first FM

Then execute ...

Then execute the second FM.

Regards,

Ferry Lianto