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

Retrieve Document Flow via BAPI

Former Member
0 Likes
1,294

Hello,

Is there a bapi call to retrieve the document flow based on the SALESDOCUMENT number of the first quotation?

Thank you,

Holger Ostermann

3 REPLIES 3
Read only

ferry_lianto
Active Contributor
0 Likes
682

Hi,

Welcome to SDN.

I am not aware any BAPI available but you build custom function module (remote-enable module) and call FM RV_FLOW to get document flow based sales order number.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
682

Hi,

Thank you very much. I will try this; in SE37 it works well.

(Otherwise, I have to use RFC_READ_TABLE.)

Have a nice weekend,

Holger Ostermann

Read only

Former Member
0 Likes
682

Hi,

I don't think there is any BAPI to get the document flow. You can directly fetch from the Table VBFA. Pass your sales document no to field VBFA-VBELV and you will get all the Sales Orders, Deliveries, Billing document nos, Credit Memo etc. in field VBFA-VBELN related to that sales document. Field VBFA-VBTYP_N will differentiate between various document types.

Reward points if the answer is helpful.

Regards,

Mukul