Active mode multiple selection in dialog screen
in my dialog screen i had multiple selection option button by using the below function module.
CALL FUNCTION 'K_CMPERS_MULTIPLE_SELECTION'
EXPORTING
P_FIELDTYPE = 'R'
P_FIELDNAME = 'MATNR'
P_TABLENAME = 'MARA'
TABLES
PT_PARM = HMAT.
its working fine.
but when i enter data into multiple selection it does not changes to active mode ( green color).
can u pls tell me how to change it into active mode when data is there
Hi Banu,
The icon will not change automatically. You need to write code in PBO and change the icon of your push button accordingly.
Please refer to the document below for how to change icon of push button in module pool:
[http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool|http://wiki.sdn.sap.com/wiki/display/sandbox/ChangeanIconofaButtonDynamicallyInModulePool]
Cheers,
Similar Messages
-
MULTIPLE SELECTION IN DIALOG PROGRAMMING
Hello exports,
I need to provide an interface to user where he can Put multiple selected invoice number at a time. (Like multiple selection in select option). It should be done in dialog programming.
plz suggest me .Hai ,
You can use RANGES or can use TYPE RANGE OF while declaring.
For eg:
DATA:it_invoice TYPE RANGE OF vbrk-vbeln,
. wa_invoice LIKE LINE OF it_invoice.
Now u need a bit of coding,
wa_invoice -sign = 'I'.
wa_invoice -option = 'BT'. i.e between
r_carrid_line-low = your screen fieldname inwhich the lower limit was selected
r_carrid_line-high = your screen fieldname inwhich the higher limit was selected.
APPEND wa_invoice TO it_invoice.
Now u can use this internal table IT_INVOICE in query using operator IN in the WHERE caluse as u use with select-options.
Or you can create a report program which has only a selection screen
You can EXPORT the object(select option name) to ur dialog program using IMPORT/EXPORT MEMORY ID .
But you need to declare the select options in ur dialog program with the same name and the structure
DATA: BEGIN OF rtab OCCURS {10|n},
sign TYPE c LENGTH 1,
option TYPE c LENGTH 2,
low LIKE dobj,
high LIKE dobj,
END OF rtab.
Thanks,
Neeraj -
Multiple Selection on secondary screen (LR2)
When I select photos in grid view on my secondary screen, only the first photo in the selection is acted upon when I perform an action.
If I perform the same action in grid view on the primary screen, everything performs normally.
Anyone else have this problem?
Cheers
/Rob
Lightroom 2.0, OSX 10.5, MacBook Pro 15" + EIZO 21" wideYou need to keep in mind that focus always remains with the primary screen. Therefore, to actually work on multiple images you need to be in grid view in Library module or have auto sync activated in Develop module (i.e. press Sync button at same time as Alt/Option key).
-
Change type field active mode while selecting Change number type
Dear All,
Our requirement is to get the list of Change type in the CC01 T-code when we click the change master. When we select ECR then we are getting the change list of change type. But, when we select the change master as type, then change type is coming as grey field. So we want the list of change type in change master
Please suggest
Regards
HonyalAny input ?????????
please
Regards
Honyal -
Hi, I'm using SP13 and InfoPath2013.
I created a custom form and published it to SP13 document library. This form has many MSLB. Depending on the checkboxes selected in the 1st MSLB, the other MSLB will either hide or show. Each MSLB is in its own section. The requirement
is to have each MSLB to have at least one checkbox selected. Well, the problem is that when that MSLB isnot checked in the 1st MSLB it is not visible and shouldn't require any checkbox to be selected. However, the form can't get submitted instead
an error dialog would pop up and ask user to make a selection for MSLB that is not even displayed. Is there any way to fix this besides unchecking all MSLB to be not required at least one selection? Thank you.Eric,
I follow your reply post here and still doesn't work. I also noticed your screen shot of selecting a field is not the same as what I see in InfoPath 2013.
Here is what I did,
1.Check At least one selection required for
these Multiple-selection List Boxes
as you want .
2.Create a Formatting rule for the 2nd
Multiple-selection List Box.
3.Add a Condition as below:
4. I get a validation error if I don't
select at least one checkbox in the hidden MSLB control when submitting.
I think I'm following all the steps correctly
but please let me know if I'm not. -
Selection-screen in a Dialog Screen
Hello,
I want to create a selection screen in a dialog screen with all its functionality specially the option for multiple selection like want I'm doing in a report-type program. Is this possible?
tnx,
JeffHi Jeffrey
As Harald mentioned, it is possible. You can check out Re: Store select-options on database to find some more information.
As another thing, since you are a new SDN member, you are welcome and let me introduce you the SDN forums pointing system: You can assign points to posts you find while helpful solving your question. You can reward points by clicking the yellow star icon at header of each reply post. You can reward;
- one 10 points (solved)
- two 6 points (very helpful answer)
- many 2 points (helpful answer)
Kind regards...
*--Serdar -
Multiple select option in the screen painter
Hi all,
I want to give multiple select option for a particular field in the screen painter.
how to provide it.
NitinHi,
Refer to this link..[Select-Option in Dialog programming |Re: Select-Option in Dialog programming]
[How to make select option in module pool |how to make select option in module pool] -
Multiple selections in a field in module screen
Hi all
Can any body tell me how to get the multiple values selection in a field in Dialog screen .
regards
dreeniEasiest way is to create a subscreen and embed this in your dynpro.
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.
Screen 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.
Reward if it helps..
regards,
Omkar. -
Get Selections From ALV on Multiple Selection Mode
Hi,
How can i get values of selected rows from ALV that has selection '0..n' (multiple selection) ?
Can somebody help me pls?
Thanks.Hi Nurullah,
Steps to make multiple rows selectable in ALV:
1) Create the selection property of the node that you are binding to the DATA node as o..n
2) Un-check the, "Initialization Lead Selection" checkbox for the node which you are using to bind to the DATA node
3) In the WDDOINIT method specify the ALV's selection mode as MULTI_NO_LEAD. It is important that you set the selection mode to MULTI_NO_LEAD or else in the end you would be capturing 1 row lesser than the total number of rows the user has selected. This is because 1 of the rows would have the LeadSelection property & our logic wouldnt be reading the data for that row. Check the example code fragment as shown below:
DATA lo_value TYPE REF TO cl_salv_wd_config_table.
lo_value = lo_interfacecontroller->get_model( ).
CALL METHOD lo_value->if_salv_wd_table_settings~set_selection_mode
EXPORTING
value = cl_wd_table=>e_selection_mode-MULTI_NO_LEAD.
Steps to get the multiple rows selected by the user
In order to get the multiple rows which were selected by the user you will just have to call the get_selected_elements method of if_wd_context_node. So as you can see its no different from how you would get the multiple rows selected by the user in a table ui element. First get the reference of the node which you have used to bind to the ALV & then call this method on it. Check the example code fragment below:
METHOD get_selected_rows .
DATA: temp TYPE string.
DATA: lr_node TYPE REF TO if_wd_context_node,
wa_temp TYPE REF TO if_wd_context_element,
ls_node1 TYPE wd_this->element_node_flighttab,
lt_node1 TYPE wd_this->elements_node_flighttab.
lr_node = wd_context->get_child_node( name = 'NODE_FLIGHTTAB' ).
" This would now contain the references of all the selected rows
lt_temp = lr_node->get_selected_elements( ).
LOOP AT lt_temp INTO wa_temp.
" Use the references to get the exact row data
CALL METHOD wa_temp->get_static_attributes
IMPORTING
static_attributes = ls_node1.
APPEND ls_node1 TO lt_node1.
CLEAR ls_node1.
ENDLOOP.
ENDMETHOD.
Hope this helps resolve your problem.
Regards,
Uday -
Hide the Range Option in Multiple Selection screen
Hai,
I Give the values In single Values In Selection Option Screen.
I want to need Hide the Range Option Include or Exclude In Multiple selection screen.
Regards,
Geethajust check this it may help you
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/840ad679-0601-0010-cd8e-9989fd650822</a>
here restricting the selection screen
regards
shiba dutta -
File Dialog (Details View and Multiple Selections for View File Type)
I would like to use the generic windows dialog box found in the toolbar under:
File I/O/Advanced File Functions/File Dialog
What I would like to do is have multiple selections for the file type, for example one menu selection is *.txt, another is *.rtf, another is *.csv, etc. Listing a single type is straightforward.
Also does anyone know if there is a way to have the dialog open in the DETAILS view automatically?
Thanks for any help!
CarltonHi,
You can do it in following ways:
1. Write in pattern input the string "*.txt; *.csv; *.rtf". This will show to the user only files with this extensions in the dialog.
2. Another way is to create ring or menu where user could specify the extension. Depending on this extension you could wire the appropriate string to the pattern input of "File Dialog.vi"
I have made an example.
Good luck.
Oleg Chutko.
Attachments:
fileopen.vi 42 KB -
RAR5.3 not able to cut and paste list of users to Multiple Selection screen
CC V4.0 on ABAP system has a feature where you can cut and paste a list of many users from the clipboard to Single Values column in the Multiple Selection screen, so you can run SOD Analysis Report for all those users. The Multiply Selection screen is a standard SAP supplied pop up screen.
With RAR 5.3 the Multiply Selection screen design is different. There is no longer feature to cut and paste from clipboard. We have to input each user one at a time. So if you have many users (20, 30, etc.) it is a time consuming task. It is not acceptable to our business power users.
We can import the list of users to a Custom User Group (in the Configuration Tab). First of all, there is no mass delete on Custom User Group. You have to delete each user one at a time which is time consuming. The alternative is to create a new Custom User Group each time, then it becomes a maintenance nightmare. Secondly, it is in the Configuration Tab which is only available to Administrators (fear of users changing configuation data), so the Administrator (or whomever has access to the Configuration Tab) has to maintain the Custom User Groups which is a lot of work for him or her or them.
We talk to SAP every week. But they are looking at this as a long time project. Does any one of you (or your company) has the same requirements? How do you get around it? Did you setup some other procedures so users can cut and paste the users list and run the Risk Analysis report themselves?
Thanks,
John.This is probably a JVM issue. Are you using JInitiator or the IE native JVM?
I suggest you turn on the JVM console, set the trace level to maximum, and then watch what happens when you attempt the copy.
Also, check the key mapping (usually ctrl-k) that the forms applet is implementing. Perhaps ctrl-c means something else... -
Hi!
I've set up an initial screen (selection screen) in my dynpro-program, with company code (BUKRS) as input field. This screen has been developed using the Screen Painter and is of the screen type 'Normal'.
I have managed to add a search help to the input field, but how can I <b>add a multiple selection screen</b> to it?
Thank you for all your help!
- Mari VirikHI,
Create button beside BUKRS field.
and use FM <b>K_CMPERS_MULTIPLE_SELECTION</b> when the button is pressed.
this FM provides u a multiple selection screen. Use 'R' for Fieldtype.
data: parm like cmpersdata occurs 0.
call screen 300.
*& Module USER_COMMAND_0300 INPUT
text
module USER_COMMAND_0300 input.
case sy-ucomm.
when 'MULT'.
CALL FUNCTION 'K_CMPERS_MULTIPLE_SELECTION'
EXPORTING
p_fieldtype = 'R'
p_fieldname = 'MATNR'
p_tablename = 'MARA'
tables
pt_parm = parm
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
endcase.
endmodule. " USER_COMMAND_0300 INPUT
Regards
CNU -
How to disable the SELECT-OPTINS multiple selection screen's Ranges options
Hi this is sekhar,
I have used the Select-options: statement with 'No-Interval' option. Now I need to restrict the user not to enter the values in the Ranges column of multiple selection screen. How can I do it....You can also refer this code as below : CHECK OUT SELECT OPTION sel_1_0.
*& Report ZTESTREP
REPORT ztestrep.
Include type pool SSCR
TYPE-POOLS sscr.
Define the object to be passed to the RESTRICTION parameter
DATA restrict TYPE sscr_restrict.
Auxiliary objects for filling RESTRICT
DATA opt_list TYPE sscr_opt_list.
DATA *** TYPE sscr_***.
Define the selection screen objects
First block: 3 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK block_0 WITH FRAME TITLE text-bl0.
SELECT-OPTIONS sel_0_0 FOR sy-tvar0.
SELECT-OPTIONS sel_0_1 FOR sy-tvar1.
SELECT-OPTIONS sel_0_2 FOR sy-tvar2.
SELECT-OPTIONS sel_0_3 FOR sy-tvar3.
SELECTION-SCREEN END OF BLOCK block_0.
Second block: 2 SELECT-OPTIONS
SELECTION-SCREEN BEGIN OF BLOCK block_1 WITH FRAME TITLE text-bl1.
SELECT-OPTIONS sel_1_0 FOR sy-subrc.
SELECT-OPTIONS sel_1_1 FOR sy-repid.
SELECTION-SCREEN END OF BLOCK block_1.
INITIALIZATION.
Define the option list
ALL: All options allowed
MOVE 'ALL' TO opt_list-name.
MOVE 'X' TO: opt_list-options-bt,
opt_list-options-cp,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-nb,
opt_list-options-ne,
opt_list-options-np.
APPEND opt_list TO restrict-opt_list_tab.
NOPATTERN: CP and NP not allowed
CLEAR opt_list.
MOVE 'NOPATTERN' TO opt_list-name.
MOVE 'X' TO: opt_list-options-bt,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-nb,
opt_list-options-ne.
APPEND opt_list TO restrict-opt_list_tab.
NOINTERVLS: BT and NB not allowed
CLEAR opt_list.
MOVE 'NOINTERVLS' TO opt_list-name.
MOVE 'X' TO: opt_list-options-cp,
opt_list-options-eq,
opt_list-options-ge,
opt_list-options-gt,
opt_list-options-le,
opt_list-options-lt,
opt_list-options-ne,
opt_list-options-np.
APPEND opt_list TO restrict-opt_list_tab.
EQ_AND_CP: only EQ and CP allowed
CLEAR opt_list.
MOVE 'EQ_AND_CP' TO opt_list-name.
MOVE 'X' TO: opt_list-options-cp,
opt_list-options-eq.
APPEND opt_list TO restrict-opt_list_tab.
JUST_EQ: Only EQ allowed
CLEAR opt_list.
MOVE 'JUST_EQ' TO opt_list-name.
MOVE 'X' TO opt_list-options-eq.
APPEND opt_list TO restrict-opt_list_tab.
Assign selection screen objects to option list and sign
KIND = 'A': applies to all SELECT-OPTIONS
MOVE: 'A' TO ***-kind,
'*' TO ***-sg_main,
'NOPATTERN' TO ***-op_main,
'NOINTERVLS' TO ***-op_addy.
APPEND *** TO restrict-***_tab.
KIND = 'B': applies to all SELECT-OPTIONS in block BLOCK_0,
that is, SEL_0_0, SEL_0_1, SEL_0_2
CLEAR ***.
MOVE: 'B' TO ***-kind,
'BLOCK_0' TO ***-name,
'I' TO ***-sg_main,
'*' TO ***-sg_addy,
'NOINTERVLS' TO ***-op_main.
APPEND *** TO restrict-***_tab.
KIND = 'S': applies to SELECT-OPTION SEL-0-2
CLEAR ***.
MOVE: 'S' TO ***-kind,
'SEL_0_2' TO ***-name,
'I' TO ***-sg_main,
'*' TO ***-sg_addy,
'EQ_AND_CP' TO ***-op_main,
'ALL' TO ***-op_addy.
APPEND *** TO restrict-***_tab.
KIND = 'S': Applies to SELECT-OPTION SEL_0_3
CLEAR ***.
MOVE: 'S' TO ***-kind,
'SEL_0_3' TO ***-name,
'I' TO ***-sg_main,
'N' TO ***-sg_addy,
'JUST_EQ' TO ***-op_main.
APPEND *** TO restrict-***_tab.
Call function module
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
DB = ' '
EXCEPTIONS
too_late = 1
repeated = 2
not_during_submit = 3
db_call_after_report_call = 4
selopt_without_options = 5
selopt_without_signs = 6
invalid_sign = 7
report_call_after_db_error = 8
empty_option_list = 9
invalid_kind = 10
repeated_kind_a = 11
OTHERS = 12. -
Validation of materials entered in multiple selection in selection-screen
Hi,
How can I do the validation for all the materials entered in multiple selection in selection-screen?What kind of validation do you need to do?
One of the easiest options is to select the materials to an internal table and then loop through it. Something like this:
SELECT-OPTIONS: SO_MATNR FOR MARA-MATNR.
AT SELECTION SCREEN.
SELECT MATNR FROM MARA
INTO TABLE I_MATNR
WHERE MATNR IN SO_MATNR.
LOOP AT I_MATNR.
" <do validations here>
ENDLOOP.
Here table I_MATNR has only one field MATNR.
But please be careful with this, because you might end up going through thousands of material numbers. You might want to limit the user's choices by making the field required and removing some other options. Also you can check number of records in I_MATNR and allow only, say, not more than 50 materials, thusly forcing the users to limit their selection criteria.
Naturally, other selection options may be added here.
Maybe you are looking for
-
I have a bit of a problem I hope someone cna help me with in Administration > General Settings > Display I set both amounts and Prices to 5 In Documents settings I set the rounding to be Currency not Document. In AP Invoice Entry, I have the ability
-
Setting up a Digital Signature
Hi all. I have Adobe Acrobat X, and I'm trying to set up a digital signature with a graphic. The graphic is actually a signature that is scanned. The problem is when I create the digital signature graphic, the graphic signature is very small and al
-
Hello all, I have SQL express 2014 advance edition installed .. and i am connecting SQl server 2008 r2 instance which is in network while creating datasource in Reportserver which has Express installed .. got this error .. please help me how to conn
-
Clarification regarding Shared services and essbase security
Hi, Sorry for the silly doubt. We have shared services to manage security, essbase v 9 1. to assign calc access for users, do i assign calc scripts under databases in group security and assign users to groups in shared services or do it via access co
-
I am looking to download Acrobat Reader 6.0. Anyone have a link? I found 8.0 too slow on my machine and on 5.0, the scroll wheel doesn't work. Any one know how to get the mouse scroll wheel to work in 5.0? ROBERT