2015 Oct 28 8:37 AM
hello ,
I have created infotype 9900 and also subtype 01 for the same,now my requirement is i have to keep main screen of 9900 as empty screen.
and whatever i am having on screen 9900 right now should get assign to subtype 01.(replace subtype 01 screen with 9900 screen)
so basically my 9900 infotype screen should be empty unless and until i specify subtype 01 to it.
Thanks.
Amod.
2015 Oct 28 8:44 AM
Hi,
Keep all the screen elements in a sub screen and display the subscreen inside main screen only if subtype is '01'.
OR
Make screen elements invisible if subtype <> '01'
Add the above logic in the PBO of screen 2000 of program MP990000
hello ,
I have created infotype 9900 and also subtype 01 for the same,now my requirement is i have to keep main screen of 9900 as empty screen.
and whatever i am having on screen 9900 right now should get assign to subtype 01.(replace subtype 01 screen with 9900 screen)
so basically my 9900 infotype screen should be empty unless and until i specify subtype 01 to it.
Thanks.
Amod.
2015 Oct 28 8:44 AM
Hi,
Keep all the screen elements in a sub screen and display the subscreen inside main screen only if subtype is '01'.
OR
Make screen elements invisible if subtype <> '01'
Add the above logic in the PBO of screen 2000 of program MP990000
2015 Oct 28 9:04 AM
Hi Ashish,
I have tried doing both approaches but its not working . . . .
it will be helpful if you can elaborate . .
i want my sub type screen look like main info type screen. .
and main info type screen should be null later..
2015 Oct 28 9:28 AM
Hi,
1.Add a subscreen container to the screen 2000 ( with name suppose SUBSCR ).
2. Add 2 subscreens to the program. ( suppose 9001,9002 )
3. Move all the elements from screen 2000 to one of the subscreen ( suppose 9001 ).
4. Keep the other subscreen ( 9002 ) empty.
5. In the PBO of screen 2000, check if subtype is '01'.
If yes, then call subscreen 9001 in the subscreen container and if subtype is not '01' then call subscreen 9002 in the subscreen container.
To call subscreen write the following code in screen 2000 :
In PBO :
CALL SUBSCREEN SUBSCR INCLUDING SY-REPID GV_DYNNR. "GV_DYNNR will have the screen number either 9001 or 9002 according to the subtype.
In PAI :
CALL SUBSCREEN SUBSCR.
Simple as it is.
Regards,
Ashish
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |