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

how to fetch data from deep structure

sivakrishna_boddapati
Participant
0 Likes
1,830

Hi experts ,

I want to fetch data from deep structure my requirement is i have method and have a global attribute( ip_output) with associated type as

BAD_BUS_TRANSN_MESSAGE in that a component exits with name as segment_sent with component type as BAD_SEGMENTS_SENT_MESS_T and in that line type is BAD_SEGMENTS_SENT_MESS in that line type component name as

.include and component type is SMOG_SINC and that component type contains four components name as tr_status,bef_img,task,sendbits .

now i want to these four values in method source code

so

i write code like this in my method

if not ip_output-segments_sent[] is not initial.

endif.

how to check data in smog_sinc.

Thanks in advance

Hi experts ,

I want to fetch data from deep structure my requirement is i have method and have a global attribute( ip_output) with associated type as

BAD_BUS_TRANSN_MESSAGE in that a component exits with name as segment_sent with component type as BAD_SEGMENTS_SENT_MESS_T and in that line type is BAD_SEGMENTS_SENT_MESS in that line type component name as

.include and component type is SMOG_SINC and that component type contains four components name as tr_status,bef_img,task,sendbits .

now i want to these four values in method source code

so

i write code like this in my method

if not ip_output-segments_sent[] is not initial.

endif.

how to check data in smog_sinc.

Thanks in advance

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
957

Use a LOOP AT ip_output-segments_sent INTO/ASSIGNING, etc.

Regards,

Raymond

Read only

0 Likes
957

segment_sent data type is BAD_SEGMENTS_SENT_MESS_T it is a table type and it contains a line type BAD_SEGMENTS_SENT_MESS and it contains like

Component  Component Type
 .include       SMOG_SINC

again smog_sinc is a structure and it contains 4 fields now i want access those 4 fields

Read only

0 Likes
957

Hi,

As said by Raymond, try like this..

data: ls_seg type BAD_SEGMENTS_SENT_MESS.
 LOOP AT ip_output-segments_sent INTO ls_seg
***
..ls_seg-tr_status ..
...ls_seg-bef_img...
endloop.

Regards,