RFC-JDBC Scenario:Problem in RFC

Hi All,
I have a BTE for BOM...in which i have a remote-enabled FM which i have imported in XI.
When i call this FM in a loop in BTE....i dont get any data in XI.
It works fine with a single loop pass...but it doesn`t work for more than one.It is something like this
loop at ...
    Call Funtion 'BOM' IN BACKGROUND TASK DESTINATION ..
     EXPORTING
            I_STZUB    = I_STZUB
     TABLES
            T_CLRKB    = T_CLRKB
            T_CLSTB    = T_CLSTB.
endloop.
Can anybody please help on this !!!
Regards,
Ruchi

Hi,
    I suspect the below
1. Either logic in fetching the data might be a problem or huge volume of data can be ap roblem,so better check the program by disabling the RFC..(i.e generate the report with out passing the data to the RFC...and check whether it works fine or not...)
2. if you find the problem is with the huge vloume..then test the Report by fetching the data in chunks instead of entire dump...
if still the problem persists then better to go with the proxy implementation...as the proxies are meant for that...
HTH
Rajesh

Similar Messages

  • Czech letters in RFC- XI-JDBC scenario

    Hello experts,
    we want to transfer data to a database in a RFC->XI->JDBC scenario. Everything works fine, but when we transfer czech characters, we only see "?" in the database where a "Č" is expected. In the XI system the letters are displayed correctly (before and after mapping).
    How can we solve this problem? Is there any setting for this in the receiver CC?
    Best regards,
    David

    hi David,
    try using ![CDATA[]] in your mapping, i mean send value in to the target field as ![CDATA[ Č ]].
    Regards,
    Karna...

  • RFC-XI-JDBC Scenario: Help with RFC code

    HI,
    I am doing RFC-XI-JDBC Scenario, where I have to poll the contents of my Ztable in SAP to Oracle.
    The appraoach i am using here is :
    1. Created a FM with import parameters as the fields of my Ztable and without any  export parameter or source code.
    2. Created a report to call that FM in background. The code of my report is as follows :
    ************************REPORT***********************************************************
    Data:       it_zrfc_read_table type table of zrfc_read_table,
                wa_zrfc_read_table like line of it_zrfc_read_table.
    PARAMETERS: tab_name like DD02L-TABNAME.
    Data:       l_tabname type DD02L-TABNAME.
    At selection-screen.
    select single tabname from DD02L into l_tabname  where tabname = tab_name.
    if sy-subrc <> 0.
      message 'incorrect table name' type 'E'.
    endif.
    start-of-selection.
    select * from (tab_name) into corresponding fields of table it_zrfc_read_table.
    loop at it_zrfc_read_table into wa_zrfc_read_table.
    CALL FUNCTION 'ZRFC_READ_TABLE2XI'
    IN BACKGROUND TASK DESTINATION 'ORACLEGIS_RFC_SENDER'
      EXPORTING
        valve_id       = wa_zrfc_read_table-valve_id
        equnr          = wa_zrfc_read_table-equnr
        ernam          = wa_zrfc_read_table-ernam
        invnr          = wa_zrfc_read_table-invnr
        groes          = wa_zrfc_read_table-groes
        elief          = wa_zrfc_read_table-elief
        gwlen          = wa_zrfc_read_table-gwlen
        gwldt          = wa_zrfc_read_table-gwldt
        serge          = wa_zrfc_read_table-serge
        typbz          = wa_zrfc_read_table-typbz.
        endloop.
        commit work.
    NOw my problem is that although I am able to send a table with a single record, but when my records > 1, it is not able to poll.
    Please guide me what can be altered in the code or any other suggestion.
    Thanks,
    Puneet

    Hi,
    Instead of calling RFC many times I would:
    1) create RFM with only one import parameter
    TYPE your_table type
    2) call only once RFM in the report:
      CALL FUNCTION 'ZRFCNAME'
        IN BACKGROUND TASK
        DESTINATION 'RFCDEST'
        EXPORTING
          pt_table = i_table.
      COMMIT WORK AND WAIT.
    This will also improve the performance.
    Regards,
    Jakub

  • RFC to JDBC Scenario, Date Transformation error

    HI All,
    I am trying a RFC to JDBC scenario where I am taking date from SAP in SAP Format i.e. 'yyyy-MM-dd' & sending this to oracle DB Where the format is 'MM/dd/yyyy'.
    In Runtime Workbench I am getting Following error: 'java.sql.SQLException: ORA-01843: not a valid month'.
    Can anybody help me on this.
    Thanks & Regards,
    Ruchi Agrawal

    Hi Bhavesh,
         The Date Problem is Solved. It is Working fine with your UDF code. There were some small changes in your UDF.
    Here is the modified code:
    String b="";
    try
    java.text.SimpleDateFormat sdf= new java.text.SimpleDateFormat("yyyy-MM-dd");
    java.util.Date date = sdf.parse(a, new java.text.ParsePosition(0));
    java.text.SimpleDateFormat sdf1= new java.text.SimpleDateFormat("dd-MMM-yy");
    StringBuffer sb = new StringBuffer();
    sdf1.format(date, sb, new java.text.FieldPosition(0));
    b=sb.toString();
    catch(Exception e)
                                                  e.printStackTrace();
    return b;
    Thanks,
    Ruchi

  • ** RFC to JDBC scenario - SYSTEM_FAILURE exception comes - urgent help

    Hi Friends,
    I have completed RFC to JDBC scenario. When execute RFC in the system, it throws an exception SYSTEM_FAILURE. What could be the problem ..?  The message is not entered into SXMB_MONI. In the backend system itself, it throws error.
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi Jeg,
    Check out if u get any info/help in the thread below .. Henrique Pinto's reply and others to this thread.
    How to make Real Time connectivity between R3(RFC) Sender and XI
    File Adapter: SYSTEM_FAILURE_INTERNAL
    More details regarding this exception:
    http://help.sap.com/saphelp_nw04/helpdata/en/22/0425e0488911d189490000e829fbbd/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/a2/a002416225f023e10000000a155106/frameset.htm
    kanan

  • How to monitor RFC to JDBC scenario?

    How to monitor RFC to JDBC scenario
    Hello,
    I have update_insert scenario from RFC to Oracle database.
    In TOC SXMB_MONI I have black and white flag.
    In RWB I found for this scenario only successful status.
    But in the database I found only 2 records from the 15 that I sent.
    How can I monitor this problem?
    What are the steps to investigate this situation?
    Have a way to see the exact statement that I sent to the database?
    Regards
    Elad

    Hi Elad,
    If nothing can be seen in the Adapter monitor...go to the Database.
    Oracle has various developer\system tools that can allow you to get information.
    For example Oracle has the TOAD tool which allows you to get the SQL trace of the treatment the XI actually send.
    see if the SQL interpreted by the JDBC adapter was really what you meant.
    Good luck.
    Nimrod.G

  • Error"SYSTEM Failure" while testing the RFC in SE37  : RFC to JDBC Scenario

    Hi All,
    I am doing RFC to JDBC scenario. When I am testing the RFC in SE37 using the RFC destination created in SM59, I get an error "SYSTEM FAILURE".
    Please suggest.
    Thanks,
    Shyam
    Edited by: Shyam Sreepada on Dec 18, 2007 5:46 PM

    Hi,
    You must run RFC with RFC destination in background mode, I suggest to read following post in order to understand it better.
    Syntax would be:
    CALL FUNCTION func IN BACKGROUND TASK
                       [DESTINATION <your RFC destination>]
                       parameter list
    http://help.sap.com/saphelp_nw04/helpdata/en/8f/53b67ad30be445b0ccc968d69bc6ff/frameset.htm
    If you read it you will find that you can't test it directly from SE37, for this either you need to create dummy ABAP program or another RFC where you will call this RFC with background syntax.
    Regards,
    Gourav
    Reward points if it helps you
    Edited by: Gourav Khare on Dec 18, 2007 6:07 PM

  • ** RFC to JDBC scenario - Need not source code - Correct ?

    Hi Friends,
    I am doing RFC to JDBC scenario. It is a synchronous scenario. I think it is need not required to write any code in the source code tab of  RFC. Is it correct ...? (Only Import and Export parameters are enough.)
    Kindly reply, friends.
    Kind Regards,
    Jeg P.

    Hi,
    RFC needs only configuration and we  will call remote method in R/3. Actual logic present in R/3.
    Thanks,
    RamuV

  • RFC to JDBC Scenario ( Error in Date Transformation ) Urgent!!!

    HI All,
             I am trying a RFC to JDBC scenario where I am taking date from SAP in SAP Format i.e. 'yyyyMMdd' & sending this to oracle DB Where the format is 'MM/dd/yyyy'.
            In Runtime Workbench I am getting Following error: 'java.sql.SQLException: ORA-01843: not a valid month'.
            Also when I am testing that source message in message mapping source date is converting to some other date at receiver side.
            Can anybody help me on this.
    Thanks & Regards,
    Ankur

    Hi Suraj,
      I am using the datetrans function of graphical mapping for doing the transformation. I have specified the source format as 'yyyyMMdd' & the target format as 'MM/dd/yyyy'.
      I have checked the input & output XML structure, but still i am getting the same error of Not a valid Month.
      Value of date I am passing is '2006-05-17' & the output I get is '05/12/2005' in Message mapping test using the XML which we are getting from SAP in MONI.
    Regards,
    Ankur

  • RFC 2 JDBC scenario

    Hi,
    I am trying a RFC to JDBC scenario wherin i am insertin records into Oracle Database.
    I am testing the scenario from XI RWB.
    While testing i am getting error that tables doesnot exists.
    " JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'QSTAG_DO_BR' (structure 'Statement'): java.sql.SQLException: ORA-00942: table or view does not exist  ".
    But i checked it in the database and the tables do exists in the database.
    plzz help.
    Regards,
    Deepak Shah.

    Hi Deepak,
    chk that u have given the table correct and even for the jdbc connection
    chk this link it will be helpfull
    Calling stored procs in MaxDb using SAP Xi
    Regards
    Sampath

  • Reg RFC to JDBC scenario

    Hi Techies,
    This is inregard of RFC to JDBC Scenario.
    Iam having an old RFC to JDBC scenarion which is working fine.
    I want to call other BAPI programme using the same RFC connection.
    I have changed  BAPI and ABAP Programmes.
    But Still in my integration builder, Still the RFC is calling the old stucture.
    How flush the buffer and call the new structure using the same RFC.
    Regards,
    Kiran

    But Still in my integration builder, Still the RFC is calling the old stucture.
    what about the RFC structure that is imported in IR/ ESR....was it re-imported?

  • Jdbc to rfc to jdbc scenario is not working

    Hi...
    We have done the JDBC to RFC to JDBC scenario using BPM, it was working fine in the last month. now we started testing the same scenario, that is not working. In SXMB_MONI it is showing only sender data is successful, it is not showing any RFC Receiver data & Jdbc Receiver data. in the CCM also Jdbc Sender CC is showing successfull and it is showing the successful messages also, but in RFC Receiver CC
    & JDBC Receiver CC it is not showing any thing.
    please help on this...
    Regards,
    Pasi.

    Hi
    Check u r RFC response (put external break point)
    and check wether it has data
    rgds
    srini

  • Problem with SOAP to JDBC scenario. Please help!

    Hi Experts,
       I have configured a simple SOAP to JDBC scenario where the input data from webservice call is sent to JDBC for inserting into MSSQL database.
       The problem is that even though I have setup the QOS in SOAP channel as EO but still in SXMB_MONI I can see the message getting processed as Synchrous but getting interface mapping not found error. But the data is getting inserted in the database.
      Why is this not getting processed asynchrously? Please advice me if I am missing anything?
    Thanks
    Gopal

    Hello Gopal,
    Hope these lonks are useful to you:
    SOAP to JDBC : EXCEPTION_DURING_EXECUTE
    Re: need help on SOAP-JDBC-RFC Scenario
    SOAP to JDBC/RFC  - RFC/JDBC  to  SOAP XI Scenario
    Thanks,
    Satya Kumar

  • Problem in implementing RFCto JDBC scenario

    hi,
    Iam doing RFC to JDBC scenario...
    Here iam facing some variety output....
    When RFC is triggered from r/3 system the input stucture is as
    <rfc:Z_O_BWDEXTRACT_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
       <P_CHANGE>X</P_CHANGE>
       <EMP_DETAILS>
          <item>
             <BUKRS>2060</BUKRS>
             <PERNR>00142008</PERNR>
             <BEGDA>20080701</BEGDA>
    but when we check it in XI under moni the data is as :
    <rfc:Z_O_BWDEXTRACT_RFC xmlns:rfc="urn:sap-com:document:sap:rfc:functions">
       <P_CHANGE>X</P_CHANGE>
       <EMP_DETAILS>
          <item>
             <BUKRS>2060</BUKRS>
             <PERNR>00142008</PERNR>
             <BEGDA/>
    the short log for sender CC as taken from CC monitoring is as follows:
    Sender channel 'CC_RFC_out_SAPHR' for party '', service 'D45300' (internal name 'RfcServer[CC_RFC_out_SAPHR]')
    Server data: {jco.server.gwhost=cscisapndc101.nwk.amer.csc.com, jco.server.progid=D45_TO_D49, jco.server.gwserv=sapgw00, jco.server.unicode=1}
    Repository data: {jco.client.lang=EN, jco.client.snc_mode=0, jco.client.client=300, jco.client.passwd=******, jco.webas.ignore_jdsr_error=1, jco.client.user=D49CLNT300, jco.client.sysnr=00, jco.client.ashost=cscisapndc101.nwk.amer.csc.com}
    Current pool size: 1, maximum pool size : 10
    This is an P1 issues for me..kindly respond with useful answers ASAP.
    Thanks in Advance
    Regards
    Madhu

    Madhulatha,
      First of all refresh the SLD Cache. If it doesnt work for you then,
    1. Re import the RFC structure into your XI box.
    or,
    2. Copy your comm channel with same credentials (assuming they are correct) and activate. Remove the old Cc from Sender agreement and use the new one.
    Sometimes this method has helped us.
    Regards,
    Sugata Basu
    PS: reward points if helpful

  • Problem with Webservice - XI - JDBC scenario

    Hi Experts,
    When I have tried to test the Webservice -> XI -> JDBC scenario with the mention address, I am getting the below error.
    <b>Address :</b> http://<Host>:50100/XISOAPAdapter/MessageServlet?channel=:WEB_SERVICE:SOAP_CC&version=3.0&Sender.Service=WEB_SERVICE&Interface=http%3A%2F%2Fatl.com%2Ftar%5EMI_Outbound
    <b>Error:</b>
    <s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">
                             <context>XIAdapter</context>
                             <code>RecoverableException</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: Application:EXCEPTION_DURING_EXECUTE:
         at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
    JDBC Part works fine only problem with the SOAP sender side. Any suggestion please..
    Regards
    Sara
    Message was edited by:
            Sara D

    Hi,
    As per Bhavesh & Krishna's suggestion, I have changed the JDBC Data type. Now I could able to see the SXMB_MONI error too.
    Latest error:
    When I have tried to test the scenario using xmlApy, I am getting the below error.
    <b>RWB error:</b>
    2007-06-21 03:04:24 Success Receiver JDBC adapter: processing started; QoS required: BestEffort
    2007-06-21 03:04:24 Success JDBC adapter receiver channel DB_CC: processing started; party  , service DB_SERVICE
    2007-06-21 03:04:24 Error Unable to execute statement for table or stored procedure. 'Address' (Structure 'STATEMENT') due to java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
    <b>xmlSpy Error:</b>
                   <context>XIAdapter</context>
                             <code>RecoverableException</code>
                             <text><![CDATA[
    com.sap.aii.af.ra.ms.api.RecoverableException: com.sap.aii.af.ra.ms.api.DeliveryException: XIAdapterFramework:GENERAL:com.sap.aii.af.ra.ms.api.DeliveryException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'Address' (structure 'STATEMENT'): java.sql.SQLException: FATAL ERROR document format: structure 'STATEMENT', no key element found
         at com.sap.aii.af.mp.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:919)
         at com.sap.aii.af.mp.module.ModuleLocalLocalObjectImpl3.process(ModuleLocalLocalObjectImpl3.java:103)
         at com.sap.aii.af.mp.ejb.ModuleProcessorBean.process(ModuleProcessorBean.java:258)
    I have mapped the EmpId in the mapping as well as in the DB the EmpId is Primary Key. Could you please tell me,what I am missing here?
    Regards
    Sara
    Message was edited by:
            Sara D

Maybe you are looking for

  • Upgraded: New Mac, Setting up iPhoto Library From Multiple Old Backups

    Over the years (Jaguar to Snow Leopard), I've had multiple Macs in different locations (work, home) to which I've loaded photos from cameras into multiple iPhoto libraries. As these Macs have died (G4s, G5s), or I've been forced to upgrade, I've made

  • Sharing External USB & Firewire Hard Drives?

    I have a MacBook Pro and a Mac Mini. The Mac Mini has an external firewire and external USB drive attached. I can log into my Mac Mini from my Macbook Pro using file sharing. The problem is I can not connect to the exrternal drives. They are not show

  • App store/itunes wont load

    Just says loading.... forever. am connected to wifi. safari works, mail works, everything works except appstore and itunes. help.

  • Link that calls DB function in report

    I have a standard report. I would like to add 2 links to the end of each row with the action by the user. For example: Order No Name Action 123 John Doe Approve | Decline 456 Jane Dow Approve | Decline Where Approve and Decline are links that call DB

  • Ipod touch wont synch

    my ipod touch was complaining it was full although it shouldn't have been and so I tried to restore it but it wont restore? any ideas as I've heard there are server issues and I've tried all the on off suggestions