Skip to Content
0
Former Member
Jul 28, 2005 at 02:00 PM

WRITE (<f>) TO <g>.

9 Views

In the WRITE TO statement,

WRITE (<f>) TO <g>.

code->

<b>DATA: name(10) TYPE c VALUE 'SOURCE_s',

source_s(10) TYPE c VALUE 'XYZ ',

target(10) TYPE c.

WRITE (name) TO target.

WRITE / target.

<i>Output->XYZ ( value of source_s)</i></b>

with this code , i get the output as XYZ - the value of the name field(first) is the

name of the second field, i.e. source_s.

now my question is ->

<b>DATA: name(10) TYPE c VALUE 'SOURCE_s',

source_s(10) TYPE c VALUE 'XYZ ',

xyz(10) type c value 'xyz1',

target(10) TYPE c.

WRITE (name) TO target.

WRITE / target.

<i>output-> XYZ

want output as -> xyz1 without using (source_s)</i></b>

Here we ,specify the name of the field containing the name of the source field in

parentheses.

<b>? --></b> Is there any method other than (source_s) so that i get the output as

xyz1.

This is my first post, so if i am not clear kindly excuse me.