05-26-2011 6:10 AM
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
05-26-2011 10:16 AM
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.
05-26-2011 10:16 AM
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.
05-26-2011 10:21 AM
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