ALV Grid - more than six values in a dropdown-field?
Hi,
I have realised an alv grid with several fields that contain a dropdown-field as valuehelp.
Although the dropdown-table has e.g. 20 entries there are shown only six entries on the alv grid. The user has to scroll through the values to choose another one. Is it possible to increase the number of shown entries of a dropdown-field on an alv grid?
Thanks for help.
Regards,
Sven Keller
Hi
you can specify the output length of a column in the fieldcatalog by specifying this filed in your fieldcatalog slis_fieldcat-outputlen .
And also one parameter i.e. slis_layout_alv-colwidth_optimize ,if you put this parameter as 'X' then it will optimize the column width depending on the content of your column.
You need to set the OUTPUTLEN field in the feildcat, the field catalog is then passed to the ALV function call, or method call.
Similar Messages
-
Can we give more than one value for an Authorization field in Auth-Check.
Hi all,
Can we give more than one value for an Authorization field in Auth-Check.
Ex: AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
ID 'ACTVT' FIELD '02'
ID 'CUSTTYPE' FIELD <Value 1> <Value 2> <Value 3>.
IF SY-SUBRC 0.
MESSAGE E...
ENDIF.
If yes, please help me with exact syntax.
Think it will be like
ID 'CUSTTYPE' FIELD: <Value 1>, <Value 2>, <Value 3>.Hi,
yes we can give more than one field.
program an AUTHORITY-CHECK.
AUTHORITY-CHECK OBJECT <authorization object>
ID <authority field 1> FIELD <field value 1>.
ID <authority field 2> FIELD <field value 2>.
ID <authority-field n> FIELD <field value n>.
The OBJECT parameter specifies the authorization object.
The ID parameter specifies an authorization field (in the authorization object).
The FIELD parameter specifies a value for the authorization field.
The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
please reward points, if it is useful.
satish. -
More than six Std. Value Key
Greetings,........
how to define more than six value under one standered valu key.Hi,
Routing
0010 Workcenter (XYZ) Control key PP01
0020 Dummy Work Center (XYZDummy) Control key PP01
Now for the XYZ workcenter you will have 6 standard values and assigned to to the first Operation.
Remaining Standard values say 7, 8 and 9 will be assigned to the Std. Value key for workcenter XYZ Dummy.
Now create Order with this Routing, confirm both the operations Values will be captured as intended.
Hope this clarifies..
Regards,
Siva -
Subquery returned more than one value
Hi,
I have this statement which has been working fine - not I get a 'Subquery returned more than one value" error:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
(SELECT DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) from empcomp EC WHERE EC.EecEEID = E.EECEEID) as 'Yrs of Serv'
FROM
EmpPers
JOIN EmpComp E
ON E.eecEEID = eepEEID
JOIN Company
ON eecCoID = cmpCoID
WHERE
EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
--AND e2.eecEmplStatus <> 'A')-- changed to <> ...this WAS/is to filter out anyone that was termed then re-hired
--AND E.EecTermReason NOT IN ('I01','I02','I03','I14','I22','V05','V07','V09','V12','V22','V13', 'TRO')
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
--AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),0)
-- AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,('12/30/2007')),6)
-- AND E.eecDateOfTermination IS NOT NULL ))
--added below per Paul Cottle to exclude employeess less than four years
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
qeqwCheck this, if it works:
SELECT
'WAS3' AS 'Rec ID',
E.EecEEID AS 'Emp ID',
eepNameFirst AS 'First Name',
eepNameLast AS 'Last Name',
EecDateOfOriginalHire AS 'Service Date',
DATEDIFF(YEAR, EecDateOfOriginalHire, getdate()) as 'Yrs of Serv'
FROM EmpPers
JOIN EmpComp E ON E.eecEEID = eepEEID
JOIN Company ON eecCoID = cmpCoID
WHERE EecDateOfTermination IS NOT NULL
AND EXISTS
(SELECT 1
FROM EmpComp e2
WHERE e2.EecEEID = E.EecEEID
AND E.eecDateOfTermination
IN (SELECT (EC.eecDateOfTermination)
FROM EMPCOMP EC
WHERE EC.EecEEID = E.EECEEID
AND EC.eecDateOfTermination IS NOT NULL
AND eC.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND EC.eecDateOfTermination <=DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)
AND e.eecDateOfTermination >= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),0)
AND E.eecDateOfTermination <= DATEADD(wk,DATEDIFF(wk,0,GETDATE()),6)))
AND E.eecdateoforiginalhire >=dateadd(year,-4, CURRENT_TIMESTAMP)
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful". -
Select more than one value at a time from an LOV?
Is it possible to configure an LOV-based text field so more than one value at a time can be chosen from the drop-down LOV list? This is a user requirement for specifying multiple values in an SQL WHERE clause.
Rather several select fields because single returned value is a functional limitation of <select>.
-
URGENT: passing more than one value at the same parameter
Hello friends at www.oracle.com,
if I have a Forms program that sends some parameters to a Report, how can I send more than one value at the same parameter that is being sent?
For example: the Reports parameter P_CODE should receive (from Forms) and print the values 1, 2, 3 and 4, each one in a different page. But, only 4 is being printed, and these values aren't saved at a database, so I have to pass the other three values too. How can I solve this problem?
This is quite urgent and I need help on this.
Best regards,
Franklin Gongalves Jr.
[email protected]Thanks to Oracle Reports Team for answering! I'm sure this will work.
Best regards,
Franklin Gongalves Jr.
[email protected]
hello,
on the forms side, you will have to build the list for this parameter by e.g. string concat.
on the reports side you will have to "decode" this parameter according to how you built it in forms.
e.g. if you pass the list like this "10~20~30" you might use a where-clause in the query
... where instr(myCol, :myParam) >0
regards,
the oracle reports team --pw -
How to pass more than one value for one column in procedure
hi
select id, name from col_tab where dept_name in ('ECE','CIVIL');
when i was running this it is working well.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
BEGIN
OPEN ans FOR
select id,name from col_tab where dept_name in char_in ;
END str;
END pack_str;
the package was created.
my doubt is
1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
2. when i was storing the value in string like val = 'ECE,CIVIL' ,
how to get the id,name for ECE and CIVIL.
plz help meHi Rebekh ,
I am recreating your packages for the desired output.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
lv_t varchar2(200);
BEGIN
lv_t := REPLACE(char_in,',',''',''');
lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
OPEN ans FOR lv_t;
END str;
END pack_str;
Note:-
Input Parameter char_in is a comma seperated value for dept_name
-Debamalya -
More than one Value for a Category
Hello,
it is possible to assign more than one value of a category to a document by assigning the category once more. Is it a bug or a feature?
If it is not a bug, I wonder why it is not possible to search for a document with two values of one category set? And why isn't it possible to combine category values with "OR" in my search query?
Best regards,
ChristianOnly one video role, only one audio roll, per clip. Only one as these are "Media Stems", and when you work with Stems, only one roll per asset video, one per asset audio.
-
Select more than one value in a query
Hi,
since V7.0 we have a problem in the selection screen to select more than one value in a easy way.
How can I select e.g. 20 BuisinessPartner with one selection?
To create a variant isn't possible, because every user needs different values.
ThanksHi,
Go for "Selection Options " instead of Multiple single values ..
With this option u can get single values, multiple single values & ranges also..
Can u please explain clearly regarding that function of whole excel sheet into a variable??
Regards,
Vijay
Edited by: vijaya kumar on May 22, 2009 6:15 PM -
Downpayment should not be more than PO Value
Dear All
Down payment against purchase order
Downpayment should not be more than PO Value
here i want control material wise taht mean some of the material shouble be allow the exces payment and some of the material should not be allow the exces amount. againt purchase order
Regards
NavapHi,
For your you need to write Validation in OB28 and take help of your ABAPEr, the logic will be:
1. Create Set through GS01Table MARAField MATNR
2. Pre-Requisite
BKPF-BLART = 'Down payment Document"
Check
Give Exit Name such as UF101 and in this exit you can ask your ABAper to write code that
if Material on PO is in Set (created in Step 1) and Advance Amount > PO Amount then post DP
Message
Give your own message number
Hope this helps!
Br,Vivek -
Power view display more than 500 values in a field
From my research, it looks like the limit of values in a Power View filter is 500. does anyone if this is configurable to increase (which
I am doubting based on Microsoft’s website as I’ve copied below). If it is not configurable and we cannot display more than 500 values when filtering, then what should be done
https://technet.microsoft.com/en-us/library/hh231514%28v=sql.110%29.aspxYou could always do the concatenation on the client. ie: "select action1, action2 from tableX" and then create a boilerplate object with text that references both of these columns. (eg: "&<action1> &<action2>"). This should give you the concatenation you're after.
Another alternative is to return a "long" column instead. The 4000 is probably down to the varchar datatype restriction. -
Display more than 15 Values in Chart
Hi,
I am pretty new to apex, and while this looks like a very basic problem, I couldn't find an answer to it on the web:
How do I display more than 15 value in a simple 'Horizontal 2D Column' chart?
I know that the SQL-Query returns 26 rows, but only the first 15 are displayed in the graph.
Thanks,
MartinHi Martin,
have a look at the page with the SQL query. There is a field labeled "Data Point Limit" or "Maximum Rows"
which is defaulted to 15. Just increase this number ...
Does this help ...
-Carsten
Infoseite der deutschsprachigen Application Express Community
http://www.oracle.com/global/de/community/index.html
BLOG: SQL und PL/SQL: Tipps, Tricks & Best Practice
http://sql-plsql-de.blogspot.com -
Not able to select more than two values
Based on picklist.fmb, I created a list item in a form.
I am able select many values using SHIFT but I am not able to pick more than two values using CTRL key.
Anything I did mistake or picklist won't support picking more than two values using CTRL?
Also I am not able to get the scroll bar attaching to this list item.
Please advise.
Thank you,
Prasadhi,
You have to set the LINES property of the table control In the PBO of your screen, to the number of entries in the internal table.
data: lv_line type i.
DESCRIBE TABLE gt_table LINES lv_line.
table_control-lines = lv_line + 1.
or else
You can do two thing in table control properties check horizontal and vertical scroll options plus in PBO you can based on number of lines in internal table assign it to TC_ABC-LINES if no lines are there then add by default 20..10.. any number of lines as you want. -
Best way to return more than 1 value in a function?
Hi all,
What's the best way to return more than 1 value from a function? returning a cursor? varray? objects? etc? I thought of a cursor first, but i was hesitant since i am not sure if the cursor will be automatically closed when you return a cursor(open cursor no longer used is bad). Example:
BEGIN
OPEN c_temp_cursor;
RETURN c_temp_cursor;
END;
With above example, c_temp_cursor is remained open. Or is it automatically closed once it exits from the function? Need some suggestions and expert advice.
Thanks.
Note: Function is to be used to return and not a procedure (This is a requirement. Can't explain the details on why).
Edited by: dongzky on Jul 3, 2010 4:17 PM
typo: "ir exists" to "it exits" (in bold)First create your pl/sql table type
CREATE OR REPLACE TYPE pmc_tab AS TABLE OF NUMBER;
Then a table:-
CREATE TABLE v_stats_daily(start_date date, field1 number, field2 number, field3 number);
Some insert into the table so we've got test data...
insert into v_stats_daily values('08-OCT-2003',10,20,30);
insert into v_stats_daily values('08-OCT-2003',40,50,60);
insert into v_stats_daily values('08-OCT-2003',70,80,90);
Then create your function:-
CREATE OR REPLACE FUNCTION PMC_STATS
(pStatDate Date) RETURN pmc_tab IS
MyArray pmc_tab;
vstat1 NUMBER;
vstat2 NUMBER;
vstat3 NUMBER;
BEGIN
MyArray := pmc_tab();
select sum(Field1), sum(field2),sum(field3)
into vstat1, vstat2,vstat3
from v_stats_daily
where Start_date = pStatDate;
MyArray.extend;
MyArray(1) := vstat1;
MyArray.extend;
MyArray(2) := vstat2;
MyArray.extend;
MyArray(3) := vstat3;
RETURN MyArray;
END;
In SQL*Plus:-
SQL>set serverout on
Then a lump of PL/SQL to run your function:-
DECLARE
MyDate DATE;
MyArray pmc_tab;
i NUMBER;
numOut NUMBER;
BEGIN
MyArray := pmc_stats('08-OCT-2003');
dbms_output.put_line('Table count: '||to_char(MyArray.count));
for i in 1..MyArray.last LOOP
numOut := MyArray(i);
--if numOut is null then
dbms_output.put_line('Value: '||to_char(numOut));
--end if;
END LOOP;
END;
Your output will look like:-
Table count: 3
Value: 120
Value: 150
Value: 180
Hope this helps, -
Problems with query with more than 20 values in the select clause
I have a region based on a function returning a SQL query. It needs to have more than 20 values in the select clause. When I run the page I get a no data found error in the region. I managed to reproduce this behavior with just the following as the select returned by the function:
select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21
from dual
I am running the 1.3.9.00.15 release of Marvel on 9.2.0.2 of the db on Solaris.Hello Raju,
I will email you the connection settings when I return to the office.
One thing I should have mentioned: The sql string is returned from a package in the db, so the query region text I originally posted isn't quite correct.
it is something like:
declare
begin
return my_pkg.my_fnc;
end;
the stored package is nothing more than:
package my_pks is
funtion my_fnc(i_test_param in varchar2) is
begin
return 'select 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20, 21 from dual';
end;
end;
Sorry for the inaccurate info in the first post, but I am away from the server in question right now.
Maybe you are looking for
-
ORA-01722: Invalid number when importing .csv file
Hi, I did not find any information regarding my specific problem until now. I try to import a *.csv file containing id, double, double, double, double, double (e.g. as a sample line "id_1, 674,6703459157907, 4212,205538937771, 674,6703459158016, 5561
-
How to execute a external command ?
Hi all , I would like to transfer the oracle data to sql2000 , my idea is : - 1. write a external java program ( call trans.jar ) on oracle db server machine ( call sql2000 server to invoke the dtsrun.exe ) - 2. create a
-
Designer 6.0 Client Installation
Prior to the installation of Designer on my workstation, I had Forms60 working fine. After I installed Designer and rebooted my machine, it could not find WIN.COM; the autoexec.bat was modified by the Installer. I can't execute any of my *.fmx, it ju
-
Can't watch videos or listen to radio
I just bought this macbook and i'm having some trouble whenever i try to play videos on the internet or listen to radio stations/programs. eg: won't let me watch highlights on the fifa world cup website or listen to audio taped interviews. If anyone
-
Hi, my Macbook pro is not switching on please help..
HI, My Mac is not responding to anything not even when power conected it suppose to be lit-up when conected to power now its not showing any thing and ON/Off switch is also not responding.. please can any one help?