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

problem in creating selection screen from screen painter

Former Member
0 Likes
755

hi ,

i am working with screens i have created a screen and in that wehn i click report button it has to ask for select options for dates.from there i will write a select quesry based on selection dates ...how to call a selection screen from screen.i created an include and in that include i used select options.but it is showing error message .guide me how to do it ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
717

Hi..

Here for your problem,

I have created a button with function code 'CLICK' in screen no 1000.

when I click on the button I am capturing the ok_code and displaying the selection screen.

ok_code = sy-ucomm.

case:ok_code.

when 'CLICK'.

SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.

SELECT-OPTIONS: P_DATE for sy-datum.

SELECTION-SCREEN END OF SCREEN 500.

title = 'Input Date'.

CALL SELECTION-SCREEN '0500'.

endcase.

You can also have them as subscreen by providing the required parameters in the selection screen.

Hope this solves your problem.

Warm Regards,

Bhuvaneswari.

7 REPLIES 7
Read only

Former Member
0 Likes
717

Your screen type should be selection screen for using selection elements like select-options etc...

Read only

Former Member
0 Likes
717

HI.

You can create low and high values in module pool.so no need to create in selection screen.

Refer this link to know abt low and high value in module pool.

http://www.abapcode.info/2007/05/abap4-program-describe-select-options.html

http://abap-explorer.blogspot.com/2008/08/create-select-options-in-module-pool.html

Regards.

jay

Read only

Former Member
0 Likes
717

************main program*************************
START-OF-SELECTION.
**********500 -->name of the screen****
  CALL SCREEN 500.  
  SELECTION-SCREEN BEGIN OF SCREEN 101 TITLE title
                                     AS WINDOW.
 select-options ardat for sy-datum.

 SELECTION-SCREEN END OF SCREEN 101.

*********************here u can write select query***********
write:/10 'hello'.
**************************************************

*&---------------------------------------------------------------------*
*&      Module  USER_COMMAND_0500  INPUT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
MODULE user_command_0500 INPUT.

**********EXIT-->BUTTON  IN SCREEN*************
WHEN 'EXIT'.
      CALL SELECTION-SCREEN '0101' STARTING AT 10 10.
      LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN 0.

ENDMODULE.

Code Formatted by: Alvaro Tejada Galindo on Jan 7, 2009 12:47 PM

Read only

Former Member
0 Likes
717

Hi,

I would suggest to use I/O option instead of select options in this kind of scenario.

Regards,

Manoj Kumar P

Read only

Former Member
0 Likes
718

Hi..

Here for your problem,

I have created a button with function code 'CLICK' in screen no 1000.

when I click on the button I am capturing the ok_code and displaying the selection screen.

ok_code = sy-ucomm.

case:ok_code.

when 'CLICK'.

SELECTION-SCREEN BEGIN OF SCREEN 500 TITLE title.

SELECT-OPTIONS: P_DATE for sy-datum.

SELECTION-SCREEN END OF SCREEN 500.

title = 'Input Date'.

CALL SELECTION-SCREEN '0500'.

endcase.

You can also have them as subscreen by providing the required parameters in the selection screen.

Hope this solves your problem.

Warm Regards,

Bhuvaneswari.

Read only

0 Likes
717

hi bhuvana ,

thanx for ur reply ..it woked for me ....where ru working ????

Read only

Former Member
0 Likes
717

Hi,

Please create a screen which consists of your select-options, when you execute that report call that screen and perform the subsequent operations.