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

ASSIGN COMPONENT

Former Member
0 Likes
651

hi,

maybe some one can tell me what this code do,and when is recommended to use it.


ASSIGN COMPONENT fieldname OF STRUCTURE

Regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
560

Hi,

It is used to assign a field name of a structure to field symbol.

Syntax:

ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.

Regards,

Ferry Lianto

4 REPLIES 4
Read only

Former Member
Read only

former_member188829
Active Contributor
0 Likes
560

Hi,

Read only

naimesh_patel
Active Contributor
0 Likes
560

This is used when you have to access the field which from the fieldsymbol which has a strcutre.

You can use the with the fieldaname when you know the fieldname or you can use the number of the field when you know the palce of the field, say 2nd field.

Like:

ASSIGN COMPONENT 'MATNR' OF STRCTURE <F_HEAD> TO <F_FLD>.

OR

ASSIGN COMPONENT 2 OF STRCTURE <F_HEAD> TO <F_FLD>.

Regards,

Naimesh Patel

Read only

Former Member
0 Likes
561

Hi,

It is used to assign a field name of a structure to field symbol.

Syntax:

ASSIGN COMPONENT <comp> OF STRUCTURE <s> TO <FS>.

Regards,

Ferry Lianto