One requirement jdbc to rfc

here is the requirement:
query from SO head and item tables to call SAP standard RFC, create SO. about 100 000 SO, 1000 000 items one day. And SO should be created by 9 am everyday.
a field in table SO head is its items number, if items count in the table  <> SO item number, then the SO will not be created.
There is also a flag field to indicate  whether the SO is created.
I'm considering two way:
1, develop a db procedure to get SO and item which item number is OK.
2, use BPM, send sychronized SQL step  by step.
We are concerning about performance very much.
so do you have any ideas?
Thanks in advance.

Hi,
Stored procedure if possible to implement is better approach definitely. You can refer this for sender stored procedure scenario:
http://help.sap.com/saphelp_nw2004s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
However, if your db is oracle then unfortunately you cant use sender stored procedure because it returns a cursor while xi expects a resultset. Which db you are using?
Regards
Arpil

Similar Messages

  • RFC to JDBC to RFC sync

    Hi all,
    Anyone have any link for RFC to JDBC to RFC sync scenario step by step?
    (For reverse one means JDBC to RFC to JDBC used RRBEANS configuration in sender jdbc channel and created one receiver JDBC channel.)
    What should I do for the same?
    Any suggestion?
    Thanks,
    Arthita 

    Hi Inaki Vila,
    2. Where I need to configure the RRBEANS ? In which channel?
    In the RFC sender channel, the first channel to be used. You can check it in the wiki that i mentioned above.
    Could you please provide the wiki link for the same?it ll be very helpful.
    3. Is it applicable for reverse scenario?
        Suppose JDBC is sender and I'm using one RFC. For that also no need to use any bridge (RequestResponseBean) ?
    If you want to take the data from DB source and to pass to an ECC system via RFC you wont need any bridge, you can do a normal async scenario JDBC - RFC.
    I'm asking for JDBC - RFC sync scenario where I'm using one RFC.
    Thanks,
    Arthita

  • JDBC to RFC synchronous scenario (Urgent).

    Dear forum,
    My requirement is data is populated in oracle data base.we are fecthing the data from database through XI and sending it to R/3. RFC is sending the response (suceess/failure) to XI. And XI is updating the status message into database.
    For this,I have done the JDBC - RFC - JDBC syncronous scenario using BPM. .I got the successfull message under message monitering.Problem is I cannot able to find the data for RFC and JDBC reciever.
    Please find the following Configuration steps for the above scenario
    3 data types
    JDBC request, JDBC response one dummy structure to capture RFC response messages.
    3 message types for the above data types
    5 message interfaces.
    OB request,
    OB ABS request,
    IB Asyn for dummy,
    Syn ABS (JDBC req and dummy structure),
    IB JDBC response.
    4 message mappings.
    Mapping between JDBC request to JDBC request dummy.
    Mapping between JDBC request dummy to RFC request.
    Mapping between RFC response to JDBC response dummy.
    Mapping between JDBC response dummy to JDBC response.
    3 Interface Mappings.
    JDBC request to JDBC request dummy.
    JDBC request dummy to RFC request and RFC response to JDBC dummy response(Synchronous request and responce) .
    JDBC dummy response to JDBC response.
    Integration Process.
    Used following steps.
    Recieve step asynchronous -> Send synchronous -> Send asynchronous
    I can able to see the payload for sender under communication channel.But the data is not reached to RFC.can any one help me to come out of this problem.
    Points will be awarded for helpfull answers.
    Thanks & Regards,
    Naresh.K

    Hi Seshagiri,
    We are trying the same scenario with out using BPM.
    Following steps has been done in design(IR).
    2 data types for JDBC request & JDBC response.
    2 message types for the above data types.
    1 outbound synchronous message Interface.
    2 message mappings (JDBC request -> RFC request) and (RFC response -> JDBC  response)
    1 Interface Mapping.
    Could you please let me know how to maintain the collaborative profiles & and agreement details in Configuration(ID).
    Your valuable assistence is required to complete the interface.
    Thanks in advance.
    Kind Regards,
    Naresh.K

  • Step by step cofig for jdbc-- xi-- rfc adapter.

    hi,
    all
    can any one post any doc.. for the scenario
       jdbc--> xi -->rfc
    thanx
    all sdn's

    Hi ! Dantuluri
    U couldnt find the direct weblog
    JDBC receiver
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    JDBC sender
    /people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
    IDoc sender
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    Refer the below links also for this scenario
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements
    For any issues check this blog:
    /people/michal.krawczyk2/blog/2006/10/11/xi-new-book-mastering-idoc-business-scenarios-with-sap-xi
    also refer these .....
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    /people/michal.krawczyk2/blog/2005/09/16/xi-how-to-test-your-mapping-in-real-life-scenarios
    /people/prateek.shah/blog/2005/06/08/introduction-to-idoc-xi-file-scenario-and-complete-walk-through-for-starters
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    idoc settings /people/ravikumar.allampallam/blog/2005/02/23/configuration-steps-required-for-posting-idocsxi
    idoc mapping - /people/james.guanzon/blog/2006/03/23/how-to-support-industry-standards-in-xi-part-ii-of-iii--mapping
    Try this also .....
    /people/laxman.molugu/blog/2006/08/13/integration-with-databases-made-easy-150-part-1
    Re: Idoc triggering from a transaction
    Message Mapping - JDBC to IDoc
    Re: JDBC - System/Application Acknowledgement
    /people/michal.krawczyk2/blog/2005/09/01/xi-idoc-adapter--edidc40--demystified
    Process Integration (PI) & SOA Middleware
    Pls reward if useful

  • Help on RFC to JDBC and JDBC to RFC

    Help on RFC to JDBC and JDBC to RFC
    Hi Gurus
    I have the scenario where an RFC will be triggered in SAP , to write to a DB2 database and insert new records in a table
    and vice versa the JDBC has to read som data from a table based on a primary key, mark them as read for not be read next time and send the data to an RFC where a table in SAP will be updated.
    I have never worked with JDBC before , pls advice.
    is there any new issue to consider in PI 7.0 regarding JDBC
    Thanks.

    The requirement looks standard,
    SEARCH IN SDN FOR JDBC scenarios,you will find many docs for sender as well as Receiver.
    >
    > is there any new issue to consider in PI 7.0 regarding JDBC
    >
    no issue with PI7.0.
    Regards,
    Raj

  • JDBC TO RFC SCENARIO

    Hi,
    I am tryiing JDBC TO RFC SCEANRIO.
    XI is picking data from MS SEQUEL SERVER but
    the same data is not getting mapped into RFC
      I am not getting any error as such.
    Following are the details.
    made a datatype
    resultset
         row
         EmployeeID
         LastName
         FirstName
    message mappping
                                    RFCFORJDBC
         resultset                      outab
                row                        item
                  EmployeeID----
    Empno
                  FirstName
                               concatenate--- Empname
                  Lastname
        But for some odd reason
        the OUTTAB FOR RFC
         is coming like this in message
          <?xml version="1.0" encoding="UTF-8" ?>
    - <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
      <OUTAB />
      </p3:ZZTESTXIJDBC>
    while payload is getting picked correctly
    <?xml version="1.0" encoding="utf-8" ?>
    - <resultset>
    - <row>
      <EmployeeID>9</EmployeeID>
      <FirstName>Anne</FirstName>
      <LastName>Dodsworth</LastName>
      </row>
      </resultset>
    Kindl help with the same

    Hi,
    t' was namespace.
    It solved issue.
    Besides
    the sql statement
    select EmployeeID , FirstName ,LastName from Employees where EmployeeID > 7
    and the output is
    <?xml version="1.0" encoding="UTF-8" ?>
    - <p3:ZZTESTXIJDBC xmlns:p3="urn:sap-com:document:sap:rfc:functions">
    - <OUTAB>
    - <item>
      <EMPNO>8</EMPNO>
      <EMPNAME>Laura Callahan</EMPNAME>
      </item>
    - <item>
      <EMPNO>9</EMPNO>
      <EMPNAME>Anne Dodsworth</EMPNAME>
      </item>
      </OUTAB>
      </p3:ZZTESTXIJDBC>
    but I see only one record is getting updated
    <EMPNO>9</EMPNO>
      <EMPNAME>Anne Dodsworth</EMPNAME>
    what could be the reason for that

  • Question regarding JDBC - XI -RFC

    Hi all,
    I have a scenario which XI will get data from database (using jdbc adpater) then send data to execute in RFC. This is an asynchronous call. My question is that.
    1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
    2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
    Any suggestion from expert?
    Thanks,
    Pavin

    Hi
    1. If XI can get many records from database in 1 select, will it send many records to RFC at once? Is there any way i could tell XI to split input data into many message (1 message for each record) without using BPM? or Is it possible or better to set import parameter of RFC into table to get many record from XI at once?
    Yes you can do multi mapping 1:N without BPM
    Message Splitting Using the Graphical Mapping Tool
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
    2. If i manage to make 1 message for each record, Could i use queue for sending data to RFC? I want the first record to be completed before sending second record. Since this is an asynchronous call, I'm not sure that XI could be able to know when to send the second record or Do I have to make it synchronous call to get return response from RFC after RFC finish execution and use BPM to get return response before sending next data to RFC.
    You can queue to process one by one. Response can be obtained with or without BPM
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/file-rfc-file(Without%2bBPM)
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/jdbcTOJDBC
    JDBC to RFC Mapping Problem.
    Thanks
    Gaurav

  • JDBC- XI- RFC(V.V.Urgent)

    Hi ,
    JDBC->XI->RFC
    I am Integrating Oracle database with SAP(RFC).
    How should adapter knows some thing updated in Oracle.
    How Should the Triggers in Oracle.How we have to write Query in XI..
    Points Will be awarded for the Solution..
    Regards,
    Jayasimha

    Hi
    Refer the below links ...
    check the below blogs
    /people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
    /people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    See the below links also ..
    /people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response - XI: How-to on JDBC receiver response
    JDBC Response /people/swaroopa.vishwanath/blog/2006/12/28/send-rfc-to-sap-xi-150-asynchronous
    Receiver JDBC scenario - /people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
    /people/ajay.kumar/blog/2005/03/24/writing-bsp-for-sap-r3-version-46
    /people/sravya.talanki2/blog/2006/12/27/aspirant-to-learn-sap-xiyou-won-the-jackpot-if-you-read-this-part-iii
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    /people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
    /people/swaroopa.vishwanath/blog/2007/01/22/ale-configuration-for-pushing-idocs-from-sap-to-xi
    /people/udo.martens/blog/2005/09/30/one-logical-system-name-for-serveral-bpm-acknowledgements
    /people/community.user/blog/2006/09/21/xi-rfcadapter-reconnect-issue
    /people/sap.user72/blog/2005/12/22/new-to-xi
    Rewards point if useful

  • JDBC to RFC with BPM

    Hi,
    Please find details of my scenario.
    Oracle(VIEW)
    Sender JDBC--> PI--
    > RFC request
    and RFC response I need to update some other table in Oracle  using storeprocedure.
    and have one more storeprocesdure to update the View so that I will not get duplicate entry.
    I am not using UPDATE statement in JDBC sender communication channel, insted of that to update VIEW I am using storeprocedure.
    Please let me know how I can achive it with BPM.
    Thanks,
    Bhupesh

    Hi,
    1) If the structure send by JDBC is not acceptable by the BPM then you need one Mapping in JDBC ---> BPM flow.
    2) If the structure send by JDBC is same as the receiving structure of BPM then no need of Mapping.
    3) You will need one Mapping to map JDBC req message to the RFC req message; one mapping program to convert RFC response to the JDBC stored-procedure message....
    So your scenario with mappings will be:
    JDBC --> Interface Determination (Mapping Optional as per pt.1) -
    > BPM
    BPM <-> Interface Determination (Request-Response Mapping) <--> RFC
    In the above mapping program your ABS MI of BPM should have below MTs
    Req Message -
    > Original Message Received from JDBC
    Response Message ---> Message which needs to be send to the JDBC stored-procedure.
    Now your IN SYNC MI at the RFC end should have below MTs
    Req Message ---> RFC request message
    Resp Message ---> RFC response massage.
    Then in the Interface Detremination of BPM <----> RFC flow develop a IM with below mapping programs:
    Request Mapping between ---> MessageFromJDBC_to_RFCRequest
    ResponseMapping between ---> RFCResponse_to_JDBCStoredProcedure
    BPM -
    > JDBCStoredProcedure
    For this flow there is no need of Mapping program...
    using the above mappings programs you can ensure that there is no Transformation step in your BPM...this is to help you in achieving a good performance out of your BPM...
    You need a Syns ABS and Sync IN message Interface for BPM <---> RFC communication.
    Regards,
    Abhishek.

  • JDBC to RFC- Error in RWB

    Gurus,
    Background :We have fresh installation of SAP PO 7.3 (Single Stack ) on SQL Server 2013.
    Scenraio is : JDBC to RFC async scerio; i can pull data from SQL database but not able to post to SAP
    Please advise what to do.
    I always provide points for helpful answers

    Hi V Jay - Did you check the below thread?
    RfcClientException: functiontemplate from repository was <null>
    Q 16: While sending a message to the RFC Adapter the error "... functiontemplate from repository was <null>" is shown. What is the reason?
                  A: After receiving a message from the Adapter Engine, the RFC Adapter extracts the payload from the message. Normally this should be an XML document in the RFC-XML format. In this format the root element of the XML document represents the name of the function module and is enclosed in the fixed RFC namespace 'urn:sap-com:document:sap:rfc:functions'. But this only will be checked at a later point, when the conversion from XML to native RFC is done. As prerequisite of this conversion the structures and types of the function module parameters has to be known. This is also called metadata or function template. To get this function template the name of the function module is extracted from the root element of the XML document and is queried against the metadata repository of the communication channel. If the metadata repository doesn't have a function module with this name, the exception named above is thrown. Possible reasons are
    The XML document, which was sent to the RFC Adapter, is not a RFC-XML document. So the root element name of this document is not the name of a function module and thus can't be found in the metadata repository.
    The metadata repository doesn't contain an entry for this function module name. Normally the metadata repository will be an R/3 system and it's function module repository can be searched with the transaction SE37
    Reference :  730870 - FAQ XI 3.0/ PI 7.0/ PI 7.1/ PI 7.11/ PI 7.2/ 7.3 RFC Adapter

  • JDBC to RFC  Scenario large data

    Hi,
    I have jdbc to rfc scenario. I have no problem with the small size data (about 10 mb ). if resultset is very large ( about 80 -120 mb ) , i received resultset and proceess it  but when PI try to send these data to RFC it stucks status Scheduled in sxmb_moni , and in rwb is  to be delivered and doesn't send to rfc.
    What can i do ?

    Since you are using JDBC as sender, I would think you query from the sender and resultset is mapped to RFC for the target system. PI  gives optimum performance upto 5 mb message size. YOur message size is pretty big.
    Suggestion:
    A) Make a minor change and do the query to result less records.
    Example: Select Fields from tablename where rownum < 500    and
                   in update statement set flag = true for the read records so that next time you will not reread those old records again and every time you query only for 500 or  300 or your desired number records and keep the  mesg size always constant irrespective of data available.
    Hope that helps.

  • RFC- XI- JDBC- XI- RFC

    Hi All,
    Can we do RFC->XI->JDBC->XI->RFC scenario without BPM?
    In this SAP-RFC executed with SELECT and Table name
    And SAP-RFC expect data from JDBC connection.
    If not then what could be the expected steps of BPM?
    Regards

    Hi,
    Are you talking about a Sync call. I mean are the Sender and Receiver RFC are the same. If it is a Sync step you can do without a BPM.
    Like RFC will initiate the process the XI and the the data is selected from JDBC and the response is given back to RFC.
    If the above is not the case you can avoide using BPM by having to separate scenarios.
    1. Scenario 1 RFC --> XI --> JDBC
    2. Scenario 2 JDBC --> XI --> RFC
    If there are some dependencies or due to some constraints if you need to use BPM then you will have the steps like
    Receiver Async(RFC)Send Sync(JDBC)Send Async(RFC)
    Thanks,
    Prakash

  • JDBC to RFC Sync Error

    Dear All,
    I'm creating JDBC to RFC Sync scenario.
    Configured according to below link,
    http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/12/04/jdbc-to-jdbc-synchronous-scenario-with-rr-beans-and-without-bpm-and-rfc-lookup
    Sender JDBC structure is
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
       <row>
          <A>12</A>
          <B>34</B>
       </row>
    </ns0:MT_JDBC_To_RFC_Source>
    But in Test tab of MM_REQ is showing Red.
    Why its showing red?
    PFA the attached Screenshot.
    Thanks,
    Arthita

    Hi Arthitha
    You cannot create structure of some kind and use completely different kind of input payload.
    If your expected payload is of format
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_JDBC_To_RFC_Source xmlns:ns0="http://FiletoFile.com">
       <row>
          <A>12</A>
          <B>34</B>
       </row>
    </ns0:MT_JDBC_To_RFC_Source>
    Then your Data type should be created as below
    Regards
    Osman

  • JDBC to RFC synch RFC call not executing.

    Hi,
    I am working on the synchronous JDBC to RFC without BPM. After completing design and config when I test the complete scenario the data from databse is not getting updated in R/3. And I do not see any errors in MONI. But when compared the moni logs I observed the following between the working scenario and not working scenario.
    <u>Working scenario log in MONI:</u>
    <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>ECS300</SAP:Service>
      <SAP:Interface namespace="<b>http://sap.com/xi/XI/System</b>">InterfaceCollection</SAP:Interface>
    - <SAP:Mapping notRequired="S">
      <SAP:ObjectId>YYgNVKC9PTCW4JlMapfxZQ==</SAP:ObjectId>
      <SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
    <u>Not working log from the MONI:</u>
    ++++++++++++++++++++++++
    <SAP:Receiver>
      <SAP:Party agency="" scheme="" />
      <SAP:Service>ECS300</SAP:Service>
      <SAP:Interface namespace="<b>http://my_Own_namespace</b>">JDBC_Rfc_Synch_MI</SAP:Interface>
    - <SAP:Mapping notRequired="M">
      <SAP:ObjectId>28ZZbGggOw6UcnigDXMD7A==</SAP:ObjectId>
      <SAP:SWCV>IrmTYNPLEdqKItGjlusuXw==</SAP:SWCV>
      <SAP:SP>-1</SAP:SP>
      </SAP:Mapping>
    Could some body point me where I am doing wrong ?
    Thaks
    Steve.

    Hi Steve,
    I think the error is because your database table is expecting some kind of input and the input you are passing has some error in it.Just cross check the table using DESCRIBE <tablename> with the data you are trying to enter.
    Also Just look at Query SQL Statement part ubnder this link,
    http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
    Regards,
    abhy

  • Entire JDBC communication stopped if problem with one single JDBC interface

    Hello,
    Will the entire JDBC communication stopped if problem with one single JDBC interface?
    Thanks,
    Soorya.

    hi surya,
    this will happend if u use maintain order at runtime at interface determination.
    just uncheck this option if u dont neet EOIO.
    if you are getting the problem if u r going for EO then the problem might be using same JDBC channel for all interfaces.
    if each interface is expected with a high load then it better to go for dedicated channels for interfaces.
    like INTERFACE A should use JDBC A channel and INTERFACE B should use JDBC B channel.
    Thanks & Regards,
    Rama krishna

Maybe you are looking for

  • A vital error in mobile server!

    when i choose send commond to the client,such as "sync database",there is a error occur and the mobile server stop!the error is below: my olite version is 10.3.0.1.0 # An unexpected error has been detected by HotSpot Virtual Machine: # EXCEPTION_ACCE

  • Using Senuti: How to change iPod back from manual?

    I have a iPod mini and gonna buy a Classic this weekend. I have set my iPod mini to manually. But because of this my songs don't appear in the iTunes library but only in the iTunes music folder when my iPod is connected to the computer. I have downlo

  • Motion, Animation, Keyframes and a Video Clip.

    Hello out there! I'm putting together a music video for my students to promote a choir club at a school. In doing so, I would like part of the video to scroll from left to right. To give you a visual, I'm trying to produce this effect: https://www.yo

  • Firefox installed but not working even after importing settings from IE

    I've just downloaded firefox and installed with settings imported from IE which is working very fine.but i couldn't get firefox worked.it keeps on saying 503 error,but IE and chrome are working excellent at the same time.i prefer firefox than those f

  • JEXC Manual Excise

    Dear Experts , Pls tell me what is JEXC condition & when can it be used . How does it work & how can i seggregate various excise duties using JEXC. Regards Anis