02-26-2009 3:48 AM
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....
02-26-2009 3:52 AM
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
02-26-2009 3:56 AM
Hi,
Use DD03L Table for getting field names of the tables.
Regards,
Surendar Reddy.
02-26-2009 4:08 AM
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^
02-26-2009 4:46 AM
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.
02-26-2009 4:58 AM
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
02-26-2009 4:59 AM
Hi,
use this FM ,
U'll get all the field names and its descriptions for the Table.
FMRE_GET_TABLEFIELDS_LONGNAMES
02-26-2009 7:45 AM
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....