ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » RFC call to a BAPI process in SAP

Post new topic  Reply to topic
 RFC call to a BAPI process in SAP « View previous topic :: View next topic » 
Author Message
petervh
PostPosted: Thu Dec 06, 2007 12:54 am    Post subject: RFC call to a BAPI process in SAP Reply with quote

Apprentice

Joined: 15 Jun 2006
Posts: 31

Environment is MB 6.0 on Windows 2003 + SAP Adapter 6.0.
I'm trying to generate an RFC call to a BAPI process in SAP. The BAPI process works f started from with SAP by passing it a cusotmer number. However if I try to start the process via an RFC call from a Message Broker flow I get the following error:

[Time: 2007/12/05 13:43:33.125] [System: ConnectorAgent] [SS: SAPConnector] [Thread: SAP47PHL/REQUESTQUEUEJmsThreadPool.thread3 (#638720146)] [Type: Trace] [Mesg: :Receiver.processMsg(msg) received message:
JMS Message class: jms_text
JMSType: mcd://xmlnsc/GPCF32G002001/sap_z_cust_statement?format=CwXML
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d5120585a4153544c445230332e5186c1554720008104
JMSTimestamp: 1196855013100
JMSCorrelationID:null
JMSDestination: null
JMSReplyTo: queue://XZASTLDR03.QM/SAP47PHL/REPLYTOQUEUE?targetClient=1
JMSRedelivered: false
JMS_IBM_PutDate:20071205
JMSXAppID:BM\utils\rfhutil\rfhutil.exe
JMS_IBM_Format:MQSTR
JMS_IBM_PutApplType:11
JMS_IBM_MsgType:1
JMSXUserID:Namd0gma1
JMS_IBM_PutTime:11433310
JMSXDeliveryCount:1
<KUNNR>0001004083</KUNNR>]
[Time: 2007/12/05 13:43:33.125] [System: ConnectorAgent] [SS: SAPConnector] [Thread: SAP47PHL/REQUESTQUEUEJmsThreadPool.thread3 (#638720146)] [Type: Trace] [Mesg: :Converting the Bomo to String -- <KUNNR>0001004083</KUNNR>]
[Time: 2007/12/05 13:43:33.141] [System: ConnectorAgent] [SS: SAPConnector] [Thread: SAP47PHL/REQUESTQUEUEJmsThreadPool.thread3 (#638720146)] [Type: Trace] [Mesg: :Sending response message:
JMS Message class: jms_text
JMSType: mcd://xmlnsc/GPCF32G002001/sap_z_cust_statement?format=CwXML
JMSDeliveryMode: 1
JMSExpiration: 0
JMSPriority: 0
JMSMessageID: ID:414d5120585a4153544c445230332e5186c1554720008104
JMSTimestamp: 1196855013100
JMSCorrelationID:ID:414d5120585a4153544c445230332e5186c1554720008104
JMSDestination: null
JMSReplyTo: queue://XZASTLDR03.QM/SAP47PHL/REPLYTOQUEUE?targetClient=1
JMSRedelivered: false
Status:-1
RequestType:Response
Description:The received message cannot be converted to BO. The message is not valid.
]

I have checked the following:

MRM message set id is entered in the connector configurator
SAP Adapter works fine for putting complete IDOCs into SAP

My question is: How can I call this BAPI process? Do I just need the name of the process and the customer number?

My ESQL currently looks like this:

Code:

CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';
      SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;
      SET OutputRoot.MQMD.ReplyToQ = 'SAP47PHL/REPLYTOQUEUE';
      SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;
      
      CREATE LASTCHILD OF OutputRoot DOMAIN('MQRFH2');
      SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING;
      SET OutputRoot.MQRFH2.mcd.Msd = 'mrm';
      SET OutputRoot.MQRFH2.mcd.Set = 'GPCF32G002001';
      SET OutputRoot.MQRFH2.mcd.Type = 'sap_z_cust_statement';
      SET OutputRoot.MQRFH2.mcd.Fmt = 'CwXML';
      SET OutputRoot.MRM = InputRoot.MRM;
      --SET OutputRoot.MRM.KUNNR = '0001004083';
      SET OutputRoot.XMLNSC = InputRoot.XMLNSC;
Back to top
View user's profile Send private message
Gaya3
PostPosted: Thu Dec 06, 2007 1:30 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

But here i can see a different error

The received message cannot be converted to BO. The message is not valid.

So BO is not matching with the message that it is coming are trying to feed here.

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
petervh
PostPosted: Fri Dec 14, 2007 12:29 am    Post subject: [Solved]RFC call to a BAPI process in SAP Reply with quote

Apprentice

Joined: 15 Jun 2006
Posts: 31

Problem solved by using a mapping node to ensure correct format of data into the compute node before putung to the SAP queue.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » RFC call to a BAPI process in SAP
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.