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: 

Urgent Help: Screen Exit in TXN: ME23N

Former Member
0 Kudos
246

Hi All,

I have added 'Customer Data' Tab in Purchase Oreder Header by using screen exit.(Enhancement->MM06E005, Callling Screen -> SAPLXM06, Scr.no-> 0101). And I wrote the follwing code in the exit 'EXIT_SAPMM06E_006' to make thouse fields input disabled in the transaction ME23N. But it doesn't take effect.

IF SY-TCODE EQ 'ME23N' OR

SY-TCODE EQ 'ME23'.

LOOP AT SCREEN.

IF screen-name EQ 'EKKO-ZREQ_TONS'.

screen-input = 0.

MODIFY screen.

ENDIF.

ENDLOOP.

ENDIF.

Correct me if i am wrong.

Reward guaranteed.

7 REPLIES 7

former_member188685
Active Contributor
0 Kudos
175

hi Veera,

are you able to reach up to the loop at screen.

in debugging check that ,it can be found in debugging,

and check your screen name is correct or not.

Regards

Vijay

0 Kudos
175

Hi Vijay,

Yes I am able to reach up to the screen. and screen name is also correct. But the problem is the loop at screen statement is not getting executed. It is simple skiping loop statement.

Kindly Suggest any solution.

0 Kudos
175

Hi,

it should take you inside the loop.

i'm not sure why?

try to run it again, keeping a break point..

Regards

vijay

Former Member
0 Kudos
175

Hi,

try t find groupname if possible

Since input is char try using ' '

and also screen-active it worked for me.

regards

austin

Former Member
0 Kudos
175

Hello Veera,

I am assuming that u have added ZREQ_TONS field in the screen exit. This code will not work as the exit is called in before call to subscreen is given so the fields u have added in the screen will not be available.

do the modification in the PBO of this 0101 screen.

LOOP AT SCREEN.

IF screen-name EQ 'EKKO-ZREQ_TONS'.

screen-input = 0.

screen-output = 0.

MODIFY screen.

ENDIF

0 Kudos
175

Hi Abhijit Dani,

I placed the same code in PBO of 0101 screen. But the cursor doesn't go into that module while debuging(I hot coded the break-point also in that module).

Former Member
0 Kudos
175

Hi Veera

i am facing the same problem. plz let me know the solution for this. plz give ur Yahoo Im or Gmail id so tht we do online chat.

Plz give me solution ASAP. Its urgent

Regards

Ravi