Pass context variables to input parameter

Hello,
I want to pass context parameters to a service call.
If you read the context parameters, they are aways declared of type wd_this->element_<context-name>
If I pass the context paramter to the service call, I get a type mismatch error.
So how could I pass context parameters to a service call without binding it, because the ui-element is already bound to another context element.
Regards Christian

Hello,
I've solved the problem.
The parameter of the service call was a table parameter.
I've forgotten to check the table-operation checkbox at the wizard.
Regards
Christian

Similar Messages

  • 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,
    Senthil

    Hi 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

  • Problem passing Session variable as URL parameter?

    Hi,
    I am trying to create a multiple page entry form using
    coldfusion session. But I am having some problem when passing the
    session variable to url parameter. For test purpose I have created
    the following code:
    <cfif Not IsDefined("SESSION.AE")>
    <!--- If structure undefined, create/initialize it
    --->
    <cfset SESSION.AE = StructNew()>
    <!--- Represent current form srep; start at one --->
    <cfset SESSION.AE.StepNum = 1>
    </cfif>
    <cfif IsDefined("Form.GoBack")>
    <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    <cfelseif IsDefined("Form.Next")>
    <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    </cfif>
    <html>
    <head>
    <title>Untitled Document</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    </head>
    <body>
    <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    <input type="submit" name="GoBack" value="Back">
    <input type="submit" name="Next" value="Next">
    </form>
    </body>
    </html>
    When run it I get the following error:
    The value "" cannot be converted to a number
    The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm: line
    11
    9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    10 : <cfelseif IsDefined("Form.Next")>
    11 : <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    12 : <!---<cfset SESSION.AE.StepNum = #url.StepNum# +
    1>--->
    13 : </cfif>
    I couldn't figure out where is the problem. Any help is
    really appreciated.
    Thanks in advance.

    You are mixing up your gets and posts aren't you?
    You have your form method set to post which creates form
    variables not
    url variables. So when you try to use the url variable to set
    your
    session it does not exist.
    Change your SESSION.AE.StepNum = #url.StepNum# to
    Session.AE.StepNum =
    form.StepNum, note there is no need for the #'s.
    OR
    change your form method="post" to form method="get"
    Nagelia wrote:
    > Hi,
    >
    > I am trying to create a multiple page entry form using
    coldfusion session. But
    > I am having some problem when passing the session
    counter to url parameter. For
    > test purpose I have created the following code:
    >
    > <cfif Not IsDefined("SESSION.AE")>
    > <!--- If structure undefined, create/initialize it
    --->
    > <cfset SESSION.AE = StructNew()>
    > <!--- Represent current form srep; start at one
    --->
    > <cfset SESSION.AE.StepNum = 1>
    > </cfif>
    > <cfif IsDefined("Form.GoBack")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > <cfelseif IsDefined("Form.Next")>
    > <cfset SESSION.AE.StepNum = #url.StepNum# + 1>
    > </cfif>
    >
    > <html>
    > <head>
    > <title>Untitled Document</title>
    > <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    > </head>
    > <body>
    > <form method="post"
    action="/AE/try.cfm?StepNum=#SESSION.AE.StepNum#">
    > <input type="submit" name="GoBack" value="Back">
    > <input type="submit" name="Next" value="Next">
    > </form>
    > </body>
    > </html>
    >
    > When run it I get the following error:
    >
    > The value "" cannot be converted to a number
    >
    >
    > The error occurred in C:\CFusionMX\wwwroot\AE\try.cfm:
    line 11
    >
    > 9 : <cfset SESSION.AE.StepNum = #url.StepNum# - 1>
    > 10 : <cfelseif IsDefined("Form.Next")>
    > 11 : <cfset SESSION.AE.StepNum = #url.StepNum# +
    1>
    > 12 : <!---<cfset SESSION.AE.StepNum =
    #url.StepNum# + 1>--->
    > 13 : </cfif>
    >
    > I couldn't figure out where is the problem. Any help is
    really appreciated.
    >
    > Thanks in advance.
    >
    >
    >
    >

  • 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.
    ....

  • Passing BOUSER variable as a parameter to a DB2 stored procedure

    Hi,
    We have created a stored procedure in DB2, which accepts five parameters.  We have to pass the userrname of the logged-in user as one of the five parameters. We have created a DeskI report based on this stored procedure and we have used @variable('BOUSER') as the value for the concerned parameter.
    But Business Objects passes the string '@variable('BOUSER')' as it is instead of replace the variable with it's value. Does anybody have any idea on passing BO variables as parameters to a report based on stored procedure?

    hi,
    Create an object called 'user' with the following definition
    select:
                username
    where:
               username =@Variable('BOUSER')
    Use this object 'user' as parameter to the storedprocedure.
    Regards,
    Vamsee

  • Dynamically Pass a list as input parameter to a Graphical Clac View

    Hi All,
    Can anyone please let me know if it is possible to pass a list of comma separated values as an input parameter to a graphical calculation view and how this list can be parsed inside the view?
    The requirement is to invoke the graphical view using sql script.
    Thanks,
    Goutham

    Hi Goutham,
    Have a look on these documents:
    Using Multiple Values in Input parameter for filtering in Graphical Calculation View
    SAP HANA: Handling Dynamic Select Column List and Multiple values in input parameter
    Regards,
    Krishna Tangudu

  • How do I properly pass values into an input parameter form and app module?

    Using JDeveloper 11.1.1.4
    I created an application module that calls a PL/SQL procedure that uses input parameters. I exposed this to the data control and dropped the object on a jsff as a input parameter form. I need to set some of the input parameters on this form from values gathered and stored in a pageFlowScope bean. What is the proper way so that the values will: 1. show on the form, and 2. get to the java code in the application module that calls my procedure? An example field from my form is:
            <af:inputText value="#{bindings.pPayerId.inputValue}" label="Payer ID"
                          required="#{bindings.pPayerId.hints.mandatory}"
                          columns="#{bindings.pPayerId.hints.displayWidth}"
                          maximumLength="#{bindings.pPayerId.hints.precision}"
                          shortDesc="#{bindings.pPayerId.hints.tooltip}" id="it8">
              <f:validator binding="#{bindings.pPayerId.validator}"/>
              <af:convertNumber groupingUsed="false" pattern="#{bindings.pPayerId.format}"/>
            </af:inputText>Thanks,
    Troy

    Thanks Shay for pointing me in that direction.
    I didn't find the NDValue in the bindings, so I went to the pagedef xml and found it there. Changing the NDValue successfully delivered the value to the app module when the method was executed, but didn't show the value on the form. I had to add the same #{pageFlowScope.paramsBean.fileFormatParam} to the value of the input field and it now is working as needed.

  • Need to pass field value as input parameter for a task

    I have the following scenario:
    User opens a task from UWL and sees a UI in which a Quote no. is generated, which is saved in the backend. Next time the user comes to this UI(from the same task in his UWL) he should see the Quote no. generated. Also, the data is fetched from backend by calling BAPI which takes the Quote no. as input, which was generated the first time user visited this UI.
    My concern is how can I store this Quote no. in GP, which was generated the first time, so that user sees the data specific to quote no., as relevant for that task.
    Please help.
    Thanks and Regards
    Aanchal

    Hi Srinivasan,
    Thanks for ur quick response.
    I am explaining my issue further.
    User comes to this UI (first time), Quote no. is generated. User fills some other fields( but does not complete whatever he has to) and saves the data to backend. Now user closes the window (task remains in his UWL), but now when he opens the task, he should see the Quote no. which was generated earlier and also data which he saved(by calling BAPI). How can I get this quote no.?
    Can you please explain what you mean by "expose the quote no. at process level"?
    Thanks and Regards
    Aanchal

  • How to pass a Structure as input parameter

    Hello,
    Anyone knows how to instanciate, populate and pass a Structure into RFCInvoke?
    Thanks!

    Hello,
    Please take a look at the documentations of netweaver RFC programing in this blog: 
    /people/ulrich.schmidt/blog/2008/11/08/new-developments-in-netweaver-rfc-communication
    It contains useful information of rfcInvoke.
    Kind regards, Istvan Elek

  • Passing a CLOB as input parameter

    Can someone help me pass a CLOB to a stored procedure in oracle:
    begin
    -- Call the procedure
    A(p_ccn => :p_ccn,
    p_xml => :p_xml,
    p_out_err_status => :p_out_err_status,
    p_out_err_msg => :p_out_err_msg);
    end;
    Here p_xml is a CLOB.
    If I have to run procedure A from SQL*PLUS how do I execute this? When I enter the xml as a string I get this error
    ORA-01405: fetched column value is NULL
    Please help

    CREATE OR REPLACE PROCEDURE A ( p_clob CLOB ) IS
    BEGIN
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(DBMS_LOB.GETLENGTH(p_clob)));
    END;
    Procedure created.
    SET SERVEROUT ON
    EXEC A ( 'XYZ');
    3
    PL/SQL procedure successfully completed.

  • How can I pass Recordsets as input parameter to a Function ?

    Hi Gurus,
    I want to create a function that receive recordsets as input parameter also returns recordsets as output.
    I have a requirement to do stock taking for all order items of one Order number in one single query execution (to avoid row by row basis).
    From the post in the forum I know that a function can return recordsets / query result using REF CURSOR or pipelined table function.
    My question is : how to pass the recordsets as input parameter to that function ?
    (because I could have 75 rows item in one order number)
    Below is the DDL and the query :
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    insert into stocks values('P001', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P001', 'WH002', '01-dec-2006', 50)
    insert into stocks values('P001', 'WH002', '01-jan-2007', 50 )
    insert into stocks values('P001', 'WH001', '01-Mar-2007', 150)
    insert into stocks values('P002', 'WH003', '01-dec-2006', 25)
    insert into stocks values('P002', 'WH003', '15-Jan-2007', 50)
    insert into stocks values('P002', 'WH003', '01-Mar-2007', 75)
    insert into stocks values('P003', 'WH001', '01-dec-2006', 30)
    insert into stocks values('P003', 'WH002', '15-Jan-2007', 40)
    insert into stocks values('P003', 'WH003', '01-Mar-2007', 50)
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    The query for stock taking :
    select product,warehouse,expireddate, least(qty_available-(sm - qty_ord),qty_available) qty
    from ( select product,warehouse,expireddate,qty_available,qty_ord, sum(qty_available) over(partition by product order by s.product,expireddate,decode(warehouse,priority_wh,0,1),warehouse ) sm
    from stocks s,order_detail o
    where s.product = o.product_ord order by s.product,expireddate,decode(warehouse,priority_wh,0,1) )
    where (sm - qty_ord) < qty_available

    Hi,
    This my requirement :
    I have (simplified)Order_Detail as below :
    CREATE TABLE Order_Detail (PRODUCT_ORD CHAR(4), QTY_ORD number, Priority_WH CHAR(5) )
    INSERT INTO Order_Detail VALUES ('P001', 75, 'WH003') // previously 'WH002'
    INSERT INTO Order_Detail VALUES ('P002', 45, 'WH002')
    INSERT INTO Order_Detail VALUES ('P003', 55, NULL)
    Then I want to do stock taking from my STOCK table (described on my first post on this thread)
    create table stocks (Product char(4), Warehouse char(5), expireddate date, qty_available number)
    The rule is : The stok taking is on First In First Out basis, on expireddate.
    And I want to do it in single query.
    I want to make this a Function / Stored Procedure so that other transaction can also make use of this query.
    That is why I need to pass the 3 rows oy mr Order_Detail above, do the query, and return the result.
    Then INSERT the result into ORDER_DETAIL_PER_EXPIRED_DATE table.
    I hope this clear my requirement, is this possible ?
    Thank you,
    xtanto

  • How to pass bean variable to resourceID for Document Explorer ?

    Hello experts,   I have added  WebCenter document explorer  task flow in my ADF which as  parameter called resourceId.   I want to pass  bean variable to this parameter since  the Content IDs (doc Name or Ids) are  decided dynamically.
    When I provide ${'UCM57Server#dDocName:1379596941565_CONTACT_OPTREGI'}  as  resourceId  in the expression, it is working very fine.    But   samething  if I assign to a  bean variable and assign  bean variable  as  ${sessionScope.MyBean.docName},   it is  evaluating  the  bean variable  as ${'UCM57Server#dDocName:1379596941565_CONTACT_OPTREGI'}   and then throws  below exception :
    [2013-10-02T14:34:50.369-04:00] [DefaultServer] [WARNING] [WCS-07219] [oracle.webcenter.doclib.internal.view.backing.ContentProvider] [tid: [ACTIVE].ExecuteThread: '10' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: anonymous] [ecid: d50192415c689920:-7d97126c:1417a5d6a49:-8000-000000000000008a,0] [APP: CreateContactWSProxy] Invalid parameter combination: the connection name specified by resourceId = ${'UCM57Server#dDocName:1379596941565_CONTACT_OPTREGI'} is not the same as specified in parameter connectionName = UCM57Server.
    Bean variable is defined as :
    private String docName="${'UCM57Server#dDocName:1379596941565_CONTACT_OPTREGI'} ";
    Please provide me some guidance to pass  value to  resourceId  dynamically  through bean variable.
    thank you.

    Document explorer is not the way to go in order to view multiple documents of your choice, the Resource ID field is just a starting path. Check this link for all parameters about Documents Explorer
    If you want to view multiple documents, you should use Content Presenter and specify the query that these documents falls under. Check this link for add Documents Task Flows

  • PL/SQL Input parameter

    Beginning my quest to learn PL/SQL....
    If you have a procedure which has an input statement which is define like the following...
    i_MyField IN OPS_User.MyField%Type
    I want this field to accept either NULL or a numeric value. If it is defined on OPS_User.MyField as being numeric and not null, can I still pass nulls to the input parameter?
    Thanks for your assistance!!

    Hello,
    The %TYPE is used to define the type of the input parameter, it does not imply that Oracle will perform runtime check of your arguments.
    Example
    MANAG>SELECT version from v$instance;
    VERSION
    9.2.0.4.0
    MANAG>
    MANAG>CREATE TABLE TEST_IT_1ST
    2 (
    3 MY_FIELD VARCHAR2(12) NOT NULL
    4 )
    5 ;
    Table created.
    MANAG>
    MANAG>
    MANAG>INSERT INTO TEST_IT_1ST(MY_FIELD) VaLUES(NULL);
    INSERT INTO TEST_IT_1ST(MY_FIELD) VaLUES(NULL)
    ERROR at line 1:
    ORA-01400: cannot insert NULL into ("OPS$RSTMANAG"."TEST_IT_1ST"."MY_FIELD")
    MANAG>
    MANAG>
    MANAG>CREATE OR REPLACE PROCEDURE MY_TEST(MY_PARAM IN TEST_IT_1ST.MY_FIELD%TYPE) IS
    2 BEGIN
    3 DBMS_OUTPUT.PUT_LINE(MY_PARAM);
    4 END;
    5 /
    Procedure created.
    MANAG>
    MANAG>EXECUTE MY_TEST(NULL);
    PL/SQL procedure successfully completed.
    MANAG>EXECUTE MY_TEST('More than twelve characters !');
    More than twelve characters !
    PL/SQL procedure successfully completed.
    MANAG>
    MANAG>DROP PROCEDURE MY_TEST;
    Procedure dropped.
    MANAG>DROP TABLE TEST_IT_1ST;
    Table dropped.
    MANAG>
    Finally, I recommend you to have a look on the "SQL and PL/SQL OTN Forum".
    PL/SQL
    Best regards,
    Franck.

  • Pass the variable from timeline to one of my classes !?

    Hello !
    The title says it all.
    I need to pass a boolean variable initially set to false to one of my classes called "EasyGame".
    It is than changed to true when one of the function in this class is runned.
    I tried some different ways but had no luck.
    Anyone have an idea ?

    If you instantiate the class in the timeline, you can just call a method in the class - passing the variable as a parameter.
    easyGame.setTimelineVar(myVar);
    And have another method that lets you retrieve the value:
    myVar = easyGame.getTimelineVar();

  • 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
    shamen

    To 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

Maybe you are looking for

  • XE and Personal Edition

    Since we now have the free XE, does that mean the personal edition is going away? Just curious. Thanks, LewisC http://blogs.ittoolbox.com/oracle/guide/

  • Any report on fbl1n and fbl3n

    hello gurus , plz send me the report of 'z' or 'y' on FBL1N, FBL3N and FBL5N. its very urgent . Thanks in advance .

  • TS3274 Not able to open a book

    I down loaded one book and synced my ipad but it will not open on my ipad, but others I have bought before will open.  HELP

  • Changing KBETR value on condition table(XKONV) in VA01/VA02

    Hi Experts,      I need your help, i am trying to change the KBETR value on condition table XKONV. user exit name : MV45AFZZ. FORM NAME  : USEREXIT_SAVE_DOCUMENT. it's allowing me to change the values but those changed values are not saving in the da

  • How to edit code in Contribute?

    Hi, I dont find any option to edit asp, javascript and vb script code in contribute. In website settings, I enabled the option for editing scripts. But still i dont find any editor in contribute to edit the coding part. Can any one help me on this? T