2009 Dec 17 7:12 AM
Hi Forum,
I have created a checkbox in a screen exit of MM06E005 enhancement. I want to make this field non editable in few transactions.
I put the below logic in PBO function exit EXIT_SAPMM06E_006
if sy-tcode = 'ME31L' and sy-tcode = 'ME32L'.
loop at screen.
if screen-name = 'chkbox'.
screen-input = '0'.
modify screen.
endif.
But this logic is not working. Please help me out the way to achieve it..
endloop.
endif.
Thanks
Mallika
2009 Dec 17 8:33 AM
Hi,
Check ur if condition.
sy-tcode cannot be 'ME31L' and 'ME32L' at the same time. so ur if condition would never be satisfied.
if st-tcode = ''ME31L' and sy-tcode = 'ME32L' .
Hope it helps.
Thanks,
Anju
Hi Forum,
I have created a checkbox in a screen exit of MM06E005 enhancement. I want to make this field non editable in few transactions.
I put the below logic in PBO function exit EXIT_SAPMM06E_006
if sy-tcode = 'ME31L' and sy-tcode = 'ME32L'.
loop at screen.
if screen-name = 'chkbox'.
screen-input = '0'.
modify screen.
endif.
But this logic is not working. Please help me out the way to achieve it..
endloop.
endif.
Thanks
Mallika
2009 Dec 17 8:33 AM
Hi,
Check ur if condition.
sy-tcode cannot be 'ME31L' and 'ME32L' at the same time. so ur if condition would never be satisfied.
if st-tcode = ''ME31L' and sy-tcode = 'ME32L' .
Hope it helps.
Thanks,
Anju
2009 Dec 17 8:35 AM
2009 Dec 17 8:36 AM
Hi Mallika,
Try as below :-
if sy-tcode = 'ME31L' OR sy-tcode = 'ME32L'.
loop at screen.
if screen-name = 'chkbox'.
screen-input = '0'.
modify screen.
endif.
endloop
endif.
Regards
Abhii
2009 Dec 17 8:38 AM
Hi All,
Thanks for the replies..it was my type mistake while typing in the thread..yes, i used 'OR' only..
It did not work out..
Finally i got the solution..
I kept this logic in the PBO event of my screen exit..it worked..
thanks
mallika