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.


Ayal Telem.

Former Member
Former Member replied


Use the below approach.

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

        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
        tekpo       = lt_usr_tekpo
        teket       = lt_usr_teket
        tekkn       = lt_usr_tekkn
        tkomv       = lt_usr_tkomv
        OTHERS      = 0.

Put below code inside above customet exit.

EXPORT i_trtyp TO MEMORY ID 'change/display'.

Try this.



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