|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
SAP inbound BAPI adapter with WMBv6.1 |
« View previous topic :: View next topic » |
Author |
Message
|
JYama |
Posted: Thu Feb 05, 2009 10:37 pm Post subject: SAP inbound BAPI adapter with WMBv6.1 |
|
|
 Master
Joined: 27 Mar 2002 Posts: 281
|
Hi,
Now I'm configuring SAP inbound adapter for BAPI to invoke a message flow from a program on SAP server. (Yes, this was called "RFC Server" before.)
I configured my SAP server to communicate with the adapter such as defining RFC destinations.
My question is how WebSphere adapter for SAP delivers a message, an event, to the destination message flow.
Where can I configure SAP adapter with information about destination message flows, which should be different parameters from RFC destination?
 |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Feb 06, 2009 3:34 am Post subject: Re: SAP inbound BAPI adapter with WMBv6.1 |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
JYama wrote: |
Hi,
Now I'm configuring SAP inbound adapter for BAPI to invoke a message flow from a program on SAP server. (Yes, this was called "RFC Server" before.)
I configured my SAP server to communicate with the adapter such as defining RFC destinations.
My question is how WebSphere adapter for SAP delivers a message, an event, to the destination message flow.
Where can I configure SAP adapter with information about destination message flows, which should be different parameters from RFC destination?
 |
Unless you have SAP set up to do an http service call to the broker, you will need to set up the RFC destination. Sending an IDOC to the adapter is achieved with an RFC function call internally. Calling a function implemented in the adapter is achieved the same way.
Calling any RFC enabled function / bapi in SAP from the adapter is achieved the same way. The underlying technology used is the JCO (Java Connector) and is RFC based with calls to JNI, hence the RFC libs needed in conjunction with the JCO.
Now your question is not quite clear as to whether SAP will be the caller or the callee. The process with the JCO is a synchronous process unless you provided the RFC call with an asynchronous call back function...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
JYama |
Posted: Fri Feb 06, 2009 7:46 am Post subject: Re: SAP inbound BAPI adapter with WMBv6.1 |
|
|
 Master
Joined: 27 Mar 2002 Posts: 281
|
fjb_saper wrote: |
Now your question is not quite clear as to whether SAP will be the caller or the callee. |
Thanks for your help, fjb_saper.
Actually what I want to do is to call/invoke a message flow from an ABAP program. So SAP will be a caller in this case.
I think this was achieved with older SAP adapters such as WBI (non-JCA) adapter for SAP with "RFC server module".
Also I know this type of interface, I mean "RFC server", hadn't been supported by JCA based adapters. Only non-JCA, in other words, JMS based adapters supported it.
So I'd like to try to understand how I can achieve this with brand-new WebSphere Adapter for SAP.
BTW, I believe there should be no problem when a message flow will be a caller.
Regards, |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 07, 2009 1:32 am Post subject: Re: SAP inbound BAPI adapter with WMBv6.1 |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
JYama wrote: |
fjb_saper wrote: |
Now your question is not quite clear as to whether SAP will be the caller or the callee. |
Thanks for your help, fjb_saper.
Actually what I want to do is to call/invoke a message flow from an ABAP program. So SAP will be a caller in this case.
I think this was achieved with older SAP adapters such as WBI (non-JCA) adapter for SAP with "RFC server module".
Also I know this type of interface, I mean "RFC server", hadn't been supported by JCA based adapters. Only non-JCA, in other words, JMS based adapters supported it.
So I'd like to try to understand how I can achieve this with brand-new WebSphere Adapter for SAP.
BTW, I believe there should be no problem when a message flow will be a caller.
Regards, |
IIRC the adapter is based on the SAP JCO. This means that you have a registered program type RFC connection from SAP. You would have to write the function that you want to call in java using the JCO.
Talk to your adapter provider if such an extension is possible. If not just use straight JCO. You can then have the function being executed call the flow either via http or JMS/java base MQ.
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
JYama |
Posted: Sun Feb 08, 2009 4:37 pm Post subject: Re: SAP inbound BAPI adapter with WMBv6.1 |
|
|
 Master
Joined: 27 Mar 2002 Posts: 281
|
fjb_saper wrote: |
IIRC the adapter is based on the SAP JCO. This means that you have a registered program type RFC connection from SAP. You would have to write the function that you want to call in java using the JCO.
Talk to your adapter provider if such an extension is possible. If not just use straight JCO. You can then have the function being executed call the flow either via http or JMS/java base MQ. |
Yes, you're right.
WebSphere Adapter for SAP is based on JCo.
In my experience with older adapters for SAP, "RFC Server" was achieved by writing this kind of statement in ABAP like; CALL function_name DESTINATION registered rfc destination.
(Sorry, I'm not a SAP guy.)
With brand-new version of the adapter in my environment now, I tested that the adapter successfully registered its programID through sapgw00 into SAP server because my RFC trace indicated the success.
Therefore I think my SAP server and the adapter can talk each other now.
The problem is when I executed the ABAP program to invoke a message flow, it seemed that it was unable to find the function_name...
This is what I want to make it clear.
Maybe I need to read adapter documentations again and again and...
Cheers, |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Feb 09, 2009 12:40 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Remember as well that the Adapter is specific for a number of functions/calls.
The JCO on which it is based will allow you a lot more leeway like enhancing your ABAP with outside function calls. However those functions will need a specified interface and need to be written in Java see Java end of the JCO.
You will have to read the documentation in order to be able to use the Adapter in that way. If the documentation does not allow for that type of usage you can always use the JCO and code it yourself.
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|