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

Fields that relate Billing documents

Hello, I need to construct a list of all billing documents that I choose and to obtain the sales order, delivery and accounting documents linked to this billing document.

Can anyone tell me which fields in the tables relate them? I need to do something simmilar to the doccument flow

TIA

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2007 at 07:46 PM

    Hi Scott,

    Query on VBRP table which has fields gives us information about Sales order and Delivery.

    VBRP-VGBEL - Delivery document number

    VBRP-VGPOS - Line item of Delivery document

    VBRP-AUBEL - Sales document number

    VBRP-AUPOS - Line item of Sales document

    Otherwise, You can query on VBFA table

    Give invoice number to VBFA-VBELN and get the Sales order and Delivery numbers into field VBELV.

    Specify VBTYP_V = 'C' to get Sales order and

    Specify VBTYP_V = 'J' to get delivery numberr.

    Thanks,

    Vinay

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2007 at 07:48 PM

    Hi,

    1) Link to Sales document.

    VBRP-AUBEL = VBAP-VBELN.

    VBRP-AUPOS = VBAP-POSNR.

    2) Link to Delivery document.

    VBRP-VGBEL = LIPS-VBELN.

    VBRP-VGPOS = LIPS-POSNR.

    3) Link to accounting document.

    VBRK-VBELN = BKPF-AWKEY & BKPF-AWTYP = 'VBRK'

    Thanks,

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 25, 2007 at 07:59 PM

    Check this link for SD Tables and their relationships:

    http://www.erpgenie.com/abap/tables_sd.htm

    Thanks,

    Santosh

    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.