IDOC to File Mapping problem.

Hi all,
I am working on IDOC to file scenario. Here I need to create CSV file for some fields of the IDOC. Actually flat file should contain around 65 comma separated fields irrespective (independent of the segment presence in the IDOC) of the existence of the corresponding filed in the idoc structure. So could you please tell me how to handle this situation?
Here file is supposed to be created with 65 fields. But it only contains few of those, as some segments in the IDOC are missing. Is there any dependency between the filed and its header/segment?
Thanks in advance,
-Kanth.

Hi Prasad,
<i>But it only contains few of those, as some segments in the IDOC are missing. Is there any dependency between the filed and its header/segment?</i> - yes, if your  source IDOC is having some segments missing, then your target will not have those segments, so some of your target data will be lost.......
To avoid this you can go for a JAVA mapping.....
Thanks,
Rajeev Gupta

Similar Messages

  • Problem in idoc to file mapping

    Hi Experts,
    I am doing a idoc to file scenario...
    There is a single idoc with multiple header and line items .
    I am using multi mapping for header and lineitems.
    The problem i am facing is regarding the occurences in target strucure...
    at which level they should be specified so all the headers come in one strucure and line items in another...or should the occurences be o to unbounded at each field level.
    Kindly help me regarding the same ...

    hi
    i have the same scenario : IDOC (orders) to Flat File. can you plz help in mapping. the input format to XI is in the given way
    idoc
        a1---(0-1)
        a2---(0-1)
           b1--
        a3---(0-1)
           b1---(0-n)
             c1---
           b2---
             c1---
        a3---(0-n)
           b1---
           b2---
        a3---
          b1---
          b2---
        a3
          b1---
          b2---
    i have created the same output DT in the same format (parent-child) for flat file. and my questions are
    1. is that correct, do i need to create the same DT as the above idoc (like parent and child) or different?
    2. how to map the idoc fields to my file DT..do i need to map parent to parent and child to child...or different.
    plz help me out
    Thanks
    ram

  • JDBC- XI- File Mapping Problem

    Hi everyone,
    I have the mapping problem.  atried a lot of possibilities, but unfortunately nothing helps... JDBC adapter returns (in my case - I'm just selecting SYSDATE from dual) this structure
    <resultset>
    <row>
       <SYSDATE>....</SYSDATE>
    </row>
    </resultset>
    I'm using 2 datatypes:
    a, row (it is called so) which is complextype and consists of subelement SYSDATE, which is string
    Exastly: row->SYSDATE
    b, resultset (it is called so) is complex type which consists of subelement of type row(type a - see above) (and this subelement is also called row) ...and it has of course subelement SYSDATE, which is String (see the data type a above)
    Exactly: resultset->row->SYSDATE
    The data type b is used for the outbound interface in the message coming from the JDBC Adapter, the type a is used for message type sent into the File Adapter
    (exactly: Message1String is the ResutSet Type(b), Message1String2 is the Row(a) type)
    Can somebody help me, what is wrong? I do always get mapping error... :O(
    Thanx, Peter

    So your message type has a different name?
    Take the name of your message type and link this to "document name" of your JDBC adapter configuration.
    Compare the xml output of the JDBC adapter (take this from the SXMB_MONI payload) with the default structure of the mapping (go to the mapping tool, test mode, create a new test and view the xml structure)
    Regards
    Stefan

  • Flat file mapping problem.

    Hi,
    I've just created a file mapping, and i'm trying to split a flat file field into 3 subfields for a xml record, but i have the following message:
    Before the process run, i've tested the message mapping and the interface mapping, and the log result said that the mapping has been successfully ended, so, Have you ever seen this problem before?
    I appreciate your help, thanks.
    Marzolla.

    Hi Jorge,
              Check your XML input. Try to put the same xml instance in the message mapping transformation and test it out.
    Regards,
    Dhana

  • IDOC to FILE - Output problem

    Experts,
    In the IDOC I receive, there a ~ symbol after each record.
    So while conversion, my file is holding only the first record. Later records are missing.
    What do I need to do to get complete file output.

    Hi Veera:
    <b>IDOC DT:</b>
    Z_Generic_IDOC
      IDOC
         Z_Items
    <u>       BLOB</u>
    <b>O/P DT:</b>
    MTMatmas
      itemlist
         item
    <u>       BLOB</u>
    <u>I Mapped ONLY BLOB WITH BLOB.</u>
    Testing at MM level, its executing fine and giveing me all records. But failing when executing as a scenario. Records after that ~ sysmbol are not recognized.
    Error Message from Monitoring:
    Could not process due to error: 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 'R256353\#\#HELICAL GEAR\#PC\#\#\#07\#N\#\#CCELERATOR\#\#\#Y\#\#00\#\#\#\#')', probably configuration error in file adapter (XML parser error)'
    So Please let me know your ideas if any.
    Thanks
    Kiran

  • IDOC to File scenario problem

    Hello,
    I configured this scenario:
    R/3 4.6C (IDOC) -> XI -> XI File Adapter (IDOC-XML)
    I am on SP Stack 10 (i386)
    IDOC arrived to XI with success, but there is no file in out directory of File adapter. In Audit Log in Adapter Engine of XI I get errors:
    <b>1. Error Unable to find channel ID
    2. Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: bf6a8684-e3ac-9540-a055-c9156b6c4edb</b>
    After 3 retries message stuck in System Error.
    Here is a detail log:
    2005-03-03 08:50:57 Success The message was successfully received by the messaging system. Profile: XI URL: http://xi3:53700/MessagingSystem/receive/AFW/XI
    2005-03-03 08:50:57 Success Using connection AFW. Trying to put the message into the receive queue.
    2005-03-03 08:50:58 Success The message was successfully retrieved from the receive queue.
    2005-03-03 08:50:58 Success The message status set to DLNG.
    2005-03-03 08:50:58 Error Unable to find channel ID
    2005-03-03 08:50:58 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: bf6a8684-e3ac-9540-a055-c9156b6c4edb.
    2005-03-03 08:50:58 Success The asynchronous message was successfully scheduled to be delivered at Thu Mar 03 08:55:58 CET 2005.
    2005-03-03 08:50:58 Success The message status set to WAIT.
    2005-03-03 08:55:58 Success The message was successfully retrieved from the receive queue.
    2005-03-03 08:55:58 Success The message status set to DLNG.
    2005-03-03 08:55:58 Error Unable to find channel ID
    2005-03-03 08:55:58 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: bf6a8684-e3ac-9540-a055-c9156b6c4edb.
    2005-03-03 08:55:58 Success The asynchronous message was successfully scheduled to be delivered at Thu Mar 03 09:00:58 CET 2005.
    2005-03-03 08:55:58 Success The message status set to WAIT.
    2005-03-03 09:00:58 Success The message was successfully retrieved from the receive queue.
    2005-03-03 09:00:58 Success The message status set to DLNG.
    2005-03-03 09:00:58 Error Unable to find channel ID
    2005-03-03 09:00:58 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: bf6a8684-e3ac-9540-a055-c9156b6c4edb.
    2005-03-03 09:00:58 Success The asynchronous message was successfully scheduled to be delivered at Thu Mar 03 09:05:58 CET 2005.
    2005-03-03 09:00:58 Success The message status set to WAIT.
    2005-03-03 09:05:58 Success The message was successfully retrieved from the receive queue.
    2005-03-03 09:05:58 Success The message status set to DLNG.
    2005-03-03 09:05:58 Error Unable to find channel ID
    2005-03-03 09:05:59 Error Delivery of the message to the application using connection AFW failed, due to: Couldn't find delivery channel for message: bf6a8684-e3ac-9540-a055-c9156b6c4edb.
    2005-03-03 09:05:59 Error The message status set to NDLV.
    Also I checked <b>admin_adapter.txt</b> file in \usr\sap\XI3\DVEBMGS37\j2ee\cluster\server0\log\services\com.sap.aii.adapter.file.svc directory:
    2005-03-02 22:40:02 : File Adapter Administration Stopping Sequence Executed
      No adapter configured
    2005-03-02 22:44:07 : File Adapter Administration initialized
      <b>No adapter configured</b>
    But, I configured File Adapter in Integration Directory as Active, and also in SXI_CACHE is present:
    Communication Channel     File
    Adapter Engine Type     CA
    Adapter Engine Name     af.xi3.xi3
    Adapter Name     File
    Adapter Namespace     http://sap.com/xi/XI/System
    Adapter Software Component     3B787A8035C111D6BBE0EFE50A1145A5
    Message Protocol     File
    Message Protocol Vers.     3.0.0527
    Transport Protocol     File
    Call Direction     O
    Where is a problem?.
    BTW, I get a same problem with DEMO: Distributing Booking Order Data.

    Hi,
    Try make a CPACache refresh.
    (Http://<host>:5<sysnr>00/CPACache/refresh?mode=full) use XIDIRUSER.
    We had a similar error after SP10, (every thing seems active, but it wasn't). It was solved by doing the cache refresh.
    Hope it's help you
    Rolf

  • Idoc to file mapping

    hi
    i have a scenario : IDOC (orders) to Flat File. can you guys plz help in mapping.
    the input format to XI is in the given way
    idoc
    a1---(0-1)
    a2---(0-1)
    b1--
    a3---(0-1)
    b1---(0-n)
    c1---
    b2---
    c1---
    a3---(0-n)
    b1---
    b2---
    a3---
    b1---
    b2---
    a3
    b1---
    b2---
    i have created the same output DT in the same format (parent-child) for flat file. and my questions are
    1. is that correct, do i need to create the same MT as the above idoc (like parent and child) or different?
    2. how to map the idoc fields to my file MT segnments.do i need to map parent to parent and child to child...or different way
    plz help me out
    Thanks
    ram

    the give below is more clear form
    idoc
    a1---(0-1)
    a2---(0-1)
      b1--
    a3---(0-1)
      b1---(0-n)
        c1---
      b2---
        c1---
    a3---(0-n)
      b1---
      b2---
    a3---
      b1---
      b2---
    a3
      b1---
      b2---
    Thanks
    ram

  • IDoc to EDI mapping problem (Invoic01 to 810 v4010)

    Hi,
    I have a problem with my invoice mapping.
    I need to exclude children parts from the outbound EDI invoice.
    In my mapping I was able to control the number of lines that should go out from the top line item node level using:
    G_SIT1 ->  If E1EDP02-QUALF = 002 then E1EDP02-ZEILE->Remove Context->SplitByValue->CollapseContext->G_STI1
    I have the right amount of lines but the fields under G_STI1 are wrong since I'm missing the last ones. 
    Then I tried different combinations + playing with the contexts and played again with the top node and my conclusion is that it might be easier to exclude them in IDoc in SAP using an UserExit?!?
    Anybody was able to get around this problem without changing the IDoc in R/3?

    Can I filter on a partner type KU? I need to customize an outboud invoice to not send some segments.
    Or is it only for type LS?
    Rgds,
    Yves

  • IDoc-XI-File Processing problem

    Hi There -
    I am looking for expert help in resolving following issue:
    We developed multiple IDoc-XI-single File using BPM (with time=1 min) in SP14. The scenario was working fine.
    Now we transported to XI SP15 on UNIX. While testing some messages are in recorded status with Q stopped error. But File is being created with some messages.
    Help in resolving this issue is appreciated.
    Regards,
    Tom

    Hi,
    If there some idocs are missing while collecting, then try to do Local Correlation instead of Global Correlation.
    Suugested SAP Notes- 852019
    Just look into this-
    /people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages
    Message scheduled (waiting )
    /people/sravya.talanki2/blog/2005/11/02/overview-of-transition-from-dev-to-qa-in-xi
    Hope this helps,
    Pls acknowledge
    Regards,
    Moorthy

  • Empty files mapping problem

    I have to map empty files to another server. The first one is access by FTP.
    How can I do that?

    Hi,
    I didnt understand ur question can u pls explain in detail what r u looking for.
    in file adapter v have a option of handling empty file....
    refer the section Handling of Empty Files
    http://help.sap.com/saphelp_nw04/helpdata/en/e3/94007075cae04f930cc4c034e411e1/frameset.htm
    chirag

  • Orders IDOC  XML File Size Problem

    Hi,
    I am generating an XML through XML port using IDOC. But I am getting on 3 KB XML file, so that a lot of Data is truncated.  How I get the complete XML file.

    Hi Raghu,
    have a look at the XLSX file generated by Excel, you'll see that it's simply a zipped file. So you can't do it with a transformation, but you need CL_ABAP_ZIP class. I advise you to look at the abap2xslx project ABAP code (currently 3.0) to see how it works.
    Best regards,
    Sandra

  • Mapping problem: IDOC - XI - File

    Hi,
    in my scenario (Z-IDOC - XI - File) I have problems with the mapping:
    Z-IDOC :
    ZFIBUCH1
    _IDOC
    ___Begin
    ___EDI_DC40
    ___Z1L061 (0..999999999)
    _____Z1L062 (0..999999999)
    example
    L061 18000 DE 0101 23236318 050605 EUR
    __L062 18000 XXX XXX
    __L062 18000 XX1 CCC3
    L061 87000 DE 0101 050605 EUR
    __L062 87000 XXX XXX
    __L062 87000 XX1 XAA4
    the result should look like this :
    L061 18000 DE 0101 23236318 050605 EUR
    L062 18000 XXX XXX
    L062 18000 XX1 CCC3
    L061 87000 DE 0101 050605 EUR
    L062 87000 XXX XXX
    L062 87000 XX1 XAA4
    I tried the following  (target)-data types in the mapping but nothing did’nt work very well :
    MT_ZIFUCH_FILE
    __ row
    _____L061
    _______L062
    or
    MT_ZIFUCH_FILE
    __ row
    _____L061
    _____L062
    or
    MT_ZIFUCH_FILE
    _____L061
    _____L062
    Do I need here a BPM? Or should I use XSLT-Mapping??
    Or knows somebody a easyer way?
    Regards
    Christoph

    Hi,
    As per  my understanding to have a flat file struture you would require a flat structure at the target side.One similar to the second structure mentioned by you.
    DT_Target
    |_Header
           |______L61.....segment (child of header)
           |______L62.....segment (child of header)
    Using the mapping we convert the idoc structure to flat structure and then use content conversion like this :
    Recordset structure : L61,L62
    L61.fieldSeparator = ,(for you this value should be space)
    L62.fieldSeparator = ,
    I have not been able to convert the Target hierarchial structure to a flat file via content conversion.
    when i tried I got the values as
    L61,1800,...EUR,L62,8700,......
    Hope this helps,
    Regards,
    Sulakshana

  • IDOC- XI- FILE(s) 1..n mapping problem

    I am working on a IDOC->XI->FILES scenario and am stuck on mapping of idoc segments to output structure.
    IDOC structure is as following,
    WBBDLD05 (1..1)
         IDOC (1..1)
              EDI_DC40 (1..1)
              E1WBB01 (1..10000) ...
    so the idoc being sent has multiple E1WBB01 segments, i need to do some content check for each E1WBB01 segment and create files based on thats. (ie. if there are 10 of E1WBB01 segments that meets a condition like "E1WBB02:ATTYP = 01", then i should create a file with 10 lines, and if there are 5 segments that meets "E1WBB01.E1WBB02:ATTYP = 00 or 02" condition , then i need to ALSO create another file with another structure with 5 lines)
    i intend to use ccbpm as i find it easier to manipulate control steps. So far i am able to receive abstract idoc message interface, but as i am stuck on this mapping issue, i am not able to use the transformation step for checking content of each E1WBB01 data.
    thank you in advance for any help

    u wud need to loop thru to check for all the contents and have them transformed accordingly. u can check with block . but before that have E1WBB01 into a multiline interface and then use this interface in the transformation step.
    <u>Message Mapping</u>
    SOURCE                                        TARGET
    WBBDLD05 (1..1)
    IDOC (1..1)
    EDI_DC40 (1..1)
    E1WBB01 (1..10000)---------------------------MI_E1WBB01

  • Mapping Problem. Idoc to file senerio...

    Hi XI Gurus
                             I need a help.
    I have an idoc.The output is papped to a file , this being a IDOC to File senerio. The Idoc  contains segmnent1,2,3,4,5,6,7.The occurance of segment 7 is optional.It may come, it may not come. If segment 7 comes then there is  a field callled mwskz which would contain 2 digits,  say 'D1',  or  'D2' or D3' or 'D4' or  D5' or 'D6'  or D7'or 'F8' or D9'. The file has a mapping, where there are 9 fields [ say F1, f2, f3, f4, f5, f6, f7, f8, and f9 ]  in the ROOT. If at any instance, for a given segment 1, there is  a segment7, then the contents of the fields MWSKZ is mapped based on it's content , say if the content ofnwskz is D6 then all fields from F1 - F9 would be populated by the constant term 'N' except for the field 'F6' which would contain 'Y'.
    I have done a mapping, but it is failing...
    I have used, remove contexts for the field as well as segment . I have use the function exists...but, after putting PAYLOASD, what I can see is, the mapping of the occurance of SEGMENT7 is not synchronised with field mwskz.
    Experts Pls help.
    Pls send me ur email address so that I can show u the screen-shots of the mapping !!!!
    Many Thanks in Advance
    Arnab
    Please read the Forum's Rules of Engagement,
    i.e.,
    [/thread/117188 [original link is broken];
    and refrain from using email correspondence as the main objective of the Forums is to share knowledge.
    SDN PI/XI Forum Moderator

    Hi Arnab,
    If i have understood your requirement correctly, you need to duplicate your ROOT node which has fields f1.. f9 for 9 times and map it to a constant. Now you can provide the condition like this:
    mwskz = D6-> createIf -> ROOT
    and so on....
    In the ROOT segment now you can directly map the fields f1 to f9 as per the requirement, i.e., f1 to f5 and f7 to f9 can be mapped to N directly and f6 can be mapped to Y.
    Correct me if i have misunderstood your requirement.
    Regards,
    Sanjeev.

  • Mapping Problem  ( IDoc to File  )

    Hi,
    I am working on Idoc to file scenario...My input and output structures like below...
    Idoc:
    ZOrderInfo        1----99999
        OrderNumber 0---1
         ZItem       1----99999
         Quantity       0---1
    File:
    Item
       OrderNumber  0-1
       Quantity         0-1
    Problem :  I need to produce Item nodes in output structure based on OrderNumber. like for 4 order numbers in source need to 4 Item segments.
    a) Summation:  If any duplicate Ordernumber comes in picture...we need to omit that and need to take the quantity from that...do summation and send to target.
    like OrderNumber -1...quantity -10 and Ordernumber -1 ....quantity -20
    Need to produce only one ordernumber -1 with the quantity of 10+20 =30.
    b) If the Ordernumber not present in any segment....Need to pass the quantity as is...
    any suggestions would be appreciated.
    -Esha.

    Sunil,
    Note:   In this input Idoc - It has 3 segments, 2 segments have same ordernumber and 1 segment doesn't have order number.
    And I am expecting two Item nodes in output structure - One with quantities summation (500 +500 =1000) for the same order number and One with no ordernumber and quantity as is (600).
    Hope my requirements clear to you! Please help me with the valueable suggestions!
    My input structure  - IDoc:
    <?xml version="1.0" encoding="UTF-8"?>
    <ZORDR01>
       <IDOC BEGIN="">
          <EDI_DC40 SEGMENT="">
             <TABNAM/>
             <MANDT/>
             <DOCNUM/>
             <DOCREL/>
             <STATUS/>
             <DIRECT/>
             <OUTMOD/>
             <EXPRSS/>
             <TEST/>
             <IDOCTYP/>
             <CIMTYP/>
             <MESTYP/>
             <MESCOD/>
             <MESFCT/>
             <STD/>
             <STDVRS/>
             <STDMES/>
             <SNDPOR/>
             <SNDPRT/>
             <SNDPFC/>
             <SNDPRN/>
             <SNDSAD/>
             <SNDLAD/>
             <RCVPOR/>
             <RCVPRT/>
             <RCVPFC/>
             <RCVPRN/>
             <RCVSAD/>
             <RCVLAD/>
             <CREDAT>20080310</CREDAT>
             <CRETIM>104301</CRETIM>
             <REFINT/>
             <REFGRP/>
             <REFMES/>
             <ARCKEY/>
             <SERIAL/>
          </EDI_DC40>
          <Z1ORDAPH SEGMENT="">
             <ORDNO>1234567890</ORDNO>
          <DATE/>
             <Z1ORDAPL SEGMENT="">
                <ORDAPQTY>500</ORDAPQTY>
             </Z1ORDAPL>
          </Z1ORDAPH>
          <Z1ORDAPH SEGMENT="">
             <DATE/>
             <Z1ORDAPL SEGMENT="">
                <ORDAPQTY>600</ORDAPQTY>
             </Z1ORDAPL>
          </Z1ORDAPH>
          <Z1ORDAPH SEGMENT="">
             <ORDNO>1234567890</ORDNO>
          <DATE/>
             <Z1ORDAPL SEGMENT="">
                <ORDAPQTY>500</ORDAPQTY>
             </Z1ORDAPL>
          </Z1ORDAPH>
       </IDOC>
    </ZORDR01>

Maybe you are looking for

  • Wifi is not working properly once i updated to the new operating system.

    My I pphone 4s wifi is not working properly once the softwere is updated to the new IOS. It shows the wifi but when selected its says "unable to connect". I tried connecting to many wifi networks but gives the same error message. Kindly advice how to

  • I can't believe prelude doesn't have "organize by date" in the Ingest window.

    I mean, like what, 99.9% of all apps, even cheap 'unprofessional' ones, have this. It's just standard coding procedure; and why?? ..because it SAVES TIME when you have many files to wade through!  At v3.2 this common and 'foundational' feature should

  • Merge Fields with Content Controls

    Hello everybody, we are using word templates to generate quotations in print form. This process worked fine using the old Technology (custom XML). Because a newer Version of Microsoft Office is now being used, the technology has been updated to the n

  • FTP CONNECTION PARAMETER, SERVER & PORT

    HI m new to xi, i m working with file to file scenario. while creating the sender communication channel for file adapter for the FTP connection parameters, what to give for the server. i dont know my server ip address. m having my own system. i insta

  • Error message: Unable to cast object of type 'System.DBNull' to type 'System.String'

    Hi everyone, I have recently installed a trial version of SDL Trados (a computer-assisted translation software) and at some point (when I try to create a new translation memory) this error message appears: Unable to cast object of type 'System.DBNull