2009 May 14 8:55 AM
Hi,
My requirement is if i enter the Table name i have to get all the field names and description .Please tell me how to do.
Thanks,
Mohan
2009 May 14 9:05 AM
Try this :
SELECT * FROM dd03l
INTO TABLE tab_fields
WHERE
tabname = i_tabname .
Hi,
My requirement is if i enter the Table name i have to get all the field names and description .Please tell me how to do.
Thanks,
Mohan
2009 May 14 9:04 AM
Hi,
TABLES: DFIES,
X030L.
DATA: BEGIN OF INTTAB OCCURS 100.
INCLUDE STRUCTURE DFIES.
DATA: END OF INTTAB.
PARAMETERS: TABLENM TYPE DDOBJNAME DEFAULT 'MSEG',
FIELDNM TYPE DFIES-FIELDNAME DEFAULT 'MENGE'.
call function 'DDIF_FIELDINFO_GET'
exporting
tabname = TABLENM
FIELDNAME = FIELDNM
LANGU = SY-LANGU
* LFIELDNAME = ' '
* ALL_TYPES = ' '
* IMPORTING
* X030L_WA = WATAB
* DDOBJTYPE =
* DFIES_WA =
* LINES_DESCR =
TABLES
DFIES_TAB = INTTAB
* FIXED_VALUES =
EXCEPTIONS
NOT_FOUND = 1
INTERNAL_ERROR = 2
OTHERS = 3.
if sy-subrc <> 0.
WRITE:/ 'Field name not found'.
endif.
LOOP AT INTTAB.
WRITE:/ INTTAB-TABNAME, INTTAB-FIELDNAME, INTTAB-FIELDTEXT.
ENDLOOP.Thanks and regards,
Ramani N
2009 May 14 9:05 AM
Try this :
SELECT * FROM dd03l
INTO TABLE tab_fields
WHERE
tabname = i_tabname .
2009 May 14 9:06 AM
2009 May 14 9:16 AM