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

Accessing a field in nested internal table

Former Member
0 Likes
3,501

Hi,

Could you please help me how to get value in nested structure 'COMT_PRODUCT_IL_API'.

We need to access field 'DESTINGUID' in that nested structure.

Thanks,

Santosh

Hi,

Could you please help me how to get value in nested structure 'COMT_PRODUCT_IL_API'.

We need to access field 'DESTINGUID' in that nested structure.

Thanks,

Santosh

2 REPLIES 2
Read only

Former Member
0 Likes
1,251

something like:

LOOP AT COMT_PRODUCT_IL_API-COMM_IL_ACCESS INTO wa_COMM_IL_ACCESS.

  LOOP AT wa_COMM_IL_ACCESS-DATA INTO WA_DATA.

    GV_DESTINGUID = WA_DATA-DESTINGUID.

  ENDLOOP.

ENDLOOP.

Read only

Former Member
0 Likes
1,251

Helo,

I figured the previous reply would have solved ur issue,

but doesnt look like as you ve still kept the issue open.

So il again as well follow d same lines n leave a snippet fr yu to refer:-


DATA : LT_COMT_PRODUCT_IL_API TYPE TABLE OF  COMT_PRODUCT_IL_API,
            LW_COMT_PRODUCT_IL_API TYPE COMT_PRODUCT_IL_API,
** i AM NOT SURE WHCIH DEEP STRUCT it is, Im just picking one of the deep strucs in this struc**
            LW_COMM_IL_ACCESS  TYPE COMT_IL_ACCESS_MAINTAIN.

LOOP AT LT_COMT_PRODUCT_IL_API INTO LW_COMT_PRODUCT_IL_API.
READ TABLE LW_COMT_PRODUCT_IL_API-COMM_IL_ACCESS INTO LW_COMM_IL_ACCESS INDEX 1.
IF SY-SUBRC = 0.
+<UR CODE HERE>+
ENDIF.
ENDLOOP.

Shoudl work.

Please close the thread if ur issue lays resolved

Regards

Dedeepya C

Edited by: dedeepya reddy on Mar 23, 2010 1:21 PM