2014 Jan 22 5:27 AM
Hi,
I enhancing the 'ME21n' for that i create a screen through screen exit.
every thing is working fine but when we execute transaction 'ME23N' the designed screen fields in edit mode i want in display mod only.
Please help me urgent
Message was edited by: Suhas Saha
2014 Jan 22 5:44 AM
Hi Krishna
Please dont use urgent. Every one is contributing voluntarily. If you had look at the function module in the exit it has a parameter I_TRTYP which identifies whether you are in create/change/display mode. Based on this mode you can disbale your field using loop at screen. screen-input = 0. modify screen
Nabheet
2014 Jan 22 5:44 AM
Hi Krishna
Please dont use urgent. Every one is contributing voluntarily. If you had look at the function module in the exit it has a parameter I_TRTYP which identifies whether you are in create/change/display mode. Based on this mode you can disbale your field using loop at screen. screen-input = 0. modify screen
Nabheet
2014 Jan 22 5:56 AM
Hi,
I found i_trtyp.Where i used it is the problem.Develop code in function module not working.
2014 Jan 22 6:39 AM
how are you reading data from SAP standard by exporting it in this exit..if yes then export this also. In PBO of your screen put a loop at screen and set scrren-input as 0
2014 Jan 22 7:39 AM
Use it in PBO modules, they are processed before output screen is displayed.
2014 Jan 22 6:20 AM
Hi,
In the screen Layout (screen painter ) In attributes , mark the field as Output Only
or
Use Loop at screen in the exit
Thanks,
Vijay
2014 Jan 22 6:37 AM
2014 Jan 22 7:47 AM
in the import part of your exit try this code
IF TCODE = 'ME23N'.
LOOP AT SCREEN.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
2014 Jan 22 8:12 AM
2014 Jan 22 8:09 AM
As nabheet madan wrote use I_TRTYP
Regards,
Raymond
2014 Jan 22 8:14 AM
i do not know how I_TRTYP works but if he do it with I_TRTYP will it work only in ME23N or for all ?
because he wants to make it display only in ME23N not others. it will still be editable in ME21N.
2014 Jan 22 8:27 AM
In almost every screen exit for customer fields this field is provided, its value define (in german) the type of transaction, also developer should always read enhancement documentation (SMOD, SE18, SPRO) before posting
In the header modules, you obtain the SAP transaction category via the
parameter I_TRTYP:
o A Display (Anzeigen)
o V Change
o H Create
Regards,
Raymond
2014 Jan 22 8:44 AM
2014 Jan 22 10:03 AM
2014 Jan 22 9:08 AM
2014 Jan 22 10:06 AM
As I wrote, did you save the received TRTYP in global area (ZXM06TOP ?) so every FM exit and module will be able to read it ?
As a rule save this kind of parameter in the global area of the function group which contains the exit FM, also save the data to be displayed on customer screen in work area defined with the TABLES statement (only suitable usage of this statement today)
Regards,
Raymond