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

regarding creating field symbols dynamically

Former Member
0 Likes
350

Hi every body,

i want to use field symbols in my program.

I have 32 database tables i cant those many internal tables

i have to get the records from database and check whether they are correct or not. so for this scenerio i have to use field symbols and the structure must be created dynamically...

how to do that..

thanking u.

with regards,

giri.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
331

Hi, Giri,

You can use the following FM to create the structure dynamically for the table.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = table_name

CHANGING

ct_fieldcat = it_fcat

EXCEPTIONS

OTHERS = 1.

with regards'

Mahesh

Hi every body,

i want to use field symbols in my program.

I have 32 database tables i cant those many internal tables

i have to get the records from database and check whether they are correct or not. so for this scenerio i have to use field symbols and the structure must be created dynamically...

how to do that..

thanking u.

with regards,

giri.

1 REPLY 1
Read only

Former Member
0 Likes
332

Hi, Giri,

You can use the following FM to create the structure dynamically for the table.

CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

EXPORTING

i_structure_name = table_name

CHANGING

ct_fieldcat = it_fcat

EXCEPTIONS

OTHERS = 1.

with regards'

Mahesh