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: 

screen enhancement in ME51N - control is not passing to PBO and PAI of exit

Former Member
0 Kudos

HI ,

I am doing screen Exit for the Tcode : Me51N / Me52N.

I have to add 3 Text fields in item level, i am using Enhancement:MEREQ001(in CMOD).

Initially i added those 3 fields in Structure CI_EBANDB.

Then i designed Screen in Screen Exit:SAPLMEGUI Screen Num:111.

Here in the PBO and PAI Module

MODULE STATUS_0111 , MODULE USER_COMMAND_0111.

the control is not going , i tried with break-point inside these modules.

But while executing ME51N , debugger is not working.

Code i wrote in both PAI and PBO

MODULE STATUS_0111 and MODULE USER_COMMAND_0111.

loop AT SCREEN.

screen-output = '1'.

screen-input = '0'.

MODIFY SCREEN.

endloop.

I need to display the three screen in Display format not in editable format.

Thanks and Regards,

Prakash K

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi

You need to write the code in PBO of that screen based on TRANSACTION TYPE.

there is a method call 'get_transaction_state' from this you will get the transaction type (H - create , 'V'- change 'B' -display) at run time.

If run time transaction type = B

LOOP AT screen.

IF screen-name eq c_name . "field names

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif.

2 REPLIES 2

Former Member
0 Kudos

Hi

You need to write the code in PBO of that screen based on TRANSACTION TYPE.

there is a method call 'get_transaction_state' from this you will get the transaction type (H - create , 'V'- change 'B' -display) at run time.

If run time transaction type = B

LOOP AT screen.

IF screen-name eq c_name . "field names

screen-input = 0.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

endif.

0 Kudos

HI Kishore,

Thanks for your reply.

The issue is solved by myself.

Thing is , In the Function Group : XM02 , the include program is not activated.

Regards,

Prakash K