How to specify Complex Type Parameter

Hi,
Can anyone tell me how to specify a complex type parameter using the AddServiceDefinition command in the fnscript? Thanks
Pao Wang
NMR

The only types supported are those listed in the Process Development Guide.
Stephen

Similar Messages

  • How to specify the type of table in the form parameters

    How to specify the type of table in the form parameters. for example, how to specify the type of table "vacancies".
    FORM getcertainday
                       USING
                       vacancies TYPE STANDARD TABLE
                       efirstday LIKE hrp9200-zfirst_day
                       lfristday LIKE hrp9200-zfirst_day.

    Hi
    Are you asking about subroutine program to declare a variable for perform statement etc
    if it so check this coding
    DATA: NUM1 TYPE I,
    NUM2 TYPE I,
    SUM TYPE I.
    NUM1 = 2. NUM2 = 4.
    PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
    NUM1 = 7. NUM2 = 11.
    PERFORM ADDIT USING NUM1 NUM2 CHANGING SUM.
    FORM ADDIT
           USING ADD_NUM1
                 ADD_NUM2
           CHANGING ADD_SUM.
      ADD_SUM = ADD_NUM1 + ADD_NUM2.
      PERFORM OUT USING ADD_NUM1 ADD_NUM2 ADD_SUM.
    ENDFORM.
    FORM OUT
           USING OUT_NUM1
                 OUT_NUM2
                 OUT_SUM.
      WRITE: / 'Sum of', OUT_NUM1, 'and', OUT_NUM2, 'is', OUT_SUM.
    ENDFORM.
    If your issue is some other can u explain me clearly
    Regards
    Pavan

  • How to specify a type of COM-object activation

    How to specify a type of COM-object activation: in-proc, local server etc - in C# client? I want to use a .NET analog of CLSCTX_INPROC_SERVER constant. Documentation for used COM component insist that all types of activation are possible.

    When you create an instance of a COM object using COM Interop, it is the equivalent of calling CoCreateInstance with CLSCTX_ALL.
    (See COM Interop Part 1: C# Client Tutorial.)
    If you don't like the automatic behavior, then Create the object manually (PInvoke CoCreateInstance) and just marshal the interface pointer to get a runtime callable wrapper by specifying
    MarshalAs(UnmanagedType.Interface) on the result.  (The DllImport signature provided at the pinvoke.net link above marshals it this way.)

  • How to use complex types in a odata url filter

    Hello,
       I am in the process of building a service that uses a complex data type as input in a query filter. I am not sure how the url will need to be generated and also how to retireve this complex type in the get_entity_set method.
    Example:
       I have a complex type as below:
    Name:
    with properties
      Firstname
      Lastname.
    I would like to pass the name as a query filter. an I am not sure how to do this.
    Should it be like this:
    https://.../service/getdetails?$filter=Name.firstname eq 'John' and Name.Lastname eq 'Smith'
    My second question is how do I retireve this filter in the get_entity_set method.

    Hi Rajesh,
    I have done the Scenario using Function import and done the code and working fine.
    But here my question is how to retrieve the data when we are using return type is complex..
    Give me the sample URI format for the above query.
    I have done the code for function import in excute_action method.
      Data : ls_entity1    TYPE zcl_zproj_fm_import_mpc=>banks,
                lt_entity1    TYPE STANDARD TABLE OF zcl_zproj_fm_import_mpc=>banks.
    WHEN 'BankComplex'.
           IF it_parameter IS NOT INITIAL.
    * Read Function import parameter value
             READ TABLE it_parameter INTO ls_parameter WITH KEY name = 'BankCtry'.
             IF sy-subrc = 0.
               lv_country = ls_parameter-value.
             ENDIF.
             IF lv_country IS NOT INITIAL.
               CALL FUNCTION 'BAPI_BANK_GETLIST'
                 EXPORTING
                   bank_ctry       = lv_country
                   max_rows        = '100'
    *          IMPORTING
    *            RETURN          =
                 TABLES
                   bank_list       = lt_banklist
               LOOP AT lt_banklist INTO  ls_banklist .
                 ls_entity1-bankctry   = ls_banklist-bank_ctry.
                 ls_entity1-bankkey = ls_banklist-bank_key.
                 ls_entity1-bankname = ls_banklist-bank_name.
                 ls_entity1-city    = ls_banklist-city.
                 APPEND ls_entity1 TO lt_entity1.
               ENDLOOP.
    * Call methos copy_data_to_ref and export entity set data
               copy_data_to_ref( EXPORTING is_data = lt_entity1
                       CHANGING cr_data = er_data ).
             ENDIF.
           ENDIF.
    Thanks,
    Syam

  • How to transform complex types

    I am trying to use the tranformation tool to map a internal 'SalesOrder' object to an external return object that has a slightly different structure.
    My SalesOrder object has a property of type Set which holds one-to-many SaleItem objects. In the transformation tool I don't see any way to map the objects within the SalesItem set to a similar Set in my output object.
    Without mapping the child objects (SalesOrder.SalesItem --> SalesOrder.SalesItem) that are within this SalesOrder I will end up with a ClassCastException when the client accesses the Set of SalesItems within it's returned SalesOrder return parameter from my process.
    What am I missing?

    Hi Johan,
        Thanks for the valid response.
        And one more question:
            How to maintain session in CAF Application Service?
            My scenario is:
                     I have used a webservice as external service in CAF, which contains several methods.
    suppose, If I call login() method in webservice, the user session should be maintained through Application Service even if I call another method in the web service.
            I have now directly using the external service in my Application Service. 
    When using Entity service the session is maintained without any problem.
    But session is not working in Application Service.
           What could be the problem?

  • How to specify Associated Type ?

    Hi,
       In the Form Interface in the tables section. i've mentioned the parameter name as itab and type as table and Associated type as spfli. But, it's giving an error saying - SPFLI Flat types may only be referenced using LIKE for table parameters. How can i correct this error. My requirement is to print the spfli table using smart forms..
    Thanks in Advance..

    Hi
    Use LIKE instead of TYPE.
    If you want to use TYPE, you need to create a TABLE TYPE based on SPFLI by SE11
    Max

  • How to create Array type parameter of Oracle 10.2.0.1.0 in java

    I create a collection type with:
    CREATE OR REPLACE
    type TEST_User.T_ARRAY AS TABLE OF VARCHAR2(100);
    and in java code, I use following code to create a parameter of this type, and set it for a procdure
    String[] userMakeArray = new String[]{"V", "N", "A"};
    oracle.sql.ArrayDescriptor descriptor = oracle.sql.ArrayDescriptor.createDescriptor("TEST_User.T_ARRAY", cn); // cn is connection instance to database
    oracle.sql.ARRAY array = new oracle.sql.ARRAY(descriptor, cn, userMakeArray);
    ((oracle.jdbc.OracleCallableStatement)call).setArray(8, array);
    when i use this to call procedure in Oracle 10.1, it work well.
    In Oracle 10.2, it does not work well.
    For test, I can execute procedure well in sql plus, but in java client, I found that array contains three items "Null", while array is correct when conect to 10.1 enviroment.
    does anybody know what's the reason for this.
    thanks a lot.

    Hi,
    Too long to copy/paste here but i have a simpler working example of Nested Table of VARCHAR2 type against 10.2.0.x, in chapter 3 and 8 of my book:
    create or replace type NTab_Vc2 as TABLE of varchar2(30)
    create table NSTableTab (id int, numnt NTab_Num, vc2nt NTab_Vc2, datnt
    NTab_Dat)
    nested table numnt store as NSTabNum,
    nested table vc2nt store as NSTabVc2,
    nested table datnt store as NSTabDat;
    insert into NSTableTab values (1,
    NTab_Num(1, 2, 3, 4, 5, 6, 7, 8, 9, 10),
    NTab_Vc2 ('One', 'Two', 'Three', 'Four', 'Five', 'Six', 'Seven', 'Eight', 'Nine', 'Ten'),NTab_Dat('01-JAN-2003', '02-JAN-2003', '03-JAN-2003', '04-JAN-2003',
    '05-JAN-2003', '06-JAN-2003', '07-JAN-2003', '08-JAN-2003',
    '09-JAN-2003', '10-JAN-2003')
    // The following code snippet retrieves and returns a
    // NTab_Vc2 as a java.sql.Array
    OraclePreparedStatement ps = (OraclePreparedStatement)
    conn.prepareStatement ("SELECT VC2NT FROM NSTableTab
    WHERE ID = ?");
    ps.setNUMBER (1, id[0]);
    OracleResultSet rs = (OracleResultSet) ps.executeQuery();
    Array a = null;
    while (rs.next())
    a = (Array) rs.getObject(1);
    ps.close();
    return a;
    Kuassi, http://db360.blogspot.com/2006/08/oracle-database-programming-using-java_01.html

  • How to specify MIME type handlers in Safari?

    In the old days, it was possible to specify the MIME type handler in web browsers like Netscape, etc. I can't seem to find this functionality in Safari. Is it possible to do this?
    Specific intended use case: I use a website that includes document attachments that are of MIME type message/rfc822. They're just the text source of email messages (with a .eml extension). When I click on a link to one of these attachments, Safari wants to download it to a file, warns me that a ".eml" file might be dangerous (that's another thing I'd like to fix), and so forth. It's just a text file. I'd like to make Safari just display the text, as if it were of MIME type text/plain.
    Any hints or is not not possible?
    Thanks,
    Scott

    Maybe this is something that RCDefaultApp could do?

  • How to define complex type with table per record?

    Hi,
    for one of my tasks I'm dealing with XML export. After short investigation of the postings in the forum I found an acceptable solution:
    Re: Convert ABAP to XML and Vice versa
    The issue is that I need an XML file like this:
    <plant>
      <material>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <purchases>data</purchases>
        <sales>data</sales>
        <sales>data</sales>
        <sales>data</sales>
      </material>
      <next material>
      </next material>
    </plant>
    So here are the questions:
    1. Is it possible (and how) to define such deep structured type where for each record (means material) there is at least 1 internal table connected to that record? That would let me use a record-2-DOM conversion and a standard DOM-2-XML renderer.
    2. Could anyone please provide a very simple and short example?
    Of course, I could write my own XML renderer and achieve what I need (without using DOM, simply write to file all the desired XML tags while looping at my *nested* tables), but if there is a way to define such a structured type and further to fill it with data, it would help me learn a little bit more about abap opportunities and would save me a bit more time to create a renderer.
    Many thanks in advance.
    Regards,
    Ivaylo Mutafchiev

    Hi,
    You can declare deep structure as below
    TYPES : BEGIN OF ty_address,
              house(10) TYPE c,
              street(10) TYPE c,
            END OF ty_address.
    TYPES : BEGIN OF ty_itab,
             name(10) TYPE c,
             age      TYPE i,
             address  TYPE ty_address OCCURS 0,
            END OF ty_itab.
    DATA : i_address TYPE STANDARD TABLE OF ty_address,
           i_itab    TYPE STANDARD TABLE OF ty_itab.
    DATA : wa_address TYPE  ty_address,
           wa_itab TYPE  ty_itab.
    CLEAR :  wa_address,
             wa_itab.
    wa_address-house = 'House1'.
    wa_address-street = 'Street1'.
    APPEND wa_address TO i_address.
    wa_address-house = 'House2'.
    wa_address-street = 'Street2'.
    APPEND wa_address TO i_address.
    wa_itab-name = 'Test'.
    wa_itab-age  = 10.
    wa_itab-address[] = i_address[].
    APPEND wa_itab TO i_itab.
    Also check structure BSPL_GRID_FIELDCAT field CELL_COLOR

  • How to specify attachment type in Tiger Mail?

    I recently updated to MS Office 11.2. Since then, when I click on Word attachments in emails that I receive, they open by default in another application (Nisus Writer Express) rather than in Word. How is this preference set? Is there a way I can reset it so that Word attachments will open by default in Word?

    Drag one of the those attachments to your Desktop. Select it with the mouse and press COMMAND-I to open the Get Info window. In the section labeled Open With click on the little down arrow to expand the pane. Select Word from the dropdown menu as the default app, then click on the Change All button. Hopefully, that should do the trick.

  • How to display complex type result from web service?

    Hi,
    I am trying to invoke a web service with the following code
    but I can't display the result. Can someone help me how to display
    the result?
    <cfset randomID = CreateUUID()>
    <cfset today = Now()>
    <cfset args = StructNew()>
    <cfset args.login = "wanna">
    <cfset args.key = "#DateFormat(today, 'YYYY-MM-DD')#
    #TimeFormat(today, 'hh:mm:ss')#:#Left(randomID,12)#">
    <cfset args.hash= LCase(Hash("123456" & args.key,
    "SHA"))>
    <CFINVOKE webservice="
    http://sandbox.voxbone.com/ws/services/VoxService?wsdl"
    METHOD="getCountriesList"
    AuthenticationToken="#args#"
    RETURNVARIABLE="Result">
    <cfoutput>#Result#</cfoutput>

    I have tried using that that it display the following. I was
    expecting a list of coutries but it display the following text
    only. Can you guide me in displaying list of countries?
    "object of
    voxbone.webservices.services.containers.ArrayOfCountry"
    Methods hashCode (returns int)
    equals (returns boolean)
    getCountry (returns
    [Lvoxbone.webservices.services.containers.Country;)
    getCountry (returns
    voxbone.webservices.services.containers.Country)
    getSerializer (returns interface
    org.apache.axis.encoding.Serializer)
    getDeserializer (returns interface
    org.apache.axis.encoding.Deserializer)
    getTypeDesc (returns org.apache.axis.description.TypeDesc)
    setCountry (returns void)
    setCountry (returns void)
    getClass (returns java.lang.Class)
    wait (returns void)
    wait (returns void)
    wait (returns void)
    notify (returns void)
    notifyAll (returns void)
    toString (returns java.lang.String)

  • How to specify server type (shared/dedicated/pooled) through a datasource

    Hi, subject says all, I could not find such info in the JDBC users guide.
    I would need to select the server type - e.g shared/dedicated/pooled - on a per-connection base.
    This would imply to set this type to the datasource, likely through some property. No info, though.
    Thanks for any help.

    Hi,
    Don't think you can. This is server side process architecture, not something you set up per connection?
    Edit:
    Sorry, maybe you can
    http://download.oracle.com/docs/cd/E11882_01/network.112/e10835/tnsnames.htm#i454847
    Maybe an Oracle Net key-value pair in jdbc oci?
    http://download.oracle.com/docs/cd/E11882_01/java.112/e16548/instclnt.htm#CHDDGJDJ
    Regards
    Peter
    Edited by: Peter on May 3, 2011 3:04 PM

  • How to use Adaptive WebService Model with CAF WebService and Complex Type

    Hi All,
    I am trying to use the Adaptive Web Service Model and call a WebService generated by the CAF. The return type of the WebService is a Complex Type.. I receive an exception when trying to instantiate the Model Node.
    Does anybody know how to use the Adpative Web Service Model with CAF WebServices and Complex Types as return type?
    Help is appreciated..
    Thanks, Johannes

    Thanks Mukesh.
    It is not possible to apply the Service Controller Template on Enterprise Java Bean Models as described in the Document. When I try to aply the template on the EJB Model, NWDS says: Only Webservice Models and RFC Models are supported...???
    I did not find any information about how to return complex types in AWS.. in this document???
    Is there such information available? Has anybody ever done that? There must be a way to do that.. Is is the standard approach, isn't it...? Please help me out there.. I need to get this running..
    Thanks, Johannes

  • @WebParam with complex type

    Hi,
    I have a web-service method with a complex type parameter
    example : Class Person (name, age)
    and i have @WebParam(name = "person ") Person person
    and i want to get in the soap message the atrribute (name and age ) and not <person/>
    Is that possible
    Thanks in advance
    :)

    Hi,
    more explanation:
    @WebMethod
         public void printResult(@WebParam(name = "person") Person person)in the request soap message i get :
    <log:printResult>
             <!--Optional:-->
             <person/>
          </log:printResult>while I want to get this result :
    <log:printResult>
             <!--Optional:-->
             <person>
                 <name></name>
                 <age></age>
            </person>
          </log:printResult>assuming
    public class Person{
    private String name;
         private int age;
    }Thank you
    :)

  • Hard-coding complex type web service parameter

    Hi,
    I am trying to populate a drop-down list with data returned from a web service. The web service requires one parameter, but it is a complex type with many elements. I don't need any user input, I want to set the the parameter values programatically. Is this something that can be done with a web service data control?
    I know that I can edit the action binding and specify a parameter, but I'm not sure how to do this when the parameter is a complex type.
    I hope I am explaining this in a way that makes sense. I am fairly new to both Jdeveloper and web services.
    I am using JDeveloper 11.1.2.0.0
    Thanks.

    Thanks for the link. The article is from 2006 and I was under the impression that there was more support for complex types now. Maybe in my case I am better off using a web service proxy?

Maybe you are looking for

  • Installing Windows 7 On Bootcamp - help

    I was looking around on tutorials for this, but it says you need a MAC OS Installation disc?!?! I use a iMac 27inch and it did not come with such a disc. Could you clarify that I can install Windows 7 with my iMac with what I have... bootcamp Windows

  • I cannot find a Java update, or my software update is not working... Running Mac OS X 10.5.8 keep getting need Java 1.0.6_11 with no luck...?

    I am running 10.5.8, I can find no software update as recommended by Ziplogix for Java which keep saying that I am missing 1.0.6_11 Where do I go to download and install this so I may work... lol?

  • How to customize the values displayed in the calendar?

    Hi, Can anyone tell me where can I find the source code of the calendar? While creating the calendar, in the wizard we give the table names and column names. But I want to modify the query according to my requirement. So I just want to know where can

  • ADF Block/Jam paper disappeared

    I have an HP Office jet Pro 8600 plus, and was scanning an A5 piece of paper through the automatic document feeder for a double sided scan. The machine came up with fault saying paper jam in ADF, I looked to clear the jam but the paper seems to have

  • 6300 E-mail attachment

    I cant send a picture using e-mail attachment with my phone? Able to send and receive normal plain text,checked all the e-mail settings. File format, picture taken from the phone itself. Firmware version 5.50, What seems to be the problem here?