Application Development 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: 

Field-symbol protected

Former Member
0 Kudos

Hi Gurus,

I´ ve this code in my program:

ASSIGN COMPONENT 'field_name' OF STRUCTURE ?

thanks in advance,

KMT

2 REPLIES 2

former_member188685
Active Contributor
0 Kudos

use Caps for fieldname.

ASSIGN COMPONENT 'FIELD_NAME' OF STRUCTURE <L_DATA> TO <L_SC>.

ideally it should work. can you post what you are doing exactly?

what is <L_DATA> consists of..?

former_member188685
Active Contributor
0 Kudos

here is the small code, which is working fine

data: wa_vbak type vbak.

field-symbols: <fs> type any, <fs_vb> type any.

assign wa_vbak to <fs>.

assign component 'VBELN' of structure <fs> to <fs_vb>.

<fs_vb> = '1243243'.

write <fs_vb>.