Skip to Content
author's profile photo Former Member
Former Member

why VBFA is needed if I have VBAP, VBAK.

please explain what is this subsequent(VBELN) and precendent(VEBLV) documents in VBFA.

How they are related to each other.

I also didn't understand the following code related to VBFA:

LOOP AT it_so.

SELECT SINGLE name1 FROM kna1 INTO v_name

WHERE kunnr = it_so-kunnr.

SELECT SINGLE vbeln FROM vbfa INTO v_delnum

WHERE vbelv = it_so-vbeln

AND vbtyp_n = 'J'.

IF sy-subrc = 0.

SELECT SINGLE vbeln FROM vbfa INTO v_invnum

WHERE vbelv = v_delnum

AND vbtyp_n = 'M'.

ENDIF.

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 06:26 PM

    Hi - VBFA is used to capture and provide the Document flow

    cheers

    Nandu

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 03:45 AM

    Kindly check the table VBFA table has complete document flow. for example for a sale order whether delibery doc is made or not & then billing documents. Different documents can be tracked using VBTYP field of VBFA .

    Check code where once data is selected on the basis of

    VBTYP_N = 'J" which is delivery .

    If delivery is made then only checking for

    VBTYP-N = 'M' for invoice.

    Go to SE11 and check table VBFA for any sale document the whole cycle will from order to billing will be captured.

    thanks

    anya

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 30, 2008 at 03:52 AM

    The table VBFA updates the subsequent documents in sales processing. We take an example For a sales process Quatation (2000000) , if subsequent order is (3000000) and delivery is 500000. The vbfa table shall have order 3000000 as follow on document of 2000000.

    For sales order 3000000

    Preceding doc>>2000000

    and follow on doc >>500000

    The subsequent/preceding doc category tells you, regarding type of doc.

    B- Quotation

    C-Order

    J -delivery

    Also for item follow on docs and preceding docs with item number are updated in this table.

    The docuemnt flow you can see on any document fetches data from this table.

    reward if useful

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 04:09 AM

    Hi Srk,

    The table VBFA related to Sales Document Flow

    1.Preceding Document means Sales order

    2.Subsequent documents means Delivery document,post goods issue document,Invoice and accounting documents which are related to that Sales order (Preceding Document).

    I hope it will help you,

    Regards,

    Murali.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2008 at 06:33 AM

    hi,

    VBFA is extremely important as other 2 because it captures the document flow.

    Also whenever the logic is required for the subsequent documents like quantity upto previous bill or value upto previous bill, this plays an imp role on the basis of which logic can be created.

    eg Scenario is Sales order to Billing & u require Quantity upto previous bill, then by giving the current invoice no to VBELN, we can find out related SO from VBELV, on that we can find out the no of entries for that SO ie how many invoices has been carried out previous to this.

    Thus we can find out the qty upto previous bill by applying such VBFA table.

    Hope ur clear with this scenario.

    Dont forget to reward

    Regards,

    LAxmikant

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 30, 2008 at 02:52 PM

    Dear srk

    Apart from the suggestions given above, using VBFA to find the document flow, the system ignores cancellation invoices, credit memos and debit memos, as the sales order has none of these documents as a direct subsequent document

    Thanks

    G. Lakshmipathi

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.