06-29-2022 11:29 AM
Hi,
May I know how to read item_details data in INVOICE_S_PRT_INTERFACE.
INVOICE_S_PRT_INTERFACE(structure) -> item_details(Table type) -> INVOICE_S_PRT_ITEM_DETAIL(Line type)
-> vbdpr.
How to get the vbdpr data?
Thanks.
06-29-2022 11:34 AM
Declare an internal table of type INVOICE_T_PRT_ITEM_DETAIL
data : gi_item type INVOICE_T_PRT_ITEM_DETAIL.
Get the data into the table using gi_item = INVOICE_S_PRT_INTERFACE-ITEM_DETAIL.
Now by looping/reading internal table GI_ITEM u can access the field VBDPR for display or any other processing.
06-29-2022 12:04 PM
Hi,
Thank you for your reply.
I am facing the below issue
gi_item = INVOICE_S_PRT_INTERFACE-ITEM_DETAIL is throwing an error as INVOICE_S_PRT_INTERFACE-ITEM_DETAIL is unknown
06-30-2022 8:09 AM
06-29-2022 12:27 PM
Hi,
Please refer the code below for better understanding.
https://www.trailsap.com/abap-select/?sap-table=invoice_s_prt_interface
Thanks
06-29-2022 12:57 PM
Hi,
Thank you for your reply.
In the given link process for header details is explained. May I know how to read item_detail data?
06-30-2022 1:17 PM
Are you asking
Look at ASSIGN statement as in
assign gs_interface-head_detail-vbdkr to <gs_vbdkr>.