Skip to Content

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

User-exit in ME22N: how can I tell mode (change/display)

Hi All,

I have added a new field via Screen-exit to ME22N and it's working fine.

The problem I have is that ME22N can be used in Display mode and in such mode I would like to disable my field.

How can I tell the mode?

I searched the forum and found few threads, but none were answered.

Regards,

Ayal Telem.

Former Member
Former Member replied

Hi

Use the below approach.

Inside below costomer exit EXPORT the display/change flag to memory.

CALL FUNCTION 'EXIT_SAPMM06E_006'
      EXPORTING
        i_ekko      = ekko
        i_ekko_old  = *ekko
        i_trtyp     = trtyp   <---this contain flag 'A' or 'V' for display /change.
        i_ci_ekko   = l_ci_ekko
        i_bstyp     = ekko-bstyp
        i_no_screen = im_no_screen
        i_lfa1      = lfa1
        i_lfm1      = lfm1
        i_kekko     = kekko
        i_aekko     = aekko
        i_rekko     = rekko
        i_vorga     = t160-vorga
      TABLES
        tekpo       = lt_usr_tekpo
        teket       = lt_usr_teket
        tekkn       = lt_usr_tekkn
        tkomv       = lt_usr_tkomv
      EXCEPTIONS
        OTHERS      = 0.

Put below code inside above customet exit.

EXPORT i_trtyp TO MEMORY ID 'change/display'.

Try this.

BR,

Vijay

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