2006 Aug 09 11:10 AM
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...
2006 Aug 09 11:29 AM
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
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...
2006 Aug 09 11:11 AM
Have you defined any element which is exceeding the screen limit of 72 Characters?
paste ur code we can help
Cheers
VJ
2006 Aug 09 11:12 AM
Did you modify the selection screen's layout by any chance?
Regards,
Ravi
2006 Aug 09 11:13 AM
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.
2006 Aug 09 11:14 AM
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.
2006 Aug 09 11:19 AM
Looks like the Begin of line in a selection screen window is causing the problem.
VJ
2006 Aug 09 11:24 AM
2006 Aug 09 11:28 AM
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.
2006 Aug 09 11:29 AM
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
2006 Aug 10 11:09 AM
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
2006 Aug 10 11:13 AM
2006 Aug 10 11:15 AM
at selection-screen.
case sscrfields-ucomm.
<b>when 'ABCD'.</b> " Upper Case
call screen 1100.
endcase.