How to use content conversion for Complex structure

Hi All,
I want to know how to use content conversion for the following complex structure:
Data               
...Details            1 to Unbound
.....Header           1 to 1
.......HF1
.......HF2
.......HF3
.......ITEM           1 to unbound
.........ITF1
.........ITF2
all are of type string.
Thanks & Regards,
Viswanath
Message was edited by: Viswanath Mente

Hi,
In the content conversion,
give ur
1.document name as message type
2.give ur recordstructure as Details,,Header,1,ITEM,
3.mention ur keyfield.
conversion parameter
Header.fieldFixedLength - give the field lengths
Header.fieldNames=mention all the field name
Header.keyField=enter the value of keyfield
Header.endSeparator='nl'
repeat the same  for Item
regards
jithesh

Similar Messages

  • File Content Conversion for complex structure

    Hi
    I have a requirement to repeat a structure consisting of three lines i.e the segment  containing these 3 lines will have occurrence 0....unbounded and will be repeated in the File multiple times ,
    What is the level that can be handled in File Content Conversion's recordset structure ?
    My issue is that  the structure is
    Dt_File -> Repeating Level1->Level2 ->Field1
                                                ->Level2a->Field3
                                                -> Level2b->Field5
    where the first level is DT_File
    under which I have RepeatingLevel1 as a SubElement
    and under Repeating level I have Level2 , Level2a and Level2b at its subelementsl
    and under Level2 I have Field1 , Under Level2a i have Field3 and under Levle 2b i have Field5
    How do i handle this in the Content Conversion ?? as in how do I create my Recordset Structure ?? as it just handles one level below the Document Name (i,e) Message Type)
    Is it possible ??? or should i consider some other way to constuct my data type ??
    Thanks
    Dev

    Hi Tarang
    My DT according to the target file structure is this :
    DT_File
    >Main1(1,1)
    >Main2(1,1)
    >Main3(0...unbounded)
    >Record1(1,1)
    >Field1
    >Field2
    >Field3
    >Record2(1,1)
    >Field4
    >Field5
    >Record3(1,1)
    >Field6
    >Field7
    SO I want to confirm if the receiver FCC will be   -     Main1,Main2,Main3,Record1,Record2,Record3
    Record1.fieldSeparator  ,
    Record1.endSeparator     'nl'
    Record2.fieldSeparator  ,
    Record2.endSeparator     'nl'
    Record3.fieldSeparator  ,
    Record3.endSeparator     'nl'
    or                                                                   Main1,Main2,Record1,Record2,Record3
    Thanks
    Dev

  • How to do Content Conversion for this structure?

    Hi,
       Urgent required. I have the following structure as below. There is a headerData, itemData and textData. The data that wll come into headerData could be more than one, and the same applies to the itemData and textData. The File adapter is not able to pick this file structure. It is a fixed length file at the receiver end. Could any one tell me how to do the File Content Conversion (FCC) for the structure without using the FCC module. Points to be awarded to best answer. Thaanks in advance.
    The structure :
    <headerData>
    aaaaa
    bbbb
    cccc
    </headerData>
    <headerData>
    aaaaa
    bbbb
    cccc
    </headerData>
    <headerData>
    aaaaa
    bbbb
    cccc
    </headerData>
    <itemData>
    fff
    ggg
    hhh
    </itemData>
    <itemData>
    fff
    ggg
    hhh
    </itemData>
    <itemData>
    fff
    ggg
    hhh
    </itemData>
    <textData>
    fff
    ggg
    hhh
    </textData>
    <textData>
    fff
    ggg
    hhh
    </textData>
    <textData>
    fff
    ggg
    hhh
    </textData>

    HI,
    Use the following content conversion:
    I assume the data coming in the file is of below format:
    Here the key field name is K for 01,02 and 03
    01,aa,bb,cc
    01,aa,bb,cc
    02,ff,gg,hh
    02,ff,gg,hh
    03,hh,ff,hh
    03,hh,ff,hh
    If you data in the file is coming in the above way then your FCC will be
    Recordse strucutre: headerData,,temData,,textData,*
    Keyfield Name: K
    headerData.fieldNames: a,b,c
    headerData.fieldSeparator: ,
    headerData.endSeparator: 'nl'
    headerData.keyFieldValue: 01
    Similarly for itemData and text Data
    Refer the below weblog for the same:
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    Thnx
    Chirag Gohil

  • Can we use content conversion for this structure

    Hi,
    could any one help me on this
    MT_Type
       Segment(0-unbounded)
            field1
            field2
            field3
            Segment 2(0-unbounded)
                 field1
                 field2
            Segment 3(0-unbounded)
                 field1
                 field2
    thanks in advance

    Hi Avinash,
    is this possible by using the Message Transformation Bean for the folowing structure
    MT_Type
         Segment 1
              Segment2
                   field 1
                   field2
                   Segment3
                          field1
                          field2
    Is there possibilty to do it by FCC. If not which ll suit better
    thanks for your response

  • Content Conversion on complex structures

    Has anyone gotten content conversion to work on more than just simple parent/child structures?  We are able to do
    Recordset
    --LineA
    --LineB
    --LineC
    etc etc
    But we'd like "grandchildren" in our records -
    Recordset
    --Header01 (1)
    DetailA1 (unbounded)
    DetailA2 (unbounded)
    DetailA3 (unbounded)
    DetailB1 (unbounded)
    DetailB2 (unbounded)
    DetailB3 (unbounded)
    We can't figure out how to specify this structure.  I have seen several people ask the same question.  We currently accomplish it by setting up all the structures to be on the same level, and then in mapping we add context changes, but wondering if we're just missing some step in content conversion setup we could take advantage of.

    Hi Amanda,
    I have an input file with the following structure
    Header 1..unbounded
    ..Item 1..unbounded
    ....ItemCond 0..unbounded
    ....AddFields 0..unbounded
    ..HeadCond 0..unbounded
    ..Tender 0..unbounded
    I need to map this to an IDOC of the following structure :-
    E1WPB01
    ..E1WPB02
    ....E1WPB03
    ....E1WPB04
    ....E1WXX01
    ..E1WPB05
    ..E1WPB06
    In order to convert the XML created by file file adapter into a format suitable for mapping to the IDOC structure we are about to start work on a Java program to perform the conversion.  Obviously performance is a concern.  Are you saying that this can be solved by adding context changes?
    Regards
    Ian

  • How to use "create data" for temporary structures?

    Hi,
    I need to create a structure dynamically based on user provided structure definition. However, my test code throws an exception. I would appreciate it if someone can suggest me an alternative. The code follows.
    Thank you in advance for your help.
    Pradeep
    * The following string is actually passed as a parameter
    data: myLineStructure type string value
    'begin of mystruct,
        mara-matnr type mara-matnr,
        mara-mstae type maara-mstae,
        makt-maktx type makt-maktx,
    end of mystruct.'.
    data: tableLine type ref to data.
    create data tableLine type (myLineStructure).
    assign tableLine->* TO <line>.

    Hi Pradeep,
    First of all u need to create a field-catalog with user provided structure. Then u need to pass the same to create a dynamic internal table. Then create a line type of this table. Please copy & paste this code in ABAP editor which will serve ur purpose.
    TYPE-POOLS : SLIS.
    DATA: mylinestructure TYPE string.
    DATA: it_fieldcat TYPE lvc_t_fcat,
          is_fcat LIKE LINE OF it_fieldcat.
    DATA: new_line TYPE REF TO data.
    FIELD-SYMBOLS : <line> TYPE ANY,
                    <fs_table> TYPE STANDARD TABLE.
    CONCATENATE 'begin of mystruct,'
                 'mara-matnr type mara-matnr,'
                 'mara-mstae type mara-mstae,'
                 'makt-maktx type makt-maktx,'
                 'end of mystruct.' INTO mylinestructure.
    DATA: tableline TYPE REF TO data,
          lines TYPE i,
          off TYPE i,
          off1 TYPE i,
          tabname TYPE ddobjname,
          fieldname TYPE dfies-fieldname,
          ftype(50) TYPE c.
    DATA : BEGIN OF itab OCCURS 0,
           field(30),
           END OF itab.
    DATA :f_tab LIKE dfies OCCURS 0,
          wa_f_tab LIKE dfies,
          f_len TYPE dd01v.
    SPLIT mylinestructure AT ',' INTO TABLE itab.
    DELETE itab INDEX 1.
    DESCRIBE TABLE itab LINES lines.
    DELETE itab INDEX lines.
    LOOP AT itab.
      FIND 'type' IN itab-field MATCH OFFSET off.
      off = off - 1.
      is_fcat-fieldname = itab-field+0(off).
      off = off + 6.
      ftype             = itab-field+off.
      FIND '-' IN ftype MATCH OFFSET off1.
      tabname = ftype+0(off1).
      off1 = off1 + 1.
      fieldname = ftype+off1.
      CALL FUNCTION 'DDIF_FIELDINFO_GET'
        EXPORTING
          tabname        = tabname
          fieldname      = fieldname
        TABLES
          dfies_tab      = f_tab[]
        EXCEPTIONS
          not_found      = 1
          internal_error = 2
          OTHERS         = 3.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      READ TABLE f_tab INDEX 1 INTO wa_f_tab.
      CALL FUNCTION 'DDIF_DOMA_GET'
        EXPORTING
          name          = wa_f_tab-domname
        IMPORTING
          dd01v_wa      = f_len
        EXCEPTIONS
          illegal_input = 1
          OTHERS        = 2.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      is_fcat-datatype = f_len-datatype.
      is_fcat-intlen = f_len-leng.
      APPEND is_fcat TO it_fieldcat.
    ENDLOOP.
    CALL METHOD cl_alv_table_create=>create_dynamic_table
      EXPORTING
        it_fieldcatalog = it_fieldcat[]
      IMPORTING
        ep_table        = tableline.
    ASSIGN tableline->* TO <fs_table>.
    CREATE DATA new_line LIKE LINE OF <fs_table>.
    ASSIGN new_line->* TO <line>.
    Please reward if helpful.

  • Content conversion for multilevel varying structure File to Idoc

    Hi All,
    I have following file structure.
    VO
    C1
    S1 1 to unbounded
         H1 1 to unbounded
              D1 0 to unbounded
              D2 0 to unbounded
              U2 0 to unbounded
              UC 0 to unbounded
    My Idoc structure.
    ISU_EL34
         IDOC 0 to unbounded
              E1ISU34 1 to unbounded
                   ZSEGMENT 0 to 1
    I have applied the content conversion for the length specific file as follows.
    Recordset structure: VO,1,C1,1,S1,1,H1,1,D1,,D2,,U2,,UC,
    Do I need to do any changes over here to satisfy the above file structure.
    V0 and C1 occurs only once in a file.
    for S1 I should  have H1 compulsory and others are optional, but i need to create Idoc when D1 data is available only.
    I'm able to read the total file with the above content conversion.
    MY requirements:
    1) I need to create the Idoc based on the occurance of D1 node. I'm using H1 data also in the idoc not S1.
    2) My doubt is whether the content conversion I have provide is applicable to the structure I have prepared.
    3) When I'm trying useOneAsMany function for the above ie H1 data should repeat in Idoc as and when D1 repeats.I'm failing the error is both queues are not contain same number of data..
    Could anyone suggest how I should approach for the above scenario.

    Hi Sravya,
    It is really helpfull answer , Thanks for sharing my problem .
    It worked for this purpose, but I'm facing following problems
    MY scenario
    The file contains records V0,C1,S1,H1,D1,D2,U2 and Uc
    In which I’m using the data of H1,D1,D2,U2 and UC for creating target Idoc.
    Every H1 contains at least 1 D1 record, If D1 exists D2 ,U2 and UC may or may not exist.If exists those are in a sequence and should consider the data of them to create Idoc.
    Idoc should be created for every D1.
    Problem facing:
    Do we have any mechanism to group the D1 records to the relevant header.since I’m unable do this with content conversion.
    I think bcz of above problem; some records (D2 & U2 & UC) data is populating in Idoc even there is no D2,U2 and Ucs.
    Thanks,
    venu.

  • File content conversion for file with hierarchical structure

    Hi
    I want to read a flat file in the following message structure using file content conversion.
    Message structure is :
    01 ( occurence = 1)
    _ 1B (occurence = unbounded)
    _ 1G (occurence = unbounded)
    _1H (occurence = 1)
    _1N ( occurence = unbounded)
    99 (occurence = 1, trailer record)
    In short there will be one 01 ( header record) in file. There will multiple 1B records. Under one 1B record there will multiple 1G records. Under each 1G record there will be one 1H recoprd and multiple 1N record. At the end there will one 99 record.
    File format : Fixed length
    Data in the text file would be as follows :
    01Test
    1BF0001MS005       4855390859  
    1GF000172075F31501  GBPINV 040806
    1HF000172075F 
    1NF000172075F0011MS0051125002FOOUKSTFOOD
    1NF000172075F0021MS0056540003ICOMSIEARCA 
    1BF0111TT005       3454390859  
    1GF011172075F31501  INRINV 040806
    1HF011172075F 
    1NF011172075F0011MS0051125002FOOUKSTFOOD
    1NF011172075F0021MS0056540003ICOMSIEARCA 
    99002187004855390859
    Is it possible to do above using file content conversion or is there any method to do it. Please suggest.
    Thanks
    Varun

    you cant acheive this heirarchy using the file adapters cont. conv, cos it supports only to a single level.
    Maybe you can have a module or use the conversion agent !!
    Some good reads on the Conv. agent!!!
    /people/william.li/blog/2006/03/17/how-to-get-started-using-conversion-agent-from-itemfield
    /people/paul.medaille/blog/2005/11/18/conversion-agent-a-free-lunch
    /people/alexander.bundschuh/blog/2006/03/14/integrate-sap-conversion-agent-by-itemfield-with-sap-xi
    /people/paul.medaille/blog/2005/11/17/more-on-the-sap-conversion-agent-by-itemfield

  • Content Conversion for Sending Communication Channel using File Protocol

    I have a file as follows:
    CUSC,CRCA,OBAL,DATE
    10197,0111,15250094.05,20071008
    10758,0111,8131440.17,20071008
    12939,0111,8212006.53,20071008
    13129,0111,6953749.77,20071008
    13331,0111,8607294.15,20071008
    13579,0111,11972774.95,20071008
    13676,0111,6636698.47,20071008
    What is the content conversion that I can proceed with so that I can go with the mapping. I have to use File Adapter?
    Please Help

    Hi,
    Check below links for Content conversion.
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Regards,
    Phani
    Reward points if Helpful

  • File Content Conversion - Creating Mulitple structured Flat Files

    Hello,
           I am trying to create a flat file using File content Conversion.For simple XML strcutures like
    <Header>
    </Header>
       <Item>
       </Item>
    <Trailer>
    </Trailer>
    the file content conversion works fine. But whe the XML structure gets complicated like
    <Header>
    </Header>
       <Item>
          <Item_Detail>
          </Item_Detail>
       </Item>
    <Trailer>
    </Trailer>
    or
    <Header>
    </Header>
       <Item>
          <Item_Detail_1>
               <Item_Detail_2>
               </Item_Detail_2>
          </Item_Detail_1>
       </Item>
    <Trailer>
    </Trailer>
    I am not able to create the correct flat file with the Item_Detail information.How can I do the same ?
    Regards,
    Sandeep

    well same in the receiver side too....
    REF: http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    and sorry abt the earlier blogs, u can chk out the one below ....
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion

  • Flat File to XML using content conversion.

    Hi Experts,
    I am converting a flat file to xml structure.
    i need the structure of xml like :
    <LineA>
    </LineA>
    <LineB>
          <LineC>
          </LineC>
    </LineB>
    I am able to generate it in hierarchy
    <LineA>
    </LineA>
    <LineB>
    </LineB>
    <LineC>
    </LineC>
    How should i write structure of Recordset so that for  LineC so that it comes under the LineB tag ? I also dont want the name of recordset in my output, how can i do that ?
    Kulwinder.

    Hi
    Refer
    File Receiver with Content Conversion
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    Configuring the Receiver File/FTP Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm
    File content conversion sites
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    Please see the below links for file content conversion..
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter - FCC
    File Content Conversion for Unequal Number of Columns
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns - FCC
    Content Conversion (Pattern/Random content in input file)
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file - FCC
    /people/harrison.holland5/blog/2006/12/20/xi-configuration-for-mdm-integration--sample-scenario - FCC - MDM
    XI in the role of a FTP
    /people/shabarish.vijayakumar/blog/2006/04/03/xi-in-the-role-of-a-ftp - FCC
    File to R/3 via ABAP Proxy
    /people/prateek.shah/blog/2005/06/14/file-to-r3-via-abap-proxy - FCC
    /people/mickael.huchet/blog/2006/09/18/xipi-how-to-exclude-files-in-a-sender-file-adapter - EOIO - File
    http://help.sap.com/saphelp_nw04/helpdata/en/ee/c9f0b4925af54cb17c454788d8e466/frameset.htm - cc
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/95/bb623c6369f454e10000000a114084/content.htm - fcc cOUNTER
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/da1e7c16-0c01-0010-278a-eaed5eae5a5f - conversion agent

  • File Content Conversion for Unequal Number of Columns

    Hi,
    Iam following this thread FCC for Unequal Number of Columns.
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    when iam doing ,iam getting an error
    Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Parameter 'TOTALSET.fieldFixedLengths' or 'TOTALSET.fieldSeparator' is missing Consistency check: no. of arguments in 'TOTALSET.fieldFixedLength' does not match 'TOTALSET.fieldNames' (0 <> 1)
    My conversion parameters are
    Recordset Structure                      : TOTALSET,*
    TOTALSET.fieldNames                 : ITEMSET
    ignoreRecordsetName                   : true
    TOTALSET.fieldSeparator              : 'nl'
    My file structure is as below
    01,021000021,G4886704,080919,0742,001,,,2
    02,G4886704,021000021,1,080918,0742,,2
    03,000000135073477,,010,105303839,,,015,489113155,,,045,489039455,,,072,73700
    Please help in resoving the error.
    Thanks in Advance
    Srinivas

    Hi Srivinas,
    your file structure is as below
    01,021000021,G4886704,080919,0742,001,,,2
    02,G4886704,021000021,1,080918,0742,,2
    03,000000135073477,,010,105303839,,,015,489113155,,,045,489039455,,,072,73700
    So it's easy, you have to use KEYFIELD option, coz you have something like that :
    Line 1 : keyfield = 01 following by a limited number of columns (e.g 30 fields for Structure1)
    Line 2 : keyfield = 02 following by a limited number of columns (e.g 14 fields for Structure2)
    Line 3 : keyfield = 03 following by a limited number of columns (e.g 23 fields for Structure3)
    Thanks to the Keyfield, you define a field which is present in each line that you can used to distinguished the different structures of lines. In your case, it seems that the keyfield is the first column (01, 02, 03).
    Try to use that:
    Recorset = TOTALSET         (and don't use option "ignoreRecordsetName : true")
    Recordset structure =Structure1,1,Structure2,(star),Structure3,(start)       (the difficulty will be to find the good use of "*" and "1", but after some tests you will find the good one).
    Note: replace (start) by the character " * "
    Key field value = keyfield
    Key field type  = String (case sensitive)
    Structure1.fieldNames  = keyfield,field2, field3 etc.. of Structure1
    Structure2.fieldNames  = keyfield,field2, field3 etc.. of Structure2
    Structure3.fieldNames  = keyfield,field2, field3 etc.. of Structure3
    and then you will have a XML like that:
    TOTALSET
    Structure1  and all its fieldN
    Structure2  and all its fieldN
    Structure2  and all its fieldN
    Structure3  and all its fieldN
    Structure3  and all its fieldN
    TOTALSET
    Structure1  and all its fieldN    because I used Structure1,1
    Structure3  and all its fieldN
    Regards.
    Mickael
    Edited by: Mickael Huchet on Apr 20, 2009 5:18 PM
    Edited by: Mickael Huchet on Apr 20, 2009 5:19 PM

  • Hierarchy on file content conversion for receiver?

    Y'all,
    I'm stuck in this problem and I haven't find a solution to solved it... so, all your clues and reply's are really appreciate...
    The basic problem is a File content conversion for a receiver C.C. that is not working and it's raising some errors in the RWB, I have gone thru some blogs but I still having a lot of doubts...
    I want to produce a flat TXT file that will have a line for every node or subnode, it doesn't matter if it's not represented as hierarchical structure like this one... but the records must be produced or written in the same order...
    Man_Del_Header as main node with Man_Header, Delete_Detail and Trailer as subnodes...
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:MT_DISTRIBUTOR_DELETE xmlns:ns1="http://xxx.com/xi/POSout">
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>051</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>051</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005010</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005011</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00005</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00002</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
       <Man_Del_Header>
          <MD_Header>|HM|1|</MD_Header>
          <MD_StoreNumber>061</MD_StoreNumber>
          <MD_filler1>|2|0000|3|</MD_filler1>
          <MD_EffDate>09/17/07</MD_EffDate>
          <MD_filler2>|4|005|5|dsdvnd|7|</MD_filler2>
          <MD_BatchNumber>500</MD_BatchNumber>
          <MD_fiiller3>|8|</MD_fiiller3>
          <MD_BatchDescr>DELETE PREV CST BTCH</MD_BatchDescr>
          <MD_filler4>|10|D|</MD_filler4>
          <MD_linef>1</MD_linef>
          <Man_Header>
             <Man_Header>|HM|1|</Man_Header>
             <Man_StoreNumber>061</Man_StoreNumber>
             <Man_filler1>|2|0000|3|</Man_filler1>
             <Man_EffDate>09/17/07</Man_EffDate>
             <Man_filler2>|4|005|5|dsdvnd|7|</Man_filler2>
             <Man_BatchNumber>500</Man_BatchNumber>
             <Man_filler3>|8|</Man_filler3>
             <Man_BatchDescription>Delete Distributor</Man_BatchDescription>
             <Man_filler4>|</Man_filler4>
             <Man_linef>Constant</Man_linef>
          </Man_Header>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005012</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005013</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Delete_Detail>
             <Delete_Detail>|D|901|170|</Delete_Detail>
             <Delete_DistribNumber>0000005014</Delete_DistribNumber>
             <filler9>|</filler9>
             <delete_linef>1</delete_linef>
          </Delete_Detail>
          <Trailer>
             <Trailer>|T|1|</Trailer>
             <TotalRecCnt>00006</TotalRecCnt>
             <filler1>|2|</filler1>
             <NoOfHeaders>00002</NoOfHeaders>
             <filler2>|3|</filler2>
             <NoOfAdds>00000</NoOfAdds>
             <filler3>|4|</filler3>
             <NoOfChanges>00000</NoOfChanges>
             <filler4>|5|</filler4>
             <NoOfDeletes>00003</NoOfDeletes>
             <filler5>|13|</filler5>
             <NoOfSubstitution>00000</NoOfSubstitution>
             <filler6>|</filler6>
             <linef>1</linef>
          </Trailer>
       </Man_Del_Header>
    </ns1:MT_DISTRIBUTOR_DELETE>
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|051|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005010|1
    |D|901|170|0000005011|1
    |T|1|00005|2|00002|3|00000|4|00000|5|00002|13|00000|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|DELETE PREV CST BTCH|10|D|1
    |HM|1|061|2|0000|3|09/17/07|4|005|5|dsdvnd|7|500|8|Delete Distributor|Constant
    |D|901|170|0000005012|1
    |D|901|170|0000005013|1
    |D|901|170|0000005014|1
    |T|1|00006|2|00002|3|00000|4|00000|5|00003|13|00000|1
    So as you can see, i wanna produce a flat file that will have line or record for each node, it doesn't matter that it has a hierarchy or a deeper level, it should be a simple flat file...
    The thing is that i have been trying to setup the receiver comm. channel and it's raising some errors like Could not process due to error:
    <i>java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.Exception: Message processing failed in XML parser: 'java.lang.Exception: Consistency error: more fields found in XML structure than specified in conversion parameters! (Value 'XXXX')', probably configuration error in file adapter (XML parser error)'</i>
    I have checked this blog:
    /people/karthiknarayan.kesavan2/blog/2007/08/22/file-content-conversion-for-multi-hierarchical-structure
    Unfortunately i don't know if there's another way to achieve this...

    Jerry,
    it easy if you go with multi mapping concept and without BPM if you are above >XI3.0 SP14.and use Append mode in the receiver file adapter.
    just create the target structure like root under that Man_Del_Header,Man_Header,Detail,Trailer at the same level but got be careful with occurences.
    <b>Source:</b>
    I think from your structure you have
    Man_Del_Header  (1-unb)
    Man_Header   (1-1)
    detail   (0-unb ) may be (1-unb)
    trailer (1-1)
    create <b>target DT</b> like:
    ROOT
    ..Man_Del_Header  (1-1)
    ..Man_Header   (1-1)
    ..detail   (0-unb ) may be (1-unb)
    ..trailer (1-1)
    all are at same level under ROOT.
    create MT,MI,MM,IM.
    in MM just map correspoding fields and if you have any unbounded onces map the nodes too. and map Man_Del_Header in the source to MT_XYZ (important)
    and in the MM go to MESSAGES tab and change the occurences of the target Message to 0-unbounded same way in the interface mapping 0-unbounded.
    here it create anothe extra node in the mapping something like Message1,this is ok.
    and in ID just create all other objects like as usual except  creating Interface determination ,in that select the extended radio button.
    in reciever File CC use FCC ,would be very simple in the recordsetstrcture give
    your four nodes Man_Del_Header,Man_Header,Detail,Trailer.
    and use either fixed or field seperator.use append mode in recv File CC otherwise it will generate files as many occurences your source "Man_Del_Header" has ,cos we are mapping it to the MT--xyz .
    thats it you are ready to go...
    if any error post back here again.
    you can make use of this thread
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible  (here there are two target DT ,but you just create one DT,remaining are similar)
    good luck.
    Babu

  • Content Conversion for Item node under Header node

    Hi,
    Below is the file sample:
    0LBS00000000082011090707:30:13~0000000009
    4GBP55.67SB300005VISTADocNO1100DistChanPaymentDays
    5001QuanUoMNetPriceGrossPricePubDiv9781444724585201109071001.1
    5002QuanUoMNetPriceGrossPricePubDiv9781444724585201109071001.1
    4GBP55.67SB300005VISTADocNO1100DistChanPaymentDays
    5001QuanUoMNetPriceGrossPricePubDiv9781444724585201109071001.1
    1~7
    Record Type:Header Record(Always = 0),Min Occurrence:1,Max Occurrence:1
    Record Type:Sales Invoice Header Record (Always = 4),Min Occurrence:0,Max Occurrence:unlimited
    Record Type:Sales Invoice Item Record (Always = 5) ,Min Occurrence:1(per Sales Invoice Header Record)
    ,Max Occurrence:999999 (per Sales Invoice Header Record)
    Record Type:Trailer Record(Always = 1),Min Occurrence:1,Max Occurrence:1
    In content conversion:
    Record set structure:Header,1,SalesInvoiceHeader,(Star),SalesInvoiceItem,(Star),Trailer,1
    Key field name:RecordType
    Header.fieldSeparator ~
    Header.fieldNames RecordType,SendingSystem,FileNumber,CreationDate,CreationTime,NextFileNumber
    Header.keyFieldValue 0
    SalesInvoiceHeader.fieldSeparator ~
    SalesInvoiceHeader.fieldNames cordType,Currency,ExchangeRate,DocumentType,Customer,VistaDocNumber,PubDiv,DistChan,PaymentDays
    SalesInvoiceHeader.keyFieldValue 4
    SalesInvoiceItem.fieldSeparator ~
    SalesInvoiceItem.fieldNames RecordType,ItemNumber,Quantity,UoM,NetPrice,GrossPrice,PubDiv,Material,BillDate,VATAmount,VATRate
    SalesInvoiceItem.keyFieldValue 5
    Trailer.fieldSeparator ~
    Trailer.fieldNames RecordType,RecordCount
    Trailer.keyFieldValue 1
    ignoreRecordsetName true
    The Src str in ESR is
    1. Header
    2. SalesInvoiceHeader
    SalesIncoiveItem(Chlid node of SalesInvoiceHeader)......
    3. Trailer
    Provide some inputs
    Thnkx

    VJ,
    You are absolutely right it is not possible to get multiple hierarchy using file content conversion.
    Splitbyvalue function would not work in my scenario as I need to group FED records based on first few characters in the first column of FED records. I wrote a UDF to insert context change based on the column value.
    Thanks again for your help.
    Regards
    Haseeb

  • How to use File Adapter with hierarchial Structure?

    Hi,
    How to use File Adapter with hierarchial Structure like..
    Data:
    --Header Details:
    Line Item Details:
    Data
    Bcoz I am getting a Flatfile in a hierarchial way as shown below.
    Header Details :1
    Line Item a
    Line Item b
    Header Details :2
    Line Item c
    Line Item d
    Kishore

    Hey Kishore,
    In order to create a structure you need to use the file with convertion mode on the sending communication channel of the file adapter.
    check the link for the needed configuration paramters.
    If the structure is more complexed you can use the Contetnt master(CM) from itemfield which allows to ceate XML file from complex flat files and more.
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/0d/5ab43b274a960de10000000a114084/frameset.htm">File sender adapter</a>
    If you have any question i'll be more than happy to assist.
    Nimrod Gisis

Maybe you are looking for

  • Itunes 11 has downloaded but will not install on my pc, error message below

    no idea how to fix this.... have downloaded i tunes 11 successfully but it won't install. it comes up with.... the cabinet file 'iTunes.cab' required for this installation is corrupt and cannot be used. This could indicate a network error, an error r

  • Developer 6 with PO7 or PO8

    When i try to install both in then whichever is being installed later gives general protection fault and installation terminates. is there a compatibility problem ?

  • Item label help no longer allows HTML

    Hi. Moved to V4 from V3. The help text when displayed now escapes the HTML I have in place. I use DB functions to return help text (which include HTML markup) into a "hidden"-type field. That is then used in the help text definition for another item

  • BOR events as user-exits?

    Hi! Is it possible to use BOR events as enhancements (user-exits) in ABAP? For example, the BOR object "BUS1178001 - Material" has event "Material.Created". I suppose this event is raised when an article was created in Material Master. Is it possible

  • ICloud Account Keeps Asking for Password in System Preferences

    I am extremely frustrated with iCloud. I'm on Lion 10.7.3. Two main issues: System Preferences, iCal, and Contacts keeps asking for my iCloud account password over and over again. It will not retain the password whne I type it in. I know the password