Posted: Thu Dec 06, 2007 12:54 am Post subject: RFC call to a BAPI process in SAP
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:
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;
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