2008 Sep 10 6:47 AM
hi friends,
I have a requirement. I have one PNP database SELECTION-SCREEN in my report program. And i have created one more screen using screen painter.
Now i hae to display that screen which i created using screen painter under PNP SELECTION-SCREEN.
For ex:
PNP SELECTION-SCREE.
___________________________________
Pernr Number _______________
Employe Name _______________
Company Code _______________
Payroll Area ________________
___________________________________
Now after this i have to display my screen which i designed using screen painter.
As shown below.
_____________________________________
O In rupees
O In Percentage
Variance______
_____________________________________
Here i specified some fields only. some more fields also there.
For this i did as....
I created a BUTTON in SELECTION-SCREEN. And when the user clicked on this then screen will appear as window.
It's working fine.
It's look like this.
________________________________
|More Selections...| -
> Button
________________________________
But,my client required that screen also wants to display directly under PNP SELECTION-SCREEN but not as window and clicking button.
If Any Help.. Plz....
Thanks & Regards,
Shree.
2008 Sep 10 6:55 AM
Do not make a separate screen, create new select options and parameters in your report, they will appear under the standard pnp selection screen.
selection-screen begin of block xxxx with frame title text-scr.
parameters:
p_fname type localfile obligatory.
selection-screen end of block xxxx.
2008 Sep 10 7:24 AM
hi friends,
Thanks for your repllies.
But here i dont want create any parameters. like this.
selection-screen begin of block xxxx with frame title text-scr.
parameters:
p_fname type localfile obligatory.
selection-screen end of block xxxx.
Just i want call my screen to display all inputfields. like this.
selection-screen begin of block xxxx with frame title text-scr.
call screen 100.
selection-screen end of block xxxx.
Since i can't do changes of my code once again. Because i used table controls also in my screen.
So plz is any other ways to display my screen in selection-screen.
Thanks & Regards,
Shree.
2008 Sep 10 7:46 AM
Hi,
Refer the Help documentation it explains clearly how to call different subscreens,
http://help.sap.com/saphelp_nw04/Helpdata/EN/56/1eb6c705ad11d2952f0000e8353423/frameset.htm
Regards
Bala Krishna
2008 Sep 10 7:09 AM
Hi,
Dont make separate screen in screen painter.
instead make another screen by using select-option in ur report.
and to call this screen use at line selection event i.e. whenever u click on any line of first screen or press enter second screen should be triggerd.
Hope this will work for you.
Thanks
Rajesh Kumar
2008 Sep 10 8:20 AM
Hi shankar,
I have a solution for this.
1. open se51 t-code and give your program name and screen number as 1000(this is the selection screen by default).
2. creat one subscreen area in 1000.
3. creat your screen as subscreen with your required fields and in the 1000 screen flow logic call the subscreen.
syntax: under PBO
call subscreen area including sy-repid 'subscreen no'.
under PAI.
call subscreen area.
(it will give warnings while making changes in 1000 screen dont bother)
it worked for me.
reply me if it works for you.
2008 Sep 11 8:42 AM
hi prakash,
thanks for ur solution.
but it's not working properly. while changing 1000 screen and activating, it's showing syntax error like this.
while changing:
==> Element PNPS$MCD touches or overlaps other element
==> Selection screen: Report generation makes screen changes ineffective
==> Element PNPS$MCD touches or overlaps other element
While Activating:
Syntax Error in Screen.
Program <myprogram name>
Screen 1000
Position Flow Logic Line 95
The include block has been used twice.
But, Here i clicked the button "Activate".
Then It's showing messages as this.
==> Selection screen: Report generation makes screen changes ineffective
==> Element PNPS$MCD touches or overlaps other element.
I checked out that Line 95.
There i am specifying my suscreen as this.
CALL SUBSCREEN subscreen1 INCLUDING sy-repid 106.
at end of PBO.
And in PAI.
CALL SUBSCREEN subscreen1.
Finally when i tried to execute it's giving DUMP.
Any solutions..
Thanks & Regards,
Shree.
2008 Sep 11 1:56 PM
hi praksh,
did u got it. If you got it plz tel me the solution.
Thanks & Regards,
Shree.
2008 Sep 12 10:17 AM
Hi shankar,
CALL SUBSCREEN subscreen1 INCLUDING sy-repid 106.
this syntax you write just under "process before output" line.
Did you creat the subscreen area in 1000 screen.
is subscreen1 = subscreen area name.
i did the same, i got the output.
better check whether already created select-options are overlapin with subscreen area.
2008 Sep 12 1:08 PM
hi prakash,
I created subscreen area in standard screen 1000 and i gave name as SUBSCREEN1.
And i am calling it under PBO & PAI as followed.
under PBO:
CALL SUBSCREEN subscreen1 USING SY-REPID 0106.
under PAI.
CALL SUBSCREEN subscreen1.
This only i did. And is i have to change any thing in attributes of screen 106 or 1000.
The screen 106 Attributes i set as...
subscreen radio button
holddata checkbox.
But i am not getting.Is i am doing any wrong in this.
Thanks & Regards,
Shree.
2008 Sep 11 8:51 AM
Hi...
Why do you want to stick to only module pool screen (SE51)...people have got different reasons that they go for specifically screen painter screen.
If you have already created a selection-screen and you want to make add-on selections that can easily be achieved through select-options or parameters blocks...
Even if you create subscreen or a normal screen in SE51 that can not be adjusted below your selection screen.
If it is a normal screen.....it will occupy its own space even if you try to minimise the size of it..
if it is a modal dialox box screen then it can be called as a pop up to display details...still does not solve your purpose...
make it a subscreen will also not help you out since creation of subscreen is mainly used in tab strip controls....
Simply create block of selection-screens and it will solve your purpose....
Thanks,
Mark
2008 Sep 11 8:59 AM
hi mark,
i can create using selection-screen blocks. but here the problem is every thing is designed and it's calling when user press a button is selection-screen.
even i can't design each and everything from the scratch of that screen using selection-screen blocks. if i change this i have to change entire code of my report.
So, i am trying in this way. If you have any solutions plz....
Thanks & Regards
Shree.
2008 Sep 11 9:42 AM
Reports works different rather then Dialogmoduls. In the frist you have selection-screens, in the latter screens with the whole capablities. Dont mix this up. But... you heard this over and over again.
2008 Sep 29 12:59 PM