IDOC to Flatfile

Hello expert!
I have created a IDOC and now i want to pump the data from my IDOC to flat file! Is this possible? If Yes, please let me know how to do this and mail me to       [email protected]
Thanks in Advance,
MLN

Hi,
Use the function module IDOCS_OUTPUT_TO_FILE.
There are other FM also available to send the data from IDOC to different systems.
IDOCS_OUTPUT_TO_INTERNET   
IDOCS_OUTPUT_TO_OWN_FUNCTION
IDOCS_OUTPUT_TO_R2         
IDOCS_OUTPUT_TO_R3         
<b>Reward points if it helps.</b>

Similar Messages

  • Idoc to flatfile and mail

    Hello,
                 I have a scenario  where i am converting the idoc to file and mailing the same after converting it to flatfile .I have used TransformMessageBean for doing so.Now I need to implement the TO Field (mail )dynamically based on the payload.
    I tried to use the MultiMapping by using mail definition provided by XI ,but it results in mapping error.\
    Can somebody guide me on this.
    Thanks in Advance
    Rajesh

    Hello,
               I  have tried to do the same with the MessageTransformBean and two features are working fine independently.
    1. Converted the file into Flatfile and mail
    2. Execute the XSL Mapping for dynamic receiver.
    Now i want to combine both above features i.e after transforming the content to flatfile ,i need to sent this file to  recipient based on payload field.
    I tried to execute the same but i am stuck at XSLT error ,saying
    com.sap.aii.af.ra.ms.api.RecoverableException: Error in XSLT Conversion: com.sap.engine.lib.xml.parser.ParserException: XMLParser: No data allowed here: (hex) 48, 44, 52(:main:, row:1, col:3):
    Awaiting for replies
    Rajesh

  • Idoc to flatfile FCC issue

    Hello everybody,
    i am implementing an idoc-flatfile scenario (PI 7.1). It works to write an xml file into directory, as soon as I use FCC in order to generate txt-file, no file is written, and sxmb_moni shows an acknowledgement with system error. In both cases sxmb_moni shows the following acknowledgement:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--
    Technisches Routing der Antwort
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="OUTBINDING">CO_TXT_OUTBINDING_NOT_FOUND</SAP:Code>
      <SAP:P1>,ZZ_CC_IBDLV</SAP:P1>
      <SAP:P2>,ZZ_CC_IBDLV,,</SAP:P2>
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:Stack>Es konnte keine Empfängervereinbarung für den Sender ,ZZ_CC_IBDLV zum Empfänger ,ZZ_CC_IBDLV,, gefunden werden.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Inbound = idoc SHP_OBDLV_SAFE_REPLICA
    message type for outbound:
    ZZ_DT_OBDL     Complex Type          
    header     Element          1
    -test1     Element     xsd:string     1
    -test2     Element     xsd:string     1
    item     Element          0..unbounded
    -itemtest     Element     xsd:string     1
    -itemtest2     Element     xsd:string     1
    FCC:
    Recordset structure:                header,item,*
    header.addHeaderLine          1
    header.fieldNames               test1,test2
    header.fieldSeperator               ,
    header.processConfiguration          FromConfiguration
    header.endSeperator               'nl'
    item.addHeaderLine               1
    item.fieldNames               itemtest,itemtest2
    item.fieldSeperator               ,
    item.processConfiguration          FromConfiguration
    item.endSeperator               'nl'
    I also tried StrictXml2PlainBeanu2026 doesnu2019t work eitheru2026 thanks in advance,
    Lukas

    It works to write an xml file into directory, as soon as I use FCC in order to generate txt-file, no file is written
    --->
    use
    Recordset structure: header,item
    In receiver FCC, do not specify occurrences in recordset structure
    Also fieldNames parameter is also not required.
    RWB--> Message Monitoring, select Details of your message, you will find FCC errors here

  • Idoc to FlatFile and Flatfile to  Mail

    Hi all,
    I want to convert an Idoc into a FlatFile - this is no problem. But when the FlatFile is created I want to send the FlatFile via EMail as an attachment.
    How do I do this using Mail-Adapter ?
    I also thought to use an Unix Command to send the Email. With the file adapter it is possible to execute an Unix Command after the File was created.
    What is the better solution. And which Unix Commad do I have to use to send email (using SMPT).
    Many thanks.
    Elko

    hi elko,
    for sending a flat file as mail u use receiver mail adapter. so ur scenario will be file sender -- xi-- mail receiver.
    for this refer:
    http://help.sap.com/saphelp_nw04/helpdata/en/14/80243b4a66ae0ce10000000a11402f/frameset.htm
    and
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
    [reward if helpful]
    regards,
    latika.

  • Scenario IDoc-XI-FlatFile

    Hi,
    I am trying to Push Idoc from SAP R/34.7 to Flat File thru XI.Message Type is HRMD_ABA.The Idoc is forwarding successfully from SAP R/3,But I am not able see the details and Idoc in XI at all even though in sxmb_moni as well as at Message Display Tool.Earlier i have forwarded so many Idoc's like MATMAS01-04,CREMAS,Customized Idoc's etc to the Flat File Successfully and monitored at XI.This time i am not able to monitor even at XI.Ne messages are displaying.
    Plz tell me how to resolve this issue..
    Regards
    Sridhar Raju Mahali

    Hi
    Go thru this Problem Analysis Guide on <b>Sending an IDoc through XI Failed</b>http://help.sap.com/saphelp_nw04/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    Hope it helps
    Regards
    Arpit

  • #'s coming up in IDOC when IDOC flatfile processed with RSEINB00

    Hi,
    We have given IDOCs in flatfile structure which are needed to be loaded in backend SAP R/3 through XI and it needs some transformation,so we are using XI for mapping in between,otherwise we would have processed directly into R3.
    Basically we are placing IDOC Flatfile in a folder and we are running RSEINB00 program on XI through a file port in XI and IDOCS are getting created in Backend SAP R/3.
    When we place IDOC flatfile in Windows folder and process the file we are getting #s in IDOC fileds(many fields) ,but we don't see any #s when we process the IDOC flatfile when placing IDOC flatfile on UNIX .Our XI/PI is running on UNIX.
    please help,what causing the problem?
    Thank you,
    Regards,
    Sathish

    Hi Ravi kanth,
    I see them (#s)in IDOC fields in backend SAP R/3 once the IDOC flatfile got processed.
    as we are running RSEINB00 report on XI ,we noticed that empty tags are coming (from Windows OS Folder)in SXMB_MONI even before my mapping execution ,I think they are being populated as # in IDOC.but dont see this problem when IDOC file processed from UNIX folder.
    You think ,if we save file in UTF-8 format or Binary might help rather than ANSI format and process it.
    Thank you,
    Sathish

  • Best approach to read IDOC flatfiles using XI in mass number

    Hi,
    We have a requirement like, we will be provided with IDOC PO flatfile structures(Exactly same as IDOC,but in flatfile format) .
    We have to read those flafiles and create POs in our SAP system.
    please note there is no sender system,will be provided with IDOC structured flatfiles and receiving system is SAP,so I can use IDOC adapter on the recv side.We can use file adapter with FCC ,but as file adapter cannot support multiple heirarchies,I cannot go for sender File Adapter to read those files.
    so what is the best approach to do this interface using XI?
    thank you in advance.
    ..Sri

    Hi
    You could refer the below link for reference
    If you need XI to convert IDOC XML format to IDOC Flat format, refer to:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-how-to-guides/how%20to%20convert%20between%20idoc%20and%20xml%20in%20xi%203.0.pdf
    https://websmp107.sap-ag.de/~sapdownload/011000358700001795162005E/HowToIDocXMLToFlat.pdf
    (Section 3.2 of the how to guide mentions how to "Convert a flat file representation of an IDoc to IDoc-XML" !!!)
    Converting Idoc flat file representation to XML
    Otherwise creating a flat file from the IDOC XML using the file-content conversion will be very cumbersome.
    If you need the file in the idoc structure itself, I would suggest to create the file in R/3 and poll the file from XI.
    Probably above links could give you some hitch on it
    Thanks
    Swarup
    Edited by: Swarup Sawant on Feb 12, 2008 5:47 AM

  • SAP_XI_IDOC/IDOCXmlToFlatConvertor fails with Enhanced Idoc

    Hi All ,
    We have used the PI conversion module SAP_XI_IDOC/IDOCXmlToFlatConvertor in a number of Idoc-To-FlatFile scenarios and it is working fine.
    However recently we tried to use it in a scenario where the target file structure is that of an enhanced Idoc.
    In this case, the receiver channel (where the module is configured) fails with the error message, Idoc metadata not available in ECC.
    We have tried the following:
    1) Checked NWA connection for RFC Destination and JCA connection factory : Working fine.
    2) Loading Enhanced IDoc in IDX2: Working Fine.
    3) Change the receiver agreement to point to a Standard IDoc instead: Working fine.
    Have any of you been facing the same issue and/or could you guide us to a possible solution.
    Thanks,
    Abid Ali

    Hi Ali,
    We are also facing exactly the same issue with a custom IDoc while converting on the receiver side.
    It is actually interesting that the module "SAP_XI_IDOC/IDOCFlatToXmlConvertor" works fine for the very same idoc and fails to recongize the metadata information while converting from Xml to Flat.
    Did you have any luck in getting this resolved?If so,can you please provide the details.
    Thanks
    Narendra

  • Convert IDOC to flat file - How to guide

    Hello,
    I have found the how to guide for converting IDOCs to FlatFiles via ABAP Mapping.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/46759682-0401-0010-1791-bd1972bc0b8a
    What is not clear to me. This sounds like I do not need a message type for the flat file with a full implemented structure corresponding to the source IDOC.
    Is this right?
    Or it is really necessary to create a mess.type with data type for rebuilding the IDOC structure in the flat file!
    Can anyone help?
    Best regards
    Dirk

    Dirk,
    Well, am not exactly sure if my reasoning is technically correct, but here it goes,
    Java Mapping and ABAP mapping takes the Input Source as an InputStream and return the output also as Streams. These streams are not validated against the source and the target strucutres.
    In the case of XSL, the only requirement is that theinput / output should be a well formed XML  content.
    Graphical Mapping produces a Java code internally and I guess the code has a validation check against the source / target schema.
    Regards,
    Bhavesh

  • How to read IDOC in flafile structure into SAP to create PO

    HI,
    We have a requirement like, we will be provided with IDOC PO flatfile structures(Exactly same as IDOC,but in Dlafile format) .
    We have to read those flafiles and create POs in our SAP system.
    how can we do that?what are the necessary configuration required?
    please explian the different steps involved.
    thank you in advance.
    ...Sri

    Hi,
    Thank you for your reply.
    is there any other methods of processing the Flatfile IDOC into SAP.
    like through using file port with configuration done in Partner Profile , standard FM and report ?
    would this be different if we have customised IDOC?
    thank you,
    regards,
    .....Sri

  • How to use Value Mappings for simple translations?

    Hello,
    I want to use Value Mappings for simple translations in mappings, e.g. from IDoc to Inhouse structures.
    For example unit of quantity:
    IDOC    -->    INHOUSE
    PCE               P
    ABC               A
    How can I use Value Mapping for this? What should be used as Agency, what should be used for Scheme? What about groups? I tried the following: I created a new Value Mapping in Integration Directory:
    - Source Agency: DELVRY05
    - Source Scheme: MENEE (IDoc field name)
    - Target Acency: INHOUSE_DESADV (Name of structure)
    - Target scheme: UNIT (Name of field)
    Then, in the table, I added several lines for translating PCE to P and ABC to A and so on. But I have to define a group name for each line. I used INHOUSE. But than I get one INHOUSE group for each line.
    This seems very complicated for simple translations from A to B. I don't want to use FixValue in Message mappings.
    Any help appreciated.
    Thanks,
    Christoph

    Hello,
    @pavan kumar: Thanks, but I know all Blogs about Value Mappings. That does not help me. And I refer to PI 7.1.
    Lets get it very simple: I want to have exactly the same functionality of "FixValues" as ValueMappings. In 7.1, I need to define a Group for every row / line in the conversion table (e.g. for units of measurement conversion between IDoc and FlatFile). That does not make sense for me, as the Group is always the same, e.g. "Unit of measurement". So I will get dozens of same groups called "Unit of measurement".
    I don't really understand the concept of Groups. Maybe this is just not appropiate for my intenses? Maybe the Group has to be defined as one specific value of Unit of measurement, e.g. "pieces"?
    CHRISTOPH

  • PI 7.4 - SFTP Adapter - Logs successful - No File Written

    All,
    We are on PI 7.4 Dual stack -
    Scenario:
    IDOC to FlatFile via Reciver SFTP adapter - FCC is done by XML2Plain adapter module.
    The receiver comm channel logs are looking good. Please see below.
    But we dont see any file on the SFTP server.
    Please note that -
    1. We were able to write a file to the SFTP server without using XML2Plain bean
    XML2Plain module parameters.
    Receiver Comm Channel - logs:
    09/16/2014 04:03:38.457 PM Information Message was received by the messaging system. Protocol: XI URL: http://<PISERVER>:50000/MessagingSystem/receive/AFW/XI Credential (User): PIISDX1
    09/16/2014 04:03:38.459 PM Information Using connection SFTP_http://sap.com/xi/XI/SFTP. Trying to put the message into the receive queue
    09/16/2014 04:03:38.471 PM Information Message successfully put into the queue
    09/16/2014 04:03:38.474 PM Information The message was successfully retrieved from the receive queue
    09/16/2014 04:03:38.493 PM Information Delivering to channel: CC_GoodsMovementsFileRcv
    09/16/2014 04:03:38.493 PM Information MP: processing local module localejbs/AF_Modules/MessageTransformBean
    09/16/2014 04:03:38.493 PM Information Message status set to DLNG
    09/16/2014 04:03:38.494 PM Information Transform: using Transform.Class: com.sap.aii.messaging.adapter.Conversion
    09/16/2014 04:03:38.495 PM Information Transform: transforming the payload ...
    09/16/2014 04:03:38.496 PM Information MP: processing local module localejbs/CallSapAdapter
    09/16/2014 04:03:38.496 PM Information The message was successfully delivered to the application using connection SFTP_http://sap.com/xi/XI/SFTP
    09/16/2014 04:03:38.496 PM Information Transform: successfully transformed
    09/16/2014 04:03:38.498 PM Information Message status set to DLVD

    Hi Naveen
    There are a few typo errors in your configuration.
    First one is xml.conversionType - your value have a lower case p while it should be in upper case (SimpleXML2Plain)
    The next one is xml.endSeperator - should be xml.endSeparator.
    Try to make these typo corrections to see if it helps.
    Also, you have configured a lot of parameters that are not applicable for the SimpleXML2Plain conversion, i.e. documentName and documentNamespace, fieldNames, lastFieldsOptional, processFieldNames and structureTitle. These can be removed. You can refer to my blog below for the list of parameters that are applicable.
    FCC parameter reference for MessageTransformBean module
    Rgds
    Eng Swee

  • Line Split Interface to feed Integration Process - Performance Issues

    Hi All
    We have a scenario whereby we receive an XML message from a 3rd Party through an exposed SOAP Adapter service. The XML Message has multiple lines that need to be split up and processed as individual messages. We need to create a Line Splitting interface in order to achieve this. The Line Split interface would feed different Integration Processes depending on a specific payload value. The Integration Processes would then perform certain specific logic & Rules as well as transformations to specific message formats (e.g. idoc, xml, flatfile). The Line Split interface also maps from an xml structure that caters for multiple lines, to a flatened xml structure which only contains one line. The uper range of a message we may need to split into individual messages is 30 000 lines.
    We first used an Interface Map and used SplitByValue to achieve this, however we ran into the constraint that we could not feed the output split messages to an Integration Process - you can only feed it to Adapters that reside on the J2EE engine.
    We then decided to build a seprate Integration Process thats sole purpose was to split the message and route the indvidual messages to other integration processes to perform the logic, business rules and specific transformations. However, the performance of the ccBPM line splitting Integration Process was nowhere near the Interface Map.
    e.g. Interface Map Split 1000 Lines = 13 seconds - BPM Integration Process 1000Lines = 100 seconds.
    Does anybody have any suggestions on how we can perform the line split outside of BPM, or how we can improve ther performance of the line splitting within BPM?
    Thanks for your assistance.
    Edited by: CostaC on Aug 24, 2009 11:53 AM

    hi,
    >>>We first used an Interface Map and used SplitByValue to achieve this, however we ran into the constraint that we could not feed the output split messages to an Integration Process - you can only feed it to Adapters that reside on the J2EE engine.
    the easiest (not the only) way :
    do the split as you did here and post the results in different folders (file adapter)
    then set up scenarios that will get the files from those folders
    (many additional objects but will be much much faster and better then a BPM)
    you could also split the messages in the adapter module but this is more advanced
    and officially SAP does not recommend it - even though it's possible
    Regards,
    Michal Krawczyk

  • XML conversion - Substructure needed?

    Hi,
    My scenario is flatfile to IDoc.
    Flatfile looks like this
    PH337731    ITH1
    PU337731    100106724                9900000000218314239,370     314261,370     KG 0,080        0,120        0,100        M
    PD337731    100106724           610090            60             PC 52156660  10
    PD337731    100106724           187000            50             PC 52156660  110
    PD337731    100106724           666212            48             PC 52156660  220
    PD337731    100106724           674621            30             PC 52156660  270
    PD337731    100106724           606226            3              PC 52156661  30
    ..EOF..
    Above structure is fixed length structure for which I had created an XML structure like this:
    <Header> 1 to 1
         <PH/>
         <ShipmentNu/>
         <TrPlP/>
    </Header>
    <Units>  1 to n
         <PU/>
         <ShipmentNu/>
         <ShippingUnit/>
         <ShippingMaterial/>
         <Netweight/>
         <Brutweight/>
         <UOMweight/>
         <Length/>
         <Height/>
         <Width/>
         <UOM/>
         <Details> 0 to n
              <PD/>
              <ShipmentNu/>
              <ShippingUnit/>
              <Material/>
              <Quantity/>
              <UOM/>
              <Picking/>
              <PickingLine/>
         </Details>
    </Units>
    For every occurrence of Units, Details should also occur.
    Is this the right structure or is it unnecessary to create details under units?
    thanks in advance,
    Shanthi

    Hi Radek,
    The number of units and details are not equal. I used the following content conversion parameters for the above mentioned nested structure
    Recordset Name: recordset
    Recordset Structure: Header,1,Units,*,Details,1
    Parameters for Recordset Structures
    Header.fieldFixedLengths: 1,2,10,3
    Header.endSeparator: <...ES of Header.>
    Header.fieldNames: <..field names of Header..>
    Header.keyFieldValue:1
    Header.keyFieldInStructure:ignore
    Units.fieldFixedLengths: 1,2,10,20,18,15,15,3,13,13,13,3
    Units.endSeparator: <...ES of Units...>
    Units.fieldNames: <..field names of Units..>
    Units.keyFieldValue: 2
    Units.keyFieldInStructure:ignore
    Details.keyFieldValue: 3
    Details.keyFieldInStructure:ignore
    but with this content conversion i'm not able to produce xml in which details come under units.
    Can you please help me with content conversion.
    Thanks

  • Implementation scenario

    Hi everyone
    I need an implementation advice from all the experts. My requirement is that we need to send purchase orders and recieve confirmation to sap systems. we are sending the purchase orders to a webservice.
    The general idea was to use idocs to send purchase orders and to recieve the confirmation into the same idoc or a different one. but with idocs syncronous communication is not possible. so what i am thinking is develop an rfc which has the request and resposes and it can populate the required idocs.
    i came to know that using idocs or flatfiles i can achieve asynch-synch communications by using modules . but it is from SP 19 , we don't have SP 19 we have SP 10. so i guess its not an option. moreover modules are being dealt with JMS adapter . its not clear why to use JMS adapter here.
    are there any better approches to it other than upgrading to SP 19?
    is using RFC for this situation a better solution?
    Thanks XI experts

    Sudheer,
    Due to some of the constraints you are having using RFC would be the wise option. Send the data to the webservice to the SOAP adapter and map the response back to the RFC.
    Check this weblogs for more information of this integration:
    /people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
    /people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
    /people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
    Regards,
    ---Satish

Maybe you are looking for

  • ASA 5505 vpn connection issues

    Hello I am having some issues with getting my vpn connection working on a new site. I get no internet connection when hooking up the asa. My current config is below. I have included a packet trace from my remote site to my main site. Any help would b

  • Diagnostic pack, Tuning pack are not in OEM 10g, Add partition to a table

    Hi All, I have 2 questions: Q.1: In Oracle 9i Oracle Enterprise Manager java console, we had "Diagnostic Pack" and "Tuning Pack" which helped us seeing performance tuning info (session's statistics such as cpu time, pga memory, physical disk reads, e

  • Tomcat performence issues..Urgent

    Hi all, iam facing performence issues with tomcat 5.5.9. i have developed one webapllication which uses 20,000 employees... problem is tomcat not releasing the memory ...memory is growing up to some peek stage then it is not allowed any requests and

  • Why does Lightroom append "-2" to file names when there are no duplicates.

    I have been using Lightroom since V. 1. I have noticed that many of my file names have been renamed in LR (now V5.3)  by changing the filename from "XXX_yyyy.NEF" to "XXX_yyyy-2.NEF". IF I look in the folder where the images are stored, both versions

  • How do you restore without updating?

    I'm trying to restore my iPad 3 to factory defaults but iTunes insists on downloading 6.1.1. I already have 6.1 and I just want to restore the iPad but this 10MB update is insisting on taking about 5 hours to download (My internet can download about