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

Update Sales Document Flow using ABAP code!

Former Member
0 Likes
4,696

Hi All,

I have 2 sales order S1 and S2. I am creating them separately.

My requirement is to include the document flow of S2 with document flow of S1.

I have tried function modules SD_SALESDOCUMENT_UPDATEDOCFLOW and RV_DOCUMENT_FLOW_UPDATE_U

Unfortunately it did not work.

If the above FM is applocable please help with appropriate Passing parameters.

Please suggest any other solutions if available.

Thanks,

Kausthub

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,407

Check the following FM'S

RV_DOCUMENT_FLOW_UPDATE

SD_DOCUMENT_FLOW_MAINTAIN

RV_DOCUMENT_FLOW_UPDATE_U

RV_DOCUMENT_FLOW_ADD

6 REPLIES 6
Read only

Former Member
0 Likes
2,408

Check the following FM'S

RV_DOCUMENT_FLOW_UPDATE

SD_DOCUMENT_FLOW_MAINTAIN

RV_DOCUMENT_FLOW_UPDATE_U

RV_DOCUMENT_FLOW_ADD

Read only

0 Likes
2,407

Hi,

I tried all. But its not working. Could you advice on the passing of parameters ? so that i can re try accordingly

Thanks,

Kausthub

Read only

0 Likes
2,407

Try where used list on

RV_DOCUMENT_FLOW_UPDATE

Also do commit work after FM call and see if it works..check this thread as well

Read only

0 Likes
2,407

Hi,

I saw the above thread. Now parameters are passed and VBFA table is updated. But VA03 document flow is not updated as per the VBFA table. please advice.

Thanks,

Kausthub

Edited by: Kausthub Krish on Jul 14, 2011 11:22 PM

Read only

0 Likes
2,407

Hi Sastry,

Thanks a ton. Its now updated in document flow also. I used RV_DOCUMENT_FLOW_UPDATE_U. The mistake was i passed only the key fields to VBFA table along with UPDKZ = "I". Now i passed all the delivery values with UPDKZ="U". The table and document flow is updated successfully.

Rewarded.

Thanks,

Kausthub

Read only

0 Likes
2,407

Good to know you resolved it.