UDF to send Response to RFC

Hi Experts,
We have a scenario where we have to send a response back to RFC from UDF .
How can we do this without using RFC lookups ?
Regards,
Syed

Hi,
I think UDF don't have nature to send response back to RFC meanwhile RFC request and response are different mapping windows, better to go for RFC lookup, we can fulfill your requirement easily.

Similar Messages

  • Sending response back to RFC in UDF

    Hi All,
    I have a Sync scenario from RFC to SOAP. I want to check the line items in RFC request. If there are no line items , then i want to stop the scenario and use UDF to send the constant (Invalid line items based on validations) back to RFC responce by using RFC lookup.
    Is it possible to send response back to RFC in UDF?
    Please suggest me, i want to handle exceptions without BPM.
    Thanks and regards
    Uma

    hi,
    >>Is it possible to send response back to RFC in UDF?
    I don't think such an option exists in standard
    but maybe you can do the check in the RFC much faster instead os checking
    this in XI ?
    Regards,
    Michal Krawczyk

  • Not getting Response from RFC

    Hi,
        I am doing RFC to File. I could generate the FILE successfully. But I am not getting Response from RFC. I am getting empty payload. I am doing with out BPM. I did succesfully File-RFC-File. but here RFC is the sender. I have some doubts  in defining Interface mapping and Message Mapping. Is this a Syscronous scenario by default ?
    If I want to get the resonse of RFC to a file. How many Receivers and Senders do i need to create?
    Regards,
    Varun
    Edited by: Varun on Sep 9, 2008 1:00 PM

    hi,
    Map Rfc.response to the File; hence rfc sender adapter and file receiver adapter..one sender n 1 receiver.Remember:
      1. In the report that makes the call to XI , make sure that you use call RFC in a background task.
      2. Make sure you use Commit Work at the end of the report.
    Follow:
    Send RFC to SAP XI – Asynchronous
    Also pls visit
    Re: RFC to FILE
    for the same scenario.
    Thanks,
    Durga
    Edited by: NagaDurga Nannapaneni on Sep 9, 2008 10:55 AM

  • RFC Send (Sync) --- XI -- RFC Rec (Sync) scenario. Pls help

    Hello All,
    There is one scenario
    RFC Send (Sync) --- XI -- RFC Rec (Sync)
    Now I want to make it to async as I do not need response
    RFC Send (Async)  ---  XI -- RFC Rec (Async)
    1. I know about Abap Client and Server Proxy that can be
        async but the RFC's are very complex in nature. I am not
        and abaper also
        Can there be a way that Sender and Receiver RFC can be
        made Async. Or any other simple way.
    Regards

    Hi Swarup,
    I have done the same thing.
    I have removed the export parameters of both the RFCs
    In interface mapping I used the request message mapping. and kept the response mapping part blank.
    Now when I run this scenario it works fine but also
    in sxmb_moni I see two messages.
    One for my request mapping. -- ok .
    Second empty message for response mapping.
    I do not want this second message in my sxmb_moni.
    Pls advice
    Regards

  • JDBC Sender Response Message as an XML SQL

    Hi All,
    I have a scenario as follows :
    JDBC Sender <-> XI (synchronous) <-> ABAP Proxy.
    I'm hoping that I can use XML SQL form at the JDBC Sender Response message, so I can update some fields at the database using the response message's data. But actually it's not working. Please advise whether it's applicable or not ? If it's not, is there any other way to do that ?
    Thanks in advance,
    Andy S

    Andy,
    Adding to the discussion here, JDBC sender adapter does not support Synchronous Processing .It supports only Asynch procesing and so, you would need a BPM inorder to update the database again with the ABAP Proxy response.
    You would have a sender jdbc adapter polling over the db and getting the data, --> a receiev step in the BPM receives the data.
    Next a send Synch Step makes the call to the ABAP Proxy and get the response.
    You map this response to a JDBC receiver adapters data format on the basis of the action you need and then use a send step with a receierv JDBC adapter to update the DB.
    Regards,
    Bhavesh

  • XML Incoming Invoices - Send response to Vendor for Failed Messages in XI

    In our system, Vendor are posting XML Invoices to XI using HTTP adapter and then XI is sending invoices to R/3 using IDOC adapter. Is there anyway I can send response message to vendors for the error out invoice messages in XI?
    Please help  me if someone has any information about it.
    Thanks in advance!
    Mrudula Patel

    Mrudula
    There are two types of errors you have take care of. One is technical error and the other application error.
    To sending technical errors like mapping error, you can use fault messages in XI.
    For application errors, you can use ALEAUDIT functionality from the receiver R/3 system, which you can map in to an asynchronous XML message as agreed between you and your vendor.
    It is a good practise to always send acknowledgements (both failure and success) to your vendor so that at the end of the day, the number of invoices matches on both systems (yours and your vendor's).
    Thanks
    KK

  • Sending response back

    Hi
    I’m getting message from source system (MQ) for   which I need to validate the header details and mandatory field information in XI, if success then send to SAP system through proxy otherwise send the response back to MQ system with batch number or some mandatory fields missing information.
    Client not agrees to send this information through alert want to send response to MQ system only.
    Please suggest good design option for sending response back. Can we achive this through acknowledgement or how? Please provide suggestive document on the approach suggesting would be grateful
    Thanks,
    Srini

    Hi,
    See you can use two target messages , in mapping , handle the condition and route the message , in determination use interface mapping.
    see the below links also
    /people/william.li/blog/2006/04/18/dynamic-configuration-of-some-communication-channel-parameters-using-message-mapping
    https://media.sdn.sap.com/javadocs/NW04/SPS15/pi/com/sap/aii/mapping/api/DynamicConfiguration.html
    Regards
    Chilla

  • Why would I be receiving texts on iPad,but now cannot send response from the iPad?

    Wondering why I am receiving texts on iPad, but now cannot send response from it.

    Have you tried resetting your iPad? Press on the Home and Power buttons and hold both down until the Silver Apple appears. Once the Home screen displays, try messaging again.
    Cheers,
    GB

  • Don't send responses to Calendar invites on iPhone

    Quick question. I tried a search and didn't find anything.
    On my old phone (Treo 750) I had the ability to accept, decline or tentatively accept invitations - but the big thing I loved was that I didn't need to send a response to the original sender. I was given the option to edit response, send response, or decline to send response.
    Does anyone know if its possible to take action on a calendar invite, but not to send the response to the meeting owner?

    1) I don't see a way to not send a reply when accepting/declining a calendar invite on the iPhone. Definitely an omission.
    2) I also get calendar invites for entries I set up myself, as if I need to respond to them. Doesn't make sense, can't figure it out.
    UPDATE - when I reply to someone else's invite on my PC, it pushes another invite to my calendar inbox. Why do I need to reply on the iPhone when I already have on my PC???

  • HELP plz..How to send response from server to client

    Hi..plz help me out of this problem..i am sending request from client side to servlet..lets say i am sendin "Bechkam"..now my servlet fetches this request.n finds out that BECHKAM is a football player..now i dont want to print this on the client side..i simply want to sent this response back to the client..after client receives this response the client should print bechkam is a football player..i have done coding of sending request from client(javascript code)to server but dont kno how to send response to client..do i have to use cookies or sessions..
    Any help will be greatly appreciated
    THANX

    I'm not sure how well versed you're with HTTP and servlets.
    What you term as 'printing on the client side' is in fact the response you're looking for. The response you send from a servlet is 'printed' into the response stream. The client receives this data and interprets is according to some headers. Usually, this data is HTML/ plain text which is interpreted by the browser and rendered as required. It could very well be displayed as is.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • Send attachment to rfc

    Hi,
    I have a requirement to receive an invoice attachment via an HTTPS MML adapater. The attachment will come in as Base64 encoded Binary format. The requirement is to send the attachment in a table format, split into 1024 characters, then send the table to an RFC function module to R/3 4.7e version.
    I'm trying to do XSLT mapping for this. But is looking for other alternatives.
    THanks,
    Lalyn

    First you need to use payload swap bean. It will send the attachment data to your interface mapping. Once that is achieved you can use any mapping java/XSLT  to change your data and send it to RFC. 
    /people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step
    Regards
    Inder

  • Cant send msg to RFC Response

    Hi,
    I have RFC XI BPM Jdbc scenario, in which, I am raising an exception when database connection fails, and sending a message back to the RFC like "failed". But I am not getting any mapping error in the repository, but couldnot map at runtime....when I see in the Technical Workflow, I see "Mapping NOt found".
    Could you please help on this issue.
    Thanks,
    Raj.

    hi Raj,
    >>>>and sending a message back to the RFC like "failed".
    you need to map jdbc request to RFC.response
    in the <b>exception branch</b> to do the mapping correctly
    (this is the only way)
    remember to refresh the cache (SXI_CACHE)
    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>

  • File2RFC Scenario in XI-want to send and the response of rfc by mail/fil

    I have an File to RFC scenario in PI.The initial requirement was to just pick the file and update the data in sap.its file to rfc sceanrio in XI...
    *Now i need to send the response of the rfc function module via file or could be via mail*
    Please tell me the best way to approach..howdo i handel this scenario.
    Thanks.
    Rohan Patil.

    Hello Rohan,
    In your case you can follow two approaches.
    1. If need to send RFC Response through Mail Use BPM
    2. IF need to send via File
           2.1 you can implement with the  BPM
           2.2 you can implement the same without BPM also(but needed SP10 of PI7.0 for this implementation by using standard modules check wiki for the same )
    Regards
    Rajesh

  • Help with RFC sender, Program And RFC Destination

    Hi!!
    my scenary is asynchronous
         RFC Sender -> SAP-XI -> Oracle reciever
    I have a problem with abap, especially rfc, program and rfc destination. The connection with SAP-XI exist and SAP-XI  receive the message but the message is empty.
    1. In my program on the line
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error system_failure = 2 and it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC
    2. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' STARTING NEW TASK 'NEW' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              catch an error communication_failure = 1 but the rfc ZBAPI_SD_PED_ORD_SERVIC is executed but no send to SAP-XI
    3. I rewrite my program, that line to
              CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' IN BACKGROUND TASK DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
              No error but it dont execute the rfc ZBAPI_SD_PED_ORD_SERVIC and the message in SAP-XI is empty, display the tables but not the row. i check the table PED_ORDEN and RETURN but the controls fields dont are afected.
    What is my Error?
    Where am i making a mistake?
    RFC
    FUNCTION zbapi_sd_ped_ord_servic.
    *"Interfase local
    *"  TABLES
    *"      PED_ORDEN STRUCTURE  ZSD_RFC_T04
    *"      RETURN STRUCTURE  ZSD_RFC_R06
      TABLES: zsd_ped_orden, zsd_rfc_r01.
      DATA: tb_ped_orden LIKE zsd_ped_orden  OCCURS 0 WITH HEADER LINE,
                     tb_rfc_orden_error LIKE zsd_rfc_r01 OCCURS 0 WITH HEADER LINE.
    *Get Pedido by Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_ped_orden
              FROM zsd_ped_orden
              WHERE estatus  EQ  space.
      LOOP AT tb_ped_orden.
        MOVE-CORRESPONDING tb_ped_orden TO ped_orden.
        APPEND ped_orden.
        tb_ped_orden-estatus = 'X'.
        tb_ped_orden-fecha_actualiz = sy-datum.
        tb_ped_orden-hora_actualiz = sy-uzeit.
        MODIFY tb_ped_orden.
      ENDLOOP. 
      MODIFY  zsd_ped_orden FROM TABLE tb_ped_orden.
      COMMIT WORK.
    *Errors in Ordenes
      SELECT  *  INTO CORRESPONDING FIELDS OF TABLE tb_rfc_orden_error
              FROM zsd_rfc_r01
              WHERE estatus  EQ  space.
      LOOP AT tb_rfc_orden_error.
        MOVE-CORRESPONDING tb_rfc_orden_error TO return.
        APPEND  return.
        tb_rfc_orden_error-estatus = 'X'.
        tb_rfc_orden_error-fecha_actualiz = sy-datum.
        tb_rfc_orden_error-hora_actualiz = sy-uzeit.
        MODIFY tb_rfc_orden_error.
      ENDLOOP.
      MODIFY  zsd_rfc_r01 FROM TABLE tb_rfc_orden_error.
      COMMIT WORK.
    ENDFUNCTION.
    PROGRAM
    REPORT  ZBAPI_SD_PED_ORD_SERVIC.
    DATA: ped_orden LIKE ZSD_RFC_T04 OCCURS 0 WITH HEADER LINE,
          return LIKE ZSD_RFC_R06 OCCURS 0 WITH HEADER LINE.
    CALL FUNCTION 'ZBAPI_SD_PED_ORD_SERVIC' DESTINATION 'ZXI_ENVIAR_PED_ORD_SERVIC'
         TABLES
              ped_orden             = ped_orden
              return                = return
      EXCEPTIONS
        communication_failure = 1
        system_failure        = 2
        OTHERS                = 3.
    IF sy-subrc <> 0.
      MESSAGE 'error' type 'I'.
    ENDIF.
    COMMIT WORK.
    RFC DESTINATION
    RFC Destination: ZXI_ENVIAR_PED_ORD_SERVIC
    Connection TYpe: TCP/IP Connection
    Register Server Program: ZBAPI_SD_PED_ORD_SERVIC
    Gateway host: host00
    Gateway service: sapgw00

    hi
    For rfc sender adapter we hv to do some settings .Please chk whether this settings are well configured or not.
    a) RFC destination
    b) RFC channel in the XI directory
    This weblog is a response to a few question about the basic configuration of the RFC sender adapter
    that were posted on the XI forum (and also on my e-mail)
    So here we go, basically we have to configure 2 things:
    a) RFC destination
    b) RFC channel in the XI directory
    RFC destination:
    1. To create the RFC go to TCODE: SM59
    2. Create new destination of type T (TCP/IP)
    3. Make sure you select Registered Server Program option before writing your program ID
    4. Write you program ID (remember it's case-sensitive)
    5. In the gateway host and gateway service write the values of your "Application system" - business system (not the XI server)
    7. No configuration in the J2EE administrator nessecary
    Now we can proceed to RFC channel configuration:
    1. Enter your Application Server
    2. Your Application Server Service
    3. Enter your Program ID from the RFC destination
    And we're done:)
    Now you can test the RFC destination in SM59 to see if it works.
    Please chk this following link.
    1. RFC Processing with the RFC Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/25/76cd3bae738826e10000000a11402f/content.htm
    2. Configuring the Sender RFC Adapter -
    http://help.sap.com/saphelp_nw04/helpdata/en/67/6d0540ba5ee569e10000000a155106/content.htm
    3.  /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    regards
    Manas

  • Mapping SOAP response to RFC out parameters

    Hello
    I have RFC to SOAP (sync) scenario.
    The SOAP reponse from webservice is an embedded XML string (Result XML wrapped within Response XML; The result string from web service is an XML itself)
    How to achieve Message Mapping so that the fields in the result XML can be captured directly in to RFC output paramters?
    I have mapped Result XML string to RFC output thru User Defined Function. I have filtered xml tags in UDF but I do not wish to hard code the tags' filtering.
    Is there a better solution?
    Kindly advise.
    cheers
    Alkesh

    Hey Chris
    Here are the structure samples (source & target)
    The intention is to map <Elem1> & <Elem2> of each <Line> to RFC structure fields, 'Item1' & 'Item2'.
    The <Line> items can be multiple and for each Line one RFC strcuture 'Record' has to be created.
    *********source begin**
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
      <soap:Body>
        <WSDLResponse xmlns="namespace123">
          <WSDLResult>xml_string</WSDLResult>
        </WSDLResponse>
      </soap:Body>
    </soap:Envelope>
    ...where the xml_string is as below (whole XML)-
    <?xml version =''1.0'' encoding=''utf-8'' ?>
       <Addr>
         <Result>
             <ErrorCode>0</ErrorCode>
             <ErrorDesc></ErrorDesc>
         </Result>
         <Return>
             <Line>
                 <Elem1>value1</Elem1>
                 <Elem2>value2</Elem2>
             </Line>
             <Line>
                  <Elem1>value3</Elem1>
                  <Elem2>value4</Elem2>
             </Line>
          </Return>
        </Addr>
    source end***
    The target structure is -
    target begin***
    - RFC strcture
        - Record
             - Item1
             - Item2
    source end***
    Apologies for the lengthy text but it is quite confusing
    What is the best way to achieve mapping?
    thx
    Alkesh

Maybe you are looking for

  • Excise Invoice not captured in MIGO

    Hi.. I am using TAXINN procedure in which I am using JMOP condition type for BED. In ME21N I am able to see the condition type and values for BED. and I maintained that I can capture the excise invoice at MIGO level. But while creating MIGO The value

  • Problem in downlaod the certificate from portal

    Hi, I am new to iphone Please help me it's very urgent. I have create a new developer certificate and download it it works fine after that i have applied for distribution. when I have download this certificate but this certificate is invalid. I have

  • Kernel26-icc compiled with Intel's compiler instead of gcc

    I'm working on kernel26-icc, it's the kernel26 but compiled with Intel's compiler. Can't seem to upload it to AUR ("Invalid name: only lowercase letters are allowed.") http://www.linuxdna.com/ So far I've this: PKGBUILD # Maintainer: Mathias Burén <m

  • Nokia 6230i security code

    i have a nokia 6230i. 1 month old bought on 02 pay as you go. but have been using my contract 02 sim in it. now i have decided to use the pay as you go sim because bills are to high. put the pay and go sim in the phone and its coming up security code

  • Error: unable to find the directory

    Hi experts!!                   While configuring the scenario ( File to MSACCESS) , I am getting an error msg <b>Processing Error:  Directory /lenovo-1a1a67e1/sender does not exist!</b> sender folder is in my Laptop and I configured the scenario in m