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

Document flow

HKany
Participant
0 Likes
580

Hello together,

I need to code something like a liquidity forecast.

Therefore I have to read the document flow starting in the SD order.

Can anyone tell me how to realize it?

I searched for function modules and DB-tables, but I did not find what I'm looking for.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
530

Hi,

Alternatively you can use table VBFA to reduce the number of database hits.

Thanks,

Vinod.

3 REPLIES 3
Read only

former_member491305
Active Contributor
0 Likes
530

Hi,

Use the function module 'SD_DOCUMENT_FLOW_GET'.

For header doucment flow,

populate I_Posnr as zero.

populate the sales order number.

For item level document flow,

populate both sales order number and item number.


 CALL FUNCTION 'SD_DOCUMENT_FLOW_GET'.
    EXPORTING
      IV_DOCNUM          = i_vbeln
      IV_ITEMNUM         = i_posnr
    IMPORTING
   ET_DOCFLOW         = t_docflow.

Thanks,

Vignesh.

Read only

vinod_vemuru2
Active Contributor
0 Likes
531

Hi,

Alternatively you can use table VBFA to reduce the number of database hits.

Thanks,

Vinod.

Read only

HKany
Participant
0 Likes
530

'SD_DOCUMENT_FLOW_GET' was only the beginning. After a lot of days developing the report it is done.