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: 

How to Assign a Field value to a Variable??

Former Member
0 Kudos
132

Dear All,

Kindly let me know, if <b>"HOW TO ASSIGN A FIELD VALUE TO A VARIABLE????"</b>

Situation is, we have a Field (OBJK-TASER) in which 2 tables (SER01 & SER03) are stored. And we want to access names of the Tables which are there in the field(TASER) in (OBJK) table to a variable and then passing that variable to the sql query as a table name to get data accessed dynamicaly.

1 REPLY 1

Former Member
0 Kudos
84

try this

select TASER from OBJK into table it_table.

loop at it_table.
  
 select field1 field2 from (it_table-table) into table it_fields.

endloop