Skip to Content

Many times we are fetching data from the various tables where we have to take the Header details and also the Item details and to do that we have to incorporate the logic to the ABAPers with the proper Primary and Foreign key logic to fetch the correct data to build any Logistics report like Sales report.

As we all know that for any sales report we have take the following tables data as Header tables;

  1. VBAK
  2. LIKP
  3. VBRK
  4. MKPF

And corresponding Item details from the below tables;

  1. VBAP
  2. LIPS
  3. VBRP
  4. MSEG

And same is applicable for the Purchase report also.

Here are some tables which is as VIEW category where SAP has taken care the joining and the both Header and Item details can be seen in the SE16 or SE16N at a glance.

Table Name Short text
WB2_V_EKKO_EKPO Data Selection from PO
WB2_V_EKKO_EKPO2 Data Selection from PO (without WBGT)
WB2_V_LIKP_LIPS Data Selection from Deliveries
WB2_V_LIKP_LIPS2 Data Selection from Deliveries (without WBGT)
WB2_V_MKPF_MSEG Data Selection from Material Documents
WB2_V_MKPF_MSEG2 Data Selection from Material Documents (without WBGT)
WB2_V_RBKP_RSEG Select Invoice Verification Documents
WB2_V_RBKP_RSEG2 Select Invoice Verification Documents (without WBGT)
WB2_V_VBAK_VBAP Data Selection from SO
WB2_V_VBAK_VBAP2 Data Selection from SO (without WBGT)
WB2_V_VBRK_VBRL Data Selection from Customer Billing Document Lists
WB2_V_VBRK_VBRL2 Data Selection from Cust. Billing Doc. Lists (without WBGT)
WB2_V_VBRK_VBRP Data Selection from Customer Billing Document
WB2_V_VBRK_VBRP2 Data Selection from Customer Billing Documents (w/o WBGT)

Here are sample screen shot attached as reference;

Sales Billing Table

WB2-VBRK.jpg

Purchasing Table

WB2-EKKO.jpg

The above tables are very useful to check the Itemized details at a glance like Material Movement details,Billing details,Purchase details and etc.

Hope this is helpful.

Thanks,

Suman$

To report this post you need to login first.

34 Comments

You must be Logged on to comment or reply to a post.

  1. Arya Nath

    Hi Suman$,

    thanks for the great information shared by you.It always becomes easier when we can get details of header and item table data in a single table.

    Regards

    Arya Nath

    (0) 
  2. Suman Sardar Post author

    Hi Siva,

    For example go to SE16N and and put the table name WB2_V_MKPF_MSEG2 and execute it should display records.

    Thanks,

    Suman$

    (0) 
  3. ' MoazzaM '

    Hi Suman

    Can you please share where and why we will use these tables instead of VBAK VBAP VBRK and VBRP etc?? What is the difference between VBRP and WB2_V_VBRK_VBRP2?

    Thank$

    (0) 
    1. Suman Sardar Post author

      Hi Moazzam,

      Every time we have to check some test case like canceled invoice when we have to take the data from the Header table VBRK and usually copying all the VBRP-VBELN to paste it in the VBRP to take the item data.

      So we can take both the datas from the single table “WB2_V_VBRK_VBRP2“.

      I think this is useful to save some time.

      Thanks,

      Suman$

      (0) 
  4. ' MoazzaM '

    I didnt notice this. Yes you are right. It’ll save time and its new thing for me to learn. Thanks for sharing Suman 🙂

    Thank$

    (0) 
  5. Gerald Brosch

    Can you please explain the difference of the 2 views for example WB2_V_EKKO_EKPO and WB2_V_EKKO_EKPO2 (w/o WBGT)?
    Why does view WB2_EKKO_EKPO does not contain any data in our System but the other view?

    Thanks,

    Gerald

    (0) 

Leave a Reply