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

Select corresponding text table field

Former Member
0 Likes
1,480

Hi,

I wanna select the corresponding text table field according to the known infotype, subtype, fieldname and text table dynamically. For instance, for infotype 0008, field  'TRFGB'(pay scale area), I want to select 'TGBTX' dynamically in its corresponding text table T510G. How can I implement this dynamically using SQL statement or other ways? Coz usually the first non-key field is the corresponding text field. But I don't know the position of this field in the table.

Many thanks!

Nick

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
861

Hey Nick,

I dont remember the table name exactly might e DD03m/TADIR/DD03L or something. Most probably dd03l.

You can get the position of field at runtime using this table.

So in your example

Select * from dd03l into table it_dd03l where tabname = 'PA0008'.

Now We have got all the field names, their type(DE) and their position in it_dd03l. We can use this to position.

I Hope it helped.

Happy ABAPing

2 REPLIES 2
Read only

Former Member
0 Likes
862

Hey Nick,

I dont remember the table name exactly might e DD03m/TADIR/DD03L or something. Most probably dd03l.

You can get the position of field at runtime using this table.

So in your example

Select * from dd03l into table it_dd03l where tabname = 'PA0008'.

Now We have got all the field names, their type(DE) and their position in it_dd03l. We can use this to position.

I Hope it helped.

Happy ABAPing

Read only

0 Likes
861

Your answer really helps! THX!