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

Reading Deep structure

Former Member
0 Likes
380

Hi All,

I have deep Structure PS_RJHAORDER-RJHABPZ_ITAB-BELEGEINH, BELEGEINH is the field which contains some value and I want to read that value and pass to the field of same type of BELEGEINH.

let's say....

LS_BELEGEINH = PS_RJHAORDER-RJHABPZ_ITAB-BELEGEINH

but I get error saying "PS_RJHAORDER doesn't have component called RJHABPZ_ITAB-BELEGEINH".

Please guide me on this.

Thanks,

Chandravadan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
342

Hi Chandravadan,

you can't access directly a deep structure field like that because table PS_RJHAORDER-RJHABPZ_ITAB doesn't have a header line.

Create a auxiliary structure:


loop at PS_RJHAORDER-RJHABPZ_ITAB into ls_aux.
  LS_BELEGEINH = ls_aux-BELEGEINH.
endloop.

regards,

Edgar

1 REPLY 1
Read only

Former Member
0 Likes
343

Hi Chandravadan,

you can't access directly a deep structure field like that because table PS_RJHAORDER-RJHABPZ_ITAB doesn't have a header line.

Create a auxiliary structure:


loop at PS_RJHAORDER-RJHABPZ_ITAB into ls_aux.
  LS_BELEGEINH = ls_aux-BELEGEINH.
endloop.

regards,

Edgar