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

field description

Former Member
0 Likes
790

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
742

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.

8 REPLIES 8
Read only

Former Member
0 Likes
742

Hi,

Not sure what you are looking for??

But check in the table VEKP itseld for Description..

Thanks,

Naren

Read only

Former Member
0 Likes
742

I want to display the description of vekp-venum

internal handling unit number

where is this stored

Read only

0 Likes
742

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.

Read only

0 Likes
742

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

Read only

Former Member
0 Likes
743

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.

Read only

0 Likes
742

Of course you need to validate the table name, field name etc, but you get the idea.

Read only

0 Likes
742

You can use DDIF_FIELDINFO_GET to get the rest of the field information such as its data element, domain, check table, length etc

Read only

Former Member
0 Likes
742

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