Posted: Thu Jan 05, 2006 6:35 pm Post subject: Problems creating/adding MQSAPH
Partisan
Joined: 19 Aug 2002 Posts: 305 Location: Green Mountains of Vermont
I'm receiving a SAP IDOC through Websphere Buisness Integration(WBI) mpsap.com adapter, which generates XML. I am converting this XML to an IDOC structure to satisfy legacy application requirements. Conversion to the IDOC structure is not an issue. The old legacy application used to receive the data from MQ R3LINK. So their code is used to getting the 108 byte SAPH record, which I need to maintain. In my ESQL I try to create the MQSAPH header but I get nothing. When running in debug mode, it passes right over the statements. Shouldn't this be like creating any other header record? Am I missing something?
General flow is: InputNode(mrm,MSID,CwXML)-> Compute -> OutputNode
Here are statements building the headers.
Code:
-- Create transformed WBI BOXML to IDOC format
SET OutputRoot.MQMD = InputRoot.MQMD;
SET OutputRoot.MQMD.Format = 'MQSTR ';
SET OutputRoot.MQRFH2 = NULL;
Set OutputRoot.MQSAPH.Version = 1;
Set OutputRoot.MQSAPH.Format = 'MQSTR ';
Set OutputRoot.MQSAPH.Encoding = 273;
Set OutputRoot.MQSAPH.CodedCharSetId = 819;
Set OutputRoot.MQSAPH.Flags = 0;
Set OutputRoot.MQSAPH.Client = ' ';
Set OutputRoot.MQSAPH.Language = ' ';
Set OutputRoot.MQSAPH.HostName = ' ';
Set OutputRoot.MQSAPH.UserId = ' ';
Set OutputRoot.MQSAPH.Password = ' ';
Set OutputRoot.MQSAPH.SystemNumber = ' ';
Set OutputRoot.MQSAPH.Reserved = X'0000';
Read the MQLink-R3 documentation.
Check out the headerformat somewhere you need to specify SAPH in the format field... (from memory) _________________ MQ & Broker admin
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