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

function module to get table description

Former Member
0 Likes
2,793

Is there any function module to get table description on passing table name

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,425

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.

6 REPLIES 6
Read only

Former Member
0 Likes
1,425

Hi,

check out this table DD02T (Table name texts)

Regards

Lekha

Read only

Former Member
0 Likes
1,425

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 Data

Link:

Regards

Adil

Read only

Former Member
0 Likes
1,425

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

Read only

Former Member
0 Likes
1,426

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.

Read only

Former Member
0 Likes
1,425

Hi,

Use FM TB_TABLE_GET_TEXTS

Just pass the table name and it returns the description

Regards,

Prashant

Read only

Former Member
0 Likes
1,425

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