‎2009 Jan 07 8:09 AM
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 ?
‎2009 Jan 07 9:16 AM
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.
‎2009 Jan 07 8:25 AM
Your screen type should be selection screen for using selection elements like select-options etc...
‎2009 Jan 07 8:39 AM
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
‎2009 Jan 07 8:43 AM
************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
‎2009 Jan 07 8:55 AM
Hi,
I would suggest to use I/O option instead of select options in this kind of scenario.
Regards,
Manoj Kumar P
‎2009 Jan 07 9:16 AM
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.
‎2009 Jan 07 9:48 AM
hi bhuvana ,
thanx for ur reply ..it woked for me ....where ru working ????
‎2009 Jan 07 9:30 AM
Hi,
Please create a screen which consists of your select-options, when you execute that report call that screen and perform the subsequent operations.