RFC- JDBC- Mail
Hi
I want to send something through RFC adapter to JDBC to update or insert some data and I want to have return code and send it through mail adapter.
RFC sender interface should be Async, other interface can be sync or aync but as far as I know, in order to get return code from JDBC, the receiver JDBC interface should be sync, actually everything is ok so far, I could handle until this part but when I try to forward the return code from JDBC to Mail adapter, thats where I stuck, how can I handle this scenario with async mail interface?
Thanks
hi,
>>>>I could handle until this part but when I try to forward the return code from JDBC to Mail adapter,
you have to use BPM in order to do this
all you have to do is to map jdbc sync response to the mail adapter (message interface) - so just another transformation step in your BPM and then
you'll have your return code in your mail adapter message
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>
Similar Messages
-
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 -
Best Effort (BE) Quality Service in JDBC & Mail Sender Adapter
Hi Experts,
I have confusion for Mail & JDBC Sender adapters.
Why BE QoS is provided in the sender JDBC & Mail Adapters. Can anybody explain me with how will be Synchronous JDBC or Mail scenario.
Thanks in advance.
AbdurUse of BE in JDBC can be seen here
http://www.klickklack.wg.am/RFC_Request_Response_without_BPM.doc
For mail sender, usually there are no such logical requirement.
Regards,
Prateek -
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,
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 -
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 -
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. -
Hi all...
I need some help to know, how can I do a mapping from RFC to Mail...
I'll receive some data from RFC, creating a excel file with this. After, I need to pick this file and send by mail...
Anybody has some example, link or something more about this?!
Thanks!to add more...
Try to use the pre-delivered content message type for Mail adapter.
and fallow these blogs,
https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_weblog&query=mail+adapter&adv=false&sortby=cm_rnd_rankvalue -
File to RFC (Error Mail )
Hi,
I have a requirement like legacy system details ( flat file ) send to RFC/Bapi and the status ( Success or Error ) should be updated to the concerned people with the mail. How can we achieve this in XI?
I have done with the File to RFC scenario...need help on update the status (error/ success) with mail.
Where should we implement mail adapter settings for this scenario?
Can anybody share their experiences with me.
Cheers.,
EshaHi !
You can make it as a File - Mail scenario, and call the RFC synchronously using JCO during the graphical mapping (or java mapping) using a user defined function.
Then, based on the response of the RFC, decide what should be the content of the mail or maybe decide not to send it.
pros: no use of bpm
cons: need ad-hoc methods for managing connection parameters of the rfc connection.
other:
RFC Scenario using BPM --Starter Kit
Regards,
Matias
ps: please award points if helpful.
Please read the Forum's Rules of Engagement,
i.e.,
/thread/117188 [original link is broken]
and refrain from requesting points
SDN PI/XI Forum Moderator -
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 -
RFC-JDBC synch, BPM or not?
Hi everyone,
I have a question regarding my business scenario. My scenario seems simple.
RFC -> PI -> JDBC
The RFC call is synchronous. When the data comes from the RFC PI will execute a stored procedure using JDBC. The stored procedure doesn't return any value. But my RFC waits for an result code. xx or yy.
Is it possible to do this without using BPM? I am not sure how I should return a response to the RFC without using BPM.Hi,
If you make a synchronous RFC call than JDBC adapter will send a response messages which will need to be handled in Pi.
The JDBC adapter when sending its response back will create a Message Type of the same name as the request message with a u201C_responseu201D appended to it.
Please refer to following blogs on SDN on how to configure response JDBC messages:
/people/siva.maranani/blog/2005/09/16/xi-how-to-on-jdbc-receiver-response
/people/bhavesh.kantilal/blog/2006/07/03/jdbc-receiver-adapter--synchronous-select-150-step-by-step
Regards,
Deepak. -
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 -
Hello Gurus.
I have a scenario where i have to load File to JDBC (Oracle) and RFC (SAP) in parallel.
If my file is QoS (EO), then do I have to use BPM to send the message to JDBC and RFC,
or I can just create two Receivers, and the message will split in the pipeline on IE?
The file is loaded once in Quarter, every 3 months.
Thanks in advance..."In Parallel" means you may have to use BPM where you can have a parforeach block to simultaneously send the message to both the receivers.
But i see why this process can be done in a sequence. If so , BPM is not required. You just have to MAP the Outbound to 2 inbounds, namely IDOC and the RFC.
Raj -
RFC - XI - Mail scenario special characters
Hi Experts,
I'm developing the mentioned scenario and have one problem.
In my scenario I have one transformation RFC -> XML that uses graphical mapping one second transformation XML -> Mail package that is a java mapping where I take one of the fields of the XML, and pack all XML in the Content field.
The process works, but when in the XML I have one text data and it has one special character(in spanish á, é, í, ñ...), the payload and the mail that is sent reflects those characters as ��. For example if the data is 'dirección', in the mail sent appears 'direcci��n'
Best Regards.
Alfredo Lagunar.Hola Alfredo,
In deed you have a character encoding mismatch.
The encoding the browser is expecting and the encoding of your mail message must match or you will see those strange characters instead of á, é, etc.
So you either change your browser's default encoding (Internet explorer: view->character encoding) or you indicate in the Mail package the type of content and the encoding you are using so your browser or email program knows what is the correct encoding.
You see the error in SXMB_MONI because it uses embedded browser windows to display the XML messages.
To fix it you have to put the following string: "text/html; charset=utf-8"
into the field Content_Type of the Mail package in the message mapping you use to generate the email.
If you are using XIALL in message protocol instead of Mail package (XIPAYLOAD) you have to add the message transform bean (MTB) to the Mail adapter modules. Using the MTB add the Transform.ContentType parameter with the same string as above.
You can see how to configure the MTB in the sap online documentation: http://help.sap.com/saphelp_nw70/helpdata/en/57/0b2c4142aef623e10000000a155106/frameset.htm
Hope it helps...
Saludos!
-Sam.
Maybe you are looking for
-
I was told to post this over in this Palm forum also so hopefully SOMEONE from Palm/HP will address this... I could not find a bug report area but perhaps someone can log this. So after months of (mostly) happily using a Pre Plus, Wednesday I get the
-
Using open instead of file open causes Acrobat X11 to barf and stop working
I get a Critical Error when I use Open instead of File Open. Faulting Application Path: C:\Program Files (x86)\Adobe\Acrobat 11.0\Acrobat\Acrobat.exe Problem Event Name: APPCRASH Application Name: Acrobat.exe Application Version: 11.0.9.29 Applicatio
-
Content Exchange menu not found in KM
Hi All I am trying to import home_area_content_templates_fullupdate.zip file. As per documentation of Importing an Offline Package it is saying there will be a menu Content Exchange under Content Management. I could <b>not find Content Exchange</b>
-
Anyone gone from a 12" iBook to MacBook, is it too wide (big)
Hi, I love my small 12" iBook G4 and was wondering with the extra width does it make it too big. If someone has picture of both side by side, that would be great. Does any one have pictures of the power supply next to an old one
-
On receiving jpegs via email, sometimes they get corrupted, and there are horizontal blocks appearing on the image that distort the image. Help???