2012 Dec 15 9:02 AM
Hello ,
In the below codes.
loop at screen.
if screen-group eq 'A1'
screen-input = 0.
modify screen
endif.
endloop.
Here what is screen-group eq 'A1'? The above code is not working.
Can some throw light on this issue,please?
With Regards,
Jaheer...
2012 Dec 15 10:36 AM
Hi Jaheer,
Screen groups are field attributes. You can find them in the screen painter.
The error in your code is that there is no group attribute, but group1,group2,group3 and group4.
Be aware that your code must be placed in the PBO of the screen you want to change.
Hope it helps.
Regards,
Christian
2012 Dec 15 10:36 AM
Hi Jaheer,
Screen groups are field attributes. You can find them in the screen painter.
The error in your code is that there is no group attribute, but group1,group2,group3 and group4.
Be aware that your code must be placed in the PBO of the screen you want to change.
Hope it helps.
Regards,
Christian
2012 Dec 15 10:48 AM
Hi Christian,
Below is the my code.
MODULE STATUS_0111 OUTPUT.
IF ( SY-TCODE EQ 'ME23' OR
SY-TCODE EQ 'ME23N' ) .
LOOP AT SCREEN.
IF SCREEN-GROUP1 EQ 'A1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
In the screen attributes I set group1 as 'A'.
But still it is not working. Can you tell please what is the wrong here?
With Regards,
Jaheer
2012 Dec 15 11:29 AM
2012 Dec 15 11:32 AM
2012 Dec 15 11:38 AM
2012 Dec 15 11:42 AM
2012 Dec 15 11:58 AM
I've tested your code here and it works. I suggest you to move your code to a form routine, set a break point and then see what is happening in the debugger. Perhaps there is a later point that is enabling the field for input again.