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

reg:field

Former Member
0 Likes
516

hi everyone,

how to make a field's value in to a field name...

ex:

field1 = 'TEXT'.

and i need to pass some values to TEXT.

like

TEXT = '1234'.

HOW TO DO IT...

plz hhelp thx in advance..

regards,

balaji.s

3 REPLIES 3
Read only

Former Member
0 Likes
495

HI,

use field-symbols.


DATA:var(10),text(10).
FIELD-SYMBOLS:<fs> TYPE any.

var = 'TEXT'.
ASSIGN (var) to <fs>.

MOVE 'abcd' to <fs>.

WRITE:/ text.

rgds,

bharat.

Read only

Former Member
0 Likes
495

Hi ,

Declare constant ex c1

and pass the to the varaiable

CONSTANTS: C1 TYPE c VALUE '1234'.

DATA : var1(10).

var1 = c1.

reward if uyseful

Regards,

Jagadeesh.G

Read only

Former Member
0 Likes
495

Hi,

FIELD-SYMBOLS: <fS> TYPE ANY.

PARAMETERS: TEXT(4) TYPE C,

ASSIGN ( TEXT ) TO <FS>.

WRITE: <FS>.

REWARD IF USEFUL

REGARDS,

SUNIL KAIRAM.

.

Edited by: sunil kairam on Mar 25, 2008 12:40 PM

Edited by: sunil kairam on Mar 25, 2008 12:43 PM