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

Retrive field from the fieldstring.

Former Member
0 Likes
757

Hi,

Please tell me how to refer the field from the field string.

In the field string <L_LINE>, I have fields named KUNNR, NAME1 and LAND1.

ex: WRITE:/ <L_LINE>-KUNNR.

Thanks in advance.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
736

Hi,

Field string is also like ur work area.

So the way u refer u work area can be

used to refer the field string also.

if wa-kna1 is ur field string name.

u can do like this.

write:/ wa-kna1-kunnr.

wa-kna1-name1,

wa-kna1-land1.

Regards,

Jagadish

Hi,

Field string is also like ur work area.

So the way u refer u work area can be

used to refer the field string also.

if wa-kna1 is ur field string name.

u can do like this.

write:/ wa-kna1-kunnr.

wa-kna1-name1,

wa-kna1-land1.

Regards,

Jagadish

4 REPLIES 4
Read only

Former Member
0 Likes
736

Hi,

Make use of substing.

e.g.

If first 5 letters are KUNNR,then

WRITE:L_LINE0+(5)

Read only

Former Member
0 Likes
737

Hi,

Field string is also like ur work area.

So the way u refer u work area can be

used to refer the field string also.

if wa-kna1 is ur field string name.

u can do like this.

write:/ wa-kna1-kunnr.

wa-kna1-name1,

wa-kna1-land1.

Regards,

Jagadish

Read only

Former Member
0 Likes
736

you should declare that field-symbol specifying concrete type.

don't write, for example,

data <FS> TYPE ANY.

or anything similar.

Read only

Former Member
0 Likes
736

Hi,

Check the leght of each field and put the offsets to read them.

For Ex:

kunnr is of lenght 10 character.

name1 is of lenght 35 character.

write: <L_LINE>0+(10),

<L_LINE>10+(35).

Regards

Adil