File - BAPI -  File Synchronous scenario

Hi all,
I am working on a 'flat file--> BAPI --> flat file' scenario. This is a synchronous scenario in which data from input flat file will be sent to BAPI on R/3 side and from the response of BAPI a flat file will be created.
Is it possible to implement this scenario without using BPM ?
Thanks.

Hi Minal,
     For this, you hv to use BPM
The BPM procee will look like this
1. Receive step (Receive the data from file)
2. Sync send to R/3 and get a response
3. Async send (response) to File
Check the following link
<a href="/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit:///people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
Regards,
Akshay
Message was edited by:
        Akshay Salunke

Similar Messages

  • HTTP-FILE synchronous scenario

    Hi,
    I want to configure a Http to file synchronous scenario.
    Message will be sent through the HTTP test tool. I have selected BestEffort as the QoS.
    We do not want to use the repository objects.
    Sample file say(<tag>this is a sample file</tag>) will be sent through HTTP test tool.
    This file should be received by the File Receiver channel and dumped on the FTP.
    In response, a file from some other folder on FTP should be sent.
    How can this be achieved?
    Regards,
    Pratibha.

    Hi Pratibha,
    the standard sap help side is here very good
    [Integration Processes (ccBPM)|http://help.sap.com/saphelp_nw2004s/helpdata/en/3c/831620a4f1044dba38b370f77835cc/content.htm]
    You need a receive step (synchronous) for for your http request.  For this you need 3 abstract interfaces: 1 synchr IF, 1 async for request container, 1 async for resp container. You need to correlate with a unique number which the http sender has to send (f.e. date/time stamp)
    Next may be a transformation (mapping) but not required.
    Then a async send step to send the file.
    The response file need to be created, the corresponding adapter should have a short poll intervall. The response file need to send the unique id as well.
    The BP correlates the second receive step, next you can - like before optional - execute a transformation step.
    Finally u close the sync/async bridge and send the response back. This will take assumedly a minute or more.
    The whole design is may be not sufficient. Better ask if the requierments are changeable.
    Regards,
    Udo

  • Proxy to File Synchronous Scenario

    Hello,
    My scenario is 
    SAP System ----->(Proxy)   PI -------->(File)  FTP
    Synchronous Scenario
    I have been using the RequestResponseBean and ResponseOnewayBean module in the Sender Request Adapter channel to convert the file adapter from Asynchrounous to Synchronous scenario.
    While Triggering Data From Proxy the receiver request channel is placing the file in the FTP.
    But the sender Response channel is saying that "No suitable Sender  agreement found" error.
    Also in the Audit log :SOAP: call failed com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException: 204 .
    Getting the above error.
    Also I need the Sender Response Channel to pick the file after 10 minutes of placing the file in the FTP by the receiver Request channel.
    Please help on this.

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • Synchronous File- Soap scenario with fault message

    Hi!
    I have a File to Soap synchronous scenario.
    All is right when no exception is returned by the web service.
    I want to use fault messages to catch thoses exceptions, so I have added fault message in message interfaces and in the mapping program in the interface mapping.
    Now, when the web service return an exception like :
    <soap-env:Envelope xmlns:soap-env="http://schemas.xmlsoap.org/soap/envelope/">
       <soap-env:Body>
          <soap-env:Fault>
             <faultcode>soap-env:Client</faultcode>
             <faultstring xml:lang="en">NOT_CREATED</faultstring>
             <detail>
                <n0:Z_WS_CREATE_WAGON.Exception xmlns:n0="urn:sap-com:document:sap:rfc:functions">
                   <Name>NOT_CREATED</Name>
                   <Text> does not have packaging material type and is therefore not a pack.mat.</Text>
                   <Message>
                      <ID>HUSELECT</ID>
                      <Number>041</Number>
                   </Message>
                </n0:Z_WS_CREATE_WAGON.Exception>
             </detail>
          </soap-env:Fault>
       </soap-env:Body>
    </soap-env:Envelope>
    I get the following error :
    <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="MAPPING">NO_MAPPINGPROGRAM_FOUND</SAP:Code>
       <SAP:P1>http://www.arcelormittal.com/radis/rad IM_RAD_to_ZWsCreateWagon</SAP:P1>
       <SAP:P2 />
       <SAP:P3 />
       <SAP:P4 />
       <SAP:AdditionalText />
       <SAP:ApplicationFaultMessage namespace="" />
       <SAP:Stack>Interface mapping http://www.arcelormittal.com/radis/rad IM_RAD_to_ZWsCreateWagon does not exist in runtime cache</SAP:Stack>
       <SAP:Retry>N</SAP:Retry>
    </SAP:Error>
    My mapping program for fault message is well defined (I tested it with the exception message received from the web service).
    I have also refresh caches, but without success...
    Can anyone help me ?
    Thanks in advance,
    Laurence

    Hey Laurence,
    A File adapter is aysnchronous u cant use for synchrous because it cant acknwlodge the response it gets or itt sends.
    regarding two asynchoronus
    1. file to SOAP asychn.
    2. triggger the second one if SOAP has exception then pass the error from SOAP to New File.
    using BPM we have to use Transportion level acknowledgments
    please reward points if it helps
    Regards
    Sreeram.G.Reddy

  • FILE to SOAP synchronous scenario - config of SOAP channel

    Hi All,
    I have a scenario where I want PI to pull some files from 3rd party application.
    Adapters to be used: SOAP receiver, FILE adapters.
    I am aware of the use of Request/Response beans in File sender channel and the File receiver channel to dump the received files in a particular location.
    I need help with the configuration of the SOAP channel.
    The files to be pulled will be Encrypted.
    Summary:
    File sender(RequestResponse & ResponseOneWay Beans) , File receiver( to receive the files), SOAP receiver.
    Need help with the config of SOAP.
    Kindly let me know your views.
    Thanks,
    Pratibha.

    Hi,
    Let me put it in detail steps:
    In forward flow we will be sending an IDoc. It will be processed and later an Acknowledgement file will be generated.
    Now, we want to PULL this Ack file. If the other party had to push the Ack file, the scenario would have been simple.
    But, we want to poll for this file and then pull it.
    So, we would have something like this:
    1. FILE SENDER sends a sample file.
    2. We will be applying the beans in file sender to make it a synchronous scenario. So, the Ack file will be received at the location mentioned in the corresponding FILE RECEIVER adapter.
    3. We have a SOAP RECEIVER which should send the ACK file in response.
    I have configured the same scenario where the RECEIVER was HTTP adapter. The 3rd party had provided us the URL and ENT-APRF value. When I used to send the sample file via FILE SENDER to this HTTP receiver, I was able to retrieve the ACK file via the FILE RECEIVER.
    Now, I wish to configure the same using RECEIVER SOAP adapter.
    I need to know about the config at SOAP end i.e. how and where  the ACK file will be available at the SOAP end for the FILE sender to pull the file.
    Ack files will be encrypted..
    Any views/suggestions will be of great help.
    Thanks,
    Pratibha.

  • File to Proxy synchronous scenario

    Experts,
       I am working on a File to proxy synchronous scenario.
    I am doing the content conversion at the sendre side by using java program as  input structure is very complex so have to go fr java code. Its a  txt file at sender side.
    Once I read the file in XI, am doing a graphical mapping ( just one to one mapping)  then using the server proxy , a service entry is getting created then response am sending to the receiver.
    My question is , can I use graphical mapping as I am using a java class for content conversion? both in one scenario is possible?
    I have developed a java code  for content conversion and it is working fine. How to use this .jar file in XI?
    Can Any one help me wz thsi one?
    Thanks in Advance
    Virendra

    My question is , can I use graphical mapping as I am using a java class for content conversion?
    You can use as long as the structure generatde by the JAVA program is same as the source-message structure of the message mapping.
    I have developed a java code for content conversion and it is working fine. How to use this .jar file in XI?
    In my opinion this should be the adapter module....as the conversion needs to be done in the channel and inclucing it as a mapping wont help.
    Regards,
    Abhishek.

  • File to RFC synchronous scenario stopped Picking the files

    Hi Experts,
    We have a File to RFC synchronous scenario. Till yesterday night it is working fine.
    But suddenly it is stooped working.In moni, i can see the failed messages with the Mapping error " Can not create target element, values missing in the queue context "
    No Payload in moni / communication channel monitoring / Message monitoring. I've noticed that, wrong files placed in the To-be- processed files and the adapter picked those files and failed in mapping.
    I tried by stop and start the communication channel / did some dummy changes in the communication channel and activated. cleared the cache.
    But still the communication channel is not working.when i stop and start the communication channel it will try to process the wrong files and failed.
    Give me your valuable inputs to resolve this issue.
    Regards
    Bhargava krishna

    Hi Bharghav,
    Please go through the below,
    Symptom
    FTP Adapter is being used in the business scenario for message processing.
    During file processing it is noticed, that the FTP sender channel stops
    polling. There is no error in the channel monitor or the trace/log files
    and the polling jobs are correctly displayed in the AFW scheduler table.
    The issue is observed after a network connection issue with the FTP server.
    In order to remove the hanging locks from the FTP Adapter, the parameter
    'ftp.timeout' setting is required to be set, which releases the lock once
    the timeout value is expired. But in the above situation, the value for the
    'ftp.timeout' is not taken properly while establishing the data connection
    by File Adapter.
    Other terms
    FTP Adapter, sender, FTP, adapter, timeout, stalled, network, hang, polling
    Reason and Prerequisites
    Program error
    Solution
    The hanging situation has now been improved by code changes. Please see
    section "SP Patch Level" of this note for a list of updated software
    components.
    To get this correction available in your Support Package you need to apply
    the patch matching to your Support Package version as per the instructions
    in the NetWeaver Support Package Stack guide which can be found on the SAP
    Service Marketplace as described in SAP Note 952402.
    Thanks & Regards
    Uday.S

  • File to RFC synchronous scenario

    Hello Friends,
    I have a file to RFC scenario.
    Sender is sending file synchronously and based on conditions within file i have to make call to various ECC instances and returning responses.
    I am using BPMmulticastparallel. Implemented conditional receiver determination and the correlation.
    Does anyone have such scenario example.
    Kindly share.
    Edited by: vishal kharat on Aug 5, 2011 2:47 PM

    Hi Mr.
    You can follow this example, regarding BPM implementation:
    http://www.riyaz.net/blog/a-step-by-step-guide-to-bpm-asynch-sync-bridge/technology/sap/170/
    For XPath Receiver Determination, follow this links:
    http://wiki.sdn.sap.com/wiki/display/XI/XpathConditioninReceiverDetermination
    http://wiki.sdn.sap.com/wiki/display/XI/EnhancedReceiverDeterminationinSAP+XI

  • Acknowledgement - IDoc-File & File-IDoc scenario

    Hi All,
       Acknowledgement is possible in case of asynchronous IDoc-XI-File scenario? If yes, how to setup?
       Same as above question for File-XI-IDoc scenario.
       In case of synchronous scenario, how to setup email with acknowledgement?
    Thanks a lot in advance.
    Sree

    Hi Rama,
    While doing an IDOC -> XI -> File scenario, The Points to noted are:
    1. You don’t need a DT, MT or a message interface for the IDOC as it itself acts as the Message Interface.
    2. You import the IDOC and use the same in your mapping.
    3. In this configuration note that you don’t have a sender agreement as you don’t have a sender IDOC adapter.
    If it is that you wanted to send an IDOC from XI (File to IDOC) , then in this case:
    points 1 and 2 will remain, but the 3 will not. You will need a sender agreement for the file and a receiver agreement for the IDOC.
    IDOC -> File scenario ref:
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    File -> IDOC ->
    /people/anish.abraham2/blog/2005/12/22/file-to-multiple-idocs-xslt-mapping
    (It concentrates on XSLT mapping but also gives an idea about the configuration part. Do go thru that, it might help you.)
    I hope I have answered your query.
    Regards,
    Abhy
    PS: AWARD POINTS FOR HELPFUL ANSWERS.

  • RFC To File Synchronous

    Hi,
    Please tell me how to configure RFC to File Synchronous using BPM.
    I want an acknowledgemnt to the RFC as soon as the File sending is completed

    Hi,
    file adapter supports transport acknowledgements.......
    have a glance over the blog.....
    The specified item was not found.
    https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1403 [original link is broken] [original link is broken] [original link is broken]                              
    Sync/Async scenarios without BPM                         
    Thanks,
    Madhu
    Edited by: Madhu sudhan Reddy on Jul 31, 2008 1:52 PM
    Edited by: Madhu sudhan Reddy on Jul 31, 2008 1:52 PM

  • File-to-File/RFC scenario with reading filename

    Hi,
    i have a File-to-File/RFC scenario which causes some problems in desining it correctly. Maybe some of you has an idea how to do this.
    Scenario:
    - A file is picked up by a File-Adapter. The files are different: pdf, doc, tiff, jpg, txt, ...
    - The file must now go through a business process (not necessary the file, but i need the filename in the business process).
    - The process has to contact several backend systems (SAP R/3) to collect some data. To achieve this the filename has to be send to this systems.
    - The collected data are send via SOAP to a receiver system
    - The file itself has to be stored in a directory via File-Adapter.
    Here's my problem:
    - Is it possible to transport the binary file content within a message which contains other elements (e.g. filename)?
    - Is it possible to do graphical mappings with such a payload (only 1 to 1)? Or must i use Java Mappings only?
    - How to generate a Message from the sender File Adapter which contains binary file content AND filename? Is this possible with a Module?
    - Is it better to create 2 messages with an adapter module? One with the image the other with the filename. Or is it better to split them later in a Mapping?
    Thanks in advance,
    ms

    If all that you need is the file name, use adapter specific settings in the sender file adapter. Then you can access the file name in mapping runtime in UDFs. If you want to have content of the pdf, jpg etc images, i do not think there are ready modules available except for reading pdfs ( you might have to research on this).
    For look ups etc with R3 systems, you can use the file name that you got from the adapter and store it in mapping fields.
    VJ

  • Interface ABAP Proxy - File - Synchronous - (Is it possible???)

    Hi Experts,
    I want execute ABAP Proxy which will create File in FTP. On final, i need return "OK" information to the ABAP Proxy.
    Is it possible? ABAP Proxy <-> File Synchronous? Without BPM and Custom Module Adapter. Just using RequestResponseBean???
    Tks in advance.

    Hi Raj,
    Tks. I implemented the Acknowledgements Request and changed the ABAP Proxy to Async. But the Ack returns to the ECC with the error and is not saved in the Message. The error follows below:
      <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    <!--  Update Acknowledgment Status of Request Message
      -->
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="PERSIST">REQUEST_MESSAGE_NOT_FOUND</SAP:Code>
      <SAP:P1>4EE24DEB4EA60650E10080000A09071E</SAP:P1>
      <SAP:P2>CENTRAL</SAP:P2>
      <SAP:P3></SAP:P3>
      <SAP:P4></SAP:P4>
      <SAP:AdditionalText></SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace=""></SAP:ApplicationFaultMessage>
      <SAP:Stack>Requisição mensagem 4EE24DEB4EA60650E10080000A09071E pipeline CENTRAL versão desconhecida</SAP:Stack>
      <SAP:Retry>N</SAP:Retry>
      </SAP:Error>
    Any Idea about this error?
    Tks in advance.

  • N:1 file merging scenario in bpm

    Hi friends,
    Can anybody send me link of blog for file merging scenario in BPM. i hav two files and i hav to merge it into one single file. I am new to XI, plz help me.
    Thanks in advance,
    Shweta

    Hi,
    Check this blogs...
    /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm
    /people/narendra.jain/blog/2005/12/30/various-multi-mappings-and-optimizing-their-implementation-in-integration-processes-bpm-in-xi
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Merging using corelation -
    /people/sravya.talanki2/blog/2005/08/24/do-you-like-to-understand-147correlation148-in-xi
    Example using correlation:
    http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/content.htm
    Please reward points if it helps
    Thanks
    Vikranth

  • XI is not able to archive file in file-idoc scenario

    Hello friends,
    I have an issue in my file->idoc scenario. When a file is placed to XI's filesystem using FTP, it is placed under xiftpuser user. Owner of all directories in this structure wher the file is placed is xiftpuser. XI is not able to archive the file because of the permissions on the archive directory. But the problem is, permissions on this directory are 775 and xiftpuser and xipadm user are in the same group. So this should work. But it doesn't. When I change permissions to 777 everything works fine.
    Do you have any idea what could be wrong?
    Does it matter, that xipadm user has been added to the common group with xiftpuser "later", when XI was up a long time before? Do we need to restart j2ee to take these new permissions into account?
    Thank you,
    Olian
    Edited by: Olian Saludew on Sep 23, 2008 11:46 AM

    Hi,
    If archive directory Path is d:\archive
    Put a '\' after it.
    e.g. "D:\archive\"
    It will work.
    Regards,
    Akshay.

  • ATTRIBUTE_IDOC_RUNTIME error in File-IDOC Scenario

    Hi,
    I got this error in FIle-IDOC scenario.
    ATTRIBUTE_IDOC_RUNTIME</SAP:Code>
      <SAP:P1>Transaction IDX1: Port SAPMMX, client , RFC destination contain errors
    There are many threads on same issue. Almost in all threads, the suggestion given was, we need to check the Channel Definition(Port should be SAP<SYSID> and not SAP<SYSID>_<CLIENT>)
    I have given the proper values for RFC desitnation and port. Even then, I m getting this error.
    Is there any other suggestions?

    Hi aarthi,
    I suggest u chk all d settings dat u hav done..
    Steps for ALE settings:-
    Steps for XI
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the R3 system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto IDX1.
         Create a new port.
         Give the port name.
         Give the client number for the R3 system.
         Select the created Rfc Destination.
    Step 3)
         Goto IDX2
         Create a new Meta data.
         Give the Idoc type.
         Select the created port.
    Steps for R3.
    Step 1)
         Goto SM59.
         Create new RFC destination of type 3(Abap connection).
         Give a suitable name and description.
         Give the Ip address of the XI system.
         Give the system number.
         Give the gateway host name and gateway service (3300 + system number).
         Go to the logon security tab.
         Give the lang, client, username and password.
         Test connection and remote logon.
    Step 2)
         Goto WE21.
         Create a port under transactional RFC.(R3->XI)
         Designate the RFC destination created in prev step.
    Step 3)
         Goto SALE.
         Basic settings->Logical Systems->Define logical system.
         Create two logical systems(one for XI and the other for R3)
         Basic settings->Logical Systems->Assign logical system.
         Assign the R3 logical system to respective client.
    Step 4)
         Goto WE20.
         Partner type LS.
         Create two partner profile(one for XI the other for R3).
         Give the outbound or inbound message type based on the direction.
    Step 5)
         Not mandatory.
         Goto BD64.
         Click on Create model view.
         Add message type.
    Step 6)
         Goto WE19
         Give the basic type and execute.
         fill in the required fields.
         Goto IDOC->edit control records.
         Give the following values.(Receiver port,partner no.,part type and sender Partner no. and type)
         Click outbound processing.
    Step 7)
         Go to SM58
         if there are any messages then there is some error in execution.
         Goto WE02.
         Check the status of the IDOC.
         Goto WE47.
         TO decode the status code.
    BD87 to check the status of IDOC.
    In case if not authorized then go to the target system and check in SU53, see for the missing object
    and assign it to the user.
    SAP r3
    sm59(status check)(no message)
    WE02(status check)
    WE05(status check)
    BD87(status check)
    Xi
    IDx5(Idoc check)
    SU53(authorization check)
    reward points if helpful...
    MenoN

Maybe you are looking for