10-10-2007 6:47 AM
Hi Experts,
I have done one screen exit (MEREQ001) for transaction ME53N. I have added one extra tab with some custom fields on that tab. Everything is working fine.
But, while i am running the transaction ME53N, my custom field is remaining the same as 'input on' / editable status.
For this i have written the following code in exit EXIT_SAPLMEREQ_001....
DATA: gf_aktyp TYPE aktvt.
IF NOT im_req_item IS INITIAL.
gf_aktyp = im_req_item->get_activity( ).
ENDIF.
IF gf_aktyp = 'A'.
LOOP AT SCREEN.
IF screen-group1 = 'TAB'.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDIF.
Even if i have tried the same type of code in the PBO of my subscreen.
But still, my screen status is editable.
So, in this regard i would like some of u plz suggest where could be the problem lies / What are the various factors i should look after / cross chek. Or any other way to get the problem solved....
Plz treat this as urgent & reply me asap.
Thanks
sangram
10-10-2007 6:52 AM
in the pbo try using:
if sy-tcode = 'ME53N'.
LOOP AT SCREEN.
IF screen-group1 = 'TAB'.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
endif.
plz reward points if dis helps
10-10-2007 7:17 AM
Hi,
The same code i have also tried in the PBO of my screen. But it's not working as per my requirement.
Is there any other alternative...
Thanks
Sangram