2007 Jun 07 12:49 PM
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
2007 Jun 07 12:53 PM
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
2007 Jun 07 12:54 PM
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
2007 Jun 07 12:57 PM
What is i_tryp table ?
i am doing validation of one field which must take place in change mode not in display mode....
2007 Jun 07 12:58 PM
I_TRTYP not accessible in my module ........where can i access this table??
2007 Jun 07 1:04 PM
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.
2016 Jun 16 1:45 PM
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 .
2024 Apr 22 8:20 AM