Application Development 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: 

how to display a screen in selection-screen?

former_member182426
Active Contributor
0 Kudos

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.

13 REPLIES 13

rainer_hbenthal
Active Contributor
0 Kudos

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.

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

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.

0 Kudos

hi praksh,

did u got it. If you got it plz tel me the solution.

Thanks & Regards,

Shree.

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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.

0 Kudos

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.

former_member182426
Active Contributor
0 Kudos

still it's not cleared