Jdbc -rfc -jdbc
hi all,
i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?
i have jdbc - rfc - jdbc scenario,should i go with bpm or without bpm approach?
we have 3 Approaches :
1. using bpm synchasynchbridge
2.RFC LooKUP it is standard function of the "CONVERSION" Function Group in pi 7.1
Defining RFC Lookups Graphically
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/8661
note: if you are using pi 7.1 below version, then you need to wite one udf for RFC Lookup.
3.Standard Adapter Module BEans RequestResponseBean
http://wiki.sdn.sap.com/wiki/display/XI/Sync-AsyncwithoutccBPM
http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/7032
Similar Messages
-
Hi
I have JDBC-RFC-JDBC Scenario.Now i have complated JDBC-RFC part but for the RFC response i dont want to use BPM . We are on PI 7.0 SP 11 . What changes needs to be done in module level to achieve this .
Regards
VijayHi bhavesh,
But In your one of the thread File-RFC-File scenario
These steps are mentioned , is it required in my JDBC-RFC-JDBC Scenario???
4. We need to add a few modules in the Sender File Adapter.
Go to the Modules Tab of the Sender File Adater, and add the following modules in the same sequence,
Number - ModuleName - Type - ModuleKey
1- AF_Modules/RequestResponseBean - Local Enterprise Bean - 1
2- CallSapAdapter-Local Enterprise Bean - 2
3-AF_Modules/ResponseOnewayBean-3
Parameters
ModuleKey - ParameterName - ParameterValue
1 - passThrough - true
3-receiverChannel - Receiver File Adapter Name
3-receiverService - Receiver Business Service/ System
Regards Vijay -
JDBC- RFC - JDBC How to send result set to rfc ?
Hi Friends ,
I am working on scenario like .
<b> I have to read data from a sql server using select statement and send same data to r3 ( using RFC we are inserting the same as a copy ) .
Then i have have get confirmation from R3 as data inserted succesfully - Flag .Then we have to come back to same table and update one field flag as 'U'.</b>
For this I am using JDBC Sender Adapter and RFC Receiver Adapter .Will i use as Synchronous Interface ?
I think i have to use JDBC Receiver Adapter also to Complete the cycle .
Can you please clarify the following....
1. how is that whole selected data will send to R3 . If i use Select statement in JDBC Sender Adapter it will as resultset .It will contain Multiple Rows right ? Our RFC Will accept the parameter as string .
2. If we use the synchronous Interface will it send row by row from the result send Then get back the result from R3 and come back again to JDBC ( Database ) and update the required field ?
3. In JDBC Sender Adapter , the Update Parameter doing the Updation Part prior to get the status from R3. How to handle this ?
4. Do i need to configur teh separate JDBC Receiver adpater for this updation part ? Then We cann't use Synchronous Interface right ?
5 . Will JDCB Sender Adapter get the result set (by select statement ) and send to r3 as row by row and get the confirmation message as inserted ?
Best Regards .,
V.RangarajanHi Udo ,
Thanks for your reply . If i have used the synchronnous RFC Calls , that RFC will return the flag as 'Y' or 'N' , for Either succesfully inserted or Not successful .
In this synchronous how can i use the JDBC Receiver adapter ?
If 'Y' or 'N' I have to update the<b> same table ,same row</b> which have sent to RFC . My doubt , we are wrirtng the SQL select query as " <b>select * from table name where UpdateStatus is null</b> " .
So it will return multiple rows right ? I have to uses the synchronous response form RFC to update the row of the same table using JDBC Adapter right ?
Can you please explain me little bit more ? I am new to xi .
Best Regards .,
V.Rangarajan -
JDBC- RFC- JDBC Synchronous scenario (Can't see the response message)
Hello Experts,
I tried this step in creating a synchronous scenario by using steps found in this site -> [http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29|http://wiki.sdn.sap.com/wiki/display/XI/File-RFC-File%28Without%20BPM%29] I just changes File to JDBC. But problem is I see the sent XML message in SXMB_MONI but to response message. I also can't see the Sender interface name for the response message when I tried to use F4 in the Interface Name portion.
Do someone encountered this before? Please help
Regards,
AlfredHello,
I hope someone could guide me on how to set this up cause I only see the sent message but there's no response message in SXMB_MONI. Note that interface was successful, I just want to see what was sent by the response.
Regards,
Alfred -
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 -
Error Handling in RFC- JDBC sync
Hi all,
We are having scenario RFC<->XI<->JDBC(Sync),and its working fine also.
Suppose exception occur in RFC->JDBC request mapping,Now is it possible to pass the error back to R/3 ?
If parsing error occurs in JDBC adapter how to catch this error in error structure of rfc ?
We observed that if any exception occurs on request side , response mapping will not get executed can anybody explain me why this is happening ?
Thanks in advance,
TuhinHi Gopesh,
U should follow the steps as below.
1.Create TCT/IP connection with t-code SM59
in R/3 and give program id (it is case sensitive also).
2.Give same program name in Sender RFc communication channel.Check that this channel is register in your R/3 system with t-code SMGW(Gate way monitor)
Only this much extra config I have done.
Thanks,
Tuhin -
XI: RFC -- JDBC communication deep structure
Hello to all!
I've got a RFC <--> JDBC szenario. Insert an update statements work fine.
Now I want to implement a "SELECT"-statement. Therefore the XML-SQL-statements needs a <key>-tags such as:
<key>
<col1>value</col1>
<col2>value</col2>
</key>
<key>
<col2>value</col2>
</key>
To represent the key structure in ABAP I did the following steps
- I created a structure "keyvalue" with fields: column, value (for <col>value</col>),
- a table type "andkey" with line type "keyvalue",
- another table type "orkey" with linetype "andkey"
I use the table type "orkey" as exporting parameter for the element "selectkey" in my rfc funtion module :
CALL FUNCTION 'FUBA_JDBC' DESTINATION 'XI'
EXPORTING
selectkey = it_key
TABLES
outtab = it_outtab
RESPONSE =
My problem is now, that the rfc function module creates a shortdump: CALL_FUNCTION_OPEN_ERROR
Does anybody know a solution? Could I use the table type "orkey" in the rfc?
Thanks for your suggestions,
ChristianChristian,
This should probably be posted in the abap forum, you can get some help there.
Regards
Ravi Raman -
Hi,
I am doing an RFC-JDBC scenario.
My input file is being generated in the following format:
- <T_SOMASTER>
- <item>
<CUSTOMERID>0000001033</CUSTOMERID>
<ORDERDATE>0000-11-82</ORDERDATE>
<PARTIALSHIP />
<SALESORDERID />
<SYNCIND />
</item>
</T_SOMASTER>
It should have been
- <T_SOMASTER>
- <item>
<CUSTOMERID>0000001033</CUSTOMERID>
<ORDERDATE>2007-12-17</ORDERDATE>
<PARTIALSHIP>1</PARTIALSHIP>
<SALESORDERID>0000018818</SALESORDERID>
<SYNCIND>Add</SYNCIND>
</item>
</T_SOMASTER>
I get the following error in SXMB_MONI - "java.lang.NullPointerException thrown during
application mapping
com/sap/xi/tf/_MM_SAP2ABPP_SO_CREATE_CHANGE_:"
Can you please help.
Thanks,
ShyamHi shyam,
Generally this error occurs when values given in the payload is more than given limit (length of the value given is more than defined length). So check the values of the paylaod ......So in this case the mapping will not takes place for the resason mentioned above..............
Hope this will solve u r poblem
Reward with points if helpful
Regards
Sai Ganesh -
Hi..All,
We are doing JDBC-RFC synchronous scenario using BPM, we are getting (Req & Res) data in to SXMB_MONI perfectly, the data is not updating into the Database Table, client wants to see the data in the DB only. how can i get the data in to DB Table.
thanks in advance,
Pasi.Hi..Seshagiri,
In the JDBC Receiver CCM we are getting the follwing error
JDBC message processing failed; reason Error processing request in sax parser: Error when executing statement for table/stored proc. 'Oracle DB Table' (structure 'ITEMDETAILS_RESPONSE'): java.sql.SQLException
we are sending multiple entrys response to the DB,even we could not able to send one record.the structure has been made based on the multiple entrys, pls let me know.
Regards,
Pasi. -
JDBC---RFC will Support Sync?????????
Hi All,
Wil JDBC--RFC Senario supports for Sync Comunication with out using BPM???
Regards
VamsiHi Vamshi,
For JDBC (Sender/Receiver )Scenario we have to Install the JDBC Drivers on XI Server.
Use those Driver name and Connection in JDBC Adapter to connect to the Database.
For RFC Sender Adapter we have to create the Program ID in SAP R/3 side.
For RFC Receiver no need of any Extra settings.
step by step RFC to JDBC scenario
https://www.sdn.sap.com/irj/sdn/wiki?path=/display/xi/step%2bby%2bstep%2brfc%2bto%2bjdbc%2bscenario
Tips and Tutorial for Sender JDBC Adapter
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
http://help.sap.com/saphelp_nw04s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/frameset.htm
http://help.sap.com/saphelp_nw2004s/helpdata/en/22/b4d13b633f7748b4d34f3191529946/content.htm
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3867a582-0401-0010-6cbf-9644e49f1a10
Also you can look at this scenario --> File to JDBC:-
/people/sap.user72/blog/2005/06/01/file-to-jdbc-adapter-using-sap-xi-30
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter
/people/sameer.shadab/blog/2005/10/24/connecting-to-ms-access-using-receiver-jdbc-adapter-without-dsn
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
SENDER RFC
Registered server program name which is maintained in the ABAP should be called in the program ID.
for more information follow this links
/people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009
How to test the RFC to Flat File scenario
Type 3 ABAP Connection :
ex 1) If we want to execute any function module from one SAP system in another , we need type 3.
We define an RFC destination say ECC6CLNT100 with required parameters.
and to test it go to SE37, select any common sap function module and when you execute that it will ask
for RFC destination. you provide this destination and the function module will be executed in the target
system.
ex2) when you create a partner profile, you need to create a port and for creating a port, we need to
specify an RFC destination. here also we use type 3.
Type H.
ex1) when we need to send xml messages from an SAP system to any other system, we need this.
For example when we send messages using proxy from SAP system to the integration engine of XI, we
need type H.
Type T.
ex1) To we make an RFC call from R/3 to XI , we use sender RFC adapter in XI.
In R/3 system we need to create an RFC destination of type T.
Different types of RFC are :-
Asynchronous RFC - aRFC
Synchronous RFC - sRFC
Transactional RFC - tRFC
Queue RFC - qRFC
Parallel RFC - pRFC
Chk this link also:
Link :http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5b6a85b11d6b28500508b5d5211/content.htm
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/1685 [original link is broken] [original link is broken] [original link is broken]
Please go through the following links.
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step JDBC Receiver Adapter -- Synchronous Select Step by Step
/people/yining.mao/blog/2006/09/13/tips-and-tutorial-for-sender-jdbc-adapter Sender JDBC adapter
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
FILE- RFC-FILE Synchronous (Using BPM)
/people/shabarish.vijayakumar/blog/2008/01/08/troubleshooting--rfc-and-soap-scenarios-updated-on-20042009 Trouble Shooting RFC and SOAP Scenario
Regards,
Vinod. -
SOAP to JDBC/RFC - RFC/JDBC to SOAP XI Scenario
Hello,
Can anybody give me the links for SOAP to JDBC/RFC-BAPI or RFC-BAPI/JDBC ---> XI ---> SOAP XI Scenario?
I tried searching, but there isn't any step-by-step approach for it.
Thank you in advance.
Cheers,
Deepak.Hi,
Check some links on SOAP,
RFC -> XI -> WebService - A Complete Walkthrough
/people/shabarish.vijayakumar/blog/2006/03/23/rfc--xi--webservice--a-complete-walkthrough-part-1
/people/shabarish.vijayakumar/blog/2006/03/28/rfc--xi--webservice--a-complete-walkthrough-part-2
SOAP with attachments
/people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
/people/siva.maranani/blog/2005/05/23/communication-between-sap-system-webservice-using-proxies
SOAP
An Overview of SOAP
/people/padmankumar.sahoo/blog/2005/02/15/an-overview-of-soap
JDBC ADAPTER
http://help.sap.com/saphelp_nw04/helpdata/en/7e/5df96381ec72468a00815dd80f8b63/content.htm
/people/saravanakumar.kuppusamy2/blog/2005/01/19/rdbms-system-integration-using-xi-30-jdbc-senderreceiver-adapter
Regards,
phani
Reward points if Helpful -
Error when executing multiple scenarios with same ProgramID for RFC-JDBC
Hi,
I am working on the RFC-JDBC scenario.
I see the following error in the dev_jrfc.trc file when I try to execute multiple scenarios which are using same program id (different communication channels).
RfcException:
message: Commit fault: com.sap.aii.af.rfc.afcommunication.RfcChannelMismatchException: Wrong Sender Agreement:The Sender agreement does not have channel CC_SAP_XXXXX configured for the functionmodule Z_XXXXX_SO_CREATE_CHANGE
Return code: RFC_CLOSED(6)
error group: 108
key: RFC_ERROR_INTERNAL
Can one program id be used for multiple scenarios? Or do we need to create a new ProgramId for each scenario.
Any response will be highly appreciated.
Thanks
ShyamHello Shyam,
>>>>>>>>Do you think that I still need to create a new Program Id for each of these processes.
You should not use same program ID for different RFC adapters. It is recommended by SAP (check FAQ's on RFC).
Although technically you can use but it gives you unpredictable behaviour based on connection pool. -
JDBC-RFC no errors at XI BOX still records were not update at Target system
hi
am doing jdbc to rfc scenario
tested rfc at target R/3 and its working fine,but records were not being updated in jdbc-rfc scenario.
i can see the audit log as success but no record is inserted at the target system
think problem is at FM.
please look at my FM code.
FUNCTION zscp_fm_inb_task_act_eff_updat .
""Local Interface:
*" TABLES
*" IT_TASK_DATA STRUCTURE ZSCP_S_TASK_EFFORT
DATA : v_taskguid TYPE bapi_ts_guid-task_guid,
is_task TYPE bapi_ts_task,
is_task_upd TYPE bapi_ts_task_upd,
is_return TYPE TABLE OF bapiret2 WITH HEADER LINE.
*DATA : BEGIN OF it_data OCCURS 0,
project TYPE zspr_project_id,
task_id TYPE cgpl_entity-external_id,
act_work TYPE dpr_tv_act_work,
guid TYPE dpr_task-guid,
END OF it_data.
DATA : BEGIN OF it_task_eff OCCURS 0,
project TYPE zspr_project_id,
guid TYPE dpr_task-guid,
act_work TYPE dpr_tv_act_work,
END OF it_task_eff.
DATA : BEGIN OF it_report OCCURS 0,
msgtype(1),
project TYPE zspr_project_id,
task_id(24),
msg(250),
END OF it_report.
DATA : l_taskguid TYPE dpr_task-guid.
DATA : v_begintmstamp(20) TYPE c,
v_endtmstamp(20) TYPE c.
*ranges : r_taskguid for l_taskguid.
DATA : v_tabix TYPE sy-tabix.
DATA : it_dpr_task TYPE STANDARD TABLE OF dpr_task,
wa_dpr_task TYPE dpr_task.
*data : l_taskguid type BAPI_TS_GUID-TASK_GUID.
DATA : flg_no_flg TYPE c.
DATA : l_task(24),
flg_error TYPE c.
DATA : l_taskdetail TYPE bapi_ts_task_detail,
l_retdetail TYPE STANDARD TABLE OF bapiret2 WITH HEADER LINE.
DATA : v_count TYPE i.
DATA curr_date TYPE sy-datum.
DATA curr_time TYPE sy-uzeit.
CONCATENATE sy-datum sy-uzeit INTO v_begintmstamp.
DELETE it_data WHERE act_work < 0.
DELETE it_task_data WHERE act_work_effort < 0.
IF it_task_data IS NOT INITIAL.
LOOP AT it_task_data.
v_tabix = sy-tabix.
CALL FUNCTION 'CONVERSION_EXIT_DPRCE_INPUT'
EXPORTING
input = it_task_data-task_id
IMPORTING
output = it_task_eff-guid.
it_task_eff-guid = it_task_data-task_id.
it_task_eff-project = it_task_data-project_id.
it_task_eff-act_work = it_task_data-act_work_effort * 60 * 60.
MODIFY it_data INDEX v_tabix.
APPEND it_task_eff.
CLEAR: it_task_eff, it_task_data.
ENDLOOP.
LOOP AT it_task_data.
it_task_data-act_work_effort = it_task_data-act_work_effort * 60 * 60.
MODIFY it_task_data.
CLEAR it_task_data.
ENDLOOP.
SELECT *
FROM dpr_task
INTO TABLE it_dpr_task
FOR ALL ENTRIES IN it_task_data
WHERE guid = it_task_data-guid.
*Begin Commented by Aparna/25/01/2007 so that all the tasks are updated irrespective the planned efforts are filled or not.
and
work_effort > 0.
*End
IF sy-subrc <> 0.
MESSAGE e000 WITH 'No data selected to update'.
ENDIF.
IF sy-subrc = 0.
curr_date = sy-datum.
curr_time = sy-uzeit.
LOOP AT it_dpr_task INTO wa_dpr_task.
CLEAR it_task_eff.
READ TABLE it_task_data WITH KEY guid = wa_dpr_task-guid.
IF sy-subrc = 0.
wa_dpr_task-act_work_effort = it_task_data-act_work_effort.
wa_dpr_task-act_work_unit = 'S'.
wa_dpr_task-zzupdated_date = curr_date.
wa_dpr_task-zzupdated_time = curr_time.
CLEAR wa_dpr_task-flg_man_rem_work.
MODIFY it_dpr_task FROM wa_dpr_task TRANSPORTING act_work_effort act_work_unit flg_man_rem_work zzupdated_date zzupdated_time.
ENDIF.
CLEAR wa_dpr_task.
ENDLOOP.
DESCRIBE TABLE it_dpr_task LINES v_count.
ENDIF.
ENDIF.
IF it_dpr_task IS NOT INITIAL.
*{17Sep2007 Refresh all tasks before updating the efforts
UPDATE dpr_task SET act_work_effort = 0
WHERE version_number EQ space.
*}17Sep2007 Refresh all tasks before updating the efforts
UPDATE dpr_task FROM TABLE it_dpr_task.
ENDIF.
ENDFUNCTION.Not exactly an ABAPer but I dont see a commit work in the FM. Maybe this is an issue
Regards
Bhavesh -
Hello All,
Probably this has been discussed before, but i am unable to find a direct solution till now.
I have a synchronous RFC to JDBC scenario, where data is inserted from R/3 to JDBC and JDBC returns with the count of records it inserted in oracle. everything is working fine.
But in case when there is an error in insert, short dump occurs in R/3. i can see the response message has the error that some fields are null and so the insertion failed.
My question is, how to capture this fault and get a exception equivalent in my RFC, so for further processing it can simply be check against SY-SUBRC.
I would appreciate any pointers or help on this.
Regards,
KinshukHi Kinshuk,
one month ago I implemented also synch JDBC scenario but with call from client proxy (ABAP Proxy <->JDBC). First you ca try is to implement exception in your RFC and then update the metadata in IR. Assign also Fault Message to Inbound JDBC Message Interface and create mapping between RFC exception message and Fault Message.
If it will not help you, try to change your implementation to ABAP Proxy if possible. With Proxy you can use ABAP statement "TRY/CATCH" and catch system error as I do in my implementation.
As far as I know, JDBC adapter does not support Fault Messages. But I never had system with latest SP. For examply in this 1492453 note you can see, that the detail text message of exception in Adapter was not transfered to IS (sxi_monitor) in SP bellow 12. With proxy you should have access to that exception and it might be possible get the "detail text" from exception object.
On my current project I'm still waiting for SP so in my implementation I can catch Proxy exception but I'm not able to tell user what exactly happend. He has to check Comm.Channel monitoring for more info.
If you have SP12 or higher you should be able not only catch system exception but also to get the detail error text from JDBC Adapter back to your proxy implementation.
Martin -
Manual intervention from jdbc-rfc scenario
Hi...Experts,
my scenario is jdbc-rfc synchronous scenario,we are sending the data from Oracle Database to ECC, client is insisted for manual intervention before posting the data in to SAP, when ever client wants to process the data from XI system (like press the F8 button manually by user), then only the data will enter into SAP.
let me know me how to achieve this type of requirement.pls help us at the earliest...
Points will be rewarded for the helpful answers.
thanks in advance,
PasiHi,
Why don't you create jobs in Xi and run them when ever you wanted them to.
check these for adapter scheduling..
http://help.sap.com/saphelp_nw04/helpdata/en/45/06bd029da31122e10000000a11466f/frameset.htm
this blog too..
/people/shabarish.vijayakumar/blog/2006/11/26/adapter-scheduling--hail-sp-19-
Thanks,
Vijaya.
Maybe you are looking for
-
I have Windows XP. I had Mozilla Firefox until I did a system restore, now my desktop icon doesn't work and when I try to download a new version of Firefox, it downloads but I get error messages when trying to install it.
-
What Camera for direct HD recording in iMovie?
I'm running iMovie 09 on an i7 iMac. With my standard def Sony Camcorder I can record 'live' video, via a firewire cable, directly into iMovie, no need to go to tape and then import. I now want to go HD and need a camera that can do the same type of
-
Hi All, We have requirement like don't want print checks in oracle, just process the payment, generate the document number(check number) in oracle and send the data file to third party system. It takes care the check printing. For this I developed Et
-
Zebra LP-2844 Only Prints 1/4" of the label?
I have been trying to get my Zebra LP-2844 thernal printer working with my PayPal account, and have had no luck. The printer is installed, paypal sees it and prints to it. The problem is that only about 1/4" of the top of the label prints and then it
-
Email newsletter - whats the best package to create it in?
I am looking for a bit of advice on what would be the best package to create an email newsletter in? Im new to all this stuff, have a very limited knowledge of marketing and newsletter stuff. I have briefly used photoshop for a few weeks a few months