Multimapping: RFC+File to File

Hello,
I've read a lot of blogs about multimapping and BPMs but I don't know how to solve my problem yet.
I have an RFC in R3 that triggers data to XI. Then XI must receive that data and read a file with more data.
Once I have all the data I have to map to a target file.
My problem now is, how can I tell to XI to read the source flat file when it receives the R3 RFC data?

>
Jean Carlo Abreu wrote:
> well... you have your starting process, the RFC ...and then you just make the request to the file adapter, what is the problem?
Maybe the problem is that simply the file adapter doesnt support requests?
It is read only (send file adapter) or write only (receiver file adapter).
The scenario will have to be changed.
If it is feasible to use correlations, you can start the bpm with the receiver from rfc (which sets the correlation), then receive step waits for file that matches the correlation set by 1st receiver, then you proceed.
If you do have to execute a "file query" (for example, if the pooling directory is defined by the rfc), you'll have to write a java or abap proxy that does it.
Regards,
Henrique.

Similar Messages

  • Dynamic file name from input payload (RFC 2 flat file)

    Hi,
    I have an RFC to flat file scenario. The output flat file has not an XML structure, it's just a plain text file generated with abap mapping.
    In my source interface (RFC), I have a field called <FILENAME>, I want to use the value of that field to create the target file using dynamic file name. But if  in variable substitution I use payload:ZRFC_NAME,1,FILENAME,1 It doesn't work because the dynamic variable substitution try to access to output payload, not the source one...
    What can I do?

    Hi Marshal,
           You can add a extra node to your target strucutre like
    FileName- Node
    --FileName - Element.
    do the mapping from the field filename of RFC to FileName field in u r target strucure. And use this  field path at Refrence in variable subtituion.
    In the Content converison add the Name & Values as below
    FileName.fileldNames -- FileName
    FileName.fieldFixedLengths -- 0
    FileName.fixedLengthTooShortHandling -- Cut
    So the extra field in u r target structure would not populate in u r target text file.
    Cheers
    Veera

  • Step by Step Guide Details for RFC to File and File to RFC scenario

    Hi Guru's
    Good day to you. I am tyring to develop some scenarios based on RFC adaptor. so i want to start up with basic scenarios like RFC to File  scenario(Here i just want to pull some data from SAP using RFC and put it in destination folder as an text file) and FILE to RFC scenario (Here i just want to take some data from the file and update into SAP).
    For doing these scenarios i would like to request you people to send me the step by step guide which explains me about the complete steps of configurations required to do the RFC to FILE scenario and FILE to RFC scenario.
    I found some scenarios and i am in confused state. so i request you to please put your experience to help me out.
    thanks in advance.
    Regards
    Raj

    Hi Aaron,
    I don't know your scenario and your ECC and PI versions but I learned how to use ABAP Proxy more than 1 year ago with the following tutorial:
    Edit--> The forum doesn't allow me to post external link, just search "ABAP Proxy Communication Scenario" in google and visit the 1st result
    The way to develop ABAP Proxys has changed a little if your PI is 7.1. In the ECC side, the transaction SPROXY looks much better too if you have a recent version of the ECC.
    Edited by: Marshal on Oct 8, 2009 5:08 PM
    I've found that SDN Document. Maybe the scenario is not the most simple to start with ABAP Proxy but is very well documented and is for PI 7.1. The document also handles the inbound and outbound proxys
    [http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c00ca32e-f991-2b10-f5be-97114bd2b08f&overridelayout=true]
    Edited by: Marshal on Oct 8, 2009 5:22 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

  • How to do the multimapping in File to File Scenario

    Hi All,
    I am doing File to File scenario using Multimapping Concept.pls send the procedure how to do the Massege mapping using Multimapping.
    I have a source structure like this.
    <order header>
    order no
    order Description
    </order header>
    <Orderitem>
    matno
    description
    Qty
    UOM
    </Orderitem>
    i need output text file Like
    Ono Oodesc OMatno Odes Oqty OUOM
    1      02    123    Oil  2    L
    1      02    789    Milk 4    L
    How to do the multimapping for this.if any Advanced java functions needed pls send the code.
    Thanks
    Govindu.

    Hello Govind,
    Make the target str as below
    <root>
    <Row>
    <OrderNo></OrderNo>
    <OrderDesc></OrderDesc>
    <Matno></Matno>,
    <Desc></Desc>
    <Qty></Qty>
    <UOM></UOM>
    </Row>
    </root>
    The mapping for elements
    <Matno>,<Desc>,<Qty>,<UOM> is straight-forward. The node <Row> can be mapped to <OrderItem> node in source. For orderNo and OrderDesc you need to use advanced UDF (with entire queue cached) as below.
    public void getOrderNo(String[] a,String[] b,ResultList result, Container container){
    /Declare a vector to store unique Order Numbers  /Order Desc/
    Vector vOno = new Vector();
         for (int i = 0;i<a.length;i++){
         if (a<i>.equals()ResultList.CC) continue;
         /Add distinct Order numbers to the vector/
         if(!vOno.contains(a<i>)) vOno.add(a<i>);
    int headerCounter = 0;
    String value = new String();
    value = (String) vOno.get(headerCounter);
         for (int j = 0;j<b.length;j++){
         /When context changes, move to next order no/
         if (b[j].equals()ResultList.CC){
                       headerCounter++;
                       value = (String) vOno.get(headerCounter);
                      continue;
         /Repeat the current order number/Order Desc until a context change occurs/
         result.addValue(value);
    The mapping for OrderNo can be like below:
    Pass <Order No> from Header to the UDF as array a[] and <OrderItem> from Item as array b[]. Take the output of the function and make it SplitByValue the result of which can be passed to OrderNo. The context of both < Order No> and <OrderItem> has to be one level higher.
    Similar mapping for OrderDesc can be made using the same UDF
    I hope that resolves your problem.
    Regards
    Amit

  • RFC to Flat file XSLT mapping

    Hi all,
    we are working on RFC to Flat file XSLT mapping.
    RFC Structure
    RFC Name
    --Item
    f1
    f2
    f3
    FLAT File Structure
    MT_FF
    --Record
    f1
    f2
    f3
    Can somebody provide the XSLT code template for the same.....

    The issue is solved. I used Altova MapForce to generate the code. Thank you.

  • File- Xi- File & RFC scenario

    Hi guys,
      I have a scenario where file is picked up from one file system(A) and is put in
      file system(B) .
      Now there is R/3 system which will pick up the files from file system(B)
      by a already developed abap program.
      But the problem is R3 doesnot want ot poll the File system (B) every 10 min
      to see the file has arrived or not. it needs a trigger in form of RFC from XI
      After R3 gets a trigger , it will pick up the file from file system(B).
      How can we do this using BPM
    Regards

    Hi Madhusudhan,
    Without using BPM, u can poll the file system B and trigger the RFC..
    Else if you want to use BPM, include the following steps
    receive step(Receives file input)
    send step(Post file to o/p directory)
    another send step to trigger the RFC
    In between somewhere you need to initialize the message interface container elemnt which you'll use to trigger the RFC

  • How to test the RFC to Flat File scenario

    Hi,
    How to test the RFC to Flat File scenario
    regards,
    kiran

    Hi,
    After running the RFC it's going Dump.
    this is the error message i got.
    "Error analysis                                                                     
    An error occurred when executing a Remote Function Call.                     
    "CPI-C error CM_RESOURCE_FAILURE_NO_RETRY"                                                
    Status of connection.... "CODE=CM_RESOURCE_FAILURE_NO_RETRY -1 -1 SAPCODE=666
    CONV="                                                                      
    Internal error code.... "RFC_IO5"                                                           
    There is an error in the communication system. To clarify                    
    and resolve the error, contact your system administrator.                     "

  • Problem in multimapping(File to File)

    Hi Experts,
    I have a scenarion in which i have
    1:N multimapping(for file to file)....
    I am using java mapping for that.
    During mapping it's creating more than 1 message type in one message ....that's fine
    eg:
       Message1
          mt_1
          mt_1
          mt_1
    Message2
        Mt_2
        Mt_2
    I get the above proper output while testing in Mapping......But if i test in Test Configuration or in End to End.... it throws an error
    Interface Determination Cannot be found
    Is it because i have multiple same message types for a given Message1 or Message2(As shown above).. or something else
    Thanks,
    Babu.

    Hi Hibabu,
      1.  Please try to make sure that the interface mapping also works fine with the given interfaces for the mentioned message mapping in.
    2. Check the interface determination again .wether wether u mentioned all the required parameters properly or not and activate it again.
    3.In configuration during interface determination .use Enhanced Interface determination and mention the  multimapping mentioned interface mapping there.
    Thanks,
    Ram.

  • RFC to multi file scenario

    Hi,
    I have to carry out a RFC to multi-file scenario. The requirement is that Error generating on whatever part XI will handle have to be reported. Is this possible in this scenario? What can be the mechanism?
    I want to report these errors via a mail to an e-mail id.
    Since i haven't done this scenario, i would appreciate if some link for carrying this out step-by-step is given.Also tell me what configuration for receiving RFC has to be done on XI and R/3.

    Hi Arpit
    <b>go through these blogs for the querry</b>
    <b>For email alerts</b>
    /people/aravindh.prasanna/blog/2005/12/24/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-2
    /people/aravindh.prasanna/blog/2006/02/20/configuring-scenario-specific-e-mail-alerts-in-xi-ccms-part-3
    /people/sap.user72/blog/2005/01/14/alert-management--improving-monitoring-of-your-landscape
    /people/michal.krawczyk2/blog/2005/09/09/xi-alerts--step-by-step
    You have to do SMTP Configuration for EMail and SMS.....
    http://help.sap.com/saphelp_nw04/helpdata/en/af/73563c1e734f0fe10000000a114084/content.htm
    Thanks !!

  • Rfc sender - text file

    I have a interface using rfc sender. When it's executed, a file is created.
    When the format is a XML, the file is created, but, when I use "File Content Conversion" in "File Adatper" to convert the data in text format, the file is not created.
    The structure of my RFC is:
    Y_SD_XI_EDI_NOTFIS  - RFC
      DATA             - Table
        TEXT            - Field
    The configuration in "File Content Conversion" is:
    Recordset Structure:       DATA,* (I already write this using "DATA")
    DATA.fileNames:            TEXT
    DATA.processConfiguration: fromConfiguration
    DATA.endSeparator:         'nl'
    What is the problem?

    Hi,
    I changed the RFC. Now, there is only DATA table and a Import Parameter.
    I'm still with same problem.
    I see that when I run the process don't using the  Content Conversion, all the logs in RWB is "Successful", but, when I run using "Content Conversion", one log was "Waiting" (aways were generated three logs).
    The log detail for process using "Content Conversion" is equal to process that dont use "Content Conversion".
    The detail is:
    code]2006-01-19 19:31:08 Success The message was successfully received by the messaging system. Profile: XI URL: http://sapccnwd:51300/MessagingSystem/receive/AFW/XI
    2006-01-19 19:31:08 Success Using connection AFW. Trying to put the message into the receive queue.
    2006-01-19 19:31:08 Success Message successfully put into the queue.
    2006-01-19 19:31:08 Success The message was successfully retrieved from the receive queue.
    2006-01-19 19:31:08 Success The message status set to DLNG.
    2006-01-19 19:31:08 Success Delivering to channel: FileReceiverNotfis
    2006-01-19 19:31:08 Success File adapter receiver: processing started; QoS required: ExactlyOnce
    2006-01-19 19:31:08 Success File adapter receiver channel FileReceiverNotfis: start processing: party " ", service "SPASA_EDI"
    2006-01-19 19:31:08 Success Connect to FTP server "ftp.discovirtual.terra.com.br", directory "/"
    2006-01-19 19:31:08 Success Write to FTP server "ftp.discovirtual.terra.com.br", directory "/", -> file "notfis20060119-193108-773.txt"[/code]
    See all my configuration, design, XML's and others:
    +++ Design +++
    Message Interfaces
    [NotaFiscalAbstractAsync]
    [NotaFiscalAbstractSync]
    Integration Process
    [NotaFiscalIP]
    - Receiver1 -> Sender1 -> Sender2
    - Container
      Name               Type
      AbstractMessage     NotaFiscalAbstractAsync
    - Receiver1                
      Mode:                 Open S/A bridge
      Synchronous Interface:  NotaFiscalAbstractSync
      Message:            AbstractMessage
    - Sender1
      Mode:                 Asynchronous
      Message:             NotaFiscalAbstractAsync
    - Sender2
      Mode:                 Close S/A bridge
      Message:             NotaFiscalAbstractSync
    +++ Configuration +++
    Business Service: SPASA_EDI
    Receiver Determination
    - SPASA_EDI | Y_SD_XI_EDI_NOTFIS
      Service: NotaFiscalIP - Receiver:  NotaFiscalAbstractAsync
    - NotaFiscalIP | NotaFiscalAbstractAsync
      Service: SPASA_EDI - Receiver:  NotaFiscalAbstractAsync
    Sender Agreement
    -SPASA_EDI | Y_SD_XI_EDI_NOTFIS
    +++ RFC +++
    Import
      Sender
    Tables
      DATA ( TEXT CHAR(300) )
    +++ XML Sender +++
    <?xml version="1.0" encoding="UTF-8" ?>
    - <rfc:Y_SD_XI_EDI_NOTFIS xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
      <SENDER></SENDER>
    - <DATA>
    - <item>
      <TEXT>000ALPARGATAS-MOGI 0 1101061442NOT110106785</TEXT>
      </item>
    - <item>
      <TEXT>310NOTFI110114420</TEXT>
      </item>
    - <item>
      <TEXT>31161079117010402456010307119 AV.JOAO PINTO,100 MOGI MIRIM 13803360 SP 11012006SÃO PAUL</TEXT>
      </item>
    - <item>
      <TEXT>312N G VESTUARIO LTDA ME 037901650001009020973096 AV. SAO PAULO,458 - LJ ** AVENIDA CENTERCENTRO MARINGA</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154546PR-INT 120C. 0025755011012006CONFECÇOES CAIXA 0000100000000000008576000009200455NN000000000000000000000000000</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154546PR-INT 120C. 0025755111012006CONFECÇOES CAIXA 0000100000000000012304000011200455NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>312ULYSSES FERREIRA BARBOSA E CIA LTDA 755136140001768220257143 R MIN OLIVEIRA SALAZAR, 4858 ** ** CENTRO UMUARAMA</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154547PR-INT 120C. 0025755211012006CONFECÇOES CAIXA 0000100000000000018192000014500300NN000000000000000000000000000</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154547PR-INT 120C. 0025755311012006CONFECÇOES CAIXA 0000100000000000024487000016500300NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>312MOURIZE ZANANDRA SCHIMDT DE S.FREIRE ELL055724850001019027647046 RUA HAROLDO HAMILTON, 478 - SALA 6 ** **CENTRO TOLEDO</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154548PR-INT 120C. 0025755411012006CONFECÇOES CAIXA 0000100000000000028314000019800242NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>312L GASPAR PROENCA E MG PROENCA LTDA 01109275000120251311376 AV. PARANA, 224 ** ** CENTRO IVAIPORA</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154549PR-INT 120C. 0025755511012006CONFECÇOES CAIXA 0000100000000000009780000009200437NN000000000000000000000000000</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154549PR-INT 120C. 0025755611012006CONFECÇOES CAIXA 0000100000000000016673000012000437NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>312LZK MATERIAIS ESPORTIVOS LTDA - ME 07639256000192255067003 RUA 23 DE JULHO, 291 - SALA 2 ** ** CENTRO POUSO RED</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154550SC-INT 120C. 0025755711012006CONFECÇOES CAIXA 0000100000000000013140000011800306NN000000000000000000000000000</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154550SC-INT 120C. 0025755811012006CONFECÇOES CAIXA 0000100000000000026964000018500306NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>312FUTEBOL MANIA COM LTDA 00845448000106253191831 RUA TENENTE SILVEIRA 141 ** ** CENTRO FLORIANOP</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154575SC-CAP 120C. 0025754811012006CONFECÇOES CAIXA 0000700000000000106188000180600312NN000000000000000000000000002</TEXT>
      </item>
    - <item>
      <TEXT>312ULISSES ALCANTARA 814284010001493010273110 R CARLOS CAVALCANTI 99 ** CENTRO UNIAO DA</TEXT>
      </item>
    - <item>
      <TEXT>313063023223154576PR-INT 120C. 0025754911012006CONFECÇOES CAIXA 0000300000000000030854000097800248NN000000000000000000000000001</TEXT>
      </item>
    - <item>
      <TEXT>318000000000295472000000000004013000000000003798000000000001900000000000014037000000000000000</TEXT>
      </item>
      </DATA>
      </rfc:Y_SD_XI_EDI_NOTFIS>
    +++ XML File/Response (didn't using "Content Conversion") +++
    <?xml version="1.0" encoding="UTF-8"?><rfc:Y_SD_XI_EDI_NOTFIS xmlns:rfc="urn:sap-com:document:sap:rfc:functions"><SENDER></SENDER><DATA><item><TEXT>000ALPARGATAS-MOGI                    0                                  1101061442NOT110106785</TEXT></item><item><TEXT>310NOTFI110114420</TEXT></item><item><TEXT>31161079117010402456010307119   AV.JOAO PINTO,100                       MOGI MIRIM                         13803360 SP       11012006SÃO PAUL</TEXT></item><item><TEXT>312N G VESTUARIO LTDA ME                   037901650001009020973096     AV. SAO PAULO,458 - LJ ** AVENIDA CENTERCENTRO              MARINGA</TEXT></item><item><TEXT>313063023223154546PR-INT 120C.  0025755011012006CONFECÇOES     CAIXA          0000100000000000008576000009200455NN000000000000000000000000000</TEXT></item><item><TEXT>313063023223154546PR-INT 120C.  0025755111012006CONFECÇOES     CAIXA          0000100000000000012304000011200455NN000000000000000000000000001</TEXT></item><item><TEXT>312ULYSSES FERREIRA BARBOSA E CIA LTDA     755136140001768220257143     R MIN OLIVEIRA SALAZAR, 4858 ** **      CENTRO              UMUARAMA</TEXT></item><item><TEXT>313063023223154547PR-INT 120C.  0025755211012006CONFECÇOES     CAIXA          0000100000000000018192000014500300NN000000000000000000000000000</TEXT></item><item><TEXT>313063023223154547PR-INT 120C.  0025755311012006CONFECÇOES     CAIXA          0000100000000000024487000016500300NN000000000000000000000000001</TEXT></item><item><TEXT>312MOURIZE ZANANDRA SCHIMDT DE S.FREIRE ELL055724850001019027647046     RUA HAROLDO HAMILTON, 478 - SALA 6 ** **CENTRO              TOLEDO</TEXT></item><item><TEXT>313063023223154548PR-INT 120C.  0025755411012006CONFECÇOES     CAIXA          0000100000000000028314000019800242NN000000000000000000000000001</TEXT></item><item><TEXT>312L GASPAR PROENCA E MG PROENCA LTDA      01109275000120251311376      AV. PARANA, 224 ** **                   CENTRO              IVAIPORA</TEXT></item><item><TEXT>313063023223154549PR-INT 120C.  0025755511012006CONFECÇOES     CAIXA          0000100000000000009780000009200437NN000000000000000000000000000</TEXT></item><item><TEXT>313063023223154549PR-INT 120C.  0025755611012006CONFECÇOES     CAIXA          0000100000000000016673000012000437NN000000000000000000000000001</TEXT></item><item><TEXT>312LZK MATERIAIS ESPORTIVOS LTDA - ME      07639256000192255067003      RUA 23 DE JULHO, 291 - SALA 2 ** **     CENTRO              POUSO RED</TEXT></item><item><TEXT>313063023223154550SC-INT 120C.  0025755711012006CONFECÇOES     CAIXA          0000100000000000013140000011800306NN000000000000000000000000000</TEXT></item><item><TEXT>313063023223154550SC-INT 120C.  0025755811012006CONFECÇOES     CAIXA          0000100000000000026964000018500306NN000000000000000000000000001</TEXT></item><item><TEXT>312FUTEBOL MANIA COM LTDA                  00845448000106253191831      RUA TENENTE SILVEIRA  141 ** **         CENTRO              FLORIANOP</TEXT></item><item><TEXT>313063023223154575SC-CAP 120C.  0025754811012006CONFECÇOES     CAIXA          0000700000000000106188000180600312NN000000000000000000000000002</TEXT></item><item><TEXT>312ULISSES ALCANTARA                       814284010001493010273110     R CARLOS CAVALCANTI 99 **               CENTRO              UNIAO DA</TEXT></item><item><TEXT>313063023223154576PR-INT 120C.  0025754911012006CONFECÇOES     CAIXA          0000300000000000030854000097800248NN000000000000000000000000001</TEXT></item><item><TEXT>318000000000295472000000000004013000000000003798000000000001900000000000014037000000000000000</TEXT></item></DATA></rfc:Y_SD_XI_EDI_NOTFIS>
    +++ Log Using Content Conversion
      Successful 19.01.2006 19:33:36 19.01.2006 19:33:36   EnviarNotaFiscal   SPASA_EDI urn:sap-com:document:sap:rfc:functions
    Y_SD_XI_EDI_NOTFIS
       Successful 19.01.2006 19:33:27 19.01.2006 19:33:27   EnviarNotaFiscal   SPASA_EDI urn:spasa_edi.notfis
    NotaFiscalAbstractAsync
       Successful 19.01.2006 19:33:18 19.01.2006 19:33:36   SPASA_EDI     urn:sap-com:document:sap:rfc:functions
    Y_SD_XI_EDI_NOTFIS
    +++ Log when I didn't Use "Content Conversion"
       Successful 19.01.2006 19:31:16 19.01.2006 19:31:16   EnviarNotaFiscal   SPASA_EDI urn:sap-com:document:sap:rfc:functions
    Y_SD_XI_EDI_NOTFIS
       <b>Waiting</b> 19.01.2006 19:31:08 19.01.2006 19:31:08   EnviarNotaFiscal   SPASA_EDI urn:spasa_edi.notfis
    NotaFiscalAbstractAsync
       Successful 19.01.2006 19:31:06 19.01.2006 19:31:16   SPASA_EDI     urn:sap-com:document:sap:rfc:functions
    Y_SD_XI_EDI_NOTFIS

  • RFC Sender Asynchronous -- File Problem

    Hi all,
    I want to sent an asynchronous RFC to a file but when I execute my scenario in R3 it always returns a dump. In the XI monitoring I get the response error from the file: "Unable to read the payload from the message object".
    I think its strange because I even don't want the file adapter to send a response but he does. I suspect that the problem is on R3 side because it sends a synchronous RFC call, but I don't have any idea how to send an Asynchronous RFC call to XI (via the RFC adapter).
    Steps I made:
    - Created on R3 a TCP/IP entry as registered server program
    - Created in XI an RFC adapter with registered server program name
    - rest of the configuration...
    I think my main problem is that R3 expects an answer back because it throws a synchronous call to XI, but I don't have any clue how to set up an asynchronouss RFC call in R3 to XI (so my ABAP program doesn't dump).
    TIA

    Hi Peter,
    first, if you didn't already have done that, load up a RFC function module to XI Repository, where you have only the XSD, no abap source code.
    In a ABAP program code:
    CALL FUNCTION 'MyFunction'
    DESTIONATION 'mySM59Destination'
    IN BACKGROUND TASK
    ...  "the normal call
    COMMIT WORK.  
    Regards,
    Udo

  • File to File and then Call ABAP Program and pass file name and location

    Hi
    I am new to PI and am working on the following requirement and some guidance would help:
    A file is picked up from a third party server using FTP and is put in an SAP server in a specific location. After I have put in the file successfully, I need to call an ABAP program and provide the name and location of the file for further processing by the ABAP program.
    Although I am familiar with File to File, how can I add in the ABAP call with the filename and location? I do not want to pass any other information to the ABAP program.
    Thanks for your help.
    Manoj

    I think I get what you're saying. This additional file would have the file and the path in it's content. I would then use this as a source (FCC?) for Mapping with the RFC. Right?
    Exactly and yes, FCC would be helpful
    Would you have a sample OS script to do the above?
    Actually it depends on the operating system on which your PI system is standing. For instance for Windows, you might try with the following as a start point (but I was not able to test it, so I can't guarantee it will do the job):
    cmd.exe /C "%f %F > C:\target_directory\%DATE%_%TIME%.txt"
    In case you needed more, try googling on "windows batch script" or similar.
    Hope this helps,
    Greg

  • Error in file-webservice- file (Error: java.lang.NullPointerException)

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have  used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    1 communication channel for sender file
    1 for receiver soap
    1 for receiver file
    Error: java.lang.NullPointerException
    What could be the reason for this error
    thanks a lot
    Ramya

    Hi Tanaya,
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Now, the error is internal server error.What can I do about this?
    thanks a lot
    Ramya

  • File to File using BPM & value mapping

    Hi,
       I have the following scenario to do. sample file structure is given below.
    source:
    HDR   13052008INDIA
    BDY   123456
    BDY   1234567
    EOF 
    Target:
    HDR 2IN  BDY 123456 EOF
    HDR 2IN  BDY 1234567 EOF
    for the above mentioned source and target mapping. we have to use BPM and value mapping.
    In the HDR row 13052008 is the date value this has to be passed to RFC function module and it will return 2, this value has to be mapped to target
    And INDIA has to be mapped to IN using the value mapping option. similarly we have many coutry code.
    could anyone let me know the step by step procedure to achieve this, I followed the blog https://weblogs.sdn.sap.com/pub/wlg/1926. [original link is broken] [original link is broken] [original link is broken] but it does not fit to my scenario.
    help is appreciated.
    Regards
    RDS

    Hey,
         This is a normal file to file scenario.
         You need to use RFC look up instead of value mapping.(as you need to extract 2 and IN from an RFC)
    There is no need for a BPM.
    refer to this blog(for RFC look up)
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    this will solve your problem.
    Output of RFC look up will be 2 and IN . So use the concat function.
    Other values map them directly from source to target.
    Also, set the occurence for the target structure as 0 to unbounded in the mapping.(this is to be done in order to have one file for each record of the source)
    You also need to configure file content conversion.(both at sender and reciever side) to convert the text file to XML on the sender side and then XML to text at the reciever side.
    refer to this link for FCC.
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    This is for sender file content conversion.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/frameset.htm
    This is for reciever FCC.
    http://help.sap.com/saphelp_nw04/helpdata/en/44/79973cc73af456e10000000a114084/frameset.htm
    reward points if useful.
    regards,
           Milan

  • File-webservice-file , error in BPM workflow

    Hi GURUs,
                          I am working on file-webservice-file scenario. I have followed the blog /people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit . In my BPM workflow I am getting error right at the receive step it self and not proceeding to next step. Error in workflow log saying, no proper message id for the outbound abstract interface. Main thing here is we dont have any value passing fields in our outbound request message type as well as in the request in the wsdl. In these two emssagess we have only on element hich is not of any type. Is this the reason for the error I am getting. 
    any help ill be appreciated,
    Regards,
    Reyaz

    Means, in the outbond request message type and the request message type in the WSDL .  in these messages we dont have a single field which can carry some value. We have an element which is not of any type like string , number etc..
    Regards,
    Reyaz
    Edited by: Reyaz  Hussain on Feb 27, 2009 3:37 PM

Maybe you are looking for

  • Flex - JW Player - Interaction Problem - No control Over Player

    Hey all, I am getting this particular error when I try to stop the player from a button click at PlayerNewMethod/button1_clickHandler()[C:\Users\gurpreet\Adobe Flash Builder 4\IPLFront_Withchanges\src\PlayerNewMethod.mxml:68] at PlayerNewMethod/___Pl

  • Send PDF  attachment through mail

    i have one PDF document on my desktop, i want to sent that PDF as attachment to mail through SAP. can anybody have idea how to get?

  • I need to download a older version of imovie

    H there can anyone help me i accidentally deleted my older version of imovie as was having problems with it my macbook doesnt support the newest version so i need to download an older version

  • Voice Messaging: Cannot enable v8.1 per "accepted ...

    Community:  I have (2-1/2) issues working in unision, and I need some divine intervention from the Microsoft Godz.  Issue 1) Skype "New desktop" windows 8.1 version. I can "enable" Voicemail, but have no ability to configure ring time, greeting, etc.

  • How to use JMS with tomcat and Axis

    Hello I'm new in ii, so i'm still a little bit lost. I have been implementing web services with tomcat and Axis. However, these services are synchronous and I would like that some services were asynchronous. I've been reading about the topic and I've