FM for popup to caputure multiple values
HI,
I need a popup box in F4 help which is having multiple input fileds...Like I need ti take a input of 6 fields frim the popup. Any standard FM is there to capture the values....
Hi,
Try using this two Function Module for getting the input values.
"F4IF_FIELD_VALUE_REQUEST"--> F4 help for fields that are only known at runtime
"F4IF_INT_TABLE_VALUE_REQUEST"--> F4 help also returning the value to be displayed
Try with the secod ine for internal table it will be easy.
Thanks,
Sakthi C
*Rewards if useful*
Similar Messages
-
Hiding Hit list popup and getting multiple values in Search help
Hi,
I have a special requirement where I am using a search help for filtering data. My requiremetn is the data which I am getting in Hit list popup, I want all that data in a internal table for further processing also I dont want that hit list popup. Is there any method or something which can be used in search help exit to hide the hit list popup dialog and returning all the records which is fetchec in the record_tab.
Thanks
Tanmaya
Edited by: Tanmaya31 on Dec 16, 2011 6:52 AMHi,
I dont think you can make thru search help. Instead, I can advise you:
Instead of using a search help for multiple selection, have a button placed at the table control, so that once you press that, you get the desired values(just as in SH) in an ALV display. Then you can make multiple selection and call the table control again and pass the values to the internal table used for the table control, so that the table is filled with the desired values.
Hope this helps you.
vamsi -
Comma separated values for input and return multiple values
Hello everyone,
I have this simple package. Can someone suggest a way to accept multiple empno as input (comma separated) and to return set of salary values for the set of employee numbers (compatible to work with lower Oracle versions). Thanks much!
CREATE OR REPLACE PACKAGE test_multi IS
FUNCTION GET_sal(P_empno IN emp.empno%TYPE) RETURN NUMBER;
END test_multi;
CREATE OR REPLACE PACKAGE BODY test_multi IS
FUNCTION GET_sal(P_empno IN emp.empno%TYPE) RETURN NUMBER IS
V_sal NUMBER(10,2);
MSG VARCHAR2(200);
BEGIN
SELECT sal
INTO V_sal
FROM emp
WHERE empno = p_empno;
RETURN V_sal;
EXCEPTION
WHEN NO_DATA_FOUND THEN
DBMS_OUTPUT.PUT_LINE('No data found.');
IF (V_sal IS NULL OR V_sal = 0) THEN
V_sal := 0;
END IF;
RETURN V_sal;
WHEN OTHERS THEN
MSG := SUBSTR(SQLERRM, 1, 70);
DBMS_OUTPUT.PUT_LINE(MSG);
END GET_sal;
END test_multi; -- End packageA way to do this in 10g or above...
SQL> ed
Wrote file afiedt.buf
1 with e as (select '7499,7698,7654,7902' as enos from dual)
2 --
3 select empno, sal
4 from emp
5 where empno in (select regexp_substr(enos,'[^,]+',1,rownum)
6 from e
7* connect by rownum <= length(regexp_replace(enos,'[^,]'))+1)
SQL> /
EMPNO SAL
7902 3000
7698 2850
7654 1250
7499 1600
SQL>As for Oracle 8, .... well.... like Oracle, I no longer use unsupported versions, so I'd recommend you upgrade to something that is supported. -
Syntax for CASE Function when multiple values equates to the same result?
Tried using the 'IN' keyword with the CASE function but it does not work, does each case have to be stated separately? trying to save some lines..
tried:
case me607.rmc_code
when in ('M','MS','MP') then 'H311'
end as carrier_code
Do i have to do:
case me607.rmc_code
when 'M' then 'H311'
when 'MS' then 'H311'
when 'MP' then 'H311'
end as carrier_code,
etc..
Thanks for any help..One other thing forgot to ask, how do you do a second case selection as:
case when me607.rmc_code
in ('M','MP','MS') then 'H311'
case when me607.rmc_code
in ('1','2') then 'H252'
end as carrier code
wanting to keep the results in carrier_code..
Thanks..
Edited by: user12296489 on Dec 10, 2009 3:53 PM -
SQL query for join table and multiple values
Trying to join two tables , Emphours and EmpStatus to get
result which gives each emplyees hour
worked each day
in past say 1 year in what status. I need result similar to table 3 , Hours Can also be grouped per week
all I need Is Each employees hours in each week and his status and position at that time if possible
any help will be highly appreciated. Thank you
note: payday is every other Friday- week runs from Saturday through Friday
EmpStatus Table tracks when employees status changed
EmpHours
employee
workday
payday
hours
position
101
1/1/2014
1/3/2014
8
assistant
101
1/3/2014
1/3/2014
8
assistant
101
1/4/2014
1/17/2014
8
assistant
101
1/5/2014
1/17/2014
8
assistant
101
1/7/2014
1/17/2014
8
assistant
101
1/8/2014
1/17/2014
8
assistant
101
1/9/2014
1/17/2014
8
assistant
101
1/11/2014
1/17/2014
8
assistant
101
1/13/2014
1/17/2014
8
assistant
101
1/14/2014
1/17/2014
8
assistant
101
1/18/2014
2/14/2014
8
assistant
102
1/1/2014
1/3/2014
7
manager
102
1/25/2014
1/31/2014
7
manager
102
1/26/2014
1/31/2014
7
manager
102
1/28/2014
1/31/2014
7
manager
102
1/31/2014
1/31/2014
7
manager
103
1/1/2014
1/3/2014
5
intern
103
1/31/2014
1/31/2014
6
intern
104
1/14/2014
1/17/2014
5
supervisor
104
1/30/2014
1/31/2014
6
supervisor
EmpStatus
employee
start_date
status
101
1/1/2014
parttime
101
1/18/2014
fulltime
102
1/1/2014
seasonal
102
1/18/2014
fulltime
103
1/1/2014
partime
103
1/18/2014
fulltime
104
1/4/2014
parttime
104
1/18/2014
fulltime
Table 3
employee
status
hours
position
workday
weekend
payday
101
parttime
8
assistant
1/1/2014
1/3/2014
1/3/2014
101
parttime
8
assistant
1/3/2014
1/3/2014
1/3/2014
101
parttime
8
assistant
1/4/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/5/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/7/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/8/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/9/2014
1/10/2014
1/17/2014
101
parttime
8
assistant
1/11/2014
1/17/2014
1/17/2014
101
parttime
8
assistant
1/13/2014
1/17/2014
1/17/2014
101
parttime
8
assistant
1/14/2014
1/17/2014
1/17/2014
101
fulltime
8
assistant
1/18/2014
1/24/2014
2/14/2014
102
seasonal
7
manager
1/1/2014
1/3/2014
1/3/2014
102
fulltime
7
manager
1/25/2014
1/25/2014
2/14/2014
102
fulltime
7
manager
1/26/2014
1/26/2014
2/14/2014
102
fulltime
7
manager
1/28/2014
1/28/2014
2/14/2014
102
fulltime
7
manager
1/31/2014
1/31/2014
2/14/2014
103
parttime
5
intern
1/1/2014
1/3/2014
1/3/2014
103
fulltime
6
intern
1/31/2014
1/31/2014
2/14/2014
104
parttime
5
supervisor
1/14/2014
1/17/2014
1/17/2014
104
fulltime
6
supervisor
1/30/2014
1/31/2014
1/31/2014Hello David,
Try this query
set dateformat mdy;
declare @EmpHours table
(Employee int,workday date,payday date,hours int,position varchar(50));
insert into @EmpHours values
(101,'1/1/2014','1/3/2014',8,'assistant'),
(101,'1/3/2014','1/3/2014',8,'assistant'),
(101,'1/4/2014','1/17/2014',8,'assistant'),
(101,'1/5/2014','1/17/2014',8,'assistant'),
(101,'1/7/2014','1/17/2014',8,'assistant'),
(101,'1/8/2014','1/17/2014',8,'assistant'),
(101,'1/9/2014','1/17/2014',8,'assistant'),
(101,'1/11/2014','1/17/2014',8,'assistant'),
(101,'1/13/2014','1/17/2014',8,'assistant'),
(101,'1/14/2014','1/17/2014',8,'assistant'),
(101,'1/18/2014','2/14/2014',8,'assistant'),
(102,'1/1/2014','1/3/2014',7,'manager'),
(102,'1/25/2014','1/31/2014',7,'manager'),
(102,'1/26/2014','1/31/2014',7,'manager'),
(102,'1/28/2014','1/31/2014',7,'manager'),
(102,'1/31/2014','1/31/2014',7,'manager'),
(103,'1/1/2014','1/3/2014',5,'intern'),
(103,'1/31/2014','1/31/2014',6,'intern'),
(104,'1/14/2014','1/17/2014',5,'supervisor'),
(104,'1/30/2014','1/31/2014',6,'supervisor');
--select * from @EmpHours
declare @EmpStatus table
(employee int,start_date date,status varchar(20));
insert into @EmpStatus values
(101,'1/1/2014','parttime'),
(101,'1/18/2014','fulltime'),
(102,'1/1/2014','seasonal'),
(102,'1/18/2014','fulltime'),
(103,'1/1/2014','partime'),
(103,'1/18/2014','fulltime'),
(104,'1/4/2014','parttime'),
(104,'1/18/2014','fulltime');
WITH C AS
SELECT es.employee,es.start_date, es.status, ROW_NUMBER() OVER(partition by employee ORDER BY start_date) AS rownum
FROM @EmpStatus ES
CTE_RANGES as(
SELECT cur.employee,Cur.start_date start_range, cur.status,case when nxt.start_date is null then '2099-12-31' else dateadd(d,-1,Nxt.start_date) end AS end_range
FROM C AS Cur
left JOIN C AS Nxt
ON Nxt.rownum = Cur.rownum + 1 and cur.employee=nxt.employee)
select eh.*,es.status from @EmpHours EH join CTE_RANGES Es on EH.Employee =es.employee and EH.workday between es.start_range and es.end_range
--where es.employee=101
You will need a calender table too which can be joined to the output of the above query to get the weekend dates.
You can find the T-SQL code to generate the calender here
http://stackoverflow.com/questions/19191577/t-sql-function-to-generate-calendar-table
and posting the questions with necessary DDL , DML (like I have posted) would help us a lot.
Satheesh
My Blog -
Hi, I have an XML that looks something like this:
<container_numbers>
<container_number>1</container_number>
<container_number>2</container_number>
<container_number>3</container_number>
<container_number>4</container_number>
</container_numbers>
and I want to concatenate all the fields into one field in the target xml.
Normally I would use 'for-each' to get multiple values, but since I am mapping to a single value, I am a bit stuck? :-|
Any suggestions?Hi, I found the solution!
You can use the 'create-delimeted-string' function.. :-) -
Searching for a multiple-value returning popup.
Is there a possibility to return multiple values from the popup LOV?
That means for example, when I pick an employee on the popup, I want empno,empname, and sal to be returned, each in its textbox.
Thank you, Ivica.Hi Ivica,
What you want to do can be done but is a bit involved, combining JavaScript and PL/SQL.
If you do not have a workaround send me an email and I will send you an example.
I would put an example on the discussion group but there are so many HTML tags that it will probably not display properly.
Regards Michael. -
Return multiple values for the popup LOV
Hi folks,
I have one challange. I have a search engine and there is an popup lov and its having three Display and 3 Retun value such as
select
p.A || ', ' || pi.B|| ', ' || km.C|| ' ' d, p.A || ', ' || pi.B|| ', ' || km.C|| ' ' r
from tableA km,tableB p,tableC pi
where km.col1=p.id and km.col1=pi.id and km.C is not null
when i click on the pop lov it will display 3 values shuch as SAP+DBA+HR and in popup lov iteam its will return 3 values
such as SAP+DBA+HR this return values are from 3 cloumn names from same table ie. A column, B column, C column
and when i click on submit button this return values from 3 columns values should assign to the 3 column such as
A=SAP, B=DBA and C=HR and search fetchs the result in a Report.
Its some thing new, is it possible..:)
ok will be waiting for your reply..:D
Regards,
Suri
Edited by: user634694 on Feb 25, 2009 3:14 AMHi Varad,
am facing problems i wrote dynamic sql its working fine for 2 and 3 fields like (SAP+ORCL) and (SAP+ORCL+HRA) but for the single value like SAP the results are not comming properly. my code is
If (:P25_TEST Is not Null ) THEN
V_Sql := V_Sql||q'!
And
(multipleInstr1(R.Pillar,:P25_TEST)>0 )
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Pillar))>0 ) and
((multipleInstr1(R.Product_Line,:P25_TEST)>0 )
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Product_Line))>0) and
((multipleInstr1(R.Category,:P25_TEST)>0 ) or (R.Category is null)
or INSTR ( '+' || Upper(:P25_TEST) || '+', Upper(R.Category))>0 )
End If;
where multipleInstr1 is a function created to search results even its delimited by '+' it ignors '+' delimiter and
:p25_test is the popup iteam which takes values like SAP+ORCL+HRA or SAP+ORCL or SAP how its possible to get this results.
Its turning too complicated for cheking condetion for a single popup iteam, can we get any solution for this or not..
Hope will do respond
Thanks and Regards,
Suri -
OBIEE 11g Unable to browse multiple value hierarchy for analysis.
Hi All,
We are using OBIEE 11g Value Hierarchy feature to display GL Segment Hierarchies.
- We have set the hierarchies to be Ragged and Skipped Levels in the RPD Business Model.
- We have dragged the hierarchies from Business Model to Presentation Layer.
- When selecting the hierarchies during Analysis, the first hierarchy that is browsed appears correctly. The next hierarchy when browsed just hangs.
For example:
Step 1: Browse Hierarchy1 (Block). The values show correctly.
Step 2: Browse Hierarchy2 (Account). The hierarchy does not open with a blinking circle remaining forever.
Alternatively;
If we selected, Hierarchy 2(Account) first, the hierarchy shows correctly, but when selecting Hierarchy1 (Block) a blinking circle appears and remains for ever without opening the hierarchy.
The nqquery.log shows correct result. My suspicion is that the issue is on the front end presentation services/javascript side.
Is there any additional setup/configuration required to open multiple value hierarchies during analysis.
Thanks and Regards,
SasiI have a pretty good guess at the hanging problem, unforntunitly i have no solutions yet.
I having same type of issue, hangs when building filters on for 2nd or 3rd dim table.. I can see obiee fireing off the query to populate the dropdown by running
select distinct on and joining to the fact table and dimensions that the users usually have selecte prior to start creatinng the filters.
It is sort of like doing a intra dimension filter.. Sounds good but if user does not cut way down on number of fact rows by the time 2nd filtered column is selected the generated query to populate the drop down can run and run.
OBI SE Once and discoverer dd not do this, at least not out of the box. -
Passing multiple values for a single field in URL to call sap Transaction
Hi All,
I need to pass multiple values for a single field to SAP transaction .
means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
Let me know pls.
Regards,
Sirisha.R.S.Hi Satyajit,
I need to call a transaction with multiple values which gives me the report based on those values.
So I need to pass multiple values for a single parameter.
I hope u got it.
Regards,
Sirisha.R.S. -
Any way to pass Multiple Values for a single Label in the Parameter?
I have a Report that Contains 2 Parameters, @Customer & @Area. When trying to set up the Available Values for @Area, I'm having issues using multiple values for one Label, i.e. = "4006" Or "4610"
One of the Filters in the Report is an Operation number, which is the [OPERATION] field, which is setup as a filter on the Tablix referencing the @Area parameter.
PROBLEM: I cannot retrieve any data when trying to use the ‘Or’ Operator here. If I simply put “4006” or “4610” I retrieve data, but when trying to combine it returns no data.
Example, I need to allow a user to select ‘Chassis Incoming’, which would include data from Operations 4006 & 4610.
QUESTION:
Any way to pass Multiple Values for a single Label in the Parameter?
I realize the typical solution may be to use ‘Multi-Value’ selection, but in this case we want the User to select the Area and the multiple values for Filtering will be automatically determined for them. Otherwise, they are subject to not getting
it correct.
I have tried several different ways, such as =”4006” Or “4610”, =(“4006”, “4610”), = In(“4006”, “4610”), etc….
Note: We are using Report Builder 3.0Based on my experience, there's no way to 'intercept' the query that gets passed back to SQL Server, so a Split wouldn't work.
Try creating either a function or stored procedure using the code below (compliments to
http://www.dotnetspider.com/resources/4680-Parse-comma-separated-string-SQL.aspx) to parse the string:
CREATE FUNCTION dbo.Parse(@Array VARCHAR(1000), @Separator VARCHAR(10))
RETURNS @ResultTable TABLE (ParseValue VARCHAR(100))AS
BEGIN
DECLARE @SeparatorPosition INT
DECLARE @ArrayValue VARCHAR(1000)
SET @Array = @Array + @Separator
WHILE PATINDEX('%' + @Separator + '%' , @Array) <> 0
BEGIN
SELECT @SeparatorPosition = PATINDEX('%' + @Separator + '%', @Array)
SELECT @ArrayValue = LEFT(@Array, @SeparatorPosition - 1)
INSERT @ResultTable VALUES (CAST(@ArrayValue AS VARCHAR))
SELECT @Array = STUFF(@Array, 1, @SeparatorPosition, '')
END
RETURN
END
Once created you can do things like this:
SELECT * FROM Parse('John,Bill,David,Thomas', ',')
SELECT * FROM (SELECT 'John' AS TestName union select 'David' AS TestName) AS Main
WHERE TestName IN (SELECT ParseValue FROM dbo.Parse('John,Bill,David,Thomas', ','))
This is what your SQL query would probably look like:
SELECT OperationID, OperationName FROM dbo.Operations
WHERE AreaID IN (SELECT ParseValue FROM dbo.Parse(@Area, ','))
You may need to fiddle around with the Separator depending on whether SQL Server inserts a space between the comma and next value. -
Can I use multiple values for a rollup key on the same Endeca record?
We have a business need to to aggregate our records using different criteria, based on user navigation. We are thinking of using a rollup key with multiple values to help with the aggregation, but we are running into some issues.
Here is a made-up xample of what we want to do: assume we have a group of products and these products can be organized into groups using parent-child relationships. We would like to create an aggregate record for each parent, and we want the aggregate record for each parent to include all the children for the parent. To achieve this, we use a field called "parent_rec_spec" that holds the parent record spec and we set the same value on the field for the parent and its children. When we do rollup using the parent_rec_spec as the rollup key, we are able to see one aggregate record for each parent (with its children).
The previous setup worked perfectly for us so far. But now we are getting a business requirement that allows children nodes to be linked to multiple parents at the same time. We were hoping of using another dimension to limit the records based on user roles/characteristics , so that only applicable parents/children are displayed (for example, we can use "market" as an additional filtering property, and we decide to show all parents/children for "North America", while hiding the parents/children for other markets).
This caused an odd behavior when children are linked to multiple parents. For example, assume that SKUs A and B were linked to parents in "North America" and "Europe" at the same time, and assume that the user chose the "North America" market. The navigation state would eliminate the parents/children that are no in North America, and will also cause the parents/children that are labeled for North America to show up and be aggregated correctly. This however will lead to the creation of additional aggregate records for the A and B using the parent_rec_spec values that would have linked them to the Europe parents (even though the parents are hidden away).
Here is an example index file that we used to load the test data:
Update||1
Market||North America
Record Type||Product
Name||Parent 1
rec_spec||P1
parent_rec_spec||P1
EOR
Update||1
Market||Europe
Record Type||Product
Name||Parent 2
rec_spec||P2
parent_rec_spec||P2
EOR
Update||1
Market||North America
Record Type||Product
Name||Child A
rec_spec||A
parent_rec_spec||P1
EOR
Update||1
Market||North America
Market||Europe
Record Type||Product
Name||Child B
rec_spec||B
parent_rec_spec||P1
parent_rec_spec||P2
EOR
Update||1
Market||North America
Market||Europe
Record Type||Product
Name||Child C
rec_spec||C
parent_rec_spec||P1
parent_rec_spec||P2
EOR
Update||1
Market||Europe
Record Type||Product
Name||Child D
rec_spec||D
parent_rec_spec||P2
EOR
In this setup, we have parent P1 marked for North America with children A, B and C, and parent P2 marked for Europe with B, C and D as children. When we use North America as a filter in the navigation state, and parent_rec_spec as the rollup key, then we will see an aggregate record for P1, A, B and C. But we will also see an aggregate record for B and C by itself (presumably because of the other parent_rec_spec value on these records).
The actual data that we are testing with is more complicated, but the end result is similar. We also noticed that the additional aggregate records would not be created always, depending on the ordering of the records.
The question that I need help with is this: is there a way to fine tune the rollup logic so that it can only include certain records (in the example above, we can change the rec_spec from PA and PB to PA_North_America and PB_Europe and then we would be interested in rolling up using values that end with NorthAmerica).
By the way, we considered using separate rollup keys for each context (like parent_rec_spec_north_america and parent_rec_spec_europe), but the number of contexts is dynamic, and might grow large. So it is not easy for us to create the additional properties on the fly, and we are concerned about the possible large number of dimensions.http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?catid=2&threadid=1157850
-
SetSelectedValue for multiple values in List Box
Hi,
I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
Can anyone tell me how do i highlight multiple values in the List Box?
Scenario:
I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
Note: List Box is generated dynamically.
Thanks,
Naresh VsetSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ? -
How to store multiple values in a coloum for a particaular row?
By mistake i posted this in abap general forum but i think this question should belong to Data Dictionary section
I want to design a table where we can store a table where we can save multiple values of column for a particular row. how to achieve this ? thanks in advance.
Example
id name val1 val2
001 abc 1 a
2 b
3 d
4 eyou can use deep structures to achieve this.
or may be a simpilar approach based on the example that you have mentioned will be to create a table with all the primary keys that you want with an additional key field which will behave as a counter. some standard table do you this technique eg: PLMK where zaehl is a counter field which part of the kley fields.
cheers, Prabhakaran -
How to passing multiple values for a parameter of discoverer(url parameters
Hi All,
I am trying to pass multiple values for a parameter of disco report. I am trying to include my url for discoverer viewer report. the values has the following
'jeff,mark'
'sfophiee,angela'
Thanks and Regards
VenkatHello Venkat,
I know there are some problems with 10.1.2.0.2, maybe if you haven't done yet you can try with 10.1.2.2, assuming this version should be working for multiple parameter values :
OracleAS Discoverer 10.1.2.2 is installed with the following patch :
Patch 4960210 PLACEHOLDER BUG FOR AS/DS 10G R2 PATCH SET 2 10.1.2.2
So, once installed you can try adding your parameter as param_<parameter_name>='sfophiee,angela'
Hope this helps, otherwise feel free to log a Service Request to Support.
Best Regards,
Gianluca
Maybe you are looking for
-
Upload to Google Drive ignores my "Do not OCR" setting
I love the HP AiO app on my iPhone. I use it to scan all my snailmail, which helps a lot with my personal administration. However, when I scan a document to PDF and then upload that PDF to Google Drive, I get a file with a .pdf.gdoc extension, which
-
How do I use multiple GPIB cards in one computer?
I have two GPIB cards installed in my computer. One has aprimary address 0 and the other is 1. The card with adress 0 works fine but when I try to communicate with some instrument via the second card, the instructions are not carried out. However MAX
-
Hi, One of the G5 Macs that I look after had an issue with its filesystem, it brought the system down and so I had to start over again. To make things easier I cloned the disc to an external firewire drive, reformatted the computer's drive and reinst
-
On awakening iMac after sleep, I get a pop up saying "The disc was not ejected properly....." etc. Presumably this was a disc of photos or a slideshow I had put onto a disc at some time past. This has been going on for months. I have inserted and ej
-
Hello ladies & gentlemen, I have the problem that my own podcast have no picture in Itunes store... I tagged a picture to the mp3 data...but not when I registered this podcast. is that the problem? So I should delete the podcast and register new? Lin