Idoc from XI through File Port

Hi,
Need you help in the below scenario.
We have a scenario Proxy (SRM) to XI to Amtrix (Idoc)
Now I need the Idoc adapter to write the Idoc as a Flat File.
As far as my knowledge goes....... The ports we mention in rec idoc comm channel have to be defined in idx1 transaction.
im not sure if we can use a port defined in we21 (*of XI system*) in the communication channel.
let me know if anyone has tried something like this......
Cheers!!
Sidharth

HI,
U r correct u need to create the port in XI using IDX1 tcode and use that.
refer this configuration for ur information:
File To IDOC - Part1 (SLD and Design):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC&
File To IDOC - Part2 (Configuration):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part2+(Configuration)&
File To IDOC - Part3 (Steps required in XI and R3):
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/2007/05/11/fileToIDOC-Part3(StepsrequiredinXIandR3)&
chirag

Similar Messages

  • Need Information for transporting a file as IDOC through File Port!!!

    Hi,
    All configurations are present in the system to transfer a file as IDOC using File Port.
    Now we are creating a custom program to transfer the same. Now i have all the data in an internal table which has to be send to Non SAP system. So can i know the process how to send the same.
    I have a SAP Directory where i need to place the system. I also have all ports required.
    So please let me know how to code the same ASAP.
    Thanks and Regards,
    sagar..

    You may want to try using the IDOC Test tool WE19 in order to test out your ports and partner profiles.
    Also sending from SAP to XI / PI you might be better configuring RFC Destination / SM59.
    See this Wiki for more info...
    http://wiki.sdn.sap.com/wiki/display/XI/ALE+Configuration

  • Can XI create file output like IDoc appears written to file port

    When an Idoc is written to the file port the structure has the segment names and control info in addition to the Idoc contents.
    Is there a way to pass the Idoc to XI directly and have the file adapter create the the Idoc so it looks just like the Idoc written directly from sap via the file port?

    Mark, In the Content Conversion in the Receievr File adapter, add the field,
    SegmentName.addHeaderLine with value as 1. This will add the column name to the field value.
    +NameA.addHeaderLine
    Specify whether the text file will have a header line with column names. The following values are permitted:
    ·        0 – No header line
    ·        1 – Header line with column names from the XML document
    ·        2 – As for 1, followed by a blank line
    ·        3 – Header line is stored as NameA.headerLine in the configuration and is applied
    ·        4 – As for 3, followed by a blank line
    Note
    This specification is only permitted if exactly one structure is defined.
    +http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    regards
    Bhavesh

  • Multiple IDOCs from one Flat file

    HI Gurus,
    Sender file is of such format
    Header1,Item1 details
    Header1,Item2 Details
    Header2, Item1 Details
    Header2,item2 Details
    Header3, Item1 Details
    I need to map this file format to IDOC strucutre, In Header there is a filed which is the Key value to identify the change in header.
    Eg: Order Number is the field in the following file which identifies the change in header: First three fields are header details and following are the item details:
    ABC,ON1,22,Item1,XX
    ABC,ON1,33,Item2,FF
    ABC,ON2,44,Item1,MM
    ABC,ON3,66,Item1,LL
    How would be the Data type strcuture to capture this type of falt file strcuture and FCC parameters?
    I need to send a single IDOC per one header with multiple Items. is it possible to achieve?
    Thanks
    Rajeev

    Hi Satish,
    Do we need to do some configuration  to produce 3 IDOCs from the below strcuture?
    ABC,ON1,22,Item1,XX
    ABC,ON1,33,Item2,FF
    ABC,ON2,44,Item1,MM
    ABC,ON3,66,Item1,LL
    From the above structure 3 IDOCs should be generated as below:
    1st IDOC as
    ABC,ON1 (Header Details)
    22,Item1,XX (Item1 Details)
    33,Item2,FF  (Item2 Details)
    2nd IDOC as
    ABC,ON2 (Header Details)
    44,Item1,MM  (Item1 Details)
    and 3rd IDOC as
    ABC,ON3 (Header Details)
    66,Item1,LL  (Item1 Details)
    Do following Data type for the above file structure is valid? or I can use one flat DT?
    Record
    Header(1..Unbounded)
    ---F1 (Field 1)
    ---ON (Key Field Order Number)
    Item Details(1..Unbounded)
    ---F1 (Field1)
    ---F2
    ---F3
    If the above DT is correct then how would be the FCC parameters?
    Thanks
    Rajeev

  • Multiple idocs from single flat file

    Hi All
    I want to send data from a flat file to SAP(file to idoc)
    My flat file structure is
    id,name,number,city
    2,R1,234,SD
    2,R2,457,MD
    3,R4,789,HG
    3,R6,235.HG
    The Field 'id' will change..after  every change in 'id' ,seperate idoc should be created.
    I have checked the following thread.
    Re: Content conversion for seperate idoc
    In the above thread ,it is asked to map v.no with remove context and use SPLIT BY VALUE on value change then do the mapping accordingly ,you can create 3 idocs for the same.
    I'm confused about how to do these mappings.
    Please explain the mapping in detail.
    Please help
    Regards
    Reema

    if  your source data type is like
    MT_Source
        Record           0-unbounded
           id                    ----1
           name              -----1
           number           -----1
           city               -------1
    then in the sender file communication channel you have to specify  file content conversion parameters as
    Parameter name               parametervalue
    Document Name                 MT_Source
    Recordset Structure           Record,*
    choose + to add more parameters
    Name                                  Value
    Record.fieldSeparator                      ,
    Record.fieldNames                        id,name,number,city
    Record.endSeparator                      'nl'
    then do the maping
    as
    id ---->removeContext---->SplitByValue(Value change)---->Target Idoc
    map according to your requirement for other fields

  • Creation of Inbound IDOC from a flat file.

    Hi all,
    I hav to create Purchse Order using inbound IDOC in which I hav to take data from a .xls or any flat file.
    Can any one help me with this. i.e wat r the steps involed to do so.
    Regards.
    Rahul

    Hello,
    Why do u want to create a Idoc for creating PO from flat file - you can simply use BAPI. Ok if you want to create PO only using Idoc.
    I think message type is ACC_PURCHASE_ORDER0.
    I just made one sample program to you how to create a PO with Idoc method. Here i am doing for Material Master Creation. Let me know if want any clarification.
    ********Poorna********
    TABLES : MARA, MAKT, EDP13.
    DATA : I_EDIDC LIKE EDIDC OCCURS 0 WITH HEADER LINE,
          I_EDIDD LIKE EDIDD OCCURS 0 WITH HEADER LINE.
    PARAMETERS : P_MATNR LIKE MARA-MATNR.
    START-OF-SELECTION.
      REFRESH I_EDIDC.
      SELECT * FROM EDP13 WHERE MESTYP = 'ZMATMASTER'.
        MOVE-CORRESPONDING EDP13 TO I_EDIDC.
        I_EDIDC-IDOCTP = EDP13-IDOCTYP.
        APPEND I_EDIDC.
      ENDSELECT.
      READ TABLE I_EDIDC INDEX 1.
      I_EDIDD-SEGNAM = 'ZMATMASTER'.
      SELECT SINGLE * FROM MARA WHERE MATNR = P_MATNR.
      SELECT SINGLE * FROM MAKT WHERE MATNR = P_MATNR
                                  AND SPRAS = SY-LANGU.
      I_EDIDD-SDATA+0(18) = MARA-MATNR.
      I_EDIDD-SDATA+18(40) = MAKT-MAKTX.
      I_EDIDD-SDATA+58(4)  = MARA-MTART.
      I_EDIDD-SDATA+62(1)  = MARA-MBRSH.
      I_EDIDD-SDATA+63(3)  = MARA-MEINS.
      APPEND I_EDIDD.
      CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'
        EXPORTING
          master_idoc_control                  = I_EDIDC
       OBJ_TYPE                            = ''
       CHNUM                                = ''
        tables
          communication_idoc_control          = I_EDIDC
          master_idoc_data                    = I_EDIDD
    EXCEPTIONS
       ERROR_IN_IDOC_CONTROL                = 1
       ERROR_WRITING_IDOC_STATUS            = 2
       ERROR_IN_IDOC_DATA                  = 3
       SENDING_LOGICAL_SYSTEM_UNKNOWN      = 4
       OTHERS                              = 5
      COMMIT WORK.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

  • Create two identical idocs from one input file with BPM

    Hello all .
    My issue is the following.
    I have a scenario where an input file is mapped to an IDOC .
    The problem is that i need to create a second - almost identical - mapping to the same IDOC type and when the input file is receive both of them should be sent .
    I suppose that BPM is needed for this scenario, but are there any examples or tips i should follow?
    Thank you all in advance .

    Rucinski and Sarvesh, thank you both for your answers , they are very helpful.
    I have started trying Rucinski's method, because I would better avoid redoing the mapping on the second IDOC (it is pretty hard and critical) . But I have a problem.
    When i run the senario, the system replies (for the second IDOC)
    "Unable to interpret IDoc interface NEW_IDOC_MI"
    The reason for this is that in the Interface Determination i have two entries for the inbound interface,
    Orders.orders05 and
    NEW_IDOC_MI,
    which is wrong. I should be using the original  Orders.orders05. But this can't be done, because in tha case the Interface Determination, requests a Condition to be entered. Any suggestions on this ?
    Sarvesh, is there any way to duplicate the IDOC, keeping the mapping that is allready done ?

  • Create IDOCs from DMEE Files

    Hi SDN,
    Can I create Custom IDOCs from the DMEE file format.
    The file is getting downloaded after the DMEE Run in a specific format individual to every company code.
    I want to generate IDOCs for every DMEE Run.
    Thanks,
    Manu

    Take a look at this :
    http://www.sappoint.com/ppt/idoc.ppt
    you need to create File port in Tr.WE21 , as file port
    Then you have to sechdule the program RSEout00 to collect Idocs .
    You can test it in Tr.WE19 , you can also use the Tr.BD87 to see your Idoc status
    Hope this’ll give you idea!!
    <b>P.S award the points.</b>
    Good luck
    Thanks
    Saquib Khan
    "Some are wise and some are otherwise"

  • How to create a inbound IDOC from flat file in Application server

    HI All
    Our requirement is to create the Inbound idocs from a flat file from application server with in R/3
    Could any body please let me know the steps required for this.
    Thanks
    Malli

    1. Read the file using OPEN DATASET and read and fill up the segment info and fill the EDIDC header data
    and then call function
    CALL FUNCTION 'INBOUND_IDOC_PROCESS'
        TABLES
          IDOC_CONTROL       =  i_edidc
          IDOC_DATA          =  i_edid4.

  • Create IDoc from flat file - How to do the message mapping

    Hi everybody,
    I want to create an IDoc from a flat file.
    The file structure looks like this:
    MT_XYZ
    - Node001       0...1
      - Leaf001
    - Node002       0...unbounded
       - Node003    0...1
          - Leaf002
          - Leaf003
       - Node004    0...1
          - Leaf004
       - Node005    0...1
          - Leaf005
    I have created a mapping and all the other stuff to set up the IDoc adapter.
    Now when I try to test the interface the IDoc is created properly but obviously no information from the nodes "Node003" to "Node005" is inserted in the IDoc. Only the information kept in the elements (leafs) of "Node001" are inserted.
    All IDoc segments and their "Segment" elements are linked to the root node of the file structure "MT_XYZ". I tried to link some IDoc segments only to "Node002" but then this segment is not created.
    So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    Thanks in advance for all answers!
    Regards,
    Torben
    Edited by: Torben Hönemann on Dec 14, 2009 4:26 AM

    Hi Torben,
    >>I want to create an IDoc from a flat file.
    So you are using File content Conversion on the sender side. Right?
    >>no information from the nodes "Node003" to "Node005" is inserted in the IDoc.
    Are these information available in the source XML (you can check in transaction SXMB_MONI-> Input Payload).. There is a limitation in File Content Conversion of File adapter and it is that I can make an XML structure of 3 level.. Since these nodes details are in level 4 and 5 they should be missing in Source XML structure itself (after content conversion of File adapter). check that
    >>So how can I set up the message mapping in a way that the information from "Node003" to "Node005" is transported to the IDoc? Can anyone help me here?
    So you need to take an alternate approach where you do File Content Conversion and make 3 level structure.. then using a mapping convert this three level structure to your 5 level one and then try to map with the idoc.
    Check this blog for an idea
    http://www.riyaz.net/blog/xipi-file-content-conversion-for-complex-structures/
    http://www.riyaz.net/blog/xipi-convert-flat-file-to-deeply-nested-xml-structures-using-only-graphical-mapping/
    Regards
    Suraj

  • Creating IDoc from DMEE File Format

    Hi SDN,
    Can I create Custom IDOCs from the DMEE file format.
    The file is getting downloaded after the DMEE Run in a specific format individual to every company code.
    I want to generate IDOCs for every DMEE Run.
    Thanks,
    Manu

    Hi,
    your problem is just like filling the segements using the data in other segements. that means if you have knowledge of enhancing the idoc and populating the enhanced segments then in the same way you can populate the BATCH segment also.
    you just go to the function module which will be creating the idoc(if its outbound) / function module which will be posting the idoc which is for inblund and then find the perform where it fills the segments ( it will be the one which you will use to fill the segment BATCH )and go that and at last of form you will find one customer function which you can use to fill the BATCH segment.
    i think this will help u,
    Regards,
    Ravi

  • Many idoc to one unix file tranfer

    Hi,
    I have a requirement where in i have to extract all the vendor master data into an idoc.For this i am using BD14 transaction and i am giving vendor number and message type as selection criteria.So I am generating the idoc for each vendor number and written the same to a application server file through file port.
    In this process for each idoc one file will be generated and i need to send each file.For example if i have to send 1000 vendors then it will generate 1000 files and i need to  send all 1000 files to other system. My question is 'Is there any way we can write all the idoc into one file and send to other system.
    Many thanks,
    Raghav.

    Hi Raghav,
    For this you can specify the packet size within the partner profile (WE20) outbound parameters settings.
    1) You can specfiy the packet size as 1000 and set the output mode as 'Collect IDocs'.
    2) With this the IDocs will be collected at the ALE layer.
    3) When the packet size reaches 1000 they will be downloaded to a single file.
    To do this you have to run the report RSEOUT00. So if there are 2000 idocs then on running the report RSEOUT00 two files will be created.
    RSEOUT00 can be scheduled as a batch job to run at regular intervals.
    Hope this helps.
    Regards,
    Gajendra.

  • Retrieving file from file port while idoc generation

    HI,
    we have set up the system to call IDOC_INBOUND_SINGLE from external system. it is working well through out. we have configured the file port in sap.
    If generation idoc is successfull, idoc number will be returned.
    if not execption will be thrown. My question is in this scenario is there any way to retrieve the data? Does the file stores in SAP or need the external party to recall the SAP with input?

    Hello,
                Can you please explain the complete scenario ,It seems that we are also working on the same scenario too,may be clear explanation will help both of us.
    Thanks
    Rajesh

  • Creation of SO from PO through Idocs in Same client

    Hi frnds,
         Can we create SO from PO through IDOC's in the same client with different company codes.
    Ex: PO created in 100 client in company code AB00. i have to create SO in 100 client in company code AB01.
    Any suggestion on this is highly appreciated. Please provide the steps and idocs or let me know the other approach.

    for posting the IDOC to same system
    use this logic
    The steps to send and receive an IDoc in the same system are as follows:
    u2022     Create a Dummy Logical System.
         Goto T-Code SALE-> sending and Receiving Systems -> Logical Systems -> New entries. Enter SYSID_CLNT, but this one is Dummy so use the first two characters of the SYSID and prefix 'D' then underscore and then the Client number.
    E.g., If ERP_100 is the logical system of the R/3, then create ERD_100 as the dummy system.
    u2022     Create Port for the Original System, (ERP_100)
         Goto WE21 and select Transactional Port and press the Create button. Name the Port as "SAP" concatenated with the SYSID in our example it would be SAPERP Select the appropriate version and enter the RFC destination of the system that you are working on in this case it will be 'ERP'.
    u2022     Create Partner Profile in partner type LS:
         Receiver Side (Outbound to): In Partner type LS name ERD_100create the Outbound Parameters, give the Message type, Receiver Port same as the port we created in step 2. Enter the Basic type.
         Sender Side (Inbound from): In partner type LS name ERP_100 create the Inbound Parameters, give the appropriate message type and the process code.
    u2022     Now create the stand alone program to send the IDoc:
         The program will at some point calls the MASTER_IDOC_DISTRIBUTE function module. When you pass the EDIDC structure it will be populated as follows:
    i_edidc-mestyp = message type.
    i_edidc-idoctp = basic type.
    i_edidc-rcvprt = 'LS'.
    CONCATENATE 'SAP' sy-sysid INTO l_port.
    i_edidc-RCVPOR = l_port.
    i_edidc-rcvprn = 'ERD_000'.
    CONCATENATE sy-sysid '_' sy-mandt INTO l_sndprn.
    i_edidc-SNDPRN = l_sndprn.
    i_edidc-sndprt = 'LS'.
    i_edidc-sndpor = l_port.
    u2022     Observe that the Sender port and the receiver port is the same, this does the trick. The outbound Idoc is sent on the port SAPERP with the Sender as ERP_100 and receiver as ERD_100 and then the Inbound IDoc is also sent to the same port SAPERP with the Sender as ERP_100 and receiver as ERD_10.
    this is the method for creating logical system and setting
    and use the respective function module and mesg type for posting it.
    cheers
    s.janagar
    Edited by: Janagar Sundaramoorthy Nadar on Apr 29, 2009 6:32 AM

  • Idocs from XI to a flat file

    Dear All,
    I having a scenario in which whenever a Delivery is created in R/3 an idoc is posted into XI. I am able to see the idocs in transaction IDX5. Now I want to download this Idoc into a flat file thru XI.
    Kindly guide me how this can be done oe tell me the suitable links to do the same.
    Warm Regards,
    N.Jain

    HI Jain
    It is IDOC to File Scenario.
    Follow the steps in the wiki ...
    https://wiki.sdn.sap.com/wiki/display/XI/StepbyStepProcedureofIDOCtoFileScenariousingBPM
    see the below links
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    Also
    /people/sravya.talanki2/blog/2005/10/27/idoc146s-not-reaching-xi133-not-posted-in-the-receiver-sap-systems133
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    Cheers..
    Vasu
    <i>** REward Points if found useful **</i>

Maybe you are looking for

  • Issue Restoring Windows 7 (factory settings)

    My laptop Harddrive failed and I replaced it with a new one purchased from HP.  I also ordered the Windows 7 re-installations CDs. I have removed/replaced the Harddrive but get the following error message while trying to install Windows 7 onto the ne

  • How do I highlight text in Pages?

    How do I highlight text in Pages - none of the menus, nor the 'Help' function seems to help...

  • Fuzzy line on the middle of display.

    Recently i have found a fuzzy line in the middle of my retina macbook pro screen (15"). I have always treated it very well, it never falled down. The line appear only with a strong light from sun, especially with dark backgounds on the screen. The li

  • Leopard install says it will take 24+ hours... how can I speed things up?

    I encountered some issues with my previous installation of Leopard, so I decided to format, and re-install it. I start the installation using "Erase and Install" and after the disk verifies, I start the installation. Only problem is, the installation

  • Can you have audio automatically start when new page is loaded

    I was wondering if iWeb allows you to set up an audio file to be played automatically when someone loads a certain page. Thanks for your help