SFTP to IDOC

HI ,
Scenario is SFTP to IDOC.
I have to give purchase order number as acknowledgement to sender SFTP server, is it possible please suggest me.
Regards,
Manigandan

Hi Mani
Since your inbound IDOC is not synchronous , the main challenge will be returning the purchase order number from ECC.
So if you wan't that the ECC will return the purchase order number, then you can think of using Proxy instead of IDOC.It is very easy to use proxy in case of synchronous requirement.
Or you can modify the existing IDOC program so that it will create one asynchronous proxy to send back the purchase order from ECC.
You will need one additional scenario for second approach.

Similar Messages

  • Sftp to idoc issue

    Hi experts,
    I have requirement on sftp to idoc interface where I NEED TO SEND 100  FROM SFTP TO SAP VIA SAP PI.I HAVE TO SEND 100 RECORDS.IN 100 RECORDS 99 RECORDS ARE 15 FIELDS AND ONLY ONE RECORD  HAVE 17 FEILDS .
    HOW CAN I SEND 17 FIELDS RECORD FROM SFTP.?
    I HAVE ALREADY DEFINE STRUCTURE IN IR WITH 15  FIELDS.
    Regards
    amar

    HI Rajhans,
    Thanks for your quick response.
    interface is already developed.
    in which parameter can i change in content conversion ?
    Regards
    amar

  • Idoc to File Scenario(SFTP) with special requirement

    Hi experts,
    We have a scenario Idoc-->File(SFTP), in which one field which is having multi-line and we want that field as structured below.
    Expected Output-
    <?xml version="1.0" encoding="UTF-"> <ggol_xml_payment><cust_payment_header><sender_id>SGCI</sender_id><receiver_id>RBOSNL2A</receiver_id>
    <file_creation_date>140314</file_creation_date><file_creation_time>105426</file_creation_time><transaction_count>0</transaction_count>
    <file_ref_nu>510703</file_ref_nu><format>PEXR</format></cust_payment_header>
    <payment>EDI_DC40_U0040000000113461553701
    3014
    E2EDP02001                   
    0040000000113461557000021000013030105100001110                                                                                                             
    E2IDLU5                      
    00400000001134615570000220000000200240000            
    JPY                                                                                    
    E2IDLU5                      
    0040000000113461557000023000000020030                 JPY   
    </payment></ggol_xml_payment>
    As you can see in the expected output, the payment node is itself a flat file king of structure. And it should be as its shown above.
    Can this be done with any custom module or ABAP code? Please suggest over the scenario.
    Thanks a lot!
    Regards,
    Nidhi Srivastava

    Thanks for your replies.
    I know the requirement is bit unclear. Now, the client gave a second option.
    They are telling if the file say xyz.txt(flat file content- mapped to payment node) is there in unix directory and PI picks the file there. Now, the XMLtags needs to be added to this picked file as shown in the above structure.
    xyz.txt
    EDI_DC40_U0040000000113461553701
    3014
    E2EDP02001                   
    0040000000113461557000021000013030105100001110                                                                                                             
    E2IDLU5                      
    00400000001134615570000220000000200240000            
    JPY                                                                                    
    E2IDLU5                      
    0040000000113461557000023000000020030                 JPY   
    Expected Output-
    <?xml version="1.0" encoding="UTF-"> <ggol_xml_payment><cust_payment_header><sender_id>SGCI</sender_id><receiver_id>RBOSNL2A</receiver_id>
    <file_creation_date>140314</file_creation_date><file_creation_time>105426</file_creation_time><transaction_count>0</transaction_count>
    <file_ref_nu>510703</file_ref_nu><format>PEXR</format></cust_payment_header>
    <payment>EDI_DC40_U0040000000113461553701
    3014
    E2EDP02001                   
    0040000000113461557000021000013030105100001110                                                                                                             
    E2IDLU5                      
    00400000001134615570000220000000200240000            
    JPY                                                                                    
    E2IDLU5                      
    0040000000113461557000023000000020030                 JPY   
    </payment></ggol_xml_payment>
    Is this possible anyways? I am not sure if we can write adapter module for adding the tags.
    Please suggest if we can achieve this by any means?
    Thanks!
    Regards,
    Nidhi

  • IDoc - SFTP (Flat File) file name

    Dear Experts,
           Thanks for helping me so far, please find below my new request :
           We have IDoc - SFTP (flat file) scenario in which I have did ESR by pass scenario and used standard module to convert IDoc xml to flat file.
           But now user is asking to have the naming convention of the receiver flat file as SHPMNT05_<IDoc number>_<Reference number>.idoc.
           Could you please let me know how this can be approachable. Many thanks in advance for your valuable inputs. Awaiting your replies.
    Thanks
    Ravi..

    Thank you very much Botha,
    In the thread Idoc to file problem with DynamicConfiguration please find below my doubts.
    1. I am using receiver SFTP adapter and IDoc to flat file module configuration as key 1, so how it will works.
    2. What are the Parameter name and Paremeter value for the module mentioned in the blog :
    Module Configurations:
    1  key.0      write http://sap.com/xi/XI/System/File FileName
    1  value.0   message.interface
    Which is the parameter and which is the value in the above blog.
    Waiting for your response.
    Thanks
    Ravi

  • Issue while archiving the processed file in sender communication channel using SFTP adapter

    Hi All,
    In one of my scenario (File to IDOC), we are using SFTP sender communicationchannel.
    we are facing an issue while archiving the processed file. Some times PI processed the file successfully but unable to archive it and in the next poll PI process & archives the same file successfully which will creates duplicate orders in ECC.
    Please let us know how to resolve this issue.

    Hi Anil,
    Refer Archiving concepts in below links.
    http://help.sap.com/saphelp_nw73/helpdata/en/44/682bcd7f2a6d12e10000000a1553f6/content.htm?frameset=/en/44/6830e67f2a6d12e10000000a1553f6/frameset.htm
    http://scn.sap.com/docs/DOC-35572
    Warm Regards,
    DNK Siddhardha.

  • SFTP with OS Command

    Hello everyone,
    Our scenarios are
    IDOC > XI > FTP over SSH
    and
    FTP over SSH > XI > IDOC
    Since XI 3.0 does not support sftp (ftp over ssh) i am trying to find a way to go round this problem by dumping a file on the xi server using a receier NFS file adapter and then executing an os command that will ssh it to it the target.
    Has anyone out there ever tried this before? Has it worked?
    How would one go about handling the sender file adapter in order to bring in files?
    Thanks in advance
    Dimitris

    Hi,
    <i>Has anyone out there ever tried this before? Has it worked?</i>
    >>>Yes, it worked successfully.
    There are 2 approaches here.
    1) Execute the shell script from the XI, via OS command. Here there may be a chances of the Queue problems, message stuck etc if huge no. of files are tranferred. Because, if script is not executed successfully, then SXMB_MONI will not show the status success. This condition will happen rarely based on the file transactions.
    --- Also , advatage is , XI is able to monitor, give the audit information saying the sript has been executed or not etc. To monitor
    2) Second approach is , execute the shell script independently from the OS level , independent of XI. Ie. these scripts will run in the batch job in the OS level and it will transfer the files from the directory into required destination.
    In this case, XI is not responsible to execute the shells script.
    But monitoring of these shell script should be out of XI's scope.
    Hope this helps,
    Regards,
    Moorthy

  • WCF-SAP vs SFTP Adapter

    Hi All,
    We've an existing interface that picks up IDocs from SAP using WCF-SAP adapter, these IDocs contain updates to data that are in turn subscribed by two other SAP systems via couple of Send Ports using the same WCF-SAP adapter. In production we've been facing
    performance issues with this design as when there are mass updates in SAP, they push up to 7 to 10K IDocs through, which BizTalk struggles with and that also creates issues for SAP as the queue is not read in quick time which starts building up and creates
    issues on the source system.
    Now one of the solution proposed for above problem is to use a file based adapter like FILE, SFTP etc. where SAP will publish IDocs as flat files, I believe that'll solve the problem of backlog building on SAP queue and SAP can continue to write files without
    impacting by BizTalk not picking them up but would it help in inside BizTalk performance as well? or we'll have to batch the files in using adapter properties (i think it works on SFTP adapter) say take in 100 files every 30 seconds? Any other solution which
    can speed this up?
    Thanks
    Syed

    I was just reading this
    Restrict the number files Picked up by BizTalk FTP Adapter msdn
    thread and it says
    "Not possible, the Maximum Files setting only controls how BizTalk creates the message batch
    to write them into SQL.  This also applies to the File adapters Number of messages in a batch"
    So , you need to implement some kind of controller pattern in your solution to manage this floodgate. 
    Have a read of
    How to implement Concurrent FIFO Processing in BizTalk technet wiki article, this for FIFO but this may give some idea to write a controller.
    Greetings,HTH
    Naushad Alam
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or
    Mark As Answer
    alamnaushad.wordpress.com

  • How to configure FTP/VAN Adapter for SFTP connection?

    Hi,
    I am new to the use of Seeburger's FTP/VAN adapter. I read SDN threads where the FTP/VAN adapter can be used for SFTP connections. Could anyone assist me in the steps to configure the communication channels for SFTP connections?
    Scenarios:
    1. R/3 -> XI -> File (SFTP server)
    2. File (SFTP server) -> XI -> IDoc
    There is no VAN connection involved. I am just trying to utilize the adapters my PI system currently have for my interface requirement.
    Is the configuration as simple as configuring the communication channel or there are scripts involved? If there are scripting involved, is there a benefit to use scripting in the FTP/VAN adapter, rather than XI's own File adapter?
    Please assist. Thank you.

    Hi Andrew,
    Standard PI Adapter will not support to conenct SFTP server, we have to use third party adapters?? do you have any third party adapters??
    many compniaes providing SFTP adapters and SAP PI Supports to.
    if you dont have third party adapter we do have other alternative , refer below blog
    /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way
    Regards,
    Raj

  • IDoc flat file to IDoc

    I am receiving flat file in SFTP Server which need to be posted into SAP (No mapping involved)
    What will be the best approach ?
    1. I tried using IDOCFlatToXmlConvertor (The limitation in the format of source file. The parent and child node relationship should be explicitly mentioned in IDoc flat file which legacy system is not able to do) - Any workarounds ?
    2. I moved the Idoc flat file into SAP application server. Now need to schedule job using program RSEINB00
    3. File Content Conversion
    Any other better solution ? Appreciate your help.
    Thanks and regards,
    Jose Augastine

    For converting Idoc Flat file to idoc xml, ABAP mapping is one of the feasible option.

  • Routing based on header record RECPOR in IDOC File

    I am working a flat file (actually, its an IDOC file) that will enter the configuration scenario through a Seebruger SFTP adatper.  Since this is a flat file, and not XML, I need to convert this to XML prior to doing content based routing in the receiver/interface determination.
    I am most concerned with the RECPOR field.
    RCVPOR : Receiver port
    internal data type : CHAR
    Internal length : 000010 characters
    Position in segment : 024, Offset : 0263. external length : 000010
    The scneario is a simple passthrough.  What I envision doing is converting the IDOC Flat file to an XML structure, then doing content based routing on the one field I am interested in, as mentioned above.
    Is there a way to do this without modifying the payload in teh sender/receiver channels, or am I going to be forced to doing content conversion with MessageTransformationBean?
    Since all of my routing will be done on 10 characters, I see breaking the file up into 3 fields...characters 1-263, 263-273, 273-EOF does some one have a sample of how to separate this, and how to recombine the values in the receiver?

    If I wanted to break the file up into 3 elements in a simple XML strcuture....
    I know its possible to do this using fixed field lengths...is there a method to break that file up int a simple xml structure with, lets say, 3 elements....
    Where field 1 contains from the start of the file (1) thorugh say character 31.  Filed 2 contains 31-41 then the third field to contain the rest of the file?  These 'flat files' could be any one of a dozen or so IDOC files that are being sent to me from an external EDI Translator.

  • 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

  • SFTP Receiver adapter - move file to another folder

    Hello Experts,
           Thanks for helping me so far.
           I have a new scenario IDoc --> PI --> SFTP (Flat File).
           The requirement is that, after the flat file is successfully placed in SFTP into a folder, the same file should move to other folder.
           Client has suggested this because to make sure that the full file need to pick up only after the successful placing.
           Please suggest your valuable thoughts.
    Thanks
    Ravi

    Hi Ravi,
    I agree with both Janus and Hareesh.
    But still if you want to do it as suggested by client then here is the way.
    Use Option "Run OS Command after Message Processing" in your SFTP channel. You would have to do following things to use it :
    1. Write a SFTP script (or get it done by someone good at it) which does the following
          creates SFTP connection between PI server to SFTP server
          Moves the file SFTP adapter placed in first directory and moves it to another directory
    2. Place the script file on the PI application somewhere
    3. Mention the script file along with full path of application server directory where script file is placed.
    Here is reference of this option
    SAP XI File Adapter OS Command Line Feature - Process Integration - SCN Wiki
    XI: Operation system command - error catching
    Only thing which would change in your case would be that instead of batch file it would be script file which you would be using if your PI server operating system would be UNIX. If your PI application server is based on the Windows Operating system then you would have to manage using the batch file.
    Thanks,
    Amit

  • IDOC to EDI Scenario using Seeburger....

    Hi Experts,
    On the Scenario IDOC to EDI when will I use As2 adapters or SFTP adapters of seeburger or just a simple FIle adapter?
    and any idea what are the modules I need to import on my comm channel using file adapter?
    Thanks.

    Hello
    Check this blog: /people/rajeshkumar.pasupula/blog/2009/08/05/wanna-implement-seeburger-for-edi-find-the-booster
    Regards
    Mark

  • "known hosts store" parameter in SFTP channel

    Hi Experts,
    I am working on Seeburger SFTP adapter and want the information on its configuration.
    My scenario is IDOC to SFTP, I have configured the receiver SFTP channel.
    But there is a parameter 'Known hosts store' in it, please let me know what is it and what value needs to be put.
    I am using 'Password' as Authentication method.
    Your help is highly appreciated.
    -Supriya.

    Hi Supriya,
    This parameter contains the information about the path on PI server where certificates of remote hosts (server where u r actually connecting to for data transfer from PI) have been stored.
    You can check for complete path from NWA for Key storage service view paramaters. The value for this entry should start with "USERS\viewname\*".
    Please let me know if still there is an issue in understanding about this!
    Thanks,
    Anoop Garg

  • Reg SFTP

    Hi All,
    I am having a new development where i need to take the iDOC XML file ( using file port) from the SAP system and i need to send  the XML IDOC to receiver by using SFTP . Here when i am configuring the receiver adapter there is no SFTP adapter( only file adapter is available) . What are the steps we need to do for getting that SFTP in to our adaper engine.
    Regards,
    Rama

    >
    Ramakrishna Balusu wrote:
    > Hi All,
    > I am having a new development where i need to take the iDOC XML file ( using file port) from the SAP system and i need to send  the XML IDOC to receiver by using SFTP . Here when i am configuring the receiver adapter there is no SFTP adapter( only file adapter is available) . What are the steps we need to do for getting that SFTP in to our adaper engine.
    >
    >
    >
    >
    > Regards,
    > Rama
    1. Are you using any third party SFTP adapter? - if yes, then as mentioned by other you need to setup the adapter metadata. It would be a good idea to go thru the adapter installation guide of that vendor.
    2. If you are not using a 3rd party adapter but want to use the standard file adapter for the same, then note that there is no standard way to achieve this but there are workaround and the easiest one probably is this - /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way

Maybe you are looking for

  • Not Displaing Interactive form in page

    Hi All,        I am was working with adobe interactive forms but suddenly stoped showing the form on one fine morning. bellow is the error given by server <b>'sapUrDomainRelaxing' is undefined</b> any one has any idea what could be this error. I trie

  • Satellite A200-1GM - (PSAECE) - keyboard has stoped working

    Hi I have a problem. During first time turn on my laptop, keyboard in my laptop didn't response (does means any keys reSpons when I press them). When I swtiched exteral USB keyboard, laptop keyboard working. I have the newest version of bios and driv

  • How to change the textarea to html editer in knowledge maintenance page ?

    Hi, experts, When we maintain the knowledge, we typed infomation into the textarea. Now we want to use html tags to show the knowledge info, so that the text can be shown in html table. how to change the textarea to  html editer ? Thanks. Oliver.

  • Load Movie/ photo gallery

    I have a load movie button working correctly, and I have a photo gallery with 'back' and f'orward' buttons working correctly - but when I try to load the photo gallery swf file, onto my page with the load movie button, I get an endless NaN error pop

  • Non-breaking space in Adobe Muse

    Is it possible to insert non-breaking space in Adobe Muse?