Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Text elements for implicit Enhancement point

Hi All,

Can you please guide me where text elements for an implicit enhancement point can be maintained?

Thanks.

Former Member
Former Member replied

Hi

  1. Make your parameter or select-options with ref. to a data element.
  2. Implement code below as enhancement to INITIALIZATION

(replace DC_BISMT and BISMT with parameter and dataelement from your own example):

(sorry for the strange table structure of the code -

like anything else in the new SDN also the "editor" is poor)

DATA: zz_lt_sel_dtel  TYPE  rsseldtel OCCURS 0,

zz_ls_sel_dtel  TYPE  rsseldtel.

Clear zz_lt_sel_dtel.


zz_ls_sel_dtel-name = 'DC_BISMT'.       " Feldname

zz_ls_sel_dtel-kind = 'S'.              " S für select-options

zz_ls_sel_dtel-datenelment = 'BiSMT'.   " Datenelement

APPEND zz_ls_sel_dtel TO zz_lt_sel_dtel.



CALL FUNCTION 'SELECTION_TEXTS_MODIFY_DTEL'

EXPORTING

program                 = sy-repid   

TABLES

sel_dtel                = zz_lt_sel_dtel

EXCEPTIONS

program_not_found       = 1

program_cannot_be_generated = 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.

ENDIF.
1 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question