2007 May 21 11:03 PM
I need to write a program that allows users to enter the field e.g. vekp-venum and the program should display be
venum TYPE venum, "Internal Handling Unit Number
as the result
so field type data element "Field Description
where is the field description stored
2007 May 21 11:26 PM
Check this.
DATA: v_table LIKE dd03l-tabname,
v_field LIKE dd03l-fieldname,
v_label TYPE string.
PARAMETERS: p_tabfld(60).
START-OF-SELECTION.
IF p_tabfld CA '-'.
SPLIT p_tabfld AT '-' INTO v_table v_field.
ELSE.
WRITE:/ 'Enter value in the format table-field'.
ENDIF.
CHECK v_table IS NOT INITIAL AND
v_field IS NOT INITIAL.
CALL FUNCTION 'DDIF_FIELDLABEL_GET'
EXPORTING
tabname = v_table
fieldname = v_field
langu = sy-langu
* LFIELDNAME = ' '
IMPORTING
label = v_label
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE:/ v_label.
ENDIF.
I need to write a program that allows users to enter the field e.g. vekp-venum and the program should display be
venum TYPE venum, "Internal Handling Unit Number
as the result
so field type data element "Field Description
where is the field description stored
2007 May 21 11:06 PM
Hi,
Not sure what you are looking for??
But check in the table VEKP itseld for Description..
Thanks,
Naren
2007 May 21 11:19 PM
I want to display the description of vekp-venum
internal handling unit number
where is this stored
2007 May 21 11:22 PM
Hi Megan,
I am not sure what you are asking. VEKP-VENUM is a number(Internal Handling Unit Number). What description do you need for tht number.
Thanks
Aneesh.
2007 May 21 11:46 PM
HI,
u can get from the table <b>DD04T</b> with field <b>ROLLNAME</b> as data element and <b>DDTEXT</b> as field description.
select ddtext from dd04t into field_desc where rollname = 'MATNR'.
Reward if useful.
Regards
SAB
2007 May 21 11:26 PM
Check this.
DATA: v_table LIKE dd03l-tabname,
v_field LIKE dd03l-fieldname,
v_label TYPE string.
PARAMETERS: p_tabfld(60).
START-OF-SELECTION.
IF p_tabfld CA '-'.
SPLIT p_tabfld AT '-' INTO v_table v_field.
ELSE.
WRITE:/ 'Enter value in the format table-field'.
ENDIF.
CHECK v_table IS NOT INITIAL AND
v_field IS NOT INITIAL.
CALL FUNCTION 'DDIF_FIELDLABEL_GET'
EXPORTING
tabname = v_table
fieldname = v_field
langu = sy-langu
* LFIELDNAME = ' '
IMPORTING
label = v_label
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3
.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
WRITE:/ v_label.
ENDIF.
2007 May 21 11:27 PM
Of course you need to validate the table name, field name etc, but you get the idea.
2007 May 21 11:29 PM
You can use DDIF_FIELDINFO_GET to get the rest of the field information such as its data element, domain, check table, length etc
2007 May 21 11:27 PM
Hi,
Check in the table VEKP itself..For text field..
Go to se12..Give the table VEKP.
Press display..
Press Ctrl + F4...in that give "text"
It will show the fields that has "text" in its description or in the field name..
Thanks,
Naren
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |