Bringing user defined parameter in std selction scrn frame in PNP LDB
Hi,
I have created a report using PNP logical DB. I have added my own parameter along with the standard selection parameters provided by LDB. The issue is that, the parameter is getting displayed at the bottom of the selection screen.
Is it possible to bring my own parameter inside the standard selection screen frame. The std selection consists of pers no, employment status, company code, etc.
Hi ,
It is not possible for you to bring your fields inbetween the standard selection screen fields, in this case you need to create you own report catagory, or you need to design your screen by supressing the standardone.
Regards,
Venkat Appikonda.
Similar Messages
-
How to send a user defined parameter to a web form?
Hi,
I4m looking for a solution how to send a user defined parameter to a web form when I start the form from a html-page.
I think that it should work to add the parameter to the URL.
Example: I added myparam=myvalue at the end oft the URL
http://my.server.com:7777/f60cgi?form=myform.fmx&userid=scott/tiger@mydb&otherparams=useSDI=NO&lookAndFeel=generic&colorScheme=teal&myparam=myvalue
How can I fetch the parameter myparam in forms?You have the user the otherParams parameter, which you can specify in the formsweb.cfg file, or override on the url. e.g. http://myhost/servlet/f690servlet?config=myApp&otherParams=myParam=myValue
In the Forms Builder, in the Navigator window, there is a node called Parameters. Create one in there, and then you can refer to it like a block variable. e.g. if :myparam = 'myvalue' then...
At runtime, Forms will match up any parameters on the command with parameters defined in your form, and populate them for you. You don't have to do anything.
Regards,
Robin Zimmermann
Forms Product Management -
Hi Amol Donger, Thank you for the reply , we have tryed the way you explained, its works for filters but for experssion transformation it is not working . Thanks & Regards,Shalini
Hi all, How can we use user defined parameter name in Informatica cloud Mapping Designer Experssion Transformation , not in datasynchronization. Thanks & Regards,Shalini
-
SAP B1 Query User defined parameter (checkbox)
Hi,
Is it possible in a query to add user defined parameters?
Example, I want to run a query from OITM table with Item Properties as parameter. But I want the users to be able to choose one or more properties as parameters in the query. I would like to use AND as a clause if more than one Item Property is choosed.
Query example:
Select ItemCode, ItemName, ItmsGrpCod
FROM OITM
WHERE ItmsGrpCod = 100 AND (Here I would like to add a parameter where user can choose one or more of the 64 different Item Properties. I.e. a checkbox would be perfect!)
Regards
Kjetil SandvikHi,
it is impossible in the query generator.
here is the sample:
The option is yes or no instead of checkbox.
You can use SSRS that possibly support checkbox
Regards, -
How can give the user defined parameter in alv report
Hi experts
I have created one alv report for Sale Order statement.In this alv report have different input parameters
My problem is in this alv i have two input field Sales Orgaization and Plant.When I set this parameter value in user details it snot affected in my alv report.But it is affected in the standard alv report.How can
i rectify this
Regards
Manojhi
i think don't use set parameter value, use there SUBMIT & RETURN statement and write in USER_COMMAND function.
FORM USER_COMMAND USING P_UCOMM LIKE SY-UCOMM
P_SELFIELD TYPE SLIS_SELFIELD.
SUBMIT program name AND RETURN
WITH <selection-screen field> IN <selection-screen field>
WITH WERKS IN WERKS .
ENDFORM .
Regards,
Abhi -
User defined query parameter in query generator
Hi All,
i am using query generator in SAP to print some records of user defined query. precisely, the details about sales employees are to be printed. now the columns which exist in the database (ie. sales employee code, name, cardcode) etc can be given as a parameter like [%0] and [%1]. but some user defined parameter such as sales commission does not show as such parameter. i want one column as
select T0.doctotal, (T0.doctotal * [%0]) / 100 as brokerage from OINV T0
--where [%0] is some commission percentage that the user will give while running this query
This query gives correct results but it gives the parameter name as 'doctotal' while showing. any idea as to how to handle it properly in SAP?
thanks in advance,
Binita
Edited by: Binita Joshi on Sep 8, 2009 3:35 PMI sometimes defined a UDT only for getting the appropriate parameter entering window. The table has no data; I used it only for its field names in this window.
(The parameter request can be placed inside a comment and the entered value is used setting an SQL variable like this:
declare @d datetime
/*select t.createdate from ordr t where t.createdate=[%0]*/
set @d=[%0]
This SQL variable can be used later in the real query.) -
User defined query parameter in QLD
Hi All,
i am using query generator in SAP to print some records of user defined query. precisely, the details about sales employees are to be printed. now the columns which exist in the database (ie. sales employee code, name, cardcode) etc can be given as a parameter like %0 and %1. but some user defined parameter such as sales commission does not show as such parameter. i want one column as
select T0.doctotal, (T0.doctotal * [%0]) / 100 as brokerage from OINV T0
--where [%0] is some commission percentage that the user will give while running this query
This query gives correct results but it gives the parameter name as 'doctotal' while showing. also, when I join 4-5 tables and union, it totally misinterprets the paramater. any idea as to how to handle it properly in SAP?
thanks in advance,
BinitaHi
I know it list many value but u can try by this way....
declare @a numeric(3)
set @a = (select top 100 docnum from oinv T1 where T1.[docnum]= [%0])
select T0.doctotal, (T0.doctotal * @a) / 100 as brokerage from OINV T0
Thanks
Kevin -
Passing user defined parameters in oracle reports thru command line
Hi All
We are currently using Reports 6i with Oracle 10g 10.2.0.4.0
I would like to know that is it possible to pass user defined parameters values while calling report from command line.
For Example: I am using following coding to call report from command line.
for /f "tokens=1-3 delims=/ " %%a in ('date /t mm/dd/yyyy -1') do (
set mm=%%b
set dd=%%a
set yyyy=%%c)
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%.pdf desformat=PDF BACKGROUND=NO BATCH=YES
The report contains some user defined parameter which is using in where condition of reqport query.
Select * from banks
where id = :Bank_ID
Now I want to Pass value for :Bank_Id from command line (like we pass parameter list while calling report with run_product), how it is possible?
Thanks
HassanHi guys
Fortunately I am able to perform the required task as I just added the report parameter field as follows:
rwrun60 report=c:\reports\banks.rdf userid=express/test@test_rs2 destype=FILE desname=c:\reports\banks%dd%%mm%%yyyy%%h%%mi%%ss%%ts%.pdf desformat=PDF BACKGROUND=NO BATCH=YES ERRFILE=c:\reports\error.log LOGFILE=c:\reports\joblog.log bank_id='MCB'
bank_id is the report parameter using in where clause.
Regards,
Hassan -
How do i declare a user defined table type sproc parameter as a local variable?
I have a procedure that uses a user defined table type.
I am trying to redeclare the @accountList parameter into a local variable but it's not working and says that i must declare the scalar variable @accountList.this is the line that is having the issue: must declare the scalar variable @accountListSET @local_accountList = @accountListALTER PROCEDURE [dbo].[sp_DynamicNumberVisits] @accountList AS integer_list_tbltype READONLY
,@startDate NVARCHAR(50)
,@endDate NVARCHAR(50)
AS
BEGIN
DECLARE @local_accountList AS integer_list_tbltype
DECLARE @local_startDate AS NVARCHAR(50)
DECLARE @local_endDate AS NVARCHAR(50)
SET @local_accountList = @accountList
SET @local_startDate = @startDate
SET @local_endDate = @endDate
CREATE TYPE [dbo].[integer_list_tbltype] AS TABLE(
[n] [int] NOT NULL,
PRIMARY KEY CLUSTERED
[n] ASC
)WITH (IGNORE_DUP_KEY = OFF)
GOWhy are you asking how to be an awful SQL programmer?? Your whole approach to SQL is wrong.
We have a DATE data type so your insanely long NVARCHAR(50) of Chinese Unicode strings is absurd. Perhaps you can post your careful research on this? Can you post one example of a fifty character date in any language?
The use of the "sp_" prefix has special meaning in T-SQL dialect. Good SQL programmers do not use CREATE TYPE for anything. It is dialect and useless. It is how OO programmers fake it in SQL.
The design flaw of using a "tbl-" prefix on town names is called "tibbling" and we laugh at it.
There are no lists in RDBMS; all values are shown as scalar values. First Normal Form (1NF)? This looks like a set, which would have a name.
In any -- repeat any -- declarative programming language, we do not use local variables. You have done nothing right at any level. You need more help than forum kludges.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
Calling a stored proc that has a parameter of a user-defined (array) type
Hi,
Hope someone can help me on this, because I am really struggling...
From a c-program, I am calling stored procedures using the OCI Interface. Everything is OK, when using the standard types (integer, string, date), but I am encountering problems when one of the parameters is of a type that is defined in the database as an array. My application calls multiple array-type parameters in one call, but for the sake of simplicity, I created a test application to only use one.
The following call is working (but it needs to be called using the OCI functions):
BEGIN
p_test_table_num (pin_num1 => T_ARRAY_EH_DEP(1,2,3));
END;
My first step was to have the following combination:
statement: begin p_test_table_num(:pin_num1);end;
parameter: pin_num1
value: t_array_eh_dep(1,2,3)
That lead to the error (when executing the statement): wrong number or types of arguments
Second idea (after a lot of browsing):
statement: begin p_test_table_num(t_array_eh_dep(:pin_num1));end;
parameter: pin_num1
value: 1,2,3
This leads to the error: numeric or value error: number precision too large.
My bind function call looks like:
if (res = OCIBindByName(stmthp, &bndArray[parCount], errhp, (text *) curPar,
-1, (dvoid *) curVal, (sb4) sizeof(curVal), SQLT_NUM, (dvoid *) 0,
(ub2 *) 0, (ub2) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT) != OCI_SUCCESS){
checkerr(errhp, "OCIBindByName", res);
OCIHandleFree(stmthp, OCI_HTYPE_STMT);
return -1;
(in this function curPar is the name of the parameter and curVal contains the value)
I also investigated the BindArrayOfStruct, but I concluded that this is to execute a stored procedure multiple times using different values for the parameters, and that is not what I want.
I really hope someone can give me a direction to look in. I also need to call string and date arrays in the same way...
Thanks
MargitFor those who are interested, I found the solution myself...
To use any user-defined type, you need to perform the following steps:
1. OCIBindByPos or OCIBindByName as you would bind a normal parameter
2. OCITypeByName to get a reference to the type definition in Oracle
3. OCIObjectNew to create a reference to the array (OCI_TYPECODE_VARRAY)
4. Assign a value to the column, for instance use OCIStringAssignText, OCINumberFromInt, OCIDateFromText
5. OCICollAppend ( to add the value from step 4 to collection)
6. OCIBindObject
7. OCIStmtExecute
8. OCITransCommit
Example:
if (res = OCIBindByName(stmthp, &bndArray[parCount], errhp, (text *) curPar,
-1, (dvoid *) curVal, (sb4) sizeof(curVal), SQLT_NTY, (dvoid *) 0,
(ub2 *) 0, (ub2) 0, (ub4) 0, (ub4 *) 0, OCI_DEFAULT) != OCI_SUCCESS){
checkerr(errhp, "OCIBindByName", res);
OCIHandleFree(stmthp, OCI_HTYPE_STMT);
return -1;
if (res = OCITypeByName(envhp, errhp, svchp,
(CONST text *) currentUserName, (ub4) strlen((CONST char *) currentUserName), /*schema*/
(CONST text *) "T_ARRAY_EH_DEP", (ub4) strlen((CONST char *) "T_ARRAY_EH_DEP"), /* type */
(CONST text *) 0, (ub4) 0, OCI_DURATION_SESSION, OCI_TYPEGET_HEADER,
&type_array_eh_dep) != OCI_SUCCESS){
checkerr(errhp, "OCITypeByName", res);
OCIHandleFree(stmthp, OCI_HTYPE_STMT);
return -1;
OCIArray* eh_dep_array = (OCIArray*)0;
OCINumber eh_dep_num;
OCIObjectNew(envhp, errhp, svchp, OCI_TYPECODE_VARRAY, type_array_eh_dep,
(dvoid*) 0, OCI_DURATION_DEFAULT, TRUE, (dvoid**)&eh_dep_array);
/* get the values from the incoming array */
curArrayItem = SOM_AtrValGetStrList(arrayValuesListMem,
arrayValuesListAtr, arrayValueCount);
do {
if (STR_Eq(curArrayItem, "NULL")){
OCICollAppend(envhp, errhp, (CONST dvoid *)0, &null_ind,
(OCIArray*) eh_dep_array);
else{
tmpInt = atoi(curArrayItem);
OCINumberFromInt(errhp, &tmpInt, sizeof(int), OCI_NUMBER_SIGNED,
&eh_dep_num);
OCICollAppend(envhp, errhp, (CONST dvoid *)&eh_dep_num, (CONST dvoid *) 0,
(OCIArray*) eh_dep_array);
arrayValueCount = arrayValueCount + 1;
curArrayItem = SOM_AtrValGetStrList(arrayValuesListMem,
arrayValuesListAtr, arrayValueCount);
printf( "curArrayItem = %s\n", curArrayItem );
} while (STR_Eq(curArrayItem, "%%%") == falseCN);
arrayValueCount = arrayValueCount + 1; /* skip the %%% */
if (res = OCIBindObject(bndArray[parCount], errhp,
(OCIType *)type_array_eh_dep, (dvoid **) &eh_dep_array,
(ub4 *) 0, (dvoid **) 0, (ub4 *) 0) != OCI_SUCCESS){
checkerr(errhp, "OCIBindObject", res);
OCIHandleFree(stmthp, OCI_HTYPE_STMT);
return -1;
} -
CANT execute query with parameter on user defined tables using query genera
Dear All,
I have problem when executing query with parameter on user defined tables using query generator.
It seems SBO cannot accept parameter to query user defined tables.
I've tried these:
SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = [%0] --- this FAIL
I try to pass the value directly without using parameter and It works
SELECT T0.U_Status FROM [@ST_PR_H] T0 WHERE T0.U_Status = 2 --- this SUCCESS
This one works
SELECT * FROM RDOC T0 WHERE T0.width =[%0] --- this SUCCESS
and this one works too
SELECT * FROM RDOC T0 WHERE T0.width = 595 --- this SUCCESS
Is there anyone can help me ....???
Thanks,
AlfaI generated this code using query wizard ....
SELECT T0.[U_Status] AS 'Document Status' FROM [dbo].[@ST_PR_H] T0 WHERE T0.[U_Status] = (N'2' )
and replaced the (N'2' ) with [%0]
SELECT T0.[U_Status] AS 'Document Status' FROM [dbo].[@ST_PR_H] T0 WHERE T0.[U_Status] = [%0]
and It worked ......
Thanks 4 all ..... -
How to call user define data type as data type for concurrent parameter
Hi All,
i find some difficulty while creating the concurrent program.
i.e.
i have one of the parameter of table type i.e. user define data type at PLSql program
now i need to register same PLSQL program into oracle applications as concurrent program
but while i am creating Parameters for concurrent program
How could i define that user define data type at database level in oracle applications using 'Value set' ?
any one save me from this Problem
thanks and Regards,
sai krishna@cavaya.Don't think this can be done..
One way I can think of is to wrap your PL/SQL program under another procedure/package that can accept "normal" parameter,and use/register this wrapper instead of your original pl/sql program.
HTH -
How to set user defined type ( SDO_GEOMETRY ) in binded parameter to NULL
I am trying to send a null sdo_geometry object as parameter to a stored procedure by a call to setNull( paramIndex, oracle::occi::OCCIPOBJECT ) on the statement object, but I am getting the following error: "ORA-24360: Type Descriptor Object not specified for Object Bind/Define".
Does anybody succeded to send a NULL user defined object to a stored procedure ?
Many thanks,
AndreiThis is a problem fixed in 10.2. As a workaround you can try :-
sdo_geometry *obj = new sdo_geometry();
obj->setNull();
stmt->setObject(col,obj);
Thanks,
Shankar -
Parameter process flow user defined process
Hello
i try to start Oracle Import imp.exe on a user-defined process. If I type in the parameters as a literal value, i.e. ?USERID=.../... PARFILE=d:/import/import.par?
it works well, also if i replace this value by a bind variable. But when I add the userid setting to the value of the parameter, it can't be read properly as I get the error "invalid userid/password".
Any ideas?I mistyped sth, now it works
-
HI ALL
JUST WANT TO KNOW CAN WE HANDLE USER DEFINED EVENTS BY SETTING USER DEFINED PF -STATUS IN ALV
FOR EG :
call function 'REUSE_ALV_LIST_DISPLAY'
exporting
i_callback_program = gd_repid
I_CALLBACK_PF_STATUS_SET = K_STATUS
I_CALLBACK_PF_STATUS_SET = 'ZTEST1'
i_callback_top_of_page = 'TOP-OF-PAGE' "see FORM
i_callback_u ser_command = 'USER_COMMAND'
I_CALLBACK_USER_COMMAND = K_USER_COMMAND
IS_LAYOUT = GD_LAYOUT
IT_SPECIAL_GROUPS = KR_SP_GROUP
i_grid_title = outtext
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
it_special_groups = gd_tabgroup
IT_EVENTS = GT_XEVENTS
i_save = 'X'
IS_VARIANT = K_VARIANT
IT_EVENTS = KR_EVENTS[]
is_variant = z_template
tables
t_outtab = it_ekko
exceptions
program_error = 1
others = 2.
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
endform. " DISPLAY_ALV_REPORT
I HAVE MY OWN PF-STATUS IN WHICH I HAVE CREATED 1 BUTTON WHEN I GET THE OUT PUT AND CLICK ON THAT BUTTON THAN IT GOES TO STANDARD PROGRAM ....I WANT WHEN IT CLICK ON THAT BUTTON IT GOES TO MY Z PROGRAM HOW CAN I DO THAT ...
IF POSSIBLE PLZ PROVIDE CODE OR SOME EXAMPLE .
THANKS
TARANU can have button on application toolbar.
You just have to use the new pf status in your report program.
You should copy the 'STANDARD' GUI status from program SAPLKKBL using transaction SE90 >Programming SubObjects> Gui Status.
Execute this transaction to get to next screen. select status using checkbox. click on GUI Status --> Copy.
Enter your Z program name and the name you what for this status - you can keep it as 'STANDARD' to be simple.
Then you can edit the new status to add or delete buttons. This will also bring in the standard SAP ALV functionality.
Have a look at below code for using the new status.
TYPE-POOLS: slis.
DATA: i_qmel LIKE qmel OCCURS 0.
data v_repid type repid.
SELECT * FROM qmel INTO TABLE i_qmel.
v_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = v_repid
<b>I_CALLBACK_PF_STATUS_SET = 'SET_PF_STATUS'</b>
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
i_structure_name = 'QMEL'
TABLES
t_outtab = i_qmel
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
<b>form set_pf_status using rt_extab type slis_t_extab.
set pf-status 'TEST'.
endform.</b>
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
data lv_ucomm type sy-ucomm.
lv_ucomm
= sy-ucomm.
CASE lv_ucomm.
WHEN 'BUTTON'. "Double Click line Item
**Write ur functinality here
endcase.
endform.
Also have a look at below links.
http://www.sap-basis-abap.com/abap/add-button-to-alv-toolbar-with-reuse-alv-list-display.htm
ALV report
I hope it helps.
Best Regards,
Vibha
*Please mark all the helpful answers
Maybe you are looking for
-
After a reinstall of Mac OSX 10.6.8 on my iMac, several directories were "locked" and unavailable to me. Can someone tell me how to unlock my Downloads, Google Drive, Dropbox and movies? Thanks for your help!
-
my iphone 4s isnt coming up in my computer devises or in my itunes, yet is charging when connected to computer??
-
Will Audio Update 1.0 work with MacPro2,1?
I have a MacPro2,1 (Clovertown Processors) dual 3 Ghz Quad Core Xeon X5365's that runs hot everytime I run audio apps including iTunes. Also heats up when running videos (You Tube). The specs for audio update indicate that it is specific to early 200
-
Hi, just bought my third generation ipod three weeks ago and now it doesn't react - whatever I do (already tried this on/off, hold for 10 seconds and so on stuff). It is just on all the time but not reacting at all! I even connected it to my macbook
-
How do I find my iPhone using my mac
I'm not sure where to login or go.. to locate the iphone thanks Joe