Creating an entry in a VBFA table
I use the TCode MB1C to load data. After processing, I get a document #(MBLNR), then I create a new record in vbfa table (document flow).
To create a new entry in VFBA table, I create an internal table with the structure of VFBA, then I insert the VFBA form the internal table. Is that a bad way to do this? I am used to loading the SAP table with BDC session or BAPIs. Do you know any BAPIs that we can use to update the VFBA table ?

    Requires Free Membership to View

    When you register, you will start receiving targeted emails from my award-winning team of editorial writers. Our goal is to keep you informed on the hottest topics and biggest challenges faced by SAP professionals today.

    Hannah Smalltree, Editorial Director

    By submitting your registration information to SearchSAP.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchSAP.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

I assume you mean VBFA. You need to think in business terms. You want to load documents into SAP, and also have the document flow. Think about the process a user would go through which would cause this information to be entered into SAP.
Then look for BAPIs (or write BDCs) that automate that process. This will ensure that VBFA contains the correct data.
You should not think in terms of which tables get updated, and it is highly unlikely that the way forward for your requirement is to update VBFA directly. Updating SAP tables directly is a good way to corrupt your database -- and lose SAP support.

This was first published in February 2005