Create Popup like Select options
Hi at all,
I want to create a button that calls a popup like in the select options, without using the select options component.
In Standard ABAP there is a function called "COMPLEX_SELECTIONS_DIALOG" who creates and call the dialog.
Does anybody know an adaption for this function in Web Dynpro for ABAP?
Thx a lot to all.
Dirk
Hello Dirk,
We have a new enhacement in code wizord by which you could replicate a screen into a webdynpro view.
So the framework would choose different ui elements to create similar screen,
Regards
Anurag Chopra
Similar Messages
-
HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
HOW TO DESIGN RANGE SELECTION IN MODULE PULL LIKE SELECT-OPTION.
how can we add range selection in screen painter.
regards.Hi,
create two input fields and a push button like select option in the screeen.
Try checking this logic
<b>Program:</b>
<b>ranges</b> ra_matnr for mara-matnr.
<b>Layout field name declaration:</b>
Give the low field name as ra_range-low
and high field name as ra_range-high.
extension for pushbutton.--exten(function code)
next -- function code for the enter key.
PBO
module status_3000.
PAI
module user_command_3000.
<b>module user_command_3000.</b>
if sy-ucomm = exten.
call screen 400. (screen which shows extension values can be kept).
elseif sy-ucomm = Next.
if ra_matnr-low is not initial.
ra_matnr-SIGN = 'I'.
ra_matnr-OPTION = 'EQ'.
APPEND ra_matnr.
clear ra_matnr.
endif.
if ra_matnr-high is not initial.
ra_matnr-SIGN = 'I'.
ra_matnr-OPTION = 'EQ'.
APPEND ra_matnr.
clear ra_matnr.
endif.
endif.
endmodule.
module status_3000.
read table ra_matnr index 1 into ra_matnr .
set pf-status '3000'.
set title '3000'.
endmodule
Br,
Laxmi. -
Is possible in a dialog screen attach a field functional like select-option
hi,
Is it possible - in a dialog screen - to attach a field that has functionality like Select-options fields?
And if so - how?
and information about complex_selections_dialogHi,
Look at the below links
module pool programming " to add selection-option on screen"
module pool programming " to add selection-option on screen"
Regards
Sudheer -
BAPI at INPUT give range like SELECT-OPTIONS
hi all
i don't know weather it right forum for BAPI , but writing under this .
my requirement is like , as we give range in SELECT-OPTIONS,
like wise i want to give range in BAPI at INPUT level .
i.e. say i want to get details of Vendors , i will write a BAPI and i will give VENDOR code range to get information of all vendor with in that range.
please guide me in this .Hi!
You could use this bapi fm: BAPI_VENDOR_GETDETAIL
I could imagine it like this:
1. You have to create an FM, with the RA_LIFNR range.
2.
SELECT * FROM lfa1 INTO TABLE gt_lfa1
WHERE lifnr IN ra_lifnr.
LOOP AT gt_lfa1 INTO gs_lfa1.
CALL FUNCTION 'BAPI_VENDOR_GETDETAIL'
with the parameters
collect data into an output table
ENDLOOP.
3. Give back the output table to the caller program
Regards
Tamá -
Parameters will it work like Select-Option is there any chance
Hi Every One
I am using Parameters to do selection .but in one case i need to get some data for the whole month .i have the values in 2 different variables .(If we use select-option then we can use sign,option,low,high .).but how to do here . Any idea is please do let me know.
SravyaHi,
<li>Define range table.
DATA:r_data TYPE RANGE OF datum,
w_data LIKE LINE OF r_data.
<li>Build range table
w_data-low = parameter1.
w_data-high = parameter2.
w_data-sign = 'I'.
w_data-option = 'BT'.
APPEND w_data TO r_data.
CLEAR w_data.
<li>Use that in SELECT statement.
SELECT * FROM <db_tab> INTO TABLE <it_tab> WHERE <date_field> IN r_data.
Thanks
venkat.O -
Import parameter shall be same type like select option
Hey guys,
how can i make it possible that my importparameter of my FB has the type of the select option field of my program??
I need something like a tabletype or a list of values.
ThxHi,
<li>Define like below
DATA: s_matnr TYPE RANGE OF mara-matnr.
or
TABLES: mara.
RANGES: s_matnr FOR mara-matnr.
Thanks
Venkat.O -
Multiple inputs like select-option
Hi everybody,
Please let me know if there exists an option in BSP for multiple inputs in inputfield, like we have in select-option in R/3.
ThanksHello Swarnali,
You need to fill internal table of select-option once you got into the event AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
so sudo code will be:
AT SELECTION-SCREEN ON VALUE REQUEST FOR so_carr-LOW.
Select data from table.
so_carr-LOW = value
append so_carr.
You can also use NO INTERVAL to suppress the so_carr-HIGH value on selection screen.
Thanks,
Augustin. -
Create a disabled Select Option in javascript
Hi
By now, I want to create a SELECT object with disabled options by using javascript.
I tried "selectObj.options[1].disabled = true", it can work in Netscape, but not in IE.
Does anyone can help?
Thanks
MichaelJust tried, but doesn't work to me. Here is the complete html source
<html>
<head>
<title>Test</title>
</head>
<script>
function check()
var selectObj = document.createElement("SELECT");
selectObj.options[0] = new Option("abc",1);
selectObj.options[1] = new Option("def",2);
selectObj.options[1].id = "def_id";
var d = document.getElementById("test");
d.appendChild(selectObj);
var opt = document.getElementById("def_id");
alert(opt);
opt.disabled = true;
</script>
<body>
<div id="test" name="test"></div>
check
</body>
</html> -
Select-options are not destroyed while calling view of used component popup
Hi Friends ,
I'm facing a unique problem. I'm calling a view of a component within another component. the view that I'm calling has some select-options. When I close the popup window ( using close 'X' of popup ) and then try to reopen the popup system give me a dump. I debugged and found that select-options are not destroyed by system and once it tries to create the select-options again it dumps because they are already there.
This is the source code extract of that dump for your reference .
1 method if_wd_select_options~add_selection_field.
2
3 data:
4 lr_table_descr type ref to cl_abap_tabledescr,
5 lr_struct_descr type ref to cl_abap_structdescr,
6 lr_value_field_descr type ref to cl_abap_elemdescr,
7 added_field like line of mt_added_fields,
8 dfies type dfies,
9 description type string,
10 complex_restrictions type if_wd_select_options=>t_complex_restrictions.
11
12 field-symbols:
13 <it_result> type index table.
14
15 * check of someone wants to add a field that already exists
16 read table mt_fields
17 with key m_id = i_id
18 transporting no fields.
19 if sy-subrc = 0.
20 * might be deleted - recreating a field with different setting is of course allowed
21 read table mt_all_removed_fields
22 with key table_line = i_id
23 transporting no fields.
24 if sy-subrc <> 0.
>>> message x000(00).
26 endif.
27
28 * remove the existing field in order to avoid duplicates
29 delete table mt_fields with table key m_id = i_id.
30 endif.
I've already tried using REMOVE_ALL_SEL_SCREEN_ITEMS( ) method of interface IF_WD_SELECT_OPTIONS before creating new elements ( select-options ). If any one can help me in this It would really help and I'll appreciate it.
Thanks in advance,
LaeeqI've sloved the problem
-
Getting content and address of select-options (created dynamically)
Hi guys,
Suppose I have a dynamically created select-options in a program
SELECT-OPTIONS it_ranges FOR ...
Let's say I can determine its name ( IT_RANGES ) only during program execution.
Now I know I can use field symbols to get its content like below:
FIELD-SYMBOLS: <fs>.
"here I will have content of the table in <FS>
ASSIGN ('IT_RANGES[]') TO <fs>.
...but I would like to know how can I get the content of this select-options table through date reference
TYPES: BEGIN OF t_ranges,
sign TYPE c,
option(2) TYPE c,
low TYPE i,
high TYPE i,
END OF t_ranges.
"let say tt_ranges is of the same type like IT_RANGES
TYPES: tt_ranges TYPE TABLE OF t_ranges.
DATA: ref TYPE REF TO data.
CREATE DATA ref TYPE tt_ranges.
The above will only create typed reference to table but I want it to point to my table IT_RANGES. The statement below don't work here.
GET REFERENCE OF ('IT_RANGES[]') INTO ref.
Is there any other way I can get (using data reference)?
1) address of this select-options table
2) content of this select-options table
Thanks for help in advance
M.
Edited by: Marcin Pciak on Nov 28, 2008 11:33 AMStatement CREATE DATA would only make sense when you are trying to create the dynamic select options. You can use the addition TYPE HANDLE in order to create the Range Table. Check method implementation CREATE_RANGE_TABLE in class CL_WDR_SELECT_OPTIONS.
Once the Select-option is created, you need to use the GET REFERENCE to get the data reference of the Select-options. We can't specify the dynamic reference with brackets in the GET REFERENCE statement. So, you need to use the field-symbols to do the dynamics.
DATA: ref TYPE REF TO data.
DATA: ref_fs TYPE REF TO data.
FIELD-SYMBOLS: <fs>.
DATA: w_range TYPE i.
SELECT-OPTIONS it_rang FOR w_range.
START-OF-SELECTION.
GET REFERENCE OF it_rang[] INTO ref.
ASSIGN ('IT_RANG[]') TO <fs>.
GET REFERENCE OF <fs> INTO ref_fs.
write: 'done'.
Regards,
Naimesh Patel -
How to create select-options in my own screen?
Hi
I create my screen and i wish to place select-options on screen. how to do that?There is no SAP standard way of creating select options on screen.However you can create your own select options by providing two fields on screen in which maximum and minimum values can be entered.
screen fields :
input1 : <minimum value>
input2 : <maximum value>
data :
range for <some field>
then you can fill a range with these values.For eg.
range-low = <low value input field>.
range-sign = 'I'.
range-option = 'BT'.
range-high = <high value input field>.
append range.
*Now write your select statement.
select * from <some table> where <field> in <range> -
How to create select-options on module pool screen
Hi all
I want get a range of values from the user from the module pool screen.
Is there any element available on module pool screen like select options on the selection screen of reports.
reply me ASAS.
Thanks.hi krishna
actually I want to display the details of PO numbers from 45000100 to 45000150. user will enter this range on the module pool screen just as we enter on the selection screen of report. My question is do we have a button like select-option on the module pool screen.
Plz . reply me ASAP.
Thanks. -
Select option restriction to particular rows
Dear Gurus,
I have searched the form for this but couldn't find the particular solution.
my scenario is i need to enter only 5 plants in the select options it should not exceed it, for this i have done like
select options :S_PLANT FOR G_PLANT NO INTERVALS.
CONSTANTS: LC_OPT_LIST TYPE RSREST_OPL VALUE 'OPT_LIST',
LC_S TYPE RSSCR_KIND VALUE 'S',
LC_MAT TYPE BLOCKNAME VALUE 'S_PLANT',
LC_INC TYPE C VALUE 'I'.
DATA: LW_OPT_LIST TYPE SSCR_OPT_LIST,
LW_RESTRICT TYPE SSCR_RESTRICT,
LW_*** TYPE SSCR_***.
LW_OPT_LIST-NAME = LC_OPT_LIST.
LW_OPT_LIST-OPTIONS-BT = SPACE.
LW_OPT_LIST-OPTIONS-EQ = 'X'.
APPEND LW_OPT_LIST TO LW_RESTRICT-OPT_LIST_TAB.
LW_***-KIND = LC_S.
LW_***-NAME = LC_MAT.
LW_***-SG_MAIN = LC_INC.
LW_***-OP_MAIN = LC_OPT_LIST.
APPEND LW_*** TO LW_RESTRICT-***_TAB.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
RESTRICTION = LW_RESTRICT
EXCEPTIONS
TOO_LATE = 1
REPEATED = 2
SELOPT_WITHOUT_OPTIONS = 3
SELOPT_WITHOUT_SIGNS = 4
INVALID_SIGN = 5
EMPTY_OPTION_LIST = 6
INVALID_KIND = 7
REPEATED_KIND_A = 8
OTHERS = 9.
now when i click the extension button i will be getting the popup window with ' SELECT SINGLE VALUES' sub screen now in this i need only 5 rows
I don't know weather this is possible or not.
If yes . can any one explain this ?
Thanks in advance .
Regards
Rakesh S.I do not think it is possible without changing the SAP standard (program RSDBRUNT). That is not something you want to do.
The only way I can think of is creating a module pool program and define your own screen instead of the selection screen and place a tabcontrol where you can limit the amount of lines programmatically. -
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.... -
How can we pass the select-option value to modulepool program?
hi,
how can we pass the select-option value to modulepool program ?
Because if i declared select-options in executable program and i used SSCRFIELDS to define push buttons in selection screen.
My requirement if enter the values to select-options and press UPDATE pussbotton then i want call screen which contains tablecontrol.
How i get select-option values to PAI of call screen for getting the data from database table to my internal table?Oh I thought that you have selection-screen and again you are working on dialog programming.
if you want to use select-option directly in module pool then it is not possible.
but you can do other way.
create two varaiables
data : v_kun_low like kna1-kunnr,
v_kun_high like kna1-kunnr.
use these two variables in layout ,let user knows that he can not give options like gt,lt,eq ,it will be always BT.
and also when you see normal report program,you can use multiple values in either low or high,but here it is not possibel.
use can enter only low value and high value.
when you come to program point of view
declare one range
ranges r_kunnr for kna1-kunnr.
do the coding like
r_kunnr-low = v_kun_low.
r_kunnr-high = v_kun_high.
r_kunnr-options = 'BT'.
r_kunnr-sign = 'I'.
append r_kunnr.
now you can use r_kunnr in select query ,it will work like select-option.
other than this there is no option.
Thanks
Seshu
Maybe you are looking for
-
Feature Request: Add multiple photos to catalog at once
The API currently allows you to use catalog:addPhoto() to add a single photo to the catalog. This works fine, but a poor user experience when adding a number of photos (esp. dozens or hundreds) - there's a separate child progress bar for each, maskin
-
Hi, I'm new to ApEx. In my previous life I've done web development, but am not an Oracle developer, so I don't know the in's and out's or Oracle or PL/SQL. I have a Updated_Date field in my table which is defined as a date field. I want that field to
-
Hi all, Please let me know the details of the following. 1.What is Multi-Threading? 2. How it is useful to increase the Performance of a SQL query.( How it is useful in Optimizing the query. 3. How we'll use MultiThread concept in Partitions and Usin
-
Hi, Trying to open a project that was created in CS5 in CS6. The project contains VOB files, but now in CS6 it looks like missing files. In CS5 it was no problem importing and editing those files. What is going wrong with CS6?
-
I have recently gotten an iphone 4s and I would like to be able to sync it with my macbook pro. When I go into settings on the macbook, I only see mobileme. If I try to sign in to mobile me with icloud sign in, it doesn't recognize me. Can this be