Posting Idoc from XML port to FTP

Hello Experts,
I have a business case, where the xml generated from and xml port has to be posted on to an FTP. Presently we are doing it manually by getting the xml from CG3Y T-Code and posting it on to FTP manually. Is there any way for posting the Idoc.xml directly on to the FTP, without our intreaction?
Can this be done by customizing the ALE config,s? Or we need to wirte an ABAP code?
Another concern is that every time, I generate an IDoc, the previous IDoc is over written. Can this process, changed so that the previous dosent get overwritten insted it creates a new xml, every time we tigger and Idoc.
Thanks,
Suma

Hi Suma,
To FTP the IDoc.xml you can use shell script which will FTP the IDocs to the FTP server. This shell script can be scheduled on the application server at OS level to be executed at a given frequency (say every 10 mins).
The other way of doing this is maintain the shell script details in the Outbound Trigger of the XML File port and set the radio button in partner profile to Start Subsystem in Outbound parameters tab. This will make the shell script to be executed after the IDoc is written to the XML File port.
If you are not intersted in writing shell scripting, you can directly use the HTTP xml port. This is very easy to use and you can have tight integration. When ever an Idoc is triggerd this will direclty send it accross the HTTP server and from you can make use of it. On any tomcat you can create a HTTP server. If you are using Websphere product as integraion then, it is directly proived by IBM. I suggest you to go for the HTTP rahter doing it on XML Port.
You have a disadvantage for XML port that ever time you generate an Idoc it will be over written. So there is chance that you may miss some of the Idoc's.
Thanks,
Srikanth

Similar Messages

  • How to create Inbound Idoc from XML file-Need help urgently

    Hi,
    can any one tell how to create inbound Idoc from XML file.
    we have xml file in application server Ex. /usr/INT/SMS/PAYTEXT.xml'  we want to generate inbound idoc from this file.we are successfully able to generate outbound XML file from outbound Idoc by using the XML port. But not able to generate idoc from XML file by using we19 or we16.
    Please let me know the process to trigger inbound Idoc with out using  XI and any other components.
    Thanks in advance
    Dora Reddy

    Hi .. Did either of you get a result on this?
    My question is the same really .. I am testing with WE19 and it seems SAP cannot accept an XML inbound file as standard.
    I see lots of mention of using a Function Module.
    Am I correct in saying therefore that ABAP development is required to create a program to run the FM and process the idoc?
    Or is there something tht can be done with Standard SAP?
    Thanks
    Lee

  • Help Required to post IDOC from R/3 to XI

    Hello,
    I need help to post IDOC from R/3 to XI
    My XI System --- E11 on client 001
    My R/3 System -- IXS on client 812
    In R/3
    1. I use Tx SM59 to make RFC Dest --- E11CLNT001  (Client will be 001 Pointing to my XI System )
    2. I use TX WE21 to make Port -- A00020  which is using above RFC Dest
    3. I use TX WE20 to make Partner Profile -- RECE ( IDOC Outbound Parameter-  MATMAS which is using above Port)
    In XI
    1. I use TX SM59 to make RFC Dest --- E11812 (Client will be 812 Pointing to my R/3 System )
    2. I use TX IDX1 to make Port --- SAPB6M (Client will be 812 and RFC Dest -- E11812 )
    3. I use TX WE20 to make Partner Profile  -- B6MTEST  ( IDOC Inboubnd Parameter-  MATMAS )
    While Posting data from R/3
    Recipient Port --- A00020 
    Recipient Partner No -- RECE
    Recipient Partner Type --- LS
    Sender Port --- SAPB6M
    Sender  Partner Number  -- B6MTEST 
    Sender  Partner Type --- LS
    I am getting error " Could not post IDOC to R/3".
    Please let me know where are my setting are incorrect
    Regards

    In R/3
    1. I use Tx SM59 to make RFC Dest --- E11CLNT001 (Client will be 001 Pointing to my XI System )
    2. I use TX WE21 to make Port -- A00020 which is using above RFC Dest ( THIS PORT NAME SHOULD BE IN THE FORMAT SAPSID, A00020 (is it you SAPSID, else it will throw error)
    3. I use TX WE20 to make Partner Profile -- RECE ( IDOC Outbound Parameter- MATMAS which is using above Port)
    In XI
    1. I use TX SM59 to make RFC Dest --- E11812 (Client will be 812 Pointing to my R/3 System )
    2. I use TX IDX1 to make Port --- SAPB6M (Client will be 812 and RFC Dest -- E11812 )  ( THIS PORT NAME SHOULD BE IN THE FORMAT SAPSID, A00020 (is it you SAPSID, else it will throw error)
    3. I use TX WE20 to make Partner Profile -- B6MTEST ( IDOC Inboubnd Parameter- MATMAS ) ( Not require in SAP XI)
    chenage the PORT NAME IN R/3 it should work.

  • How to post idoc from r/3 to xi

    hi experts i have one doubt abt posting idoc from r/3 to xi
    how to post
    for vendor master idoc
    for sales order idoc
    for purchase order idoc
    for delivery idoc
             is there any inbuilt posting prgms r there or we have to write the prms.
    please clear me
    regards
    babu

    to add more...
    Befor posting IDOCS into XI..we need to do ALE SETTINGS...as fallows..
    <b>ALE settings.</b>
    <u><b>SAP XI</b></u><b>1) RFC Destination (SM59)</b>
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    <b>h) Test the connection and remote logon.
    2) Create Port (IDX1)</b>
    a) Select create new button
    b) Enter the port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    <b>3) Load Meta Data for IDOC (IDX2)</b>
    a) Create new
    b) IDOC Message Type
    c) Enter port created in IDX1.
    <u><b>SAP R/3</b></u>
    <b>1) RFC Destination (SM59)</b>
    a) Choose create.
    b) Specify the name of the RFC destination
    c) Select connection type as 3 and save
    d) In the technical settings tab enter the details SAP SID/URL and system number#.
    e) Enter the Gateway host as same details above SID/URL.
    f) Gateway service is 3300+system number#.
    g) In the Logon /Security tab, enter the client user & Password details of Destination system.
    h) Test the connection and remote logon.
    <b>2) Create Port (We21)</b>
    a) First Select Transactional RFC and then click create button
    b) Enter the destination port name as SAP+SID (The starting char should be SAP)
    c) Enter the destination client.
    d) Enter the RFC Destination created in SAP R/3 towards other system.
    e) Save
    <b>3) Create Partner Profile (WE20)</b>
    a) Create New
    b) Create the Partner no. name as same the logical system name of the destination system.
    c) Select Partner type LS
    d) Enter details for Type: US/USER, Agent, and Lang.
    e) Click on the + button to select the message type.
    f) Select Partner no. and LS which ever create above.
    g) Select Message type
    h) Select Process code related to the Message type.
    I) save.
    <u><b>In SLD – System Landscape Directory</b></u>
    TS for R/3 (Logical system):-Assign the client name created in R/3 as Logical system Name.
    Ts for Third Party (Logical system):-
    BS for SAP R/3 (Logical system):- Assign the client name created in R/3 as Logical system Name.
    BS for Third Party (Logical system):-Enter the XI logical system name.
    <b>In Transaction SALE</b>
    Define and Assign the logical system name.
    <b>and coming to the posting, u can go with WE19</b>

  • While Posting IDOC  from XI to R/3 Message Type needs to be changed

    We are doing mapping IN XI. For one condition we want Message Type to be ORDERS and for one condition we want Message Type to be ORDERSCHG
    when posting IDOC from XI to R/3.
    Pls revert anybody asap.
    Regards

    Hi,
    >>>>It means I need to create two Interface Mappings for the same message mapping and then I can use the Interface Determination . Am I right.
    no, you need two message mapping
    and two interface mappings
    file - orders.orders05
    file - ordrchg.order05
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • Posting idocs from R/3 to xi

    dear all,
    i want to do one scenario of posting INVOIC idocs from R/3 to XI. I have gone thru some of the blogs posted in SDN but didn't find any step by step guide for doing it.
    Can anybody send me the link or sme document for the above said scenario.
    Warm regards,
    N.Jain

    Sent/Receive IDOC:
    you need to do the following:
    In XI
    SM59 - R3 connection pointing to R3
    IDX1 - define the port with the above dest.
    In R3
    SM59 - R3 connection pointing to XI
    WE21 - define the port with the above dest.
    WE20 - Partner profile type outbound/Inbound
    Further ref:
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/sapR3%28Idocs%29ToXI--Steps+Summarized&
    Configuration steps required for posting idoc's(XI) -
    /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    ALE configuration for pushing idocs from SAP to XI -
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    For a IDOC -> File, ref:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters

  • Create IDOC from XML file

    Hi,
    I want to create Scheduling Agreement from idoc using XML file means i am receiving XML file and i want to convert this XML file into IDOC and finally process this IDOC to craete scheduling agreement.
    But i don't have any idea for this.pl. tell me what should i do for this.
    Thanks,
    Rahul

    Hi,
    You are receiving XML file and you want that to converted into the IDOC and inturn to be processed in your system, for this you need to create an XML port and you need to read the file from that port then an IDOC will be created.  Create an XML file port in WE21 transaction and then goto WE16 transaction and you can use that transaction to upload a file as an IDOC into the SAP system.
    Once the IDOC is created rest of the activity is same.
    Thanks,
    Mahesh.

  • What authorization required to post idoc from XI via RFC?

    Hi all,
    I need to post idoc to SAP R/3 system from XI. I have done all the steps correctly. While creating RFC in XI system to connect to the R/3 system, intially I gave my R/3 username and password and tested teh connection. Everything was working fine but when I actually ran the scenario, IDOC was not getting posted in the R/3. But there was no error anywhere.
    fianlly after debugging I fould it might be the issue of authorization the the R/3 user i used in the RFC. I then assigned SAP_ALL authorization to my user and posted the iodc again and it started working fine.
    Can anyone please tell me what are th exact authorizations/role i need to assign to the r/3 used to use it in RFC and successfully posting the idoc? I dont want to use SAP_ALL authorization in my production environemnt.
    Please help.
    Regards,
    Yash

    Hi,
    Even i had faced this problem. Whenever I tried to send IDOCs, i used to get an error in SM58, " No authorization to send IDOC of type DEBMDM".
    When i got SAP_ALL it worked. However I raised a note with SAP asking for an alternative and this is the reply gave me.
    You can get good information on this topic in your online help files.
    The following is taken from the document "General Security Measures
    (ALE)":
    Use the transaction SALE to maintain the ALE configuration, to include setting up the distribution model and setting up ALE user authorizations and profiles. Note the following:
    - Be restrictive when assigning the ALE authorizations.
    The authorization profile B_ALE_ALL contains the following
    authorization objects that are needed for ALE:
    Authorizations for ALE
    Authorization Description
    B_ALE_CGRP ALE Customizing Distribution: Group Activities
    B_ALE_LSYS ALE/EDI: Maintaining logical systems
    B_ALE_MAST ALE/EDI: Distributing master data
    B_ALE_MODL ALE/EDI: Maintaining customer distribution model
    B_ALE_RECV ALE/EDI: Receiving IDocs via RFC
    B_ALE_REDU ALE/EDI: Generating messages (ex. reduction)
    S_PROGRAM ABAP: Program run checks
    S_TABU_DIS Table Maintenance (using standard tools such as SM30)
    Protect external users and passwords.
    For example, for a non-SAP system to send IDocs to a SAP System using transactional RFC, it must also send a SAP user ID and password.
    In most cases, the user and password are stored outside of the SAP System. Make sure that this information is not accessible to external systems or programs. (How you can do this is dependent on the system that you have; therefore, you need to refer to the documentation for the system where the information is stored.)
    However, I feel assigining the profile S_IDOC_ALL should also be enough. Just try and see.
    Regards,
    Merrilly

  • Post Idoc from SAP to Thirdparty using XI

    Dear Friends,
      My requirement is sending the Idoc from SAP to Thirdparty system,but Thirdparty system also receive the Idoc format only.
    so IDoc to Idoc scenario but SAP to Thirdparty system it is possible or not.
    please tell me how ?
    Regards,
    Shalini Shah

    You can use SAP Business Connector(BC) to convert IDOC to IDOC-XML at the third party legacy system.
    With Business Connector see the below links
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b65bb7d4503http://www.thespot4sap.com/Articles/SAP_XML_Business_Integration.asp
    http://www.erpgenie.com/mysap/bus_connector.htm
    WAS - Business Connector
    business connector documentation
    SAP Business Connector
    Business connector
    Will Business Connector 4.6 be affected by new  Daylight savings changes
    Business connector
    More info on XI can be found at https://service.sap.com/xi
    and webAS on http://help.sap.com/saphelp_nw04/helpdata/en/f3/e20f3adfd0a706e10000000a114084/frameset.htm
    Check this also-
    http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/frameset.htm

  • "An IdocException occurred" while posting Idocs from SAP ECC to SAP PI AEX

    Hi all,
    While sending Idocs from SAP ECC to SAP PI 7.4 AEX, we are experiencing this issue at SAP ECC-SM58
    Only a particular Idoc type is having this issue.
    Below are the checks done before posting this query:
    1. Pushed other Idocs from the SAP ECC to PI and all were getting exchanged successfully.
    2. Reloaded the meta data in PI for  the particular Idoc type in issue.
    3. Checked the RFC destinations in SAP ECC, RFC connection test is also working fine.
    4. Unicode option enabled in the SAP ECC RFC destination pointing to PI-AEX
    5. Restarted the inboundRA service in PI AEX.
    Is there anything still missing. What could be root cause of this issue.
    If anyone has encountered it before, pleases share the resolution.
    Thank you
    Younus

    Hi Amit,
    Thanks for the reply. Log viewer doesn't provide much help on the error.
    The error desc says
    "JRA]serverExceptionOccurred. Server XI_IDOC_DEFAULT_SID, Managed_Application_Thread_58, connectionId=5-ip address|sapgw20|XI_IDOC_DEFAULT_SID, Exception: com.sap.conn.jco.JCoException: (104) JCO_ERROR_SYSTEM_FAILURE: An IDocException occurred"
    regards,
    Younus

  • How to post Idocs FROM BW to R/3?

    Hi,
    what I need to do is:
    1. read a cube.
    2. create an Idoc from the record I read.
    3. post the idoc back to R/3.
    Do you know how can I send the Idoc directly to R/3 FROM BW?
    Thanks,
    Itay

    Hi Andrzej,
    I created the following fm in R/3 to be called from BW:
    FUNCTION z_read_table.
    ""local Interface:
    *"  IMPORTING
    *"     VALUE(IP_TABNAME) TYPE  TABNAME
    *"  EXPORTING
    *"     VALUE(EP_TAB) TYPE  ZBP0_TAB
      DATA: it_table    TYPE REF TO data,
            l_line      TYPE zbp0_struc.
      FIELD-SYMBOLS: <it_tab> TYPE STANDARD TABLE,
                     <ls_tab> TYPE ANY.
    create internal table
      CREATE DATA it_table
             TYPE STANDARD TABLE OF (ip_tabname).
      ASSIGN it_table->* TO <it_tab>.
    read data
      SELECT * INTO TABLE <it_tab> FROM (ip_tabname).
    assign data
      LOOP AT <it_tab> ASSIGNING <ls_tab>.
        CALL FUNCTION 'SO_STRUCT_TO_CHAR'
          EXPORTING
            ip_struct = <ls_tab>
          IMPORTING
            ep_string = l_line.
        APPEND l_line TO ep_tab.
      ENDLOOP.
    ENDFUNCTION.
    In BW I am calling it with
    CALL FUNCTION Z_READ_TABLE destination 'DEST'
    IMPORTING ip_tabname = 'ZTABLE'
    EXPORTING ep_tab = itab.
    Hope this helps!
    regards
    Siggi

  • Posting IDOC from MQ

    Hi,
    I have a scenario in which I have to Post an IDOC from MQ (MQ to IDOC scenario).
    I am getting an error in the communication channel  :
    Transform: failed to execute the transformation: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: java.lang.Exception: ERROR converting document line no. 1 according to structure Header:java.lang.Exception: Consistency error: field(s) missing - specify lastFieldsOptional parameter to allow this; nested exception caused by: java.lang.Exception: ERROR converting document line no. 1 according to structure Header:java.lang.Exception: Consistency error: field(s) missing - specify lastFieldsOptional parameter to allow this
    What is the solution to this problem?
    Thanks,
    Vikas

    It seems you are using Content conversion on Sender JMS adapter side.
    Some fields must be missing  in your Source file.
    You need to specify the lastFieldsOptional parameter in Content Conversion.

  • Posting IDOCs from Proxies.

    I would like to know if there is a way to post an SAP inbound IDOC from a proxy?
    have any of you worked on such scenarios? If so what are the steps involved?
    Thank You
    Arvind R

    Hi Arvind,
    I am not sure why do you want to do that but if you are able to generate IDOC headers using the data in the proxy, yes, then you can send/post an IDOC using proxy.
    Award if helpful,
    Sarath.

  • Error when posting  Idocs From XI to SAP by Partner Profile

    Hi all.
    i have a problem. all my inbound IDocs in R3 use PP(Partner Profile) LS_XID.
    but i need to send IDoc MATMAS by a diferent PP (LS_MATERIALS).
    So, i added a new BS in transaction BD54.
    In transaction BD64 re-desing the Distribution Model as follow
    SL_130 (R3 DES)
    > LS_MATERIALS (XI)
                |> MATMAS.
    In transaction WE20 define the new PP LS_MATERIAL. In inbound table add the MATMAS IDoc. Later imust delete de MATMAS IDoc from LS_XID list. same as transaction BD64.
    My problem is when send the MATMAS to R3. it is still using PP SL_XID, so IDoc get status 56 (EDI: Partner Profile Inbound not Available) in R3.
    Why?? Any IDea??
    Thanks & Regards
    Rodrigo.

    Hi,
    Please check the Logical system,Business system, configurations ,please see the below links
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    /people/ravikumar.allampallam/blog/2005/06/24/convert-any-flat-file-to-any-idoc-java-mapping
    Regards
    Chilla..

  • Problems with posting iDocs from MDM in SAP R3

    Hi,
    I am an MDM consultant, with limited knowledge about SAP R3.
    We send material master data from MDM, via PI to R3 using iDocs.
    We are having problems with posting MATMAS, and it seems the problems are with updating already existing materials.
    In BD87 we get the following warnings:
    The field MARA-ERVOE is not ready for input and was therefore not initialized
    The field MARA-ERVOL is not ready for input and was therefore not initialized
    The field MARA-FERTH is not ready for input and was therefore not initialized
    The field MARA-KZGVH is not ready for input and was therefore not initialized
    The field MARA-XCHPF is not ready for input and was therefore not initialized
    With the last message being:
    No changes made
    I have checked the MDM syndicator, and none of these idoc-fields are linked to the MDM repository.
    So they are syndicated blank.
    If we try to resend the material, it is again stopped and in BD87 I see the same messages.
    Please help me understanding how to solve these issues.
    Thanks,
    Thomas

    Hi,
    Please refer the below threads which talks about the similar problem
    http://scn.sap.com/thread/3180116
    http://scn.sap.com/thread/1374222
    Generally the basic view of the material to be created first. Then the sales, purchasing and other views to be created.
    There are few fields in the other views which gets values from the basic data view.
    Regards,
    Antony

Maybe you are looking for

  • Why can't I delete this video file from my trash can?

    I have a video file that I will not disappear from my trash can when I click the "empty track" button. I managed to move the folder containing the video file from documents to the trash after a lot of effort, but it kept telling me that I didn't have

  • illustrator cs3 crashes upon launch in mac os 10.4.11

    illustrator cs3 does not complete its launch in mac os 10.4.11. [i'm running a powermac dual 1.25 ghz power pc g4 mirror door]. the same happens with indesign cs3. photoshop cs3 launches just fine. can anyone help? thanks.

  • Sort the Nodes and remove duplicate nodes

    Hello Experts, I have a requirement to sort the nodes based on a key value. e.g. <Node>     <Key>2<Key>     <Value1>name1<Value1>     <Value2>email1<Value2> </Node> <Node>      <Key>1<Key>      <Value1>name2<Value1>     <Value2>email2<Value2> </Node>

  • About ABAP WorkFlow

    Could you please tell me about the ABAP wrolflow. what are the prerequisite skills to learn the workflow. do the Object Oriented programing skills are required for it. please........ useful answers will be rewarded..

  • Load details into a Sheet to run in subquery

    Hi guys Is there a way to get a list of values i.e. references from a column in excel into a Disco sheet to run them as a subquery on a 2nd sheet? I have stacks of references and need to do a select for the values in that custom table. Thank Johan