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 » General IBM MQ Support » Problem with MQSeries Link for R/3 (invalid Idoc structure)

Post new topic  Reply to topic
 Problem with MQSeries Link for R/3 (invalid Idoc structure) « View previous topic :: View next topic » 
Author Message
marnick
PostPosted: Fri Dec 15, 2006 10:34 am    Post subject: Problem with MQSeries Link for R/3 (invalid Idoc structure) Reply with quote

Novice

Joined: 26 Oct 2006
Posts: 10

Hello:
I need some help, I have a MQSeries Link for R/3 working over AIX Version 5 and MQ version 5.3.
After a refresh of SAP I start to get this error:

IDoc has an invalid structure length. IDoc value="825241632". Expected
value="108".
The server is terminating because an invalid message was received.
The MQSeries Link for R/3 server has ended normally.

The format of the messages is correct (I send to the same SAP with another link over another server without problem).
I restore the file System from a backUp, but I continue with the same problem.

I export this variable SMQ_NO_CHECK_LENGTH=1 and again the same problem javascript:emoticon('')


Please if anybody has any hint or suggest I will appreciate.

Thanks in advance.
Martin
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Dec 15, 2006 3:43 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

We had the same problem.
You are taking advantage of a "feature" (read bug) of MQLink that is no longer present in the latest version.

The cure: Format your message and especially your header correctly.

The MQMD needs to contain the format for Sap header (MQSAPH?) and the CCSID and encoding fields on both headers need to be set appropriately. (In cobol we had to explicitely set them. Just using the default did no longer work probably because of the "extra" SAPH header....

Don't forget to set the format on the SAPH header to MQSTR....


Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Nigelg
PostPosted: Mon Dec 18, 2006 1:57 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

SMQ_NO_CHECK_LENGTH only has any effect if you have installed a fix to CSD03.

I agree with fjb; the SAP header on the msg is badly formed and does not properly describe the length of the header, so the app which creates the msg should be amended to write the correct value into the StrucLength field.
_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Dec 18, 2006 4:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Nigelg wrote:
SMQ_NO_CHECK_LENGTH only has any effect if you have installed a fix to CSD03.

I agree with fjb; the SAP header on the msg is badly formed and does not properly describe the length of the header, so the app which creates the msg should be amended to write the correct value into the StrucLength field.


Nigel: This is the way the feature manifests itself. The StrucLength is most probably correct at 108. What is not correct are the header formats and ccsid and encoding... We ran into this when we upgraded our MQLink for R3.
It is a known "feature" of the earlier version that it lets you get away with a lot of "bad" information on the headers...

They just need to fix their headers to conform to MQ standards...

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Problem with MQSeries Link for R/3 (invalid Idoc structure)
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.