‎2008 Sep 04 9:39 AM
Is there any function module to get table description on passing table name
‎2008 Sep 04 9:53 AM
Hi,
We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
we pass the table name and the language.
call function 'G_RW_TABLE_DESCRIPTION_GET'
exporting
rw_table = p_table
langu = sy-langu
importing
tab_text = l_tabtext
exceptions
others = 1.thanx.
‎2008 Sep 04 9:42 AM
Hi,
check out this table DD02T (Table name texts)
Regards
Lekha
‎2008 Sep 04 9:43 AM
Hi,
Check this code,
PARAMETERS:
p_table LIKE dd02t-tabname. "MARA
DATA:
table TYPE dd02t-tabname,
table_attr LIKE dd02v.
CALL FUNCTION 'G_TABLE_READ'
EXPORTING
add_flag = ' '
langu = sy-langu
table = p_table
utable = ' '
IMPORTING
table_attr = table_attr
EXCEPTIONS
not_found = 1.
WRITE: table_attr-ddtext.
"Result:
"General Material DataLink:
Regards
Adil
‎2008 Sep 04 9:43 AM
Vijetha,
Try this FM,
ISU_M_TABL_READ_TEXT
DATA:
desc TYPE dd02t-ddtext,
tab TYPE dd02t-tabname.
tab = 'MARA'.
CALL FUNCTION 'ISU_M_TABL_READ_TEXT'
EXPORTING
x_tabname = tab
IMPORTING
y_ddtext = desc.
WRITE desc.Regards
Indu
‎2008 Sep 04 9:53 AM
Hi,
We need to use : 'G_RW_TABLE_DESCRIPTION_GET' function module.
we pass the table name and the language.
call function 'G_RW_TABLE_DESCRIPTION_GET'
exporting
rw_table = p_table
langu = sy-langu
importing
tab_text = l_tabtext
exceptions
others = 1.thanx.
‎2008 Sep 04 10:29 AM
Hi,
Use FM TB_TABLE_GET_TEXTS
Just pass the table name and it returns the description
Regards,
Prashant
‎2008 Sep 04 10:33 AM
hiii
use FM
data:
wa_string type string.
CALL FUNCTION 'TB_TABLE_GET_TEXTS'
EXPORTING
tabname = ztable
IMPORTING
DESCRIPTION = wa_string
* EXCEPTIONS
* NOT_FOUND = 1
write: wa_string.regards
twinkal