Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dialog Programming : Subscreen

Former Member
0 Likes
558

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.

4 REPLIES 4
Read only

former_member182379
Contributor
0 Likes
526

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

Read only

0 Likes
526

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.

Read only

Former Member
0 Likes
526

Hi,

Check if the whole program is actived properly.

Thanks,

Tooshar Bendale

Read only

Former Member
0 Likes
526

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