Application Development 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: 

How to check change mode in ME23N ?

Former Member
0 Kudos

Hi guys,

The user presses change mode button at transaction ME23N but still the value sy-tcode remains ME23N it does not change to ME22N?

i need to place condtion for ME23N in code.

Can any one tell me how should i check that the user is in change mode at ME23N transaction?

Regards,

Gurmukh

6 REPLIES 6

Former Member
0 Kudos

Hi

Enter the TCODE in the table <b>T180</b>

the field <b>T180-TRTYP</b> gives the mode of tstaus( whether Create or CHANGE)

if it is H means created else it is changed.

use this field in the code

Reward points for useful Answers

Regards

Anji

Former Member
0 Kudos

Hi,

You can use it identify whether you are in change mode or in display mode..

I_TRTYP = 'V' means change mode.

<b>*Reward points</b>

Regards

0 Kudos

What is i_tryp table ?

i am doing validation of one field which must take place in change mode not in display mode....

0 Kudos

I_TRTYP not accessible in my module ........where can i access this table??

0 Kudos

i need validation of the field in one of the subscreen of the ME23n table and it is not a exit.

it is a check on the field using Field statement and i am calling a module.

roton_hossain
Explorer

At First.

Go -> EXIT_SAPMM06E_006 . Then GOTO->GLOBAL DATA ->INCLUDE ZXM06TOP .

write the following Code :

DATA : W_TRTYP LIKE T160-TRTYP .

And write the following code. This include program - ZXM06U36.

W_TRTYP = I_TRTYP .

And finally go to PBO :

IF SY-TCODE = 'ME23N'.

     IF W_TRTYP = 'A'.

       LOOP AT SCREEN.

         IF SCREEN-NAME = 'EKKO_CI-ZZPOHDR_SPIN'.

           SCREEN-INPUT = 0 .

           MODIFY SCREEN.

         ENDIF.

       ENDLOOP.

      Endif .

    Endif .


Thanks & Regards


Roton .