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 Interchange Server + Adapters » Error Return mySAP

Post new topic  Reply to topic
 Error Return mySAP « View previous topic :: View next topic » 
Author Message
wmqiguy
PostPosted: Tue Jan 10, 2006 12:47 pm    Post subject: Error Return mySAP Reply with quote

Centurion

Joined: 09 Oct 2002
Posts: 145
Location: Florida

When I call the BAPI and it is successful, everything is fine. (Big surprise, right?)

That is, the return codes and messages are populated in the return segment.

My issue is when I have some kind of data issue. For instance, if I put the wrong company code in, I still get a return value with the error message, but it is populated in the usr folder of the MQRFH2 instead of in the message itself. This makes it difficult to query the results and make diecisions based on them.

It seems to be trying to populate the return segment, but then it fails. It seems to interpret the BAPI return as a failure instead of as a successful BAPI return with an SAP error.

A log snippet (edited for readability):

Quote:
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 27028] [Mesg: doRfcDatatoBusObj: Looping at business object "sap_return".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " TYPE " , ATTR_VALUE " E " , APP_SPEC_INFO " TYPE ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " ID " , ATTR_VALUE " M7 " , APP_SPEC_INFO " ID ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " NUMBER " , ATTR_VALUE " 360 " , APP_SPEC_INFO " NUMBER ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " MESSAGE " , ATTR_VALUE " Material document data and PO data do not match (Plant) " , APP_SPEC_INFO " MESSAGE ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " LOG_NO " , ATTR_VALUE " " , APP_SPEC_INFO " LOG_NO ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " LOG_MSG_NO " , ATTR_VALUE " 000000 " , APP_SPEC_INFO " LOG_MSG_NO ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " MESSAGE_V1 " , ATTR_VALUE " Plant " , APP_SPEC_INFO " MESSAGE_V1 ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " MESSAGE_V2 " , ATTR_VALUE " " , APP_SPEC_INFO " MESSAGE_V2 ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " MESSAGE_V3 " , ATTR_VALUE " " , APP_SPEC_INFO " MESSAGE_V3 ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " MESSAGE_V4 " , ATTR_VALUE " " , APP_SPEC_INFO " MESSAGE_V4 ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " PARAMETER " , ATTR_VALUE " GOODSMVT_ITEM " , APP_SPEC_INFO " PARAMETER ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " ROW " , ATTR_VALUE " 1 " , APP_SPEC_INFO " ROW ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " FIELD " , ATTR_VALUE " " , APP_SPEC_INFO " FIELD ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 25009] [Mesg: Attempting to set ATTR_NAME " SYSTEM " , ATTR_VALUE " DVR-030 " , APP_SPEC_INFO " SYSTEM ".] ]
[Time: 2006/01/10 15:23:03.920] [Mesg: :[Type: Info] [MsgID: 24018] [Mesg: Releasing connection handle .] ]
[Time: 2006/01/10 15:23:03.935] [Mesg: :[Type: Trace] [MsgID: 29056] [Mesg: Exiting method VisionBOHandler doVerbFor.] ]
[Time: 2006/01/10 15:23:03.935] [Mesg: :[9543] DoVerbFor cookie=ConsumeSync rc=-1 rtnObj.status=-1 rtnObj.message=[Type: Error] [MsgID: 27015] [Mesg: Processing in SAP failed. BAPI returned message: Type: "E", Number: "360", Text:"Material document data and PO data do not match (Plant)".] ]
[Time: 2006/01/10 15:23:03.951] [Mesg: :Receiver.processBO: Status returned from receiverCallback : -1]
[Time: 2006/01/10 15:23:03.951] [Mesg: :In jms.Receiver.processBO(msg), syncDrvCallback.receiverCallback(boMsg) returns a status < 0, indicating a failure has happened in the callback function.]
[Time: 2006/01/10 15:23:03.998] [Mesg: :sending the bomo -- CxCommon.Messaging.BusObjMsgObject@65eebc96 to the replyToQueue -- queue://WBIDEV/FRC.PO_REPLY]


Any help would be most appreciated.
Back to top
View user's profile Send private message
kirankinnu
PostPosted: Thu Oct 11, 2007 7:07 am    Post subject: Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

Did you happen to resolve this issue. I would also like to see all the Errors, Warnings and Success messages in the return structure. But when an error occurs, I am just seeing the errors in the RFH2 and I am loosing the W, S, And I messages.

I would appreciate any help.

Thank You,
Kiran
Back to top
View user's profile Send private message
kirankinnu
PostPosted: Tue Oct 16, 2007 5:26 am    Post subject: SAP return structure - solved Reply with quote

Centurion

Joined: 12 Jun 2004
Posts: 128
Location: Chicago, IL

I had to set the IgnoreBapiReturn property to TRUE in the config file for the adapter to get the errors, warnings and Information in the return structure. I know I played with this propery before, but I might have overlooked something.

Thank You,
Kiran
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 Interchange Server + Adapters » Error Return mySAP
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.