Copy imported IDOC structure to own data type structure in PI

I am looking to copy the imported IDOC structure to data type structure, is there any way to do this instead creating whole elements again. The reason to do this is I need to change the occurence of one of the element and standard IDOC structure wouldn't let me do it.
Thanks,
Menaga

Hi Menaga,
Inorder to change the occurance in IDOC you will need to import the idoc as external definition which you can use for message mapping (once you change the occurance and import the XSD).
Michal's blog will help you get to it precisely,
/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
Gud luck,
Regards,
Pavan

Similar Messages

  • Creating own data types

    Hi,
    How can i create my own data types????
    Thanks,
    Mohit.

    Hi,
    Through TYPES statement you can create your own datatypes. And through Type-pools you can create global data.
    Re: type pools
    Reward if useful!

  • Data type structure while picking data from MS Access database

    Dear All,
    I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
    Regards,
    NJ

    Hi Nishu,
    Sender side the structure is as follows
    db_sen_dt
    ..... emp_row
    ..........  f1
    ..........  f2
    Structure is complex then check this blog
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC to RFC Scenario, but it is synchronous
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH  
    Also check this link
    Regards
    Ramesh

  • Problem to transform Flat file to Data Type Structurated and map to IDOC

    Hi all,
    I have a file to idoc scenario.
    The information is like this:
    1#!445#!AI12#!1#!20070214#!DVXXXXR#!201#!31GINHG876#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    where 1, 2, ... = key segments for the file adapter and #! are the field separator.
    this must go to a Data Type with substructures like this:
    (xml)
    .1
    ......2
    .3
    ......4
    ......5
    where 2 is inside 1 and 4-5 inside 3.
    The reason of this is we can get unbounded replays of 3/4/5 for one header.
    But XI reads the information like if all segments are headers.
    .1
    .2
    .3
    .4
    .5
    So the IDOC is bad created.
    Where is the issue?  At Message Mapping all substructures are mapped with his default and at TEST option it works fine.
    Thanks in advance for your help.
    best regards
    Message was edited by:
            Federico Martin
    Message was edited by:
            Federico Martin

    Dear people,
    according to license problems at client, it's impossible to get the convert agent.
    so now we come back to try to solve with normal mapping.
    the next step is try to convert it using 2 message mappings: dt (flat xml) to dt (structurated) and this one to the idoc.
    i suppose it can be done adding program at interface mapping.
    I created the no hiereachical Data Type for load the information and it's fine. But i am unable to get the first mapping OK, because XI has problems with unbounded segments.
    If you agreed and has time, i copy here the information and his structure.
    I receive (#! defines separation and key segment fields are 1,2,3,4,5):
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    5#!pos5
    5#!pos5
    The destination must be:
    CHASE A
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    3 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    5 (1..unbounded)
    5 (1..unbounded)
    5 (1..unbounded)
    CHASE B
    Or, in another case with 5 as child of 3 (like example in last mail)
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    Questions:
    How i do for map Data Type (no hierachical) -to-> Data Type (hierachical) and  Data Type (hierachical) -to-> IDOC? Is any loop or context object required?
    Thank you in advance for your help and sorry the long thread.

  • Calling Idoc structure in creating Data Type

    Dear All,
    In Data Type I want the same structure of Idoc as I have imported in the IR. So, do I have to manually create each segment in the Data Type or is there any short-cut to call the same structure of an idoc in the data type.
    Warm Regards,
    N.Jain

    Hi Nishu,
    No need to create the DT for IDOC.
    you can use the same IDOC structure.
    You the export and import xsd options for the IDOC.
    Cheers...
    Vasu
    <b>** REward POints if found useful **</b>

  • Dynamic structure of "string" data type. Please help.

    ABAPers,
    I am calling cl_alv_table_create=>create_dynamic_table method to dynamically create a structure. The input structure definition is as follows:
    data: xfc type lvc_s_fcat.
    data: ifc type lvc_t_fcat.
    * define Fld1
    clear xfc.
    xfc-fieldname = 'Fld1'.
    xfc-datatype = 'string'.
    append xfc to ifc.
    * define Fld2
    clear xfc.
    xfc-fieldname = 'Fld2'.
    xfc-datatype = 'string'.
    append xfc to ifc.
    Although the call to create_dynamic_table does not throw any exceptions, it appears Fld1 and Fld2 are not of "string" data type. I don't know of a way to see what type they are. However, they do have a length limit of 10 characters.
    After some experimenting, it turns out that the method simply ignores "datatype" value if it doesn't understand it and creates the field with some default data type.
    I would appreciate it if someone can show me how to create fields of "string" data type.
    Thank you in advance for your help.
    Pradeep

    That's right, use STRG as the datatype.  Please see the example program.
    report zrich_0003.
    type-pools: slis.
    data: new_table type ref to data,
          new_line  type ref to data.
    data:  xfc type lvc_s_fcat,
           ifc type lvc_t_fcat.
    field-symbols: <dyn_table> type standard table,
                   <dyn_wa>,
                   <fs>.
    start-of-selection.
      clear xfc.
      xfc-fieldname = 'Field1' .
      xfc-datatype = 'STRG'.
      append xfc to ifc .
      clear xfc.
      xfc-fieldname = 'Field2' .
      xfc-datatype = 'STRG'.
      append xfc to ifc .
    * Create dynamic internal table and assign to FS
      call method cl_alv_table_create=>create_dynamic_table
        exporting
          it_fieldcatalog = ifc
        importing
          ep_table        = new_table.
      assign new_table->* to <dyn_table>.
    * Create dynamic work area and assign to FS
      create data new_line like line of <dyn_table>.
      assign new_line->* to <dyn_wa>.
      assign component 1 of structure <dyn_wa> to <fs>.
      <fs> = 'This is string 1'.
      assign component 2 of structure <dyn_wa> to <fs>.
      <fs> = 'This is string 2'.
      append <dyn_wa> to <dyn_table>.
    * Write the values of internal table.
      loop at <dyn_table> into <dyn_wa>.
        do.
          assign component sy-index of structure <dyn_wa> to <fs>.
          if sy-subrc <> 0.
            exit.
          endif.
          write:/ <fs>.
        enddo.
      endloop.
    REgards,
    Rich Heilman

  • OWB Can't Import Existing Package with Collection Data Type as Arguments

    I created a package and compiled it successfully as the follows:
    +++++++++++++++++++++++++++++
    CREATE OR REPLACE PACKAGE PACKAGE_TEST AS
    TYPE Num_LIST IS TABLE of NUMBER INDEX BY BINARY_INTEGER;
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER;
    END PACKAGE_TEST;
    CREATE OR REPLACE PACKAGE BODY PACKAGE_TEST AS
    FUNCTION TEST_FUNCTION1 ( arg1 NUMBER, arg2 NUMBER) RETURN NUMBER IS
    ln_sum NUMBER;
    BEGIN
    ln_sum := arg1 + arg2;
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION1;
    FUNCTION TEST_FUNCTION2 ( args NUM_LIST) RETURN NUMBER IS      
         ln_sum NUMBER;
    BEGIN
    ln_sum :=0;
         FOR i IN 1.. args.COUNT LOOP
         ln_sum := ln_sum + args( i );     
         END LOOP;     
         RETURN ln_sum;     
    EXCEPTION
    WHEN OTHERS THEN
    RETURN -10000;     
    END TEST_FUNCTION2;     
    END PACKAGE_TEST;
    ++++++++++++++++++++++++++++++++++++++++
    Then I tried to import the package into OWB (9.2). The problem came: all the package body and
    the specification of TEST_FUNCTION1 were imported, but the package specification of
    TEST_FUNCTION2 couldn't be imported. The IMPORT FILTER gave an error message:
    "TEST_FUNCTION2: Argument Data type is not supported".
    How to resolve this problem? It is very import for our project, since we have to import some
    packages with user_defined collection data types as arguments.
    Thank you.
    Lushu

    Hi Lushu,
    Unfortunately this is indeed not supported and I would not know how to work around this one. The only way I guess that this would work is to not import it, and then use Expressions to call the function with inputs.
    Jean-Pierre

  • A structure with mutiple data types or array of array

    I want to read some soft of a table from a text file and want to store in a structure (not in database) for future use. I want the structure to have rows and columns when I need to reach. Colums should store multiple data types (int and/or string). I have examined Collections that only store one data type and only one dimension. I need a structure that holds multiple datatypes and at least 2 dimension. In short I need array of array? Any example or suggestion?

    Here is the colection part. But I cound not get it finished. Stuck at getting data from collection.. How could I read from the collection
        public static Long ReadFromFile() {
            List liste = new ArrayList();
            try {
                FileReader file = new FileReader ("abc.txt");
                BufferedReader buffer = new BufferedReader (file);
                String line = "";
                int i = 0;
                while ((line = buffer.readLine())!= null) {
                    if (i>0) {
                        DataS kontrol = new DataS();
                        String [] temp = null;
                        temp = line.split("\t");
                        for (int j=0; j< temp.length; j++) {                       
                            if (j== 0 && StrUtil.ValidNumber(temp[0])>0 ) {
                                kontrol.set_C_id(temp[0]);
                            } else if (j== 1) {
                                kontrol.set_C_enabled(temp[1]);
                            } else if (j== 2) {
                                kontrol.set_C_table(temp[2]);
                            } else if (j== 3) {
                                kontrol.set_C_field(temp[3]);
                            } else if (j== 4) {
                                kontrol.set_C_xmlobjectname(temp[4]);
                            } else if (j== 5) {
                                kontrol.set_C_xmlsubobjectname(temp[5]);
                            } else if (j== 6 && StrUtil.ValidNumber(temp[6])>0 ) {
                                kontrol.set_C_controltype(temp[6]);
                            } else if (j== 7) {
                                kontrol.set_C_datatype(temp[7]);
                            } else if (j== 8 && StrUtil.ValidNumber(temp[8])>0 ) {
                                kontrol.set_C_datalength(temp[8]);
                            } else if (j== 9 && StrUtil.ValidNumber(temp[9])>0 ) {
                                kontrol.set_C_dl(temp[9]);
                            } else if (j== 10) {
                                kontrol.set_C_conditionop(temp[10]);
                            } else if (j== 11) {
                                kontrol.set_C_conditionval(temp[11]);
                        liste.add(kontrol);                   
                    i++;
                    buffer.close();
            catch (IOException e) {
                return Long.valueOf(-1);
            /*For reading test*/
            try{
                DataS stored_kontrol = new DataS();
                Iterator itr = liste.iterator();
                int i = 0 ;
                while(itr.hasNext()) {
                    //Object obj = itr.getClass();
                    // Here were I stuck... How can I read from collection which is filled with object
            } catch (Exception e) {
                return Long.valueOf(-1);
            return Long.valueOf(1);
        }

  • How to pass complex data type structure to WebService under mx:request?

    From my Flex client, I need to pass data to a web service whose operation expects a complex data type with multiple layers of nesting structure. How can I populate the <mx:request> for the <mx:WebServices>? Any examples?
    A couple of approaches come to my mind:
    (1) construct ActionScript object to mimic the datatype expected by web service, and pass an instance of the AS object to mx:request; or
    (2) construct an entire SOAP request body in XML and pass it into mx:request.
    Does any of these (or both) work? If both work, which is the better way?
    Thanks in advance for your input!
    -William

    Thanks a lot for the rapid response, Marcel.
    For further details on the maping between WS complexType structure and AS object, is there any specific requirement? such as naming, binding, structure of nesting, etc.
    William

  • Data Type structure within ABAP

    Can the structure of a message type within XI be seen using ABAP.

    Hi Martin !
    I'm afraid not. The process works the other way around. You can create/define it in ABAP and then import it in XI (as RFC).
    Or design it in XI (Integration Repository) and "export" it as an ABAP Proxy class in SAP ERP.
    Regards,
    Matias.

  • Importing an SQL Server TEXT data type field in Oracle - problem with LONG

    Hello,
    I work in Oracle 9i and I created a view on a distant SQL Server database that contains a TEXT data type field. But I have a problem when I select that field in Oracle; I have the following error message: "ORA-00997: forbidden use of LONG data type".
    Could anybody have a solution for me, to solve that problem?
    Thanks a lot!

    It is very difficult to suggest anything without seeing your code.  I don't even know if what you are seeing is the actual value or an error code.  Often, negative numbers are indicative of error codes. 
    For instance -1 could mean that you have an invalid reference or path, etc...
    Can you post your code?

  • Structure of a data type(Sender JDBC adapter)

    Hi Experts,
    I've 5 columns. There's a possibility of getting multiple records at a time. How should my source data type look like?
    Data type(1..unbounded)
    .........Column1(1..1)
    ..........Column2(1..1)
    ..........Column5
    OR
    Data type
    ....Rowset(1..unbounded)
    ..................Col1(1..1)
    ..................Col2(1..1)
    ...................Col5(1..1)
    Thanks,
    Vishal

    Vishal,
    Use this one :
    Data type
    ....Rowset(1..unbounded)
    ..................Col1(1..1)
    ..................Col2(1..1)
    ...................Col5(1..1)
    Col1(1..1)...means each time value will come in this field .., so make it Col1(0...1)...means if value comes it will accept if not o.k..
    Regards ,

  • Read Data Type Structure

    Hi,
    Is it possible using ABAP to read the schema definition of a data type to provide a list of the elements defined.
    Thanks
    Martin

    Hi,
    In ABAP you can parse xml or xsd using iXML package. Search for that in SDN.
    The Message Interface will surely have the Message type name. So your requirement is absolutely possuble.
    Need to know in which scenario you will use this? Please post that.
    Regards,
    P.Venkat

  • WSDL structures for complex data types

    Hi there
    Assume that a WSDL returned this:
    <s:complexType name="Employee">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="fname"
    type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="lname"
    type="s:string" />
    <s:element minOccurs="1" maxOccurs="1" name="active"
    type="s:boolean" />
    </s:sequence>
    </s:complexType>
    You would build your structure like this:
    stEmployee = structNew();
    stEmployee.fname = "John";
    stEmployee.lname = "Smith";
    stEmployee.active = TRUE;
    But is your structure function the same if the WSDL returns
    this?
    <s:complexType name="Employee">
    <s:sequence>
    <s:element minOccurs="1" maxOccurs="1" name="fname"
    type="tns1:FName" />
    <s:element minOccurs="1" maxOccurs="1" name="lname"
    type="tns1:LName" />
    <s:element minOccurs="1" maxOccurs="1" name="active"
    type="s:boolean" />
    </s:sequence>
    </s:complexType>
    <complexType name="FName">
    <simpleContent>
    <extension base="xsd:string"/>
    </simpleContent>
    </complexType>
    <complexType name="LName">
    <simpleContent>
    <extension base="xsd:string"/>
    </simpleContent>
    </complexType>
    Don't ask *me* why they did it that way.... why a simple
    string value had to be defined again as a complex type with simple
    content.
    Would my structure still be
    stEmployee = structNew();
    stEmployee.fname = "John";
    stEmployee.lname = "Smith";
    stEmployee.active = TRUE;
    or would it have to somehow acknowledge that the first two
    variables (the first and last names) have this redundant level of
    complexity?
    Thanks
    Neal

    Neal, can you please provide me with the URL of WSDL you are
    using, method you are trying to call and sample data (if there is
    any specific data you have to pass) to check this particular method
    call?

  • BEx: V 3.5: Structures: Duplication of data when structure is used.

    Good day
    I have searched SDN already, but could not find an anser for my issue.
    I have created a Structure in columns which include the characteristic "Model Key" as follows:
    BUS = Model Keys (BUS and CVLA)
    FUSO = Model Keys (MCTR and MFUS)
    In the query results the user would like to see the key figure results per the structure = BUS and FUSO, but still wants to see the detail of the characteristic "Model Key". Thus the results should be:
    STRUCTURE:   MODEL KEY:   Keyfigure 1:   
    BUS             :    BUS            :    20
    BUS             :   CVLA           :     1
    FUSO           :    MCTR          :     10
    FUSO            :   MFUS          :      4
    But what the query is returning is:
    STRUCTURE:   MODEL KEY:   Keyfigure 1: 
    BUS             :    BUS            :    20
    BUS             :   CVLA           :     1
    BUS              :   MCTR          :    
    BUS               :  MFUS          :
    FUSO           :    MCTR          :     10
    FUSO            :   MFUS          :      4
    FUSO            :    BUS           :    
    FUSO            :    CVLA         :  
    Why is it returning the extra lines (line 3,4 and 7 and 8)?
    Thanks for your time.
    Have a nice day
    Cj

    That is the standard operation with structures. If you have a structure and add a drill down by a characterisitic, all values are displayed.

Maybe you are looking for

  • ITunes updating crashing windows?

    This is third time I'm typing due to some unknown error apple website is showing me. It's hard to type whole thing again and again. I happen to follow the lates iTunes update notification for windows and installed. It asked me to restart and after re

  • How open a report with Viewer 2008 without using Visual Studio and Java

    Hi, There is a way to open a report (with parameters) save in a web server with Crystal Report Viewer 2008 without using Visual Studio or Java ? I've an asp page and i want to open this report using some command (I know asp, vbscript and html) In the

  • How do i make a blog

    is it possible to put a blog on my web page where other people can post anything at anytime?

  • After Effects CC (12.0) and Mavericks

    I installed the demo version of the latest After Effects CC (12.0) on Mavericks. It is not working. After downloading the patch for CC it tells me: This patch is not applicable for you. Please check for updates from Help menu in your product to see a

  • How can I watch TV on my iMac?

    Hello, I have just bought a 27" iMac yesterday and I am wondering if I am able to watch TV on it as it is in my bedroom and positioned in front of my bed. The previous computer I had, had a built in Freeview TV with a remote that allowed me to watch