Skip to Content
Former Member
Feb 26, 2011 at 08:48 AM

Field symbols not working in data transfer VOFM routine



I have been trying to set a value using field symbols, however for some reasons its not working. I am using a field symbol in a data transfer routine and the value which I am trying to set is a standard field outside the VOFM routine code.

I am trying to set a field gla_subrc which is actually a changing parameter.

The actual paramter is gn_subrc of type sy-subrc and within the form the name is gla_subrc. I need to set this changing parameter gla_subrc using the data transfer routine.

Is there a specific rule that field symbols dont work for changing paramters within subroutine or is there a specific syntax.

The syntax I am using is

ASSIGN ('(SAPLV50S)gla_subrc') to <fs>.

I also used the local program name instead of main program but still that does not work. Tried using the actual parameter as well.

Can someone please help me in this.

Thanks & Regards,