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

Problem in screen exit.

former_member424229
Participant
0 Kudos
394

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

1 ACCEPTED SOLUTION

nabheetscn
SAP Champion
SAP Champion
0 Kudos
324

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

15 REPLIES 15

nabheetscn
SAP Champion
SAP Champion
0 Kudos
325

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

0 Kudos
324

Hi,

  I found i_trtyp.Where i used it is the problem.Develop code in function module not working.

0 Kudos
324

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

0 Kudos
324

Use it in PBO modules, they are processed before output screen is displayed.

Former Member
0 Kudos
324

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

Former Member
0 Kudos
324

This message was moderated.

asim_isik
Active Participant
0 Kudos
324

in the import part of your exit try this code

IF TCODE = 'ME23N'.

     LOOP AT SCREEN.

          SCREEN-INPUT = 0.

          MODIFY SCREEN.

     ENDLOOP.

ENDIF.

0 Kudos
324

Sorry, bad idea... 

RaymondGiuseppi
Active Contributor
0 Kudos
324

As

0 Kudos
324

0 Kudos
324

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

0 Kudos
324

This message was moderated.

0 Kudos
324

No problem. But I answered so nobody be misled. (Also I started with a "Sorry" to not hurt you, and failed )

Regards,

Raymond

former_member424229
Participant
0 Kudos
324

Hi,

My problem not solved.Please..

0 Kudos
324

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