Skip to Content

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

Field exit activation problem

Hi all,

for my purpose I'd like to create a field exit (SAP_APPL 46C) to lock/ulock for modification a standard field in the grid shown in me51n/me52n/me53n tx. I did as follows:

1 - run the report RSMODPRF and created a field exit for the field EPSTP (FIELD_EXIT_EPSTP);

2 - wrote the (dummy) code that follows, just to verify if it works:

FUNCTION FIELD_EXIT_EPSTP.
*"----------------------------------------------------------------------
*"*"Local interface:
*"  IMPORTING
*"     REFERENCE(INPUT) TYPE  MEREQ3211GRID
*"  EXPORTING
*"     REFERENCE(OUTPUT) TYPE  MEREQ3211GRID
*"----------------------------------------------------------------------

loop at screen.
  if screen-name = 'EPSTP'. "make it non-editable
    screen-input = 0.
    screen-active = 1.
  endif.
  modify screen.
endloop.
ENDFUNCTION.

3 - save & activate.

4 - run the report RSMODPRF (without parameters), and attribute this new Field Exit to Program RM_MEREQ_GUI and screen 0014 (as I've seen pressing F1 in me52n on the field in order to get some info about program/screen).

So far, so good ... but now in the field exit list i get the following entry:

EPSTP | INACTIVE | RM_MEREQ_GUI | 0014

and can't get to turn it into the ACTIVE status. If I try to activate from the list the entry, a message tells that the Field Exit is still active... but that list view isn't updated anyway, and shows that the FE is not active. Obviously, I can't see any effects in the transaction in which it should trigger.

Any help is really appreciated, thanks.

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