<?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: VBFA in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477290#M223694</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;To get the document flow from VBFA, you could use function module: RV_ORDER_FLOW_INFORMATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_comwa-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;  l_comwa-vbeln = g_order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            belegtyp      = g_vbtyp&lt;/P&gt;&lt;P&gt;            comwa         = l_comwa&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            belegtyp_back = l_belegtyp_back&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            vbfa_tab      = gitab_vbfa&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_vbfa       = 1&lt;/P&gt;&lt;P&gt;            no_vbuk_found = 2&lt;/P&gt;&lt;P&gt;            OTHERS        = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relevant document records can be found in GITAB_VBFA.&lt;/P&gt;&lt;P&gt;Then use the normal Loop at ITAB / ENDLOOP and collect the relevant records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jul 2006 09:28:49 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-26T09:28:49Z</dc:date>
    <item>
      <title>VBFA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477288#M223692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just want to ask help how to get the following records from the table VBFA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;main records:&lt;/P&gt;&lt;P&gt;    VBELV  POSNV   VBELN POSNN  VBTYP_N&lt;/P&gt;&lt;P&gt;    00001  00010   12345 00001   J&lt;/P&gt;&lt;P&gt;    00001  00010   23456 00002   J&lt;/P&gt;&lt;P&gt;    00001  00010   34567 00010   J&lt;/P&gt;&lt;P&gt;    12345  00010   xxxxx nnnnn   R&lt;/P&gt;&lt;P&gt;    23456  00010   xxxxx nnnnn   R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to get the following without looping from VBFA:&lt;/P&gt;&lt;P&gt;A:&lt;/P&gt;&lt;P&gt;    12345  00010   xxxxx nnnnn   R&lt;/P&gt;&lt;P&gt;    23456  00010   xxxxx nnnnn   R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;B:&lt;/P&gt;&lt;P&gt;    00001  00010   34567 00010   J&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;donna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 03:15:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477288#M223692</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T03:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: VBFA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477289#M223693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)st  fetch  all main record....&lt;/P&gt;&lt;P&gt;main records:&lt;/P&gt;&lt;P&gt;VBELV POSNV VBELN POSNN VBTYP_N&lt;/P&gt;&lt;P&gt;00001 00010 12345 00001 J&lt;/P&gt;&lt;P&gt;00001 00010 23456 00002 J&lt;/P&gt;&lt;P&gt;00001 00010 34567 00010 J&lt;/P&gt;&lt;P&gt;12345 00010 xxxxx nnnnn R&lt;/P&gt;&lt;P&gt;23456 00010 xxxxx nnnnn R&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&lt;/P&gt;&lt;P&gt;mow  declare  two  internal table  for difrent recored...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)ex--&lt;/P&gt;&lt;P&gt;main recored  in itab.&lt;/P&gt;&lt;P&gt;two another internal tables  are  itab1 and itab2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;read table itab binary search with key vbeln = itab1-vbeln&lt;/P&gt;&lt;P&gt;VBTYP_N = 'J'.&lt;/P&gt;&lt;P&gt;append itab to itab1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 04:17:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477289#M223693</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T04:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: VBFA</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477290#M223694</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;To get the document flow from VBFA, you could use function module: RV_ORDER_FLOW_INFORMATION&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_comwa-mandt = sy-mandt.&lt;/P&gt;&lt;P&gt;  l_comwa-vbeln = g_order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;            belegtyp      = g_vbtyp&lt;/P&gt;&lt;P&gt;            comwa         = l_comwa&lt;/P&gt;&lt;P&gt;       IMPORTING&lt;/P&gt;&lt;P&gt;            belegtyp_back = l_belegtyp_back&lt;/P&gt;&lt;P&gt;       TABLES&lt;/P&gt;&lt;P&gt;            vbfa_tab      = gitab_vbfa&lt;/P&gt;&lt;P&gt;       EXCEPTIONS&lt;/P&gt;&lt;P&gt;            no_vbfa       = 1&lt;/P&gt;&lt;P&gt;            no_vbuk_found = 2&lt;/P&gt;&lt;P&gt;            OTHERS        = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Relevant document records can be found in GITAB_VBFA.&lt;/P&gt;&lt;P&gt;Then use the normal Loop at ITAB / ENDLOOP and collect the relevant records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;HR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jul 2006 09:28:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/vbfa/m-p/1477290#M223694</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-26T09:28:49Z</dc:date>
    </item>
  </channel>
</rss>

