Passing Sequence input parameter as array
I have defined a parameter for a subsequence, as an array of containers(Number & boolean).
When I call this subsequence in Main sequence, in the parameter table I do not see the options to enter value for the elements.
There is only a field to enter the expression. I was expecting to enter values like this:
Is it possible?
All elements in an array are the same. Changing one will change the others. It is the value that differes.
However, what you should be doing is using a defined datatype.
To create a data type open the type pallette (View>>Types). Here is a document on type management: http://www.ni.com/white-paper/7060/en/
Generally I define the types in the sequence file within which I'm working unless the type will have a more global role. So in the View Types For: pane you can scroll down to the Sequence Files section and select your sequence file. Then in the Custom Data Types section of the Types pane you can insert a container with two elements.
To create an instance of the data type go back to your sequence file and in the sequence you want in either Locals, Parameters Or FileGlobals you can now create an array of this type. Right click in Locals and choose Insert Local>>Array Of>>Type>>Your New Type Should Be Listed.
Now whenever you want to insert a new field into the data type just go to the type pallette and update it. All open instances will update with the correct fields.
Hope this helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~
Similar Messages
-
Sybase Input Parameter ?
folks
i am trying to execute a sybase stored procedure it expects one input parameter , below is the stored procedure name and the input parameter,
sp_case '@sCase_ID'
From my program if i pass in <b>Case_ID</b> to this stored procedure , It's complaning about stored procedure expects <b>@sCase_ID</b>,
I appreciate if any one could guide me how to pass the input parameter in the above case that would be really greatful
thanks
PMUse double quotes for the default value, like this "1234", since you are
entering a Javascript string.
Gary Xue
Actuate Corporation - Product Development
BIRT Committer
"Terry Tam" <[email protected]> wrote in message
news:a2858f14e3eaedf3581b981a13f355a4$[email protected]..
> I have a stored procedure spu_Get_CustomerName in Sybase. It receives one
> input parameter @as_customerno. I have defined the data set as follows:
>
> Stored proc: spu_Get_CustomerName
> Parameter:
>
> parameter data type input/output default value
> --------- --------- ------------ -------------
> @as_customerno String input '1234'
>
> I have tried to specify the following in the query
>
> call spu_Get_CustomerName (?)
>
> but it returns an error of "Incorrect syntax near '@p0'"
>
> What's wrong with my query? How can I fix it?
>
> Thanks~~
> -
How to give input parameter to Bapi when executing a method.
Hi All,
I have 1 input field and 1 button.I've defined a model node and inside that model attribute in my view.If I enter something in the Input field the value should go to the particular model attribute I defined.How to pass that input parameter.I have a action like this....
public void onActionGetDateDetails(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )
//@@begin onActionGetDateDetails(ServerEvent)
wdThis.wdGetGetDateDetailsCustController().execute_Bapi_Get_Date_Details("");
// while executing the above method I have to pass the input parameter typed in the input field.
Structure of my context :
Bapi_Date_Details
>Network List(Model Node)
|
-->Network (Model Attribute)
//@@end
Help me to solve this.
Thankx in advance.
Regards,
Karthick.K.EHi Karthick,
You can associate an input field's value to a BAPI in two ways:
1) binding the input UI element's 'value' directly to the BAPI's input attribute that you want to set. This is the methos Noufal suggested. In this method, make sure you initialize the attribute through the following lines of code in the doInit() method, else, the input field will be disabled.
<b><Bapi_name>Input input = new <Bapi_name>Input();
input.set<Attribute_name>(new <dataType>);</b>
2) The second method is settting the input's 'value' to some other attribute(say 'abc') and giving this value to the input parameter just before calling the RFC.
input.set<Attribute_name>(wdContext.currentContextElement.getAbc());
Hope this helps,
Best Regards,
Nibu -
How to pass a structure/array of structure as input parameter in a webservice
Hi Team,
I am trying to create a webservice in powerbuilder .net( pb 12.5.1) . As this webservice will be used by external world to access some of data on basis of some input paarameter.
So can i use array of structure as input parameter to a webservice ? If no, then how can i pass a result set ( mora then 1 row with more than one column)
as an argument to the webservice.
Regards
SubratI am assuming this is the same for .Net but in Classic you can create NVO's with Instance Variables and then reference them in the NVO that will be used as the parameter for the Public WebService.
WS NVO's:
Children
String Child[]
Customer
String FirstName
String LastName
String DOB
Children Children
Public Interface uses Customer
Calling Code Example:
integer rc, liNdx
string lsReturn
SoapConnection lSoapConnect
proxy_testing px_Testing
lSoapConnect = CREATE SoapConnection
if IsValid(lSoapConnect) then
TRY
rc = lSoapConnect.CreateInstance(px_Testing, 'proxy_testing')
CHOOSE CASE rc
CASE 100
lsReturn = "Invalid proxy name"
CASE 101
lsReturn = "Failed to create proxy"
CASE 0
Proxy_Customer lNewCustomer
lNewCustomer = CREATE Proxy_Customer
lNewCustomer.FirstName = 'Chris'
lNewCustomer.LastName = 'Craft'
lNewCustomer.DOB = 'Getting Older'
Proxy_Children lChildren
lChildren = CREATE Proxy_Children
lChildren.Child[1] = 'Madeline'
lChildren.Child[2] = 'Hayden'
lNewCustomer.Children = lChildren
lsReturn = px_Testing.NewCustomer(lNewCustomer)
CASE ELSE
lsReturn = "Unknown error (" + String(rc) + ")"
END CHOOSE
if rc <> 0 then MessageBox("Invocation Error", lsReturn, Exclamation!)
CATCH (RuntimeError rte)
rc = -1
MessageBox("Runtime Error", rte.text, Exclamation!)
END TRY
end if
Chris Craft -
PL/SQL Associative Array as INPUT Parameter
Hi,
Just wondering if anyone out there has a good example of how to get VB.NET (using ODP.NET 9.2.0.4) to pass an Associative Array as an Input parameter to a stored procedure (not for bulk binds)? Specifically, I'm looking for an example of how a VB Strong Typed Collection would be passed through the PLSQLAssociativeArray Collection Type.
I've managed to get a test to work by passing a 1-D String Array through the ODP.NET layer to the PL/SQL AssociativeArray parameter. But I've had zero success trying to get the Collection from VB through ODP.NET.
Thanks in advance for any help.
Todd.For example, if I wanted to return a list of customer ids and names into A PLSQL Associative Array, how would I do it. I know how to return a list of customer ids into a PLSQL associative aray using the code below but I have to specify the maximum number of elements and the maximum size of each of the elements. Is there any way around this?
Dim prmOutCustomerIdList As New OracleParameter
With prmOutCustomerIdList
.ParameterName = "oCustomerIdList"
.CollectionType = OracleCollectionType.PLSQLAssociativeArray
.OracleDbType = OracleDbType.Varchar2
.Direction = ParameterDirection.Output
.Size = 5
.ArrayBindSize = New Integer(4) {10, 10, 10, 10, 10}
End With -
Passing multiple values to a single input parameter
Hi folks,
I have a Microstrategy query successfully passing input parameter to a calculation view. For example I can pass a movement type to a material movements calculation view input parameter. However if I try to pick more than one movement type the query then fails;
Generated SQL that works looks like this;
select
sum(a11.TOTALQUANTITY) WJXBFS1
from
"_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
('PLACEHOLDER' = ('$$MoveType$$', '101')
a11
When choosing more than one value in Microstrategy the SQL now fails and looks like this;
select
sum(a11.TOTALQUANTITY) WJXBFS1
from
"_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
('PLACEHOLDER' = ('$$MoveType$$', '101'),
'PLACEHOLDER' = ('$$MoveType$$', '103'))
a11
If I cut and paste the SQL and run directly in HANA studio the error is;
Could not execute 'select sum(a11.TOTALQUANTITY) WJXBFS1 from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER" ...' in 66 ms 361 µs .
SAP DBTech JDBC: [2048]: column store error: search parameter error: [2018] A received argument has an invalid value;TABLE/VIEW parameter: ( 'PLACEHOLDER'='$$MoveType$$, 103') not supported
Is it possible to pass multiple values in a single parameter? I'm using SP67 for this test.
Thanks,
-PatrickRavi, also to answer one of your questions about how this will work in Microstrategy; I just heard back from my Microstrategy developer and he is trying MSTR Freeform SQL query with syntax like this;
select (sumPAR_TEST.TOTALQUANTITY TOTALQUANTITY
from "_SYS_BIC"."MyPackage/CA_TEST_PASS_PARAMETER"
('PLACEHOLDER' =('$$MoveType$$', '[Movement Type]')) PAR_TEST
In this example [Movement Type] is the microstrategy prompt. Unfortunately though it translates like this which is missing extra single quotes around each value;
select sum(PAR_TEST.TOTALQUANTITY) TOTALQUANTITY
from "_SYS_BIC"."development.pr1959/CA_TEST_PASS_PARAMETER"
('PLACEHOLDER' = ('$$MoveType$$', ''101', '102'')) PAR_TEST
instead of what we need which is;
('PLACEHOLDER' = ('$$MoveType$$', '''101'', ''102''')) PAR_TEST
So at this point we are not sure if this will be possible or not.
-Patrick -
How can I pass dynamic value as a user input parameter in discoverer?
Hi,
I have a requirement for a discoverer report like this: The report will display only details for Suppliers that have expired (or soon to be) Insurance details. That is the Expiration Date is less than or equal to the day the report is being run plus any days specified in the Number of Days in the Future Parameter.
The sample code as:
SELECT s.segment1 vendor_number
,s.vendor_name
,flv1.meaning classification
,pca.certificate_number
,pca.certifying_agency
,pca.expiration_date
,flv2.meaning status
FROM ap_suppliers s
,pos_bus_class_attr pca
,fnd_lookup_values flv1
,fnd_lookup_values flv2
WHERE pca.vendor_id = s.vendor_id
AND flv1.lookup_code = pca.lookup_code
AND flv1.lookup_type = pca.lookup_type
AND flv2.lookup_code = pca.class_status
AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
AND pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>
order by pca.expiration_date asc
Now the parameter is Number of Days in the Future (Enter the number days in the future to extract the data. This will default to 0).
Is it possible in discoverer to do so as in query i do that like a condition as pca.expiration_date <= trunc(sysdate) + <No. of Days in the Future>.
How can I pass <No. of Days in the Future> as a user input parameter in discoverer?
Please help.Hi,
All you need to do is to create the condition in the discoverer instead of in the query.
Create a custom folder containing the following sq (note that i removed the condition)l:
SELECT s.segment1 vendor_number
,s.vendor_name
,flv1.meaning classification
,pca.certificate_number
,pca.certifying_agency
,pca.expiration_date
,flv2.meaning status
FROM ap_suppliers s
,pos_bus_class_attr pca
,fnd_lookup_values flv1
,fnd_lookup_values flv2
WHERE pca.vendor_id = s.vendor_id
AND flv1.lookup_code = pca.lookup_code
AND flv1.lookup_type = pca.lookup_type
AND flv2.lookup_code = pca.class_status
AND flv2.lookup_type = 'POS_BUS_CLASS_STATUSES'
Then create a discoverer report using this folder using all fields.
Create a new calculation as (use this exact syntax):
Sysdate + :No_of_Days_in_the_Future
Create a new condition:
pca.expiration_date <= <your calculation>
To complete it add a sort as you did in the SQL.
That's it.
Tamir -
Passing the same input parameter twise in execute sql task
Hi All, I want to insert some values to 3 different tables in sql server. Execute sql task is used to populate three tables. Here is the sql statement.
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT ?, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT ?, COL2, COL3 FROM TABLE_B
Input parameter is mapped as follows :
Variable name : User::EffectiveDate
Direction : Input Data Type :
Date Parameter name :0
Parameter size :-1
User::EffectiveDate is datetime variable.
When the package is executed, it throws an error.
[Execute SQL Task] Error: Executing the query " " failed with the following error: "Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.". Possible failure reasons: Problems
with the query, "ResultSet" property not set correctly, parameters not set correctly, or connection not established correctly. I am not sure what I am doing wrong here. If anyone could point me to the right direction, I really appreciate.
Thanks
shamenTo expand on the other answers.
Your SQL command
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT ?, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT ?, COL2, COL3 FROM TABLE_B
It using 3 input variables. I assume you didn't pass 3 variables and you want @DT to be column 1 in each. In that case you would use:
DECLARE @Dt AS DATE
SET @Dt = ?
INSERT INTO TABLE1 SELECT @Dt, COL2, COL3 FROM TABLE_A
INSERT INTO TABLE2 SELECT @Dt, COL2, COL3 FROM TABLE_B -
Pass Input Parameter With Blank To SSIS Get Strange Result
Hi! I stuck for a while when executing SSIS from stored procedure with input parameter. My input value is not consistent with output one. If I pass value with blank , SSIS seems gets second part. For example , if I pass "CALL FROM SP", SSIS get
"FROM" only.
I use Execute SQL Task to store input parameter. Here is the SSIS snapshot.
And here is the sp snippet
DECLARE @Path VARCHAR(200),
@Cmd VARCHAR(4000),
@ReturnCode INT,
@QUERY_STRING VARCHAR(70),
@BATCH_NO VARCHAR(14)
SELECT @Path = 'xxxxxx'
SELECT @QUERY_STRING = 'CALL FROM SP'
--BatchNo = YYYYMMDDHHMMSS
SELECT @BATCH_NO = CONVERT(VARCHAR(10),GETDATE(),112) + REPLACE(CONVERT(VARCHAR(8),GETDATE(),108),':','')
SELECT @Cmd = 'DTexec /FILE "' + @Path + 'Package1.dtsx" /MAXCONCURRENT 1 /CHECKPOINTING OFF /REPORTING EW ' + '/Decrypt ALCM '
+ ' /SET \Package.Variables[User::BATCH_NO].Properties[Value];' + @BATCH_NO
+ ' /SET \Package.Variables[User::QUERY_STRING].Properties[Value];' + @QUERY_STRING
My test are
input parameter
write to TESTTB correctly ?
any error?
execute SSIS in design mode
CALL FROM SSIS
YES
execute SSIS by sp
CALL FROM SP
NO
Option "FROM" is not valid.
execute SSIS by sp
CALL_FROM_SP
YES
Anyone could give me some hint ?
Thank you so much!!Hi Nick,
It occurs because an argument of the DTExec commands must be enclosed in quotation marks if it contains a space. From the dtexe (SSIS Tool): Syntax Rules section of the
dtexec Utility (SSIS Tool) document, we can see:
All options must start with a slash (/) or a minus sign (-). The options that are shown here start with a slash (/), but the minus sign (-) can be substituted.
An argument must be enclosed in quotation marks if it contains a space. If the argument is not enclosed in quotation marks, the argument cannot contain white space.
Doubled quotation marks within quoted strings represent escaped single quotation marks.
Options and arguments are not case-sensitive, except for passwords.
So, you need to make the value of the variable @QUERY_STRING within double quotes in the value of the variable @Cmd or remove the space within the @QUERY_STRING value.
Regards,
Mike Yin
TechNet Community Support -
Pass multiple values as single input parameter into pipelined function
Hi all,
My need is to pass multiple values as single input parameter into pipelined function.
For example - "2" and "3" are values of input parameter "t":
with data as (
select 1 as t from dual union all
select 2 as t from dual union all
select 3 as t from dual union all
select 4 as t from dual union all
select 5 as t from dual
select * from data where t in (2,3)Is it possible at all?Not exactly sure, but usually 'multiple values'+'pipelined function' = some IN-LIST related approach?
See:
SQL> create table data as
2 select 1 as t from dual union all
3 select 2 as t from dual union all
4 select 3 as t from dual union all
5 select 4 as t from dual union all
6 select 5 as t from dual;
Table created.
SQL> --
SQL> CREATE OR REPLACE FUNCTION in_list (p_in_list IN VARCHAR2)
2 RETURN sys.odcivarchar2list PIPELINED
3 AS
4 l_text VARCHAR2(32767) := p_in_list || ',';
5 l_idx NUMBER;
6 BEGIN
7 LOOP
8 l_idx := INSTR(l_text, ',');
9 EXIT WHEN NVL(l_idx, 0) = 0;
10 PIPE ROW (TRIM(SUBSTR(l_text, 1, l_idx - 1)));
11 l_text := SUBSTR(l_text, l_idx + 1);
12 END LOOP;
13
14 RETURN;
15 END;
16 /
Function created.
SQL> --
SQL> select *
2 from data
3 where t in ( select *
4 from table(in_list('1,2'))
5 );
T
1
2
2 rows selected.http://www.oracle-base.com/articles/misc/dynamic-in-lists.php
or
http://tkyte.blogspot.nl/2006/06/varying-in-lists.html -
I have a SAP BAPI (Y_GET_APPR_LIST), which takes an import paramter (USER) and returns a structure. I have created the MBO (GetApprList)
I have also generated a CREATE operation (setGetList) with the same input and out parameters.
I have generated the code for BlackBerry, imported the code into Eclipse.
My question is how do I pass the the input parameter and get the result set back in Eclipse.
GetApprList obj = new GetApprList();
obj.setGetListUSER("XXXXXX");Hi please make sure you have done these steps before generating the code.
1.create the sync parameter and map that sync parameter to the your list field.
2. Please link this sync parameter to the load parameter(this is your input parameter ).
3. Generate your code.
in the generation code you can find the yourListSyncParameter Class.
Now in your blackberry application before calling the appDB.synchronize() method.
YourListSynchronizationParameters synParm=YourList.getSynchronizationParameters();
synParm.setSyncValue("value");
synParm.save();
appDB.synchronize("syncGroup");
Regards,
Ram -
How to pass process flow input parameter to unix script external process
Hi,
I'm trying to pass a process flow input paramter (string) to an external process which is a unix script. I've been working on this for the last 2 days but can't get it to work. Here is the design. I have a process flow with 3 maps that create a file in the unix file system. I have a suffix, which is an input parameter to the process flow, that will need to be passed to the unix script to rename the file appending the suffix to the filename. I've tried different things and nothing works for me. Has anyone done something similar in OWB?
Thanks much!I tried using useBean inside the Jsp for this.
But following error comes:
OracleJSP error: oracle.jsp.parse.JavaCodeException: Line # 13, oracle.jsp.parse.JspParseTagExpression@102e37e
Error: Java code in jsp source files is not allowed in ojsp.next mode.
Please explain why?
How can set POST request params when calling to an external servlet? -
MII BLS Trasaction calling SAP RFC call - How to pass XML document as input parameter
Hi,
1. I am very new to the SAP and SAP xMII workbench.
I have a webpage with iGrid applet embedded on it. We have multiple rows in the iGrid applet that can be selected by user.
After selecting single or multiple grid rows user clicking a 'button' on the web page.
We are using iCommand applet (ExacuteQuery] to call the BLS transaction.
Using iCommand applet on the webpage we are passing parameters to BLS Transaction.
Would like to pass on the single/ multiple selected grid row values as a XML document to BLS Transaction variable which is an Input parameter for SAP RFC call.
I am using SAP JCo Session to make the RFC call.
Any pointers will be helpful.
2. Which is a best track in SAP training courses to get formal training.
Thanks,
SenthilHi Senthil,
What version of MII (or xMII) are you working with? There are some examples of this type of transaction in the wiki which you may want to download and take a look at.
Regards, Mike
SAP Customer Experience Group - CEG -
How to pass refcursor as input parameter to a procedure in a package
Hi there
Please can anybody explain me with an small example for
passing a procedure output(output should be a refcursor) and pass that refcursor values into a procedure in a package as input parameter and this value i want to use as join condition in my procedure ie. ename=refcursor.ename like this).That my exact question is how to pass refcursor values as in parameter
Pls suggest me with some example statements
thanks in advance
prasanth a.s.I am giving you a generic example.
SQL> variable v_out REFCURSOR
SQL> r
1 DECLARE
2 PROCEDURE TEST1(p_out OUT SYS_REFCURSOR) IS
3 BEGIN
4 OPEN p_out FOR SELECT EMPNO,ENAME FROM SCOTT.EMP;
5 END;
6 PROCEDURE TEST2(p_in IN SYS_REFCURSOR) IS
7 v_empno NUMBER(10);
8 v_ename VARCHAR2(30);
9 BEGIN
10 LOOP
11 FETCH p_in INTO v_empno,v_ename;
12 EXIT WHEN p_in%NOTFOUND;
13 DBMS_OUTPUT.PUT_LINE(v_ename);
14 END LOOP;
15 NULL;
16 END;
17 BEGIN
18 TEST1(:v_out);
19 TEST2(:v_out);
20* END;
SMITH
ALLEN
WARD
JONES
MARTIN
BLAKE
CLARK
SCOTT
KING
TURNER
ADAMS
JAMES
FORD
MILLER
PL/SQL procedure successfully completed. -
Pass a datarow as input parameter in a stored procedure
Hi everyone!
I wonder if anyone know how to pass a datarow (better if tipized like "tablenameRow") as input parameter for a stored procedure.
links or suggestions are welcome! (i'm newbie in .net programming, so if you can post some code i'll be really grateful!)
Thank you!Hi,
YES!! its possible you can pass a datarow to a SP from your Dot net application.
Here below i'm going to give you an example for Desktop Application.
For Passing a datarow as Input Parameters, your SP need to support for all these parameters.
I mean, if a data row has 03 Columns. Then your procedure should be able to take 03 arguments/parameters.
--Adjust code according to your need.
--Its for C# Desktop application.
--Visual Studio Professional, Framework (2.0)
//Setting connections.
OracleConnection con=new OracleConnection("Data Source=orcl9i; user id=scott; password=tiger");
OracleComand cmd=new OracleCommand(con);
cmd.Type=CommandType.StoredProcedure; //you are useing SP
cmd.Text="my_stored_procedure"; //Mention SP name.
--if DataRow has Three columns. You need three parameters.
OracleParameter p1=new OracleParameter ();//By default parameters are input parameters.
OracleParameter p2=new OracleParameter ();
OracleParameter p3=new OracleParameter ();
//We assume that Datarow already has data in it.
p1.ParametersName="sp_var1 ";
p1.OracleDbType=OracleDbType.Varchar;
p1.Value=tablenameRow[1]; //Here DataRow object's Column1 is input.
p2.ParametersName="sp_var2 ";
p2.OracleDbType=OracleDbType.Varchar;
p2.Value=tablenameRow[2]; //Here DataRow object's Column2 is input.
p3.ParametersName="sp_var3 ";
p3.OracleDbType=OracleDbType.Varchar;
p3.Value=tablenameRow[3]; //Here DataRow object's Column3 is input.
cmd.OracleParameter.Add(p1); //Add parameters.
cmd.OracleParameter.Add(p2); //Add parameters.
cmd.OracleParameter.Add(p3); //Add parameters.
cmd.ExecuteNonQuery(); //Execute Procedure here.
Feel free to ask if still found problem.
....
Maybe you are looking for
-
Restore time machine to new hard drive?
My hard drive just died and will need to be replaced. Once I have a new hard drive, how can I restore all the backed up contents onto my new drive? Thanks.
-
Please help, cannot compare images in full screen mode
I am not able to compare 2 images in full screen mode. I am using a MBP and a ACD 23". The main image will remain in the ACD while the image being compare is being shown in the MBP. I am able to compare images in the viewer mode. My main display is t
-
Fglrx: when iGPU is selected same as no fglrx installed?
Relying on just the i915 intel driver works flawlessly, no bugs, no problems, however the AMD card is then left UNCLAIMED and could possibly lead to overheating/battery drain, so I am not so happy about that (the open source radeon driver does not su
-
Hi all, Can any body tell me the tables for Goods Reciept, Balu.
-
I'm trying to upgrade CSA 5.0.0.186 to 5.2. The problem is that we have a couple hundred users with laptops that aren't going to be here until January. We have a rule in place that prevents users from modifying agent files and security level. It also