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: 
Read only

Problem in screen exit.

Former Member
0 Likes
2,050

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
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,980

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
Read only

nabheetscn
SAP Champion
SAP Champion
0 Likes
1,981

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

Read only

0 Likes
1,980

Hi,

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

Read only

0 Likes
1,980

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

Read only

0 Likes
1,980

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

Read only

Former Member
0 Likes
1,980

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

Read only

Former Member
0 Likes
1,980

This message was moderated.

Read only

asim_isik
Active Participant
0 Likes
1,980

in the import part of your exit try this code

IF TCODE = 'ME23N'.

     LOOP AT SCREEN.

          SCREEN-INPUT = 0.

          MODIFY SCREEN.

     ENDLOOP.

ENDIF.

Read only

0 Likes
1,980

Sorry, bad idea... 

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,980

As

Read only

0 Likes
1,980

Read only

0 Likes
1,980

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

Read only

0 Likes
1,980

This message was moderated.

Read only

0 Likes
1,980

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

Regards,

Raymond

Read only

Former Member
0 Likes
1,980

Hi,

My problem not solved.Please..

Read only

0 Likes
1,980

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