Application Development and Automation 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 only

read data from a deep structure

Former Member
0 Likes
1,493

Hi Experts,

To display the total amount on each row in a form after doing some calculation I have to fill an internal table and modify it.

Regarding this i have few Queries:-

I have to read data from a deep structure which is INVOICE_S_PRT_INTERFACE -> ITEM_DETAIL (table type INVOICE_T_PRT_ITEM_DETAIL which is of structure type INVOICE_S_PRT_ITEM_DETAIL) and having VBDPR structure in it.

From this VBDPR i have to read POSNR, matnr, netpr mwsbp and perform calculation on netpr & mswbp to displat total in a new column on each row.

I dont no how to access this VBDPR structure data which is line item data.

If i can get these line items in a internal table i can perform calculation.

Please tell me what are the types, internal table i have to define and how to read this data.

Regards,

Nik

7 REPLIES 7
Read only

Former Member
0 Likes
962

hi

refr to this thread

hope this helps

regards

Aakash Banga

Read only

0 Likes
962

Doesnt work !!

Regards

Nik

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
962

Hello,

Is INVOICE_S_PRT_INTERFACE an SE11 structure ?

BR,

Suhas

Read only

0 Likes
962

Ya buddy.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
962

Hello Nikhil,

I donot find it in my SE11 :-((

Which SAP version are you using ?

BR,

Suhas

Read only

0 Likes
962

Solved

Read only

Former Member
0 Likes
962

Hi,

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.

Regards,

Dwaraka,.S

Edited by: Dwarakanath Sankarayogi on Feb 10, 2009 7:10 AM