‎2010 Feb 08 1:05 PM
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.
‎2010 Feb 08 1:21 PM
Hi,
Alternatively you can use table VBFA to reduce the number of database hits.
Thanks,
Vinod.
‎2010 Feb 08 1:15 PM
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.
‎2010 Feb 08 1:21 PM
Hi,
Alternatively you can use table VBFA to reduce the number of database hits.
Thanks,
Vinod.
‎2010 Mar 31 11:36 AM
'SD_DOCUMENT_FLOW_GET' was only the beginning. After a lot of days developing the report it is done.