Skip to Content
0
Former Member
Jan 20, 2009 at 12:34 PM

filling up members of a structure with some default value

1267 Views

Hi,

I have a data like:

DATA:

ls_abc_lane TYPE bapi11201tr2.

here, ls_abc_lane contains many fields and i want to set each of them value as 'X'.

Traditional way is to fill up like:

ls_abc_lane-field1 = 'X'.

ls_abc_lane-field2 = 'X'.

..etc.

BUT, if there are many fields it is time consuming to type/copy paste for each field. If there any way to loop through the fields and set up the 'X' value ?

Points will be given to the helpful answer.

Thanks and regards,

Ramesh.