Problem solve Get help with specific problems with your technologies, process and projects.

Quick VBFA-table access

Get a VBFA table shortlist of all the relating document numbers from supplying Order, Delivery, Invoice etc.

Here's a quick way to get a VBFA table shortlist of all the relating document numbers from supplying Order, Delivery,...

Invoice etc.  

* Document number input structure for document flow lookup
data begin of comwa.
include: structure VBCO6.
data end of comwa.
       .
       .
    comwa-vbeln = xxx. " Order or Delivery or Invoice doc no.

*   Determine order number for input delivery
    call function 'RV_ORDER_FLOW_INFORMATION'
         exporting
              comwa        = comwa
         tables
              vbfa_tab     = itab_vbfa
         exceptions
              no_vbfa
              no_vbuk_found.

    clear it_orderpos.
    refresh it_orderpos.

    loop at itab_vbfa.
*     Find only highest level items
      check itab_vbfa-rfmng   eq 0.

*     Find order for delivery (e.g.)
      check itab_vbfa-vbtyp_n = 'J' or itab_vbfa-vbtyp_n = 'T'.
      check itab_vbfa-vbtyp_v = 'C' or itab_vbfa-vbtyp_v = 'H'.
       .
       .
       .
    endloop.
This was last published in July 2003

Dig Deeper on SAP ABAP

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close