** 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

Similar Messages

  • 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

  • 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 ( 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

  • 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 - 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

  • 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

  • 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...

  • SNOTE (Note Assistant) list expected "source code corrections" of a note?

    Is it possible, in current versions of SNOTE, to print the "source code corrections" that the note is supposed to contain?
    This was possible in "good old OSS" and also, I think, in early versions of SNOTE.
    Why do I ask?
    Sometimes you have a note that SNOTE cannot handle by itself. You must then open the "splitscreen editor" and guide SNOTE through the process.
    In such cases I like to have a listing, on paper, of the expected changes, so that I keep some overview and that I can check the corrections as I go through them.

    I have found a second possibility - the following little program based on some code found in the 4.6C implementation of SNOTE.
    report  zztmp_snote_displ line-size 080.
    type-pools bcwbn.
    parameter p_note like cwbnthead-numm.
    data gs_note type bcwbn_note.
    start-of-selection.
      clear gs_note.
      select numm versno
        from  cwbnthead
        into (gs_note-key-numm,gs_note-key-versno)
             where  numm        = p_note
             and    incomplete  = space
             order by primary key.
      endselect.
      if not ( gs_note-key is initial ) .
        call function 'SCWB_NOTE_READ'
          exporting
            iv_read_attributes                = 'X'
            iv_read_short_text                = 'X'
            iv_read_all_texts                 = 'X'
            iv_read_validity                  = 'X'
            iv_read_corr_instructions         = 'X'
            iv_read_customer_logfile          = 'X'
            iv_use_fallback_languages         = 'X'
            iv_read_loghndl                   = 'X'
            iv_read_fixes                     = 'X'
            iv_read_customer_attributes       = 'X'
    *   IV_READ_READ_BY_USER              = ' '
    *   IV_READ_SOL_MGR_REFERENCE         = ' '
    *   IV_READ_SAP_STATUS                = ' '
          changing
            cs_note                           = gs_note
          exceptions
            note_not_found                    = 1
            language_not_found                = 2
            unreadable_text_format            = 3
            corr_instruction_not_found        = 4
            others                            = 5
        if sy-subrc eq 0.
          call function 'SCWB_NOTE_DISPLAY'
            changing
              cs_note = gs_note.
        endif.
      endif.

  • 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

  • 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?

  • Dbx cannot locate the (DLM) source codes correctly for 64bit app

    It's hard for me to prepare a test case. Because it seems for a simple "hello world" it works.
    The reason I raise this issue here is because my project was recently upgraded to compile with 64bit. And since then dbx cannot locate the source codes correctly, especially for some DLM codes. (sometimes it shows to "/usr/include/iso/..." which it should never be!). While it works fine on a 32bit compiled mode.
    Did anyone experience the similar situation and can share your idea?
    Thanks in advance.

    Can't think of any good reason why going to 64 bit would confuse dbx (except for unknown bug in dbx, which is not impossible).
    I'd first look for changes in your build - for example, 32-bit code used to go to bin/ directory, but 64-bit goes to bin/sparcv9, which happens to be a symlink somewhere else or something like that. Symlinks might sometimes confuse dbx, please read
    (dbx) help finding-filestopic (in dbx console, type "help finding-files").
    Since you are using CC 5.9 that generates DWARF info by default, location and even presence of .o files is not important. All debug info should be in the shared library itself.
    Here's another idea: inspect DWARF info by hand and see if it looks correct to you.
    $ dwarfdump a.out | lessLook for
                    DW_AT_name                  a.ccand
                    DW_AT_comp_dir              /home/maxim/tempThose two should give location of source file (/home/maxim/temp/a.cc in my case). Maybe this will give you some clue.

  • Selection-screen problem:need to go back to selectionscreen not source code

    Hello experts,
    Please help me on my dillema. I have 2 reports, zreport1 and zreport2. Now, zreport1 submits
    values via selection-screen to zreport2. Now here is the problem, when I press 'BACK' on the
    selection-screen of zreport2(rememeber we used submit statement via selection-screen on zreport1)
    instead of going back to the selection-screen of zreport1 it goes to the source code of zreport1 which
    is wrong. And there are 2 selection-screens on zreport1 depending on the user if he is controller or not.
    So what I need to do here is that whenever I press 'BACK' either I'm adding or modifying or displaying records
    it should go back to whatever screen I called in zreport1.
    Here's a diagram.
    ZREPORT1**
      if v_controller = 'X'
        display selection-screen 1500
      else
        display selection-screen 500
      endif.
      if user wants to add records, submit values from zreport1 to zreport2
      and return via selection-screen.
      *same goes for edit option.
      if user wants to display, get all records then display in ALV.     
    ZREPORT2**
      So lets assume user decides not to add records and decides to go back. so he presses
      the BACK button in selection-screen of zreport2. Now here's the nasty part, instead of going back to either
      selection-screen 500 or 1500 in zreport1, it goes to the source code of zreport1!. I hope I explained it clearly.
      Again, thanks a lot guys for your help!

    Hi,
    Try this
    START-OF-SELECTION.
    *----------Sumbit Report-------*
    Sumit Report......AND RETURN
    *----------Check Condition & back to select screen-------*
      IF condition.
        MESSAGE s207(zusm_gen) DISPLAY LIKE lc_e .
        EXIT.
      ENDIF.
    Set something in the memmory.
    this can be used to check the completion of the report.
    if the 2nd report executed porperly then u further execute the code.
    If u dont have any thing to execute after sumbit report
    then u can do is.
    START-OF-SELECTION.
    *----------Sumbit Report-------*
    Sumit Report......AND RETURN
        MESSAGE s207(zusm_gen) DISPLAY LIKE 'S' .
        EXIT.
    Message was edited by: Manoj Gupta

  • Reg RFC to JDBC "Parsing an empty source. Root element expected!"

    Hi techies,
    This in regard of RFC to JDBC.
    in integration test iam getting the error.
    "com.sap.aii.utilxi.misc.api.BaseRuntimeException thrown during application mapping com/sap/xi/tf/_mm_mapping_: Parsing an empty source. Root element expected!"
    My Mapping and interface mapping tests are working fine, while testing the configuration Iam getting this error.
    My interface Mapping test result is as mentioned below
    Sender Interface (RFC Sender)
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:ZTEST_PI_ZHRT002 xmlns:ns0="urn:sap-com:document:sap:rfc:functions">
       <ZHRT002>
          <item>
             <MANDT/>
             <PERNR>1234</PERNR>
             <PERID>kiran</PERID>
             <SHOPN>test</SHOPN>
          </item>
       </ZHRT002>
    </ns0:ZTEST_PI_ZHRT002>
    Reciver Interface after test
    <?xml version="1.0" encoding="UTF-8"?>
    <ns1:mt_receiver xmlns:ns1="urn:sap-com:RFC2JDBC"><Statement><dbTableName action="INSERT"><table>ZHRT002</table><access><PERNR>1234</PERNR><PERID>kiran</PERID><SHOPN>test</SHOPN><access></dbTableName></Statement></ns1:mt_receiver>
    My message Mapping is as mentioned below
    ZTEST_PI_ZHRT002 is my BAPI which is mapped to mt_receiver.
    ZHRT002 it my table which is mapped to Statement of reciver
    item of sender is floating ( not mapped to any reciver node)
    subsequently feilds are mapped.
    Reciver action is atribute (required) calling INSERT
    table is "ZHRT002" (constant) (1...1)
    This is my scenario.
    Thanks in advance,
    Regards,
    Kiran

    This is RFC to JDBC. Is it Synchronous or Asynchronous?
    Some tips:
    Create JDBC target data structure something similar to this
    <StatementName>
    <dbTableName action=u201DINSERTu201D>
    <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2</col2>
    </access>
    </dbTableName> 
      </StatementName>
    Map  Table name and action using Constant.
    >>item of sender is floating ( not mapped to any reciver node)
    What is that? you have to map source item node fields to target access fields.
    Please go through the below sap link . This might be very helpful.
    http://help.sap.com/saphelp_nw70/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm

Maybe you are looking for