Popup to select the multiple values
hi ,
i have one input field called PROTOCAL CAT.
If the user chooses one the PROTOCAL CAL from help ex : 103. the 103 will be linked to many PROTOCALS ex 5 protocals.
21, 22, 23,24,25.
i have created a button called ADD. When the user click on the Button ADD he should get a screen with those 5 values displayed above ex: 21,22,23,24,25.
if it is displayed then the user will select one of those values or all of them according to his/her requirment.
my concern is am able to fetch the data but not able to display via a screen so that user can select.
if anyone can come up with an info will be much appriciated.
thank you,
pasala.
THANK YOU ALL ITS SORTED WITH ONE OF YOUR SDN SOLUTIONS...THANKS GUYS FOR GREAT WORK.
Similar Messages
-
How to capture the multiple value in list box
Hi forums,
How to select the multiple values in list box and how to catch that values in OnInputProcessing.
Regards,
Ravi.Hi,
A possible method is:
Get all fields of the form
CALL METHOD request->get_form_fields
CHANGING
fields = table_fields.
loop over the fields
LOOP AT table_fields INTO wa_fields.
test the name of the field
CASE wa_fields-name.
WHEN 'test'.
retrieve the value of the field
test = wa_fields-value.
endcase
endloop.
Eddy -
How can we select the highest value from 3 disfferent #defined values???
Hello,
Sometimes I come across the requirement of having the program automatically select the highest value
among several defined preprocessor command statements. For example:
#include "stdio.h"
#include <math.h>
#define _K_BUF_OTHERS 20
#define _k_BUF_ENV_TAGS 30
#define _k_BUF_REGS 40
#define _k_MAX(x, y, z) (max((max(x, y)), z))
int main(){
unsigned int u;
u = _k_MAX(_k_BUF_OTHERS,_k_BUF_ENV_TAGS, _k_BUF_REGS);
return 0;
In the sample above we have three (3) different define statements called :
_k_BUF_OTHERS
_k_BUF_ENV_TAGS
_k_BUF_REGS
but at any given time in certain C modules (In this case above, the main.c module) I require for the program to know
which of the three is the highest and get that highest value so I can use it downstream of my code. In this case the highest would be 40. So therefore putting the following macro anywhere in my code should make a text substitution of the macro's value
and return 40 to u:
u = _k_MAX(_k_BUF_OTHERS, _k_BUF_ENV_TAGS, _k_BUF_REGS);
But I can't even compile the program!
Here's the error I get in VC++:
1>------ Build started: Project: MinMax, Configuration: Debug Win32 ------
1> Source1.cpp
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Can someone please have a look and see what I am doing wrong.
All help appreciated...
Thanks
rOn 4/12/2015 4:30 PM, roberto wrote:
1>c:\c++_tests\minmax\minmax\source1.cpp(15): error C3861: 'max': identifier not found
So implement or #define one. C standard library doesn't provide a function named "max".
Igor Tandetnik -
Select the multiple nodes in a tree
Hi Experts,
We need to select the multiple nodes in a tree.Whatever we are selecting,that has to be added in the table as a tree structure itself.
For ex:
A
|--A1
|--B1
If We select the A then A,A1 and B1 has to be added in a table.Please help me out for this.
Regards
Nutan
Edited by: Armin Reichert on Jan 29, 2008 2:33 PMHi,
You have to create a recursive node and use the tree by nesting UI component
Following tutorial will be of use
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/user-interface-technology/webdynpro/wd%20java/wdjava%20tutorials%20and%20articles%20archive/constructing%20a%20recursive%20and%20loadable%20web%20dynpro%20tree.pdf
Recursive Node
http://help.sap.com/saphelp_nw70/helpdata/en/5d/97384162316532e10000000a1550b0/frameset.htm
TreeByNesting
http://help.sap.com/saphelp_nw70/helpdata/en/92/12a74046033913e10000000a155106/content.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/28113de9-0601-0010-71a3-c87806865f26?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d#31 [original link is broken]
Regards
Ayyapparaj -
Dear Friends
I want to select the maximum value according to the following script
select H_TRANS_DATE,NVL(D_CURRENT_METER,0) INTO L_DATE,LOC_VAR
from (select d_current_meter,H_TRANS_DATE
FROM MAINTENANCE_HEADER
WHERE H_CAR_NO=:REC_MASTER.H_CAR_NO
AND MAINTENAMCE_STATUS = 2
order by H_TRANS_DATE desc)
where rownum = 1;
it works fine in sqlplus and it gives the correct result, but when I copy the same code to my Oracle Forms Builder it gives the following Error 103 at line 23 column 16 encountered symbol ORDER when
expecting one of the following) * &
When I remove the order by the error message goes but I am not getting the correct result ,how can I correct this script
Best Regards
JamilYes I have copied/pasted the correct code ?
and the field name in the database same as the following
AND MAINTENAMCE_STATUS = 2
any other idea , and my form version is
Forms [32 Bit] Version 6.0.8.11.3 (Production)
Oracle Toolkit Version 6.0.5.35.0 (Production)
PL/SQL Version 8.0.6.0.0 (Production)
Oracle Procedure Builder V6.0.8.11.0 Build #449 - Production
Best regards
Jamil -
The selection screen cannot choose the multiple values at first instance?
Hi All,
I have 2 select-options on the selection screen as follows>>
SELECT-OPTIONS :
s_subusr FOR pa0105-usrid NO INTERVALS OBLIGATORY,
s_period FOR vbak-erdat NO-EXTENSION OBLIGATORY.
When I try to enter multiple values by clicking the multiple option button when noting is entered as input on the selection screen.I get a error"Make entry in all required fields".
But when I enter a value on the selection screen input for s_subusr and then enter value in s_period and then click on multiple option button I am able to see the multi-option Popup.Now I can enter multiple Values.
Please can anyone help me to enter the values on the multiple option Pop-up whenever the user want?
Regards,
Shashank.HI
OBLIGATORY means you have to enter the values , with out filling that values and if you click any thing it will show an error message saying that fill alla required fields
so if you want you can remove that
or if you want to keep that OBLIGATORY then fill some values 1st in that select-options and clcik on multiple entries button then it won't show any error
<b>Reward if usefull</b> -
All,
I am in urgent need of this requirement referencing/copying all selected multiple values in select List and putting them into text item/text-area separated by ","/comma delimiter.....any help
appreciated.
example:
select list
=======
aaaa
bbbb (selected)
cccc
dddd(selected)
ffffff
copied is:
bbbb, ddddNo worries, I've found a way.
You need to create a pl-sql function that generates the necessary HTML code that will render the select list using the selected="selected" attribute when the option value is selected.
This is an example of the expected HTML code for a multiple selection list:
<select name="favoritefood" id="favoritefood" multiple=true; size=4;>
<option value=1>Cheese</option>
<option value=2 selected="selected">Egg</option>
<option value=3>Cabbage</option>
<option value=4 selected="selected">Ham</option>
</select>
I created this function in order to find the matches within the saved code and the option value. And then include the selected="selected" string in the returned HTML code.
Finally, I'm using this function in the SQL query that generates a tabular report and I changed the column Display Attribute to "Standard Report Column". Then the report instead of showing the HTML code, will render it to a HTML item.
Regards
Edited by: user9982480 on Jul 30, 2012 8:32 AM
Edited by: user9982480 on Jul 30, 2012 8:33 AM
Edited by: user9982480 on Jul 30, 2012 8:34 AM -
Hi Experts,
I am working on a report in Crystal (2008) which will prompt user to input a value, but if nothing is entered then it will select relevant database value.
I created a string parameter prompt called "{?Pack_Qty_Overide}" and used the following formula.
IF {?Pack_Qty_Overide} = ""
THEN {OITM.SalPackUn}
ELSE {?Pack_Qty_Overide}
However, when I check the formula in editor, it says that there should be a number at the end of "Else" clause.
What am I doing wrong?Hi Janos,
OITM.SalPackUn is Numeric(19.6). When I used parameter input type as number, my formula returned error that "A number is required here" at the "if .... " statement.
So I used the formula you provided and it worked, such that when I input a quantity in parameter prompt it would display that, but if no override value given, the field remains blank - i.e. it does not display the value stored in OITM.SalPackUn.
What am I doing wrong?
Thanks,
YP -
Select the newest value of a row in a group by
On the following query I would like to select the value of the column new_cost which belongs to the row with the newest date in the column m.creation_date, instead of using max(new_cost)
select s.segment1, segment2, m.organization_id, sum(primary_quantity), max(new_cost)
from inv.mtl_material_transactions m, inv.mtl_system_items_b s
where s.segment2 = 1000435
and m.organization_id = 83
and s.organization_id = 136
and m.inventory_item_id = s.inventory_item_id
group by s.segment1, s.segment2, m.organization_id
order by s.segment1, s.segment2, m.organization_id for example, on the following table I would like to choose the new_cost of the row with the creation date 20/08/2010 14:37 (row 4)
SEGMENT1 SEGMENT2 ORGANIZATION_ID PRIMARY_QUANTITY NEW_COST CREATION_DATE
1 1000435 83 0,66668 175.500 04/06/2010 16:41
1 1000435 83 1 189.106 22/06/2010 11:54
1 1000435 83 -0,58333 189.106 19/07/2010 11:55
1 1000435 83 1 198.459 20/08/2010 14:37
1 1000435 83 -0,5 189.106 11/08/2010 18:12You should be able to use an analytic function... something similar to:
with data
as
select 1 segment1, 1000435 segment2, 83 organization_id, 0.66668 primary_quantity, 175.500 new_cost, to_date('04/06/2010 16:41', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, 1 primary_quantity, 189.106 new_cost, to_date('22/06/2010 11:54', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, -0.58333 primary_quantity, 189.106 new_cost, to_date('19/07/2010 11:55', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 1 segment1, 1000435 segment2, 83 organization_id, 1 primary_quantity, 198.459 new_cost, to_date('20/08/2010 14:37', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
union all
select 2 segment1, 1000435 segment2, 83 organization_id, -0.5 primary_quantity, 189.106 new_cost, to_date('11/08/2010 18:12', 'DD/MM/YYYY HH24:MI:SS') creation_date
from dual
select segment1, segment2, organization_id, primary_quantity_sum, new_cost
from (
select
segment1,
segment2,
organization_id,
sum(primary_quantity) over (
partition by
segment1,
segment2,
organization_id
) primary_quantity_sum,
new_cost,
row_number() over (
partition by
segment1,
segment2,
organization_id
order by
creation_date desc
) rn
from data
where segment2 = 1000435
where rn = 1 -
How i can show the popup to select the path to download file
Hi Guru ,
How can I show a popup before download a file , where User can select the folder where user want to download the data .Hi..
Check the following code.
You can either use.. WS_FILENAME_GET or CL_GUI_FRONTEND_SERVICES...
* CALL FUNCTION 'WS_FILENAME_GET'
* EXPORTING
* def_filename = space
* def_path = p_fp_pre
* mask = c_mask
* mode = c_o
* title = text-165
* IMPORTING
* filename = p_fp_pre
* EXCEPTIONS
* inv_winsys = 1
* no_batch = 2
* selection_cancel = 3
* selection_error = 4
* OTHERS = 5.
* IF sy-subrc <> 0.
* MESSAGE s195 DISPLAY LIKE c_e WITH text-166.
* ENDIF.
data: l_filename type string,
l_path type string,
l_fullpath type string.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
* WINDOW_TITLE = 'Hi'
DEFAULT_EXTENSION = c_ext
DEFAULT_FILE_NAME = c_filename
* FILE_FILTER =
INITIAL_DIRECTORY = c_directory
* WITH_ENCODING =
PROMPT_ON_OVERWRITE = c_x
CHANGING
filename = l_filename
path = l_path
fullpath = l_fullpath
* USER_ACTION =
* FILE_ENCODING =
* EXCEPTIONS
* CNTL_ERROR = 1
* ERROR_NO_GUI = 2
* NOT_SUPPORTED_BY_GUI = 3
* others = 4
Cheers.... -
Check for the multiple values of the order type in if cond. in user exit
Hi all,
I have the exisitng code like this.
IF AUFK-AUART = C_STAT_1000.
RETAIL = C_RETAIL_X.
ELSE.
SEARCH W_SYST_STAT FOR 'SETC'.
IF SY-SUBRC <> 0.
ERR_MSG-MSGID = 'ZP'.
ERR_MSG-MSGTY = 'E'.
ERR_MSG-MSGNO = '017'.
ERR_MSG-MSGV1 = DETAILS-RAUFNR.
APPEND ERR_MSG.
EXIT.
ENDIF.
ENDIF.
In the above code, the order type aufk-auart is checked for a single value '1000'.
How do i include the logic tocheck if aufk auart for multple values in tha if condition.
It can be multiple values of whihc i do not have the detail.
Regs,
SuryaD.Hi all,
I have the sample code with me.
Hope this helps someone who is looking for the usage of this Function module.'K_HIERARCHY_TABLES_READ'
DATA:
l_set_node_tab LIKE grpobjects OCCURS 0 WITH HEADER LINE,
l_set_val_tab LIKE grpvalues OCCURS 0 WITH HEADER LINE,
l_info LIKE grphinfo,
l_overrite LIKE sy-datar,
l_set_class(4) TYPE c,
l_set_id(34) TYPE c,
l_set_kokrs LIKE sethier-kokrs,
lr_auart TYPE RANGE OF auart,
lr_auart-line LIKE LINE OF lr_auart.
CONSTANTS:lc_set(3) TYPE c VALUE 'SET',
lc_id(22) TYPE c VALUE '0000Z-GPMRCMI-EXC-CUST',
lc_i TYPE c VALUE 'I',
lc_bt(2) TYPE c VALUE 'BT'.
CLEAR:
l_set_node_tab,
l_set_node_tab[],
l_set_val_tab,
l_set_val_tab[].
l_set_class = lc_set.
l_set_id = lc_id.
CALL FUNCTION 'K_HIERARCHY_TABLES_READ'
EXPORTING
e_class = l_set_class
e_setid = l_set_id
e_kokrs = l_set_kokrs
e_mandt = sy-mandt
TABLES
t_nodes = l_set_node_tab
t_values = l_set_val_tab
CHANGING
c_info = l_info
c_overwrite = l_overrite
EXCEPTIONS
no_controlling_area = 1
no_chart_of_account = 2
different_controlling_areas = 3
different_chart_of_accounts = 4
set_not_found = 5
illegal_field_replacement = 6
illegal_table_replacement = 7
fm_raise = 8
convert_error = 9
no_overwrite_standard_hier = 10
no_bukrs_for_kokrs = 11
OTHERS = 12.
IF sy-subrc = 0.
CLEAR : lr_auart.
REFRESH lr_auart.
create internal set table
LOOP AT l_set_val_tab.
lr_auart-line-low = l_set_val_tab-vfrom.
lr_auart-line-high = l_set_val_tab-vto.
lr_auart-line-sign = lc_i.
lr_auart-line-option = lc_bt.
APPEND lr_auart-line to lr_auart.
CLEAR lr_auart-line.
ENDLOOP.
ENDIF. -
How can i select the duplicate values
Hi experts ,
how can i find the duplicate values from the table. i want to display the all duplicate the rows.
1. Table Structure :-
CREATE TABLE CIF_MIGRATE
LINE_NO NUMBER(10),
ACCT_NO VARCHAR2(20 BYTE),
BRANCH_ID VARCHAR2(1 BYTE),
CUSTOMER_NAME VARCHAR2(100 BYTE),
FATHER_NAME VARCHAR2(100 BYTE),
GF_NAME VARCHAR2(100 BYTE),
TOTAL VARCHAR2(100 BYTE),
STATUS VARCHAR2(100 BYTE),
CUSTOMER_TYPE VARCHAR2(10 BYTE),
GENDER VARCHAR2(10 BYTE)
) 2. Sample Data:-
SET DEFINE OFF;
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, CUSTOMER_TYPE)
Values
(72, '1', 'Addis Belay Construction Material Rental', 'C');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, CUSTOMER_TYPE)
Values
(73, '1', 'Addis Belay Construction Material Rental', 'C');
SET DEFINE OFF;
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, CUSTOMER_TYPE, GENDER)
Values
(2869, '1', 'Abraham', 'Fiseha',
'I', 'Male');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, CUSTOMER_TYPE, GENDER)
Values
(2870, '9', 'Abraham', 'Fiseha',
'I', 'Male');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE, GENDER)
Values
(2872, '9', 'Abraham', 'Baraki',
'Medehniye', 'I', 'Female');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE, GENDER)
Values
(2873, '1', 'Abraham', 'Geber kirstos',
'gebre medihin', 'I', 'Female');
Insert into CIF_MIGRATE
(LINE_NO, BRANCH_ID, CUSTOMER_NAME, FATHER_NAME, GF_NAME, CUSTOMER_TYPE)
Values
(2874, '1', 'Abraham', 'Gebre egziabher',
'Negussie', 'I');
COMMIT;4. My requirement is i need display all the duplication customer
CUSTOMER_NAME FATHER_NAME,GF_NAME
Addis Belay Construction Material Rental
Addis Belay Construction Material Rental
Abraham Fiseha
Abraham Fiseha5. I tried below query but i cant reach what i want exactly
SELECT CUSTOMER_NAME,FATHER_NAME,GF_NAME
FROM CIF_MIGRATE
GROUP BY CUSTOMER_NAME,FATHER_NAME,GF_NAME
HAVING COUNT (*) > 1kindly suggest me the solution
Thanks
ArunHi,
You're on the right track using COUNT (*), but, for this job, you want the analytic COUNT, not the aggregate COUNT.
"GROUP BY x, y, z" means that the result set will only contain 1 row for each distinct combination of x, y and z. Most aggregate functions (including COUNT) have analytic counterparts that get the same results without reducing the number of rows.
Here's one way you can use the analytic COUNT function:
WITH got_cnt AS
SELECT customer_name
, father_name
, gf_name
, COUNT (*) OVER ( PARTITION BY customer_name
, father_name
, gf_name
) AS cnt
FROM cif_migrate
SELECT customer_name
, father_name
, gf_name
FROM got_cnt
WHERE cnt > 1
;PARTITION BY in analytic functions corresponds to GROUP BY in aggregate functions. -
Hello Everyone,
The code at the bottom of the page produces a simple report. What i need is for the latest DB_PATCH_NUMBER to be selected. At the moment the highest value DB_PATCH_NUMBER being selected.
Can someone help me with this?
Thanks in advance.
select "VERSION_CONTROL"."SERVER_NAME" as "SERVER NAME",
"VERSION_CONTROL"."DB_NAME" as "DATABASE NAME",
"VERSION_CONTROL"."SCHEMA_NAME" as "SCHEMA NAME",
MAX("VERSION_CONTROL"."DB_PATCH_NUMBER") as "DATABASE PATCH NUMBER",
MAX("VERSION_CONTROL"."HIDDEN_PK_KEY") as "HIDDEN_PK_KEY",
MAX("VERSION_CONTROL"."CREATED_TIME") as "CREATED_TIME"
from "VERSION_CONTROL" "VERSION_CONTROL"Hi,
You need to use a subquery to return the DB_PATCH_NUMBER for the lastest CREATED_TIME. Something along the lines of
select "VERSION_CONTROL1"."SERVER_NAME" as "SERVER NAME",
"VERSION_CONTROL1"."DB_NAME" as "DATABASE NAME",
"VERSION_CONTROL1"."SCHEMA_NAME" as "SCHEMA NAME",
"VERSION_CONTROL1"."DB_PATCH_NUMBER" as "DATABASE PATCH NUMBER",
"VERSION_CONTROL1"."HIDDEN_PK_KEY" as "HIDDEN_PK_KEY",
"VERSION_CONTROL1"."CREATED_TIME" as "CREATED_TIME"
from "VERSION_CONTROL1" "VERSION_CONTROL1"
where "VERSION_CONTROL1"."CREATED_TIME" in (select max("VERSION_CONTROL2"."CREATED_TIME")
from "VERSION_CONTROL" "VERSION_CONTROL2"
WHERE "VERSION_CONTROL2"."SERVER_NAME" = "VERSION_CONTROL1"."SERVER_NAME"
AND "VERSION_CONTROL2"."DB_NAME" = "VERSION_CONTROL1"."DB_NAME"
AND "VERSION_CONTROL2"."SCHEMA_NAME" = "VERSION_CONTROL1"."SCHEMA_NAME"
AND "VERSION_CONTROL2"."DB_PATCH_NUMBER" = "VERSION_CONTROL1"."DB_PATCH_NUMBER"
AND "VERSION_CONTROL2"."HIDDEN_PK_KEY" = "VERSION_CONTROL1"."HIDDEN_PK_KEY")
Regards
Paul -
Hi,
I have an analog signal connected with a threshold peak detector. The counted peaks shall be divided by the total time of the recorded signal. My problem is, I don't know how to connect just the the x-values, i.e. the time component of the signal, to the divide command. I have no idea how to "split" the signal so that I don't have the whole signal but just the time in seconds as an output of the measured or filtered signal sub-VI, respectively.
Does anyone have a hint?
Thanks for your help,
PhilippHi Phillipp,
do you mean you have a waveform and you want to get the components? In this case "Get Waveform Components" should work.
Mike -
How to select the larger value of column?
I would like a cell value (here E8) to be for example: (max $E$1:E7) + B8. Where all previous E column values were find the same calculation except for E1 that is a simple number and not a calculation? It does not work. It give the result for E1 + B8. The larger value should be E7. So the correct result should be E7 + B8 but if there is no value in E7 I want it to choose the larger number of the E column so far. Does some one can help me?
Hi Frederic,
If I understand "Where all previous E column values were find the same calculation except for E1", you want each cell, starting at E2 to contain this formula.
E2: =MAX($E$1:E1)+B2 E8: =MAX($E$1:E7)+B8
If that's the case, then "there is no value in E7" would never occur, and, unless the value of Bn were negative, the maximum value in column E would always be the one immediately above the formula.
In that case, this simpler formula would produce the same result:
E2: =E1 + B2 E8: =E7 + B8
Regards,
Barry
Maybe you are looking for
-
How do I open a scanned picture in Firefox?
<blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/858927]]</blockquote> I have some pictures scanned and saved in my computer. How do I open one of them in Firefox? I'm trying to design a book cover and need to open a pictu
-
We are having a problem with some messages being stuck in the queue. They show as "pending" in the console and, in fact, get delivered to the listeners (MDBs) on server restart. The code of MDBs is beyond our control (th
-
I want to open up my Firefox browser and have two different tabs on my home page. How do I do that? Thanks!
-
Cycle of pca with trading partner
Dear experts, Is it possible to create a pca cycle of some pcas with a specific trading partner?.....i couldn´t find this field on the senderside.... what i need is to create a cycle with specific pcas and also a specifc trading partner........any ti
-
Hi, in 10G R2, is there any way to know which sequence is backed up in a RMAN backup file of archived log ? Explanation : I have a RMAN backup file. It is the backup of an archived log. How can I know which was the sequence of that archived log ? I h