04-25-2012 3:40 PM
Hi Folks,
Does anyone know the Function Module that is called when you view a document flow from a sales order from VA03. My requirement is to be able to match up variaous document types to their coresponding entry, so for example, in the screen shot VA03, I can see what delivery relates to that order, what invoice and inter-company relates to that delivery, what accounting document hangs off that invoice and intercompany and what cancellations hangs off that invoice and intercompany.
However, if I use Function Module SD_VBFA_SELECT, I only can see the documents, but I can't see where they hang together.
Does anyone know where I can find the FM that show's the correct flow?
Many Thanks,
Colm
04-26-2012 10:57 AM
Folks,
Thanks for your help, I found the FM I require. SD_DOCUMENT_FLOW_GET gives me the flow of the documents and links them correctly to their preceeding documents in way that allows me to process them.
Thanks for your help
04-25-2012 3:53 PM
VBFA is the document flow table for SD. One looks forward only in this table; you can go from inquiry to quote to sales doc to delivery to invoice here by looking from a starting document and getting the next document, based on the document types (coded in VBFA). For backward reads, look at the previous document item fields in table VBRP (back to sales and delivery, for example ), LIPS (back to sales), and VBAP (back to prior document). Prior docs/items/types are typically named alike, like
VBRP-VBELV,POSNV, VGBEL,VGPOS,VGTYP, AUBEL,AUPOS,AUREF, for example.
SD document flow is a sorted and formatted display of VBFA. To see how it works, find a sales order that is delivered and invoiced, the get all rows from VBFA where the preceding document is the sales order, using SE11 or SE16.
04-26-2012 9:21 AM
So am I to take it from this that what you are suggesting is that rather than reading the whole document flow as one thing, you have to read each individual document and see what it's follow on documents are, and then for those follow on documents, see what their follow on documents are?
Is this really what VA03 does?
04-25-2012 4:00 PM
Hi,
Try with FM 'RV_ORDER_FLOW_INFORMATION', give the Sales order details in VBCO6. it will give the details in VBFA_TAB.
Thanks & Regards
Bala Krishna
04-26-2012 9:24 AM
Thanks for your advice but unfortunatly when I filled the COMWA structure with my order details the table VBFA_TAB just gave me back more information on my order but not the structured list of follow on documents.
04-26-2012 10:35 AM
Hi,
Check on the entries displayed, it will list on all the document flow documents, the standard VA03 uses the same function module, and filters some entries and display in output.
Thanks & Regards
Bala Krishna
04-26-2012 10:57 AM
Folks,
Thanks for your help, I found the FM I require. SD_DOCUMENT_FLOW_GET gives me the flow of the documents and links them correctly to their preceeding documents in way that allows me to process them.
Thanks for your help