‎2013 Feb 15 9:34 AM
Hi Experts,
I am facing a problem while calling a subscreen from Main Screen. When the process flows into the subscreen the PBO of the subdcreen is called correctly but the SCREEN elements are still of the MAIN screen. I am not able to get the SCREEN details like SCREEN-NAME etc of the subscreen.
Can someone help me out on how to use this?
Thanks.
‎2013 Feb 15 9:50 AM
Hi,
If you have the main screen as 100 and subscreen as 200, try with below code
create the subscreen area SUB1 on the main screen 100,
now in the PBO of 100 write code as Below
PBO
Call subscreen SUB1 including SY-REPID '200'.
and in PAI of screen 100.
Call subscreen SUB1.
regards,
zafar
‎2013 Feb 15 10:10 AM
Yes Zafar, I have done that, now in the PBO of subscreen 200 I don't have the SCREEN elements.
Actually I need to disable few of my fields on SUBSCREEN 200 say the field is ZZ_BATCH but I am unable to do it because I don't get the SCREEN-NAME = ZZ_BATCH in the PBO of my SUBSCREEN.
‎2013 Feb 15 10:28 AM
Hi,
Check if the whole program is actived properly.
Thanks,
Tooshar Bendale
‎2013 Feb 18 3:09 PM
Hi,
If you have subscreen as 200, then at the PBO of subscreen 200,
call the module containing code of disabling elements of subscreen.
You can do that in the module like:
*&---------------------------------------------------------------------*
*& Module STATUS_0200 OUTPUT
*&---------------------------------------------------------------------*
* text
*----------------------------------------------------------------------*
MODULE status_0200 OUTPUT.
LOOP AT SCREEN.
IF screen-group1 = 'GR2'.
screen-input = 1.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ENDMODULE. " STATUS_0200 OUTPUT