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

a question about structure

Former Member
0 Likes
464

Hi there,

I am new to ABAP program. Please help me with the following codes. Thanks a lot.

___________________________________

I define a variable lt_whereused as below:

data: lt_whereused type scr_refs.

where, scr_refs is a structure, which type is "Line Type: scr_ref".

And scr_ref is also a structure, which has a component named as "name".

_____________________________________

How I can print the content of the "name"?

Thanks a lot,

Bing

1 ACCEPTED SOLUTION
Read only

Sm1tje
Active Contributor
0 Likes
444

Seems to me that scr_refs is not a structure but a table type with line type scr_ref.

So loop at your internal table"

data: lw_whereused type scr_ref.

loop at lt_whereused into lw_whereused.

write:/1 lw_whereused-name.

endloop.

Hi there,

I am new to ABAP program. Please help me with the following codes. Thanks a lot.

___________________________________

I define a variable lt_whereused as below:

data: lt_whereused type scr_refs.

where, scr_refs is a structure, which type is "Line Type: scr_ref".

And scr_ref is also a structure, which has a component named as "name".

_____________________________________

How I can print the content of the "name"?

Thanks a lot,

Bing

2 REPLIES 2
Read only

Sm1tje
Active Contributor
0 Likes
445

Seems to me that scr_refs is not a structure but a table type with line type scr_ref.

So loop at your internal table"

data: lw_whereused type scr_ref.

loop at lt_whereused into lw_whereused.

write:/1 lw_whereused-name.

endloop.

Read only

Former Member
0 Likes
444

Problem solved!!

Thank you so much!!!