Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Read item details in INVOICE_S_PRT_INTERFACE

former_member806437
Participant
0 Kudos

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.

6 REPLIES 6

ankurch
Active Contributor
0 Kudos

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.

0 Kudos

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

ankurch
Active Contributor
0 Kudos

Try to pass X in check structure.

former_member751463
Participant
0 Kudos

Hi,

Please refer the code below for better understanding.

https://www.trailsap.com/abap-select/?sap-table=invoice_s_prt_interface

Thanks

0 Kudos

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?

raymond_giuseppi
Active Contributor

Are you asking

  • how to fill values in this structure (e.g. in one custom program)
  • how to read values from this deep structure which is already available (e.g. in some enhancement of a standard program/form such as SD_INVOICE_PRINT01)
  • and what did you already try?

Look at ASSIGN statement as in

  assign gs_interface-head_detail-vbdkr to <gs_vbdkr>.