Select Options in Screen Painter
Hi there
Is there some way I can create two text boxes and one button, when the buttons gets pressed the same action as your usual SELECT-OPTIONS dialog box gets displayed? Is ther maybe a function module I can call for this?
Thanx,
Jan
you can call a selection screen in sub screen area
declare selection screen as
begin of selection-screen 0100 as subscreen.
end of selection-screen...
then,
in flow logic of your module pool screen
PBO
call subscreen <sub_area> including sy-repid '0100'.
" at selection-screen output event is called
PAI.
call subscreen <sub_area>.
"at selection-screen is called
OR
Call FM COMPLEX_SELECTIONS_DIALOG when the select options button is pressed
Edited by: Amit Gupta on Nov 6, 2008 11:19 AM
Similar Messages
-
How to degin a select-option in screen painter?
Help me !
How can i create an object like select-option in screen painter.
I want to input a range ,but there are no button or text in screen painter like select-option?hai u can create select options on screen but in little differernt way..
1st way : if u want to give only 1 interval then declare on screen as two different variables in same line
and after that append the value in ranges.
2nd way: here u can define as asingle input vriable beside that variable u can give a icon as extension in select option and give give some function code to that.if we click on that in user command write following code :
IF V_OKCODE = 'EXT'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = 'Title'
TEXT = 'Text'
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = ' '
JUST_DISPLAY = ' '
JUST_INCL = ' '
EXCLUDED_OPTIONS =
DESCRIPTION =
HELP_FIELD = 'T001W-WERKS'
SEARCH_HELP =
TABLES
RANGE = R_WERKS
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
OTHERS = 4
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
help field the field reference wich u want to declare and range is where values will be stored atomatically as in select options.
once we click the icon if we execute the function module a window will open as in selection option in reports.there user can enter the values.once the user enters the values it will stored automatically in ranges declared like r_werks in above example.
try it.. -
How to declare and work with select-option in screen painter?
hello there,
can anybody plz suggest me ,how to declare and work with select-option in screen painter?
neonHi Blue,
Please check these threads which will help you a lot..
module pool programming " to add selection-option on screen"
Re: Select option in Dialog program screen
Re: SELECT-OPTIONS in Screen
Good luck
Narin -
How to design select-option through screen painter
I am new to screen painter. I want to make a screen having range of values high/low (just like select-option)......How can I do this using screen painter?
Hi!
Method 1
a) Create a subscreen area in your screen layout where you want to create the select options.
b) In the top include of your module pool program declare a selection screen as a subscreen e.g.
SELECTION-SCREEN BEGIN OF SCREEN 100 AS SUBSCREEN.
select-options s_matnr for mara-matnr.
SELECTION-SCREEN END OF SCREEN.
c) In the PBO and PAI of the main screen where the select options needs to be created do a call subscreen of the above screen (100).
CALL SUBCREEN sub_area INCLUDING
This call subscreen statement is necessary for transport of values between screen and program.
Note: All validations of the selection screen fields e.g. the s_matnr field created above should be done in selection screen events like AT SELECTION-SCREEN etc and not in PAI. These selection screen validations etc should be done in the top include only.
Method 2
a) Create 2 separate fields in your screen layout - one for the low value and one for the high value. Insert an icon beside the high value which will call the multiple selections popup screen on user command. Use function module COMPLEX_SELECTIONS_DIALOG to achieve this.
struc_tab_and_field-fieldname = con_cust. " 'KUNNR'
struc_tab_and_field-tablename = con_kna1. " 'KNA1'.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = ' '
text = g_titl1 " 'Customers'
tab_and_field = struc_tab_and_field
TABLES
RANGE = rng_kunnr
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
INVALID_FIELDNAME = 4
OTHERS = 5.
IF NOT rng_kunnr[] IS INITIAL.
Read the very first entry of the range table and pass it to
dynpro screen field
READ TABLE rng_kunnr INDEX 1.
IF sy-subrc = 0.
g_cust = rng_kunnr-low.
ENDIF.
You can use the return table rng_kunnr to populate your own internal range table with the values entered by the user. Basically here you are just simulating the work of a select-options parameter by module pool screen elements
You can go with it also ....
Re: Select-options in dynpro
Regards.... -
Range options in screen painter
Developed an application in ABAP for employee entitlement. Most of the screens are designed in Screen painter as they has to be run for single Emp. psl no.
But screen for infosystems (2000) is designed using selection-screen as it can be run for single or multiple EMP PSL no.
This infosystems screen is called using " Call selection-screen command'.
Now whenever there is change in program the flow logic of screen 2000 is changed. Now my questions are
- How to call screen 2000 without affecting flow logic.
- How to design screen in screen painter for parameter ranges.
Kindly help as no help is available
thanks
anuHi,
select options in screen check this code..
REPORT ZTEST_SCREEN .
DATA : BEGIN OF IT_DYNPFIELDS OCCURS 3.
INCLUDE STRUCTURE DYNPREAD.
DATA : END OF IT_DYNPFIELDS.
DATA: TEST(10) TYPE C.
RANGES: R_UNAME FOR SY-UNAME.
DATA: V_USERNAME LIKE SY-UNAME.
DATA : V_PROG LIKE D020S-PROG VALUE 'ZTEST_SCREEN',
V_DNUM LIKE D020S-DNUM VALUE '0100'.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'TEST'.
* SET TITLEBAR 'xxx'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Module GET_CURSOR_USERNAME INPUT
* text
MODULE GET_CURSOR_USERNAME INPUT.
REFRESH IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
MOVE 'V_USERNAME' TO IT_DYNPFIELDS-FIELDNAME.
APPEND IT_DYNPFIELDS.
CLEAR IT_DYNPFIELDS.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
DYNAME = V_PROG
DYNUMB = V_DNUM
TRANSLATE_TO_UPPER = 'X'
TABLES
DYNPFIELDS = IT_DYNPFIELDS
EXCEPTIONS
INVALID_ABAPWORKAREA = 1
INVALID_DYNPROFIELD = 2
INVALID_DYNPRONAME = 3
INVALID_DYNPRONUMMER = 4
INVALID_REQUEST = 5
NO_FIELDDESCRIPTION = 6
INVALID_PARAMETER = 7
UNDEFIND_ERROR = 8
DOUBLE_CONVERSION = 9
STEPL_NOT_FOUND = 10
OTHERS = 11.
IF SY-SUBRC = 0.
READ TABLE IT_DYNPFIELDS WITH KEY FIELDNAME = 'V_USERNAME'.
IF SY-SUBRC = 0.
V_USERNAME = IT_DYNPFIELDS-FIELDVALUE.
ENDIF.
ENDIF.
PERFORM GET_MULTIPLE.
ENDMODULE. " GET_CURSOR_USERNAME INPUT
*& Form GET_MULTIPLE
* text
* --> p1 text
* <-- p2 text
FORM GET_MULTIPLE .
* Dynamically holding Field name
FIELD-SYMBOLS: <FST> TYPE STANDARD TABLE.
IF R_UNAME[] IS INITIAL.
IF NOT V_USERNAME IS INITIAL.
R_UNAME-SIGN = 'I'.
R_UNAME-OPTION = 'EQ'.
R_UNAME-LOW = V_USERNAME.
APPEND R_UNAME.
CLEAR R_UNAME.
ENDIF.
ENDIF.
ASSIGN R_UNAME[] TO <FST>.
CALL FUNCTION 'COMPLEX_SELECTIONS_DIALOG'
EXPORTING
TITLE = 'Select Multiple Value'(059)
TEXT = 'Finish Group'(058)
SIGNED = 'X'
LOWER_CASE = ' '
NO_INTERVAL_CHECK = 'X'
JUST_DISPLAY = ' '
JUST_INCL = 'X'
TABLES
RANGE = <FST>
EXCEPTIONS
NO_RANGE_TAB = 1
CANCELLED = 2
INTERNAL_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
READ TABLE R_UNAME INDEX 1.
IF SY-SUBRC = 0.
V_USERNAME = R_UNAME-LOW.
ENDIF.
ENDIF.
ENDFORM. " GET_MULTIPLE
Check this thread...
Select option in Dialog program screen
Regards
Vijay -
Hi,
I am trying to create select - options in Screen , i.e. not the selection screen but a custom screen, say 9000. I can make the text boxes etc for having the select options. But How do I simulate the button wchich comes after select options. It would be used in dialogue programming with multiple screens having different reports.
Please reply to me urgently,
Thanks and Regards
Arnab PanigrahiA few dot points:
1. You can have a select-option embedded in a dynpro, if you want, by using a subscreen. There's an example bit of code at
Module - pool Question..?
This would be easy to adapt to being a popup rather than a full screen if required.
2. As noted above, you can code your own select-options as in
Making a referenced field a range?
which I think Sesh has quoted from.
3. For the requirement you expressed initially, the code below should do the trick... you get a different block of extra selections depending on which radionbutton you select.
Jonathan
report zlocal_jc_radiobutton_hiding.
tables:
sscrfields. "To allow trapping of Fcode on selection screen
selection-screen begin of block tot with frame.
parameters :
p_rb_01 radiobutton group rbg1 user-command zrb1 default 'X',
p_rb_02 radiobutton group rbg1.
selection-screen begin of block block1 with frame title text1.
parameters:
p_date like sy-datum modif id bl1.
selection-screen end of block block1.
selection-screen begin of block block2 with frame title text2.
parameters:
p_time like sy-uzeit modif id bl2.
selection-screen end of block block2.
selection-screen end of block tot.
*" Events:
initialization.
text1 = 'Enter a date'.
text2 = 'Enter a time'.
at selection-screen output.
perform at_selection_screen_output.
at selection-screen.
perform at_selection_screen.
*& Form at_selection_screen_output
form at_selection_screen_output.
*" Hide the appropriate fields
loop at screen.
if p_rb_01 = 'X'
and screen-group1 = 'BL2'.
screen-active = '0'.
endif.
if p_rb_02 = 'X'
and screen-group1 = 'BL1'.
screen-active = '0'.
endif.
modify screen.
endloop.
endform. "at_selection_screen_output
*& Form at_selection_screen
form at_selection_screen.
*" trap the radiobutton
if sscrfields-ucomm = 'ZRB1'. "clicked Subtotal checkbox
*" if you want to trap this radio button press here
endif.
endform. "at_selection_screen -
SELECT-OPTION IN SCREEN (SCREEN-PAINTER)
I want to put a select option in a screen type screen painter
Using this the user could enter a ranger of personal numbers.
Can any one give me a clue on how to do that ?This is the code of the program and I my break point I do not have anything in SELPERNR
REPORT ZY_TESTSUBSCREEN .
TABLES: PA0003.
Custom Selection Screen 1010
SELECTION-SCREEN BEGIN OF SCREEN 1010 AS SUBSCREEN.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
SELECT-OPTIONS: SELPERNR FOR PA0003-PERNR.
SELECTION-SCREEN END OF BLOCK B1.
SELECTION-SCREEN END OF SCREEN 1010.
CALL SCREEN 100.
BREAK STEPHANK.
*& Module USER_COMMAND_0100 INPUT
text
MODULE USER_COMMAND_0100 INPUT.
CHECK SY-UCOMM(1) NE '%'.
LEAVE TO SCREEN 0.
ENDMODULE. " USER_COMMAND_0100 INPUT
This is the screen flow
PROCESS BEFORE OUTPUT.
MODULE STATUS_0100.
CALL SUBSCREEN AREA INCLUDING SY-REPID '1010'.
PROCESS AFTER INPUT.
MODULE USER_COMMAND_0100.
Rich do you have any idea why ? -
Select-Option in Screen??
Hi Experts,
Requirement is like select-option on Selection-Screen, I want that same function on Screen(Module Pool). Infact i want that button for random selection what comes automatically in select-options to select the multiple data.
Can anyone help me for this.Its very very urgent.
Thanks in Advance.
Regards,
Rahulhi rahul,
its not possible to create multiple selections in module pool.
but you can create 2 i/o fields for lower and upper limit in module pool and you can write select query with between keyword to get values from lower to upper limits.
Senthil kumar -
Hello friends,
I am doing a screen program where the user will enter a range of sales orders,and i have to select from vbap the corresponding materials against that sales order number,but i am finding it difficult to use the select statement.
suppose my screen fields are vbeln-low and vbeln-high,so here i cant use the select statement select * from vbap into corresponding fields of iatb where
vbeln >= vbeln-low and vbeln <=vbeln-high, bcoz if the user doesnt enter vbeln-high then select statement goes wrong,other option i making a structure with fields like sign option low high,but if i have more select options that again beocmes a problem,is there anyway that i can solve this with a single select statementHi
U can create a SELECTION-SCREEN in a module pool defining it in the TOP-INCLUDE:
SELECTION-SCREEN BEGIN OF SCREEN 0100.
SELECT-OPTIONS: SO_VBELN FOR VBAK-VBELN.
SELECTION-SCREEN END OF SCREEN 0100.
In your MAIN SCREEN
PROCESS PBO.
MODULE CALL_SEL_SCREEN.
MODULE CALL_SEL_SCREEN.
CALL SELECTION-SCREEN 100.
IF SY-SUBRC = 0.
---> User has pressed F8
SELECT * FROM VBAP INTO TABLE T_VBAP WHERE VBELN IN SO_VBELN.
ELSE.
----> User wants to exit from selection-screen.
ENDIF.
ENDMODULE.
Max -
Module pool programming " to add selection-option on screen"
I want to add selection option for a field ( matnr ) on the screen in module pool programmiing. ( how it comes in report programming). If you you know how to add Please help me to solve.....
Sure, you need to define your selection screen as a subscreen, then embed this into your subscreen area on the dynpro. Here is a sample program.
report zrich_0006 .
tables: mara.
* Custom Selection Screen 1010
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
p_rad2 radiobutton group grp1,
p_rad3 radiobutton group grp1.
select-options: s_matnr for mara-matnr,
s_matkl for mara-matkl,
s_mtart for mara-mtart.
selection-screen end of block b1.
selection-screen end of screen 1010.
start-of-selection.
call screen 100.
*& Module STATUS_0100 OUTPUT
module status_0100 output.
* SET PF-STATUS 'xxxxxxxx'.
* SET TITLEBAR 'xxx'.
endmodule.
*& Module USER_COMMAND_0100 INPUT
module user_command_0100 input.
endmodule.
* Create Screen 100 with a subscreen area called "subscreen_1010"
* Screen Flow Logic follows
*process before output.
* module status_0100.
* call subscreen subscreen_1010 including sy-repid '1010'.
*process after input.
* call subscreen subscreen_1010 .
* module user_command_0100.
Regards,
Rich Heilman -
Hiding of Select Options in screen based on selection in selection list box
Hi People,
I have a screen where i have put a selection list box, it is pre-filled with values, Now based on the value which user selects, I want to show/hide some select-options fields. I have declared the select options in the top include of my program,
SELECT-OPTIONS: so_user FOR ls_rsp_user-user_id MODIF ID 222,
so_userg FOR ls_rsp_usergrp-user_grp_id MODIF ID 333,
so_ccode FOR ls_vdmp-bukrs MODIF ID 444,
then in the PBO of my screen, I have written a module, set screen in which I loop over screen & check the group id's
LOOP AT SCREEN.
IF screen-group1 = '111'.
IF gv_hier_resp_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '222'.
IF gv_user_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
ELSEIF screen-group1 = '333'.
IF gv_user_group_fields_flag IS NOT INITIAL.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
I am setting some flags based on the value which user selects in the selection list box, When I debugged I found that the flags were being set correctly, but the screen group value never set to '222' or '333', these are id's i have used for select options. Hence I am unable to hide/show the select options fields. Kindly suggest some solutions for this.
Thanks & Regards,
Deepakthen in the PBO of my screen
Your SELECT-OPTIONS are defined in a SELECTION-SCREEN so the PBO actions must be maintained in a AT SELECTION-SCREEN OUTPUT block.
I suppose the selection-screen is a subscreen, if you dont want to get unwanted interactions with a main selection-screen of the report, check sy-dynnr
AT SELECTION-SCREEN OUTPUT.
CASE sy-dynnr.
WHEN '1000'. " main screen of report
WHEN '0100'. " selection-screen defined as subscreen
LOOP AT SCREEN.
CASE SCREEN-GROUP1.
WHEN '111'.
ENDCASE.
ENDLOOP.
ENDCASE.
Regards,
Raymond -
Reset Select options in Screen
Hi,
I have a scenario where, i need to disable the select options and clear the visible contents in it.
Currently below is the logic implemented, the radio button is getting disabled and also cleared of selection.
Select option fields are getting disabled.
But the issue is, the Select options LOW and HIGH fields show the older values and are not getting reset.
Please share your thoughts.
PARAMETERS : r_pernr RADIOBUTTON GROUP g2 MODIF ID cs1.
SELECT-OPTIONS : p_pernr FOR pa0001-pernr MODIF ID cs1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF V_Flag NE 'X' AND
screen-group1 = 'CS1'.
r_pernr = space.
p_pernr-low = space.
p_pernr-high = space.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.TABLES:PA0001.
DATA:LF_PERNR TYPE CHAR08.
PARAMETERS : R_PERNR RADIOBUTTON GROUP G2 MODIF ID CS1,
R_2 RADIOBUTTON GROUP G2.
SELECT-OPTIONS : P_PERNR FOR LF_PERNR MODIF ID CS1.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
R_PERNR = SPACE.
CLEAR P_PERNR[].
SCREEN-INPUT = 0.
MODIFY SCREEN.
ENDLOOP.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-LOW.
PERFORM F4_HELP USING 'P_PERNR-LOW'.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_PERNR-HIGH.
PERFORM F4_HELP USING 'P_PERNR-HIGH'.
FORM F4_HELP USING PC_1.
TYPES:BEGIN OF TY,
PERNR TYPE PA0001-PERNR,
END OF TY.
DATA:IT TYPE TABLE OF TY.
SELECT PERNR INTO TABLE IT FROM PA0001 UP TO 10 rows.
CHECK IT[] IS NOT INITIAL.
DELETE ADJACENT DUPLICATES FROM IT.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'PERNR'
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = PC_1
VALUE_ORG = 'S'
TABLES
VALUE_TAB = IT[]
EXCEPTIONS
OTHERS = 0.
ENDFORM. -
How to realize select-option in screen
Hi,everyone.
in a report , i can define select-option in SELECTION-SCREEN .
how can i realize the similar function in a screen ?
ths!Hi,
Check this sample program to define selection screen in dialog programming.include the selection screen in a subscreen and then include the subscreen in your screen.
report YS_SELECTION .
tables: mara.
Custom Selection Screen 1010
selection-screen begin of screen 1010 as subscreen.
selection-screen begin of block b1 with frame title text-001.
parameters: p_rad1 radiobutton group grp1 default 'X',
p_rad2 radiobutton group grp1,
p_rad3 radiobutton group grp1.
select-options: s_matnr for mara-matnr,
s_matkl for mara-matkl,
s_mtart for mara-mtart.
selection-screen end of block b1.
selection-screen end of screen 1010.
start-of-selection.
call screen 100.
*& Module STATUS_0100 OUTPUT
module status_0100 output.
SET PF-STATUS 'xxxxxxxx'.
SET TITLEBAR 'xxx'.
endmodule.
*& Module USER_COMMAND_0100 INPUT
module user_command_0100 input.
endmodule.
create screen 100 and create a subscreen area called "subscreen_1010"
Screen Flow Logic follows
*process before output.
module status_0100.
call subscreen subscreen_1010 including sy-repid '1010'.
*process after input.
call subscreen subscreen_1010 .
module user_command_0100.
Laxman -
Select options in report painter COPA
In report painter when we go to "maintain selection options", the
"exclude from selection" is greyed out.
Any suggestions?HI, guess SAPNET 516557 will help.
BR Christian -
Hi experts,
i want to select the production order depend upon the material in CO15 screen.
is there possible.
pls guide me?
thanks & regds
K.BhuvaneswaranHi bhuvaneswaran,
In Tcode : CO15 Order field is the only selection field.
But if you don't no the order number then put the Cursor in the Order selection Field and Press F4 and Select the "Process Order Using Info System" and set as default. System will take you to a new screen where it is possible to find the Order number with Material Number.
Regards
radhak mk
Maybe you are looking for
-
I recently reinstalled my computer and had to move two captured movie files around. They were captured on another computer via Final Cut Pro and had no extension, but they did have QT icons. I guess they were .dv files. I remember importing them into
-
Error while Replicating Objects from R/3 to CRM
Hi, While replicating objects from R/3 to CRM (Tcode :R3AS), the status of the object is still running. When I checked in Outbound queue (Tcode:SMQ1) the status is 'SYSFAIL', when I double clicked it says "Password logon no longer possible - too many
-
I just bought and installed Pro 5.5, and I can't read it. The font size is incredibly tiny. The font size is Ok on computer #1 running XP and NM 4.9. The font size was OK on laptop running Vista and NM 4.9. The font size was OK on computer #2 running
-
An Edit page: I always see the same data.
Hello, I'm learning ADF. I have a problem with a very small web application I'm trying to develop. I have 2 pages, an overview page and an edit page. The overview page has a ADF read-only table which is based on a view on 1 table which has only 2 rec
-
I can't seem to find this Integrated circuit XR2206. Is their a way for me to download this chip, or any other chip that I'm looking for. Like a 565 (PWM), 1496P etc. Please help me or point me in the right direction. I'm trying to build circuits to