Some Useful Tables with Header and Item details
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;
- VBAK
- LIKP
- VBRK
- MKPF
And corresponding Item details from the below tables;
- VBAP
- LIPS
- VBRP
- 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
Purchasing Table
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$
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
Hi Arya,
Thanks for the reply.
Yes it is time saving.
Thanks,
Suman$
Hi,
Very handy info suman. Thanks for sharing. Sukant
Thanks for sharing usefull info..
Thanks for the comment Amit 🙂
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$
Hi Suman,
Thank you for sharing its working Fine
Iam Able to Execute the Tables- (without WBGT)
Hi SumanS,
Thanks for sharing such valuable a valuable doc.
Regards
-AJC
Thank you Ashish..
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$
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$
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$
Thank you MoazzaM.... It feels great to hear such comment from you. 🙂
Thanks for sharing this useful information.
Regards
Manjit Dhiman
Thanks Dhiman..
Very useful tables...appreciate you sharing this with all:)
Thanks Govind.
Hi Suman$,
This is very much helpful and time saving. Thanks for sharing. 🙂
Regards,
Anirban Sukul
Thank you for the comment.Hope you are enjoying using it. 😉
Thanks Suman for sharing this useful information.
Regards,
srinu.
Thank You
Hai suman .. thank you so much for your information ...nice posting keep it up it will help a lot
Thank you Venu
Hi Suman,
Please can we get the Tables in the same way for PP(production) Module
i have serached but not able to Locate
Regards
Siva
Good it is.
Thanks Suman!!!
Dear Suman,
Great document.
Vignesh.V
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
Hi,
WBGT stands for Global Trade. If you don´t use GTM, take those views ending with 2 in the document.
Regards,
JM
Thanks Joan! BR GB
Thanks for sharing!
Thanks for sharing. If i select in SE16N, it is coming "No Values found" but we have values in EKKO & EKPO.
Try this one.
WB2_V_EKKO_EKPO2
Thanks for Sharing
Wonderfull information Suman.
Regards
Sai