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

screen and subscreen

Former Member
0 Likes
786

Hello all..

Have problemm.

I have screen and subscreen

for example main screen 0100 subscreen 0101.


0100


0101


Mainscreen 0100 have button that show subscreen 0101. + Have button for action in subscreen.

IN SUBSSCREEN ME NEED HIDE SOME ELEMENT. but button on main screen 0100.

Me need loop screen on subscreen in PAI main window 0100. Ho its made?

How make loop screen for subscreen from main screen?

subscreen full passive. All action need make in pai main screen 0100.

4 REPLIES 4
Read only

Former Member
0 Likes
712

me need in 1 perform

set to all fields screen-required = '0'.

in screen main 0100

and subscreen 0101.

i try

SY-DYNNR = '0100'.
Loop at screen.
  screen-required = '0'.
endloop.
SY-DYNNR = '0101'.
Loop at screen.
  screen-required = '0'.
endloop.

not work

how loop at all screen on form?

Read only

0 Likes
712
SY-DYNNR = '0100'.
Loop at screen.
  screen-required = '0'.
endloop.
SY-DYNNR = '0101'.
Loop at screen.
  screen-required = '0'.
endloop.

2 code loop anyway 0100 main screen..

I see 2a screen on monitor.

Read only

varma_narayana
Active Contributor
0 Likes
712

Hi...

Call a Module From Subscreen PBO like this:

MODULE HIDE_FIELDS.

In the Module pool implement it like this.

MODULE HIDE_FIELDS OUTPUT.

CASE SY-UCOMM.

WHEN '<YOUR FCODE>'. "Upper case only

LOOP AT SCREEN.

IF SCREEN-NAME = '<YOUR FIELD>'. "Upper case only

SCREEN-ACTIVE = 0.

SCREEN-INVISIBLE = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

ENDCASE.

ENDMODULE.

<b>Reward if Helpful</b>

Read only

0 Likes
712

yes.. good code.

but my subscreen have required field. and i cant enter pbo if not fill required field.

this code me need for clear status required and enter pbo subscreen.