<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How is table VBFA populated? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950528#M944476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Max directed, you can use the FM RV_ORDER_FLOW_INFORMATION to get the document flow for one perticular document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 19:43:40 GMT</pubDate>
    <dc:creator>naimesh_patel</dc:creator>
    <dc:date>2008-05-27T19:43:40Z</dc:date>
    <item>
      <title>How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950524#M944472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will appreciate if someone can explain to me how is table VBFA populated.  What is the logic for creating a record inside this table ?. Why are also some documents that only have 000000 as value in the POSNN field?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 16:49:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950524#M944472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T16:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950525#M944473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;VBFA is being populated based on the indicator "Set Document Flow" in the copy control configuration maintained for the SD documents.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g Sales Order SO1 (with 1 item)  has delivery DEL1. Than VBFA has 1 entry.&lt;/P&gt;&lt;P&gt;SO1 ... DEL1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than billing BIL1 has been created for DEL1 than VBFA will have total 3 entries:&lt;/P&gt;&lt;P&gt;SO1... DEL1&lt;/P&gt;&lt;P&gt;SO1.... BIL1&lt;/P&gt;&lt;P&gt;DEL1... BIL1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Entry with POSNN '000000'  is being generated when you create a new document with reference to antoher document.&lt;/P&gt;&lt;P&gt;E.g. Sales Order 123 has been created as a copy of 120 than you will find an entry with 000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 16:59:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950525#M944473</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-27T16:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950526#M944474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system populates that table in order to create a link beetween the previous and next document:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The fields:&lt;/P&gt;&lt;P&gt;- VBELV and POSNV are the number of document and item of previuos document;&lt;/P&gt;&lt;P&gt;- VBELN and POSNN are the number of document and item of next document;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if u have a document 1 and item 10, if u need to select the next documents u should get all records where VBELV and POSNV are 1 and 10, then u should select all next documents of the next documents of your first one (doc. 1 and item 10), and so....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;U can see the fm RV_ORDER_FLOW_INFORMATION in ordert to understand how to read VBFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 17:01:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950526#M944474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T17:01:34Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950527#M944475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I explained to you in my original question I have VBELN = 716838 and POSNN = 000000. How do I find then the subsequent documents for this combination in a select statement...? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When using SE16 you just put VBELV = 716838 ,POSNV = 0 and some records are being displayed but the values for POSNV are not zeroes.  When using a select the program doesn't read any record because there are not occurrences for POSNV = 000000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Luis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 19:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950527#M944475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T19:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950528#M944476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As Max directed, you can use the FM RV_ORDER_FLOW_INFORMATION to get the document flow for one perticular document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 19:43:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950528#M944476</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-27T19:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950529#M944477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Max,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you or Naimesh point me into the documentation on how to use the FM module RV_ORDER_FLOW_INFORMATION ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luis Leston&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 19:49:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950529#M944477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T19:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: How is table VBFA populated?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950530#M944478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The easiest way to use it is like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA: BEGIN OF L_COMWA OCCURS 1.
          INCLUDE STRUCTURE VBCO6.
  DATA: END   OF L_COMWA.

  data: begin of it_vbfa occurs 1.
          include structure vbfa.
  data: end   of it_vbfa.


  L_COMWA-VBELN = P_VBELN.   " VBELN

  CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
    EXPORTING
*     AUFBEREITUNG        = '2'
*     BELEGTYP            = ' '
      COMWA               = L_COMWA
*     NACHFOLGER          = 'X'
*     N_STUFEN            = '50'
*     VORGAENGER          = 'X'
*     V_STUFEN            = '50'
*   IMPORTING
*     BELEGTYP_BACK       =
    TABLES
      VBFA_TAB            = IT_VBFA
    EXCEPTIONS
      NO_VBFA             = 1
      NO_VBUK_FOUND       = 2
      OTHERS              = 3
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 19:55:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-is-table-vbfa-populated/m-p/3950530#M944478</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-27T19:55:38Z</dc:date>
    </item>
  </channel>
</rss>

