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

Regaring Selection screen and Customized screen..

Former Member
0 Likes
1,218

I have created a screen for my Program.

Now i want to create a selection screen and once user clicks push button in that selection screen, the control should move to Customized screen.

Screen is working fine.

Now selection screen is also created.

When i check for syntax errors, there is no error.

But when i activate my code, it is throwing an error with the following description...

"Error when generating the selection screen "1000" of report "Ztest123" ..."

Please guide me...

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,164

Hi Pavan,

Where are you calling the screen 500?

did you call the screen 500...say using..

CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

What is the requirement ?

Once the push button is pressed should the select-options be visible?

Regards,

Vidya

11 REPLIES 11
Read only

Former Member
0 Likes
1,164

Have you defined any element which is exceeding the screen limit of 72 Characters?

paste ur code we can help

Cheers

VJ

Read only

Former Member
0 Likes
1,164

Did you modify the selection screen's layout by any chance?

Regards,

Ravi

Read only

Former Member
0 Likes
1,164

Hi Pavan,

How did u delare the select options?

sometimes when we use begin of line and end of line.. is there is overlapping between 2 parameters this error comes.

Regards,

Vidya.

Read only

Former Member
0 Likes
1,164

selection-screen: begin of block blk1 with frame title text-020.

select-options: s_reqmai for zcomd_skftable-zreqemail.

select-options: s_reqdep for zcomd_skftable-zreqdept.

select-options: s_date for zcomd_skftable-zdate.

selection-screen end of block blk1 .

selection-screen:

*begin of block blk2 with frame title tit,

BEGIN OF SCREEN 500 AS WINDOW TITLE tit,

begin of line,

pushbutton 10(10) text-030 user-command c1,

end of line,

END OF SCREEN 500.

START-OF-SELECTION.

tit = 'Push Button'.

DATA flag(1) TYPE c.

case flag.

when 'c1'.

call screen 1000.

endcase.

Read only

0 Likes
1,164

Looks like the Begin of line in a selection screen window is causing the problem.

VJ

Read only

0 Likes
1,164

why is the second selection-screen: statement used?

Read only

0 Likes
1,164

ur code is working fine in my system , SAP 4.7

report abc.

tables : mara,makt.

selection-screen: begin of block blk1 with frame title text-020.

select-options: s_reqmai for mara-matnr.

select-options: s_reqdep for makt-maktx.

select-options: s_date for sy-datum.

selection-screen end of block blk1 .

selection-screen:

*begin of block blk2 with frame title tit,

BEGIN OF SCREEN 500 AS WINDOW TITLE tit,

begin of line,

pushbutton 10(10) text-030 user-command c1,

end of line,

END OF SCREEN 500.

START-OF-SELECTION.

tit = 'Push Button'.

DATA flag(1) TYPE c.

case flag.

when 'c1'.

call screen 1000.

endcase.

Read only

Former Member
0 Likes
1,165

Hi Pavan,

Where are you calling the screen 500?

did you call the screen 500...say using..

CALL SELECTION-SCREEN '0500' STARTING AT 10 10.

What is the requirement ?

Once the push button is pressed should the select-options be visible?

Regards,

Vidya

Read only

0 Likes
1,164

Hi..

Now selection screen is displaying...

If i click a Push Button from the selection screen, a custom screen (1100) should display..

I have designed the push button.. But unable to display the custom screen...

Plz check out the code and help me out...

selection-screen: begin of block blk1

with frame title text-020.

select-options: s_reqmai for zcomd_skftable-zreqemail.

select-options: s_reqdep for zcomd_skftable-zreqdept.

select-options: s_date for zcomd_skftable-zdate.

selection-screen end of block blk1 .

selection-screen: begin of block blk2

with frame title text-020.

selection-screen pushbutton /50(20) but user-command abcd.

selection-screen end of block blk2.

initialization.

move 'SAVE' to but.

at selection-screen.

case sscrfields-ucomm.

when 'abcd'.

call screen 1100.

endcase.

&----


*& Module STATUS_1100 OUTPUT

&----


  • text

----


MODULE STATUS_1100 OUTPUT.

SET PF-STATUS '1100'.

ENDMODULE. " STATUS_1100 OUTPUT

Read only

0 Likes
1,164

give abcd in uppercase

when 'ABCD'.

Read only

0 Likes
1,164
at selection-screen.
case sscrfields-ucomm.
<b>when 'ABCD'.</b> " Upper Case
call screen 1100.
endcase.