Posted: Tue Oct 13, 2015 2:10 pm Post subject: XML to hexBinary for IDoc to passthrough mode to SAP
Apprentice
Joined: 13 Jun 2010 Posts: 39
Hi,
I am creating SAP IDoc and want to post the Idoc as passthrough mode. Tried to convert XML IDoc to Blob and assign it to XML hexBinary field and value is not populated when I checked output.
DECLARE myMsgBlob BLOB;
SET myMsgBlob = ASBITSTREAM(Environment.Var.IDocRecord);
SET OutputRoot.XMLNSC.ns:SapW03.IDocStreamData = myMsgBlob
A usertrace of a message passing through your original code would have told you that the ASBITSTREAM was not working.
ASBITSTREAM is not the easiest thing to get right as is evidenced by the number of posts here about it over the years. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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