Passing input parameter to a oData service

Hi,
    I am trying to develop a simple application using sapui5 and data comes from OData service. I am trying to  pass input parameter to OData service in sapui5 Application.
  how i do it ...
please help me..............................

I too have a such requirement, any help ?
Thanks.

Similar Messages

  • Trying to get the input parameter of a web service fxn based on table value

    Hello--
    I am new to ADF and Jdev 11g (I am a forms developer). I had created a web service from a pl/sql stored db package. I can successfully execute a function with an input parameter from ADF Faces.
    Instead of the input parameter being enterable by the user, I would like it to be based on a selected ADF table column value. How would I correlate the selected row column value as the function input parameter?
    I played with an ADF output text based on the ADF table column with the PartialTriggers value set to the ADF table...which updates the output text based on the column selected. Do I use some sort of partial trigger on the input parameter?
    From a forms point of view, I am looking for the "Copy Value from Item" property :)

    Hi,
    Not sure if this would help you.
    But if your table is bound to a ViewObject, it will be easier to get the current selection.
    Supose your table is bound to iterator1.
    In your backBean code:
    DCBindingContainer dcBindings = (DCBindingContainer)getBindings();
    DCIteratorBinding iterator =dcBindings.findIteratorBinding("iterator1");
    Row row = iterator.getCurrentRow();
    Object selectedValue = row.getAttarbute(<value of the column you are looking for>);
    public BindingContainer getBindings() throws Exception {
    try {
    if (this.bindings == null) {
    FacesContext fc = FacesContext.getCurrentInstance();
    this.bindings =
    (BindingContainer)fc.getApplication().evaluateExpressionGet(fc,
    "#{bindings}",
    BindingContainer.class);
    return this.bindings;
    } catch (Exception ex) {
    displayMessage("Error occurred. Please contact your IT Adminstrator.");
    return this.bindings;
    Let me know if this helps.
    -Makrand

  • 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 Input Parameter to MBO

    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 input parameter (parameterized mapping) to java mapping program

    Hello
    I have a question about the parameterized mapping with Java (PI 7.1).
    In the operation mapping (using Java-class) I defined a inputer parameter (string). I think I am supposed to retrieved the value using:
                    arg0.getInputParameters().getString("myInputParameterName");
    where arg0 is the TransformationInput object.
    However I am not able to get the value, I got runtime exception saying the inputer parameter doesn't exit.
    Then I figured out maybe I need to bind the OM input parameter to Java mapping parameter, just like in case of message mapping, you need to bind OM parameter to MM parameter. However there is no way to define input parameter for the java mapping program.
    Anybody has done java mapping with parameterized mapping?
    Anybody can give any hint for this?
    Thanks
    Jayson

    InputParameters params = container.getInputParameters();
    DynamicConfiguration conf = (DynamicConfiguration) params.getValue(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File", "Directory");
    http://help.sap.com/saphelp_nwpi71/helpdata/en/43/03612cdecc6e76e10000000a422035/content.htm
    Edited by: Anand on Dec 10, 2008 4:13 PM

  • Passing input parameter to User Defined Procedures in ODI

    Hi
    I have to develop a procedure with an update query as follows
    Update Rec_Count set status as 'Y' where TableName = 'Name of the table'
    Here the 'name of the table' should be sent as input parameter while executing the package and this has 9 values.
    Kindly help me resolve this issue.
    Thanks

    Hi,
    Create a variable
    eg :- VarName
    and your query should be
    Update Rec_Count set status as 'Y' where TableName = '#VarName'
    Steps in package:
    step 1 :-
    refresh the variable ,
    or assign the variable while executing the package.
    Step 2
    Your procedure
    This will take the variable value dynamically while executing
    Regards,
    Rathish
    Edited by: Rathish on Aug 18, 2009 3:38 PM

  • Passing input parameter to an standard search help

    Hi all.
    I have the following code into my Z report:
    PARAMETERS:
    p_bukrs TYPE t8jv-bukrs OBLIGATORY,
    p_vname TYPE t8jv-vname OBLIGATORY MATCHCODE OBJECT h_t8jv.
    The SHLP H_T8JV has the field BUKRS as an import parameter. When the user executes the SHLP (press F4), I would like for it to reflect the value indicated by the user into the selection parameter P_BUKRS.
    How can I do this?
    Regards.
    Gregory.

    I guess you want to allow F4 to both parameters p_bukrs and p_vname, and both values have to be passed to the search help forth and back?
    I also guess that vname is the first parameter of this search help?
    In that case, you must not use MATCHCODE OBJECT at all, because it will link only one field at a time.
    Instead, you must find out a structure (or create it) that have these 2 fields, each having the H_T8JV search help assigned (with correct parameter assignment too), and the selection screen parameters must refer to this structure.

  • Pass input parameter

    How do I pass my input parameters from a query.jsp page to a static NamedQuery ???
    @NamedQuery(name = "Patient.findByPatName", query = "SELECT p FROM Patient p WHERE p.patfname = :patfname  and p.patlname = :patlname")my query.jsp would then have to inputText fields 'patfname' and 'patlname'
    Generally I would like to add a query page to a CRUD application to give the user conrtol over the data that are being retrieved.

    I have this working code; it may be helpful for other java beginners
    public class Login extends HttpServlet {
        private Object user;
        protected void processRequest(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
            response.setContentType("text/html;charset=UTF-8");
            HttpSession session = request.getSession(true);
            PrintWriter out = response.getWriter();
            out.println("<html>");
            out.println("<head>");
            // get user inputs
            String uid = request.getParameter("user");
            String pwd = request.getParameter("password");
            String grp = request.getParameter("office");
            // check details entered not null
            out.println("<title>Login</title>");
            if (uid == null || pwd == null){
                // prompt the user for their username and password
                out.println("<h1>Enter User Name And Password</h1>");
            } else{
                Connection con = null;
                PreparedStatement psm = null;
                ResultSet rs = null;
                try{
                    Class.forName("com.mysql.jdbc.Driver");
                    con = DriverManager.getConnection("jdbc:mysql://localhost:3306/echo6","","");
                    psm = con.prepareStatement("select password, user from user where user = ?");
                    psm.setString(1,uid);
                    rs = psm.executeQuery();
                    if(rs.next()){
                        String dbuid = rs.getString("user");
                        session.setAttribute("user",dbuid);
                        String dbpwd = rs.getString("password");
                        if(pwd.equals(dbpwd))
                            response.sendRedirect("index.jsp");
                        else
                            out.println("<style type=\"text/css\" title=\"currentStyle\" media=\"screen\">");
                        out.println("@import \""+uid+".css\"; ");
                        out.println("</style>");
                        out.println("</head>");
                        out.println("<body>");
                        out.println("<div id=\"hide\">");
                        out.println("<h1>"+uid+" you entered the incorrect password</h1>");
                        out.println("</div>");
                    } else
                        out.println("<h1>Username Incorrect</h1>");
                } catch(Exception e){
                    out.println("<h1>Error connecting to database</h1><br/>"+e.toString());
                } finally{
                    try{
                        if(rs != null)
                            rs.close();
                        if(psm != null)
                            psm.close();
                        if(rs != null)
                            rs.close();
                    } catch(Exception e){
            out.println("<body>");
            out.println("<html>");
            out.flush();
            out.close();
        protected void doGet(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
            processRequest(request, response);
        protected void doPost(HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException {
            processRequest(request, response);
    }as far as I understand, this has nothing to do with persistence, though.
    The wizard creates a Patient.java, PatientController.java and PatientConverter.java.
    Do I place my code for into any of these or do I write a new class like Query.java similar to the one above with the use of 'em'?

  • How to pass input value to the IN parameter in a function

    Hi ,
    I'm new to pl/sql programming.
    The below function is used inside a package and the package is invoked in visual studio.
    The function uses 2 input parameters.
    Out of which 'in_report_parameter_id' value comes thru job processor service 's job request.
    The second IN paramter values are hard coded in the function.
    I'm not able to understand this.
    If the values are hard coded , how to make sure that only the hard coded values are the right ones?
    Please anyone could explain to me?
    I really dont have good idea about how to pass INPUT parameter to the functions or procedure
    Is there any nice document which could give me good understanding about what are the ways or types we could pass values to the input parameter in subprograms?
    thanks in advance.
    CREATE OR REPLACE FUNCTION get_class_text_str
         in_report_parameter_id IN NUMBER,
         in_which                IN VARCHAR2 DEFAULT 'SELECT'
    RETURN VARCHAR2
    IS
             end_text            VARCHAR2 (50)   := '';
             my_class_text_str  VARCHAR2(10000) := '';
             my_class_value_str VARCHAR2(10000) := '';
         CURSOR class_text(c_1_text VARCHAR2, c_2_text VARCHAR2) IS
         SELECT c_1_text || report_parameters.report_parameter_value
                               || c_2_text
                               || report_parameters.report_parameter_value
                               || '" '
          FROM report_parameters
         WHERE report_parameters.report_parameter_id     = 3690
           AND report_parameters.report_parameter_group  = 'CLASS'
           AND report_parameters.report_parameter_name   = 'CLASS'
    GROUP BY report_parameters.report_parameter_value
    ORDER BY CAST(report_parameters.report_parameter_value AS NUMBER);
    BEGIN
         IF (in_which = 'SUM') THEN     
              OPEN class_text ( 'SUM(NVL("Class ', '", 0)) "Class ' );
         ELSIF (in_which = 'PERC')THEN
              OPEN class_text ( 'ROUND((("Class ', '" / "Total") * 100), 2) "Class ' );
              end_text := ', DECODE("Total", -1, 0, 100) "Total" ';
         ELSE
              OPEN class_text ( 'SUM(DECODE(bin_id, ', ', bin_value, 0)) "Class ' );
         END IF;
         LOOP
              FETCH class_text INTO my_class_value_str;
              EXIT WHEN class_text%NOTFOUND;
              my_class_text_str := my_class_text_str || ', ' || my_class_value_str;
         END LOOP;
         CLOSE class_text;
         my_class_text_str := my_class_text_str || end_text;
         RETURN my_class_text_str;
    END get_class_text_str;
    /Edited by: user10641405 on Nov 19, 2009 8:16 AM
    Edited by: user10641405 on Nov 19, 2009 8:30 AM

    This is not a design I would use, but should work if coded properly. I would probably build a reference cursor query as text and use one open fetch and close.
    You have 2 input parameters, in_report_parameter_id and in_which. I could not find where in_report_parameter_id was used in the program, but the value passed in for in_which is being used in IF logic to decide how to open the cursor. After the cursor is open rows are being fetched and eventually the cursor is closed.
    The values in_which are compared to are hard-coded. It is the programmer's job to make sure the values listed are the right values and the actions taken are also correct. Your program is assuming that if the first 2 values are not encountered the third one listed is the one you want.
    To pass input values to a procedure you merely provide the values as a literal or variable in the call, something like
    whatever := get_class_text_str(1,'SELECT');

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

    Ravi, 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

  • Dynamic Input Parameter

    Hi,
    How can i pass input parameter dynamically.
    I need pass column called valid_no as a input parameter(only one input parameter)
    Based up on these i update the table called wvfl_acct and do other validations.
    Update table name set column1 = 1 where valid_no = Input parameter.(how to present the variable here in input parameter)
    Need to use EXCUTE IMMEDITE also fot this.
    Pls Help..
    Thanks visit my thread.

    Here is my code
    create or replace procedure (valid_no IN number) as
    Begin
    select valid_no from table2 where valid_no = ?(How to
    give the input parameter here)
    Update ----
    end;
    My valid_no comes from diferent work flows.so i need
    it to take as dynamicFirstly, don't name your parameters the same as your table columns otherwise it'll confuse things.
    i.e. it's more readable like:
    create or replace procedure (p_valid_no IN number) as
      v_valid_no number;
    Begin
      select valid_no
      into   v_valid_no
      from   table2
      where  valid_no = p_valid_no;
      Update ----
    end;Although you would be more likely to select something other than valid_no from the query as you already know that from your input parameter.
    Now if you have multiple input values to pass in, that's a different matter.

  • How to expose odata service for input parameter based procedure.

    i have created one procedure in my schema.
    CREATE PROCEDURE TEST
    (in id varchar) AS
    BEGIN
    SELECT * FROM "table" WHERE "ID" = :id;
    END;
    and i am able to call the procedure from console.
    CALL "schema"."TEST"('1')
    my question is how to expose this procedure as odata service.
    is there any way to do it. ???

    hello Avinash. this is where i stuck in my code. i dont know how to wrap procedure in calculation view..
    My procedure code is below.
    create procedure "Get_User_for_Project"(in PROJECT_ID VARCHAR(255), out OUTPUT_TABLE "schema"."test_table")
    language SQLSCRIPT sql security definer  as
    BEGIN
    truncate table "schema"."test_table";
    OUTPUT_TABLE = SELECT "ID", "FIRST_NAME", "LAST_NAME" FROM "schema"."U_USER" WHERE "ID" IN (SELECT "USER_ID" FROM "schema"."U_USER_PROJECT" WHERE "PROJECT_ID" = :PROJECT_ID);
    END;
    my procedure is working fine. i just need help to wrap in calculation view with input parameter.

  • Binding to Odata Service with Input Parameters from HANA

    Hello,
    I'm developing a UI5 application that consumes a SAP HANA OData service to search a database (using fuzzy search). This service receives an Input Parameter, used to query the database.
    So every time the user searches for something I build a new binding path and refresh the model to show the search results in the sap.m.List.
    The Model:
    var hanaModel =  new sap.ui.model.odata.ODataModel("…/services/seed.xsodata");
    this.setModel(hanaModel);
    The search event handler from sap.m.SearchField:
    var listBinding = this.getView().byId("list").getBinding("items");
    listBinding.sPath = "/FoodstuffByNameValuesParameters(P_NAME='" + searchString + "')/Results";
    this.getView().getModel().refresh();
    My question is if this is the correct approach to create the model and bind the list when we have a service with an Input Parameter, or if there is a better way to do it.
    (This approach is actually working).
    Regards,
    Paulo

    i would do
    var       filter = [];
    var selectFilter = new sap.ui.model.Filter("name", sap.ui.model.FilterOperator.Contains, sVal);
          filter.push(selectFilter);
    listBinding .filter(filter);

  • How to pass an "object" as a parameter in an web services request?

    I am developing a simple web service client and server (using Eclipse for auto code generation). I am able to pass String and Byte array from the client. However, there is a parameter "statusInfo" which is an object of the class "cz.unmz.namespaces.csn369791.SendCertificatesRequestStatusInfo" and I have no idea of how to do so.
    Below is an extract of the wsdl file:
       <xs:element name="SendCertificatesRequest">
        <xs:complexType>
         <xs:sequence>
          <xs:element name="callerID" type="xs:string"/>
          <xs:element name="messageID" type="xs:string" minOccurs="0" maxOc-curs="1"/>
          <xs:element ref="certificateSequence"  minOccurs="0" maxOccurs="1"/>
          <xs:element name="statusInfo">
           <xs:simpleType>
            <xs:restriction base="xs:string">
             <xs:enumeration value="new_cert_available_notification"/>
             <xs:enumeration value="ok_cert_available"/>
             <xs:enumeration value="failure_inner_signature"/>
             <xs:enumeration value="failure_outer_signature"/>
             <xs:enumeration value="failure_syntax"/>
             <xs:enumeration value="failure_request_not_accepted"/>
             <xs:enumeration value="failure_internal_error"/>
            </xs:restriction>
           </xs:simpleType>
          </xs:element>
         </xs:sequence>
        </xs:complexType>
       </xs:element>Below is an extract of the auto-gen SendCertificatesRequest.java file:
       private java.lang.String callerID;
       private java.lang.String messageID;
       private byte[][] certificateSequence;
       private cz.unmz.namespaces.csn369791.SendCertificatesRequestStatusInfo statusInfo;
       public SendCertificatesRequest(
          java.lang.String callerID,
          java.lang.String messageID,
          byte[][] certificateSequence,
          cz.unmz.namespaces.csn369791.SendCertificatesRequestStatusInfo) {
          this.callerID = callerID;
          this.messageID = messageID;
          this.certificateSequence = certificateSequence;
          this.statusInfo = status = statusInfo;
       public void setStatusInfo(cz.unmz.namespaces.csn369791.SendCertificatesRequestStatusInfo) {
          this.statusInfo = statusInfo;
       Below is the auto-gen SendCertificatesRequest.java file:
    * SendCertificatesRequestStatusInfo.java
    * This file was auto-generated from WSDL
    * by the Apache Axis 1.4 Apr 22, 2006 (06:55:48 PDT) WSDL2Java emitter.
    package cz.unmz.namespaces.csn369791;
    public class SendCertificatesRequestStatusInfo implements java.io.Serializable {
        private java.lang.String _value_;
        private static java.util.HashMap _table_ = new java.util.HashMap();
        // Constructor
        protected SendCertificatesRequestStatusInfo(java.lang.String value) {
            _value_ = value;
            _table_.put(_value_,this);
        public static final java.lang.String _new_cert_available_notification = "new_cert_available_notification";
        public static final java.lang.String _ok_cert_available = "ok_cert_available";
        public static final java.lang.String _failure_inner_signature = "failure_inner_signature";
        public static final java.lang.String _failure_outer_signature = "failure_outer_signature";
        public static final java.lang.String _failure_syntax = "failure_syntax";
        public static final java.lang.String _failure_request_not_accepted = "failure_request_not_accepted";
        public static final java.lang.String _failure_internal_error = "failure_internal_error";
        public static final SendCertificatesRequestStatusInfo new_cert_available_notification = new SendCertificatesRequestStatusInfo(_new_cert_available_notification);
        public static final SendCertificatesRequestStatusInfo ok_cert_available = new SendCertificatesRequestStatusInfo(_ok_cert_available);
        public static final SendCertificatesRequestStatusInfo failure_inner_signature = new SendCertificatesRequestStatusInfo(_failure_inner_signature);
        public static final SendCertificatesRequestStatusInfo failure_outer_signature = new SendCertificatesRequestStatusInfo(_failure_outer_signature);
        public static final SendCertificatesRequestStatusInfo failure_syntax = new SendCertificatesRequestStatusInfo(_failure_syntax);
        public static final SendCertificatesRequestStatusInfo failure_request_not_accepted = new SendCertificatesRequestStatusInfo(_failure_request_not_accepted);
        public static final SendCertificatesRequestStatusInfo failure_internal_error = new SendCertificatesRequestStatusInfo(_failure_internal_error);
        public java.lang.String getValue() { return _value_;}
        public static SendCertificatesRequestStatusInfo fromValue(java.lang.String value)
              throws java.lang.IllegalArgumentException {
            SendCertificatesRequestStatusInfo enumeration = (SendCertificatesRequestStatusInfo)
                _table_.get(value);
            if (enumeration==null) throw new java.lang.IllegalArgumentException();
            return enumeration;
        public static SendCertificatesRequestStatusInfo fromString(java.lang.String value)
              throws java.lang.IllegalArgumentException {
            return fromValue(value);
        public boolean equals(java.lang.Object obj) {return (obj == this);}
        public int hashCode() { return toString().hashCode();}
        public java.lang.String toString() { return _value_;}
        public java.lang.Object readResolve() throws java.io.ObjectStreamException { return fromValue(_value_);}
        public static org.apache.axis.encoding.Serializer getSerializer(
               java.lang.String mechType,
               java.lang.Class _javaType, 
               javax.xml.namespace.QName _xmlType) {
            return
              new org.apache.axis.encoding.ser.EnumSerializer(
                _javaType, _xmlType);
        public static org.apache.axis.encoding.Deserializer getDeserializer(
               java.lang.String mechType,
               java.lang.Class _javaType, 
               javax.xml.namespace.QName _xmlType) {
            return
              new org.apache.axis.encoding.ser.EnumDeserializer(
                _javaType, _xmlType);
        // Type metadata
        private static org.apache.axis.description.TypeDesc typeDesc =
            new org.apache.axis.description.TypeDesc(SendCertificatesRequestStatusInfo.class);
        static {
            typeDesc.setXmlType(new javax.xml.namespace.QName("http://namespaces.unmz.cz/csn369791", ">>SendCertificatesRequest>statusInfo"));
         * Return type metadata object
        public static org.apache.axis.description.TypeDesc getTypeDesc() {
            return typeDesc;
    }    In the client (an auto-gen JSP file), Eclipse has generated the following two lines of code:
    cz1unmz1namespaces1csn3697911SendCertificatesRequest_4id.setMessageID(messageID_5idTemp);
    cz1unmz1namespaces1csn3697911SendCertificatesRequest_4id.setMessageID(callerID_6idTemp);    I have also added the following line for the parameter "certificateSequence" (I have already prepared a Bytearray of certificateSequence)
    cz1unmz1namespaces1csn3697911SendCertificatesRequest_4id.setCertificateSequence(certificateSequence);    Can anyone suggest a way of passing the parameter "statusInfo"? Thanks.
    Edited by: stupidtss on Oct 28, 2009 12:32 AM

    You want something like this:
    DECLARE
      lio_success  VARCHAR2( 2000 );
      li_id        NUMBER;
      li_dep_id    NUMBER;
      li_sel_id := NUMBER;
      li_date DATE;
      lo_date DATE;
      lio_return_message xyz_bpe_rec_fn.xyz_bpe_rec_col;
      l_ret xyz;
    BEGIN
      lio_success := 'some value';
      li_id := NULL;     -- or some number
      li_dep_id := NULL; -- or some number
      li_sel_id := NULL; -- or some number
      li_date DATE := sysdate;
      lio_return_message.col1 := somevalue;
      lio_return_message.col2 := somevalue;
      lio_return_message.coln := somevalue;
      l_ret := get_xyz( lio_success
                      , li_id
                      , li_dep_id
                      , li_sel_id
                      , li_date
                      , lo_date
                      , lio_return_message );
    END;
    /

  • 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

Maybe you are looking for

  • ITunes 7.1.1 crashes at launch

    After installing iTunes 7.1.1, it crashed at launch. I can't start it at all. I re-installed iTunes and re-started the computer with no success.

  • CSS Style sheet not working in DW4

    I am new to Dreamweaver CS4 and have been following the tutorials for Beginners on Adobe TV. I have used a Standard Layout, 2 columns, Header, Footer, Sidebar. I have created and saved the CSS Style Sheet as suggested in a folder with the CSS panel.

  • What is a EbDynPro?

    What is a EbDynPro? Is it a Replacement for Iview Development

  • New Client: What is default login + password?

    I have created a new client (800) with transaction SCC4. What login can I use to access this new client? I've tried sap* with a variety of passwords including "pass", "PASS", "Pass", and several other system specific passwords that we've been using.

  • J2EE 1.3 certification

    Hi, I will keep repeating this question "when is Oracle coming out with J2EE1.3 certified appserver". I have found that Oracle guys have been very conviniently ignoring this question. Wake up guys! You might miss the train! Vimal