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: 

Regarding Tablename in Selection-screen

Former Member
0 Kudos

HI all,

my requirement is,, If i will give Table name in the selection-screen then the output is to display all the fields in table...

for example if i will give MARA.... THE Output has to display all the fields of mara and their description..

can any one give some idea pls...and if poss give some eg coding also....

7 REPLIES 7

Former Member
0 Kudos

Hi,

DD03L holds the Table Fields

DD03T holds the Table Fields and description

OR use FM DB_GET_TABLE_FIELDS

RFC_READ_TABLE - Fields with Description

Edited by: Avinash Kodarapu on Feb 26, 2009 9:31 AM

0 Kudos

Hi,

Use DD03L Table for getting field names of the tables.

Regards,

Surendar Reddy.

Former Member
0 Kudos

Hi

Good

if you are entering the selection screen parameter as MARA than you can use the structure DD03P and DD03D .

DD03D structure return you the field name like MATNR and DD03P will retrun you the Short Desctiption like Material Number.

Thanks

mrutyun^

Former Member
0 Kudos

Hi,

Check these function modules

BKK_DB_GET_TABLE_FIELDS

RM_TABLE_FIELDS_GET

or check these tables

DD03L Table Fields

DD03T DD: Texts for fields (language dependent)

Regards,

Jyothi CH.

Former Member
0 Kudos

Hello mate,

you can do that in two ways. When you specify the table name from your selection screen, you can retreive all fields names for that selection from table DD03L and DD03T for the descriptions.

easier would be to use the function module FM DB_GET_TABLE_FIELDS and pass the table you want to display the fields and ( RFC_READ_TABLE for the Fields with Description).

Hope this helps

Former Member
0 Kudos

Hi,

use this FM ,

U'll get all the field names and its descriptions for the Table.

FMRE_GET_TABLEFIELDS_LONGNAMES

0 Kudos

hi,

i used this functional module ......i got the output

DDIF_FIELDINFO_GET

field name description1 description2..

description1 is default english..

description2 is what evr language we select in selection screen tat language has to be displayed in output...

could u pls help me out regarding this....