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 Discussion » Websphere Adapter for SAP - IDOC number response

Post new topic  Reply to topic
 Websphere Adapter for SAP - IDOC number response « View previous topic :: View next topic » 
Author Message
anvanzyl
PostPosted: Tue Feb 21, 2006 8:57 pm    Post subject: Websphere Adapter for SAP - IDOC number response Reply with quote

Novice

Joined: 03 Jan 2005
Posts: 19
Location: Melbourne, Australia

We are creating IDOCs using the Websphere adapter for SAP. We leave the IDOC number empty and SAP generates an IDOC number automatically. However, the response message is the same as what was sent (i.e. empty IDOC number). The newly generated IDOC number is not returned. The status update in RFH header works as configured.
Is there any way I can configure the adapter to return the IDOC number in the response message?
_________________
Regards

Andre
IBM Certified System Administrator -- WMQ V5.3
IBM Certified Solution Designer -- WBIMB V5
Back to top
View user's profile Send private message
anvanzyl
PostPosted: Wed Feb 22, 2006 4:42 pm    Post subject: Reply with quote

Novice

Joined: 03 Jan 2005
Posts: 19
Location: Melbourne, Australia

There does not seem to be any adapter functionality to do this. The only options are: 1) Use external IDOC numbering where you could assign IDOC numbers in the Broker message flow before sending to SAP; 2) Retreive the IDOC numbers manually from SAP - there are a few simple transactions for searching for IDOC data in SAP; 3) Do some custom coding in SAP to trigger a return of newly created IDOC numbers.
_________________
Regards

Andre
IBM Certified System Administrator -- WMQ V5.3
IBM Certified Solution Designer -- WBIMB V5
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Feb 22, 2006 7:18 pm    Post subject: Reply with quote

Grand High Poobah

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

I thought the synchronous RFC for ALE Idocs did return the IDOC #?

Maybe not then...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
anvanzyl
PostPosted: Wed Feb 22, 2006 9:31 pm    Post subject: Reply with quote

Novice

Joined: 03 Jan 2005
Posts: 19
Location: Melbourne, Australia

You can't get any information back to the broker with inbound IDOC transfers to SAP (other than the status update which is returned in the RFH header)... However, I suppose you can check the RFC trace file for the IDOC number also.
_________________
Regards

Andre
IBM Certified System Administrator -- WMQ V5.3
IBM Certified Solution Designer -- WBIMB V5
Back to top
View user's profile Send private message
jlalbor
PostPosted: Tue May 30, 2006 11:15 am    Post subject: RFH Header Reply with quote

Apprentice

Joined: 18 Feb 2003
Posts: 38

Hi, we are also creating IDOCs using the Websphere adapter for SAP. We can execute the idoc in SAP, but the RFH Header in the response message we receive has always a Status=0 and Description in blank, no matter if the IDOC executed correctly or not in SAP. We can see the result of the IDOC execution using the we02 SAP transaction, either if it executed correctly or with errors. We need to recieve the result status of the IDOC, but as i said, the RFH header always has the same values. Is there something else we need to configure?

This is my first time using IDOCs with the SAP Adapter, but I have executed RFC functions in SAP and i always have a response message with RFH header indication in the Status and Description the error within SAP during the execution of the funtion, dont know why is not working with IDOCs

Hope you can help me.

Thanks.
_________________
Ing. José Luis Albor García
IBM Certified System Administrator – WebSphere MQ V6.0
IBM Certified Solution Designer – WebSphere Message Broker V6.0
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue May 30, 2006 3:13 pm    Post subject: Re: RFH Header Reply with quote

Grand High Poobah

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

jlalbor wrote:
Hi, we are also creating IDOCs using the Websphere adapter for SAP. We can execute the idoc in SAP, but the RFH Header in the response message we receive has always a Status=0 and Description in blank, no matter if the IDOC executed correctly or not in SAP. We can see the result of the IDOC execution using the we02 SAP transaction, either if it executed correctly or with errors. We need to recieve the result status of the IDOC, but as i said, the RFH header always has the same values. Is there something else we need to configure?

This is my first time using IDOCs with the SAP Adapter, but I have executed RFC functions in SAP and i always have a response message with RFH header indication in the Status and Description the error within SAP during the execution of the funtion, dont know why is not working with IDOCs

Hope you can help me.

Thanks.


You have to remember that you have 2 funtions with IDOCS a synchronous one and an asynchronous one. As well you need to enable the status IDOC. So once you have the IDOC # when you get the status idoc you should receive the idoc the status level and some error info.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jlalbor
PostPosted: Tue May 30, 2006 3:55 pm    Post subject: Reply with quote

Apprentice

Joined: 18 Feb 2003
Posts: 38

Hi, thanks for the reply,

In the Business Object i'm sending to the SAP adapter is a section named control record. There is a property named Name_of_table_structure in this control record and i'm setting this property to EDI_DC40. According to the sap adapter manual this value is for idoc_inbound_asynchronous function module. I have not found another value to set it in a synchronous way. Should i specified a different value for this Name_of_table_structure property?

How should i enabled the status IDOC?, is this something that must be done on SAP?, or is a property i must set in the business object that i send to the sap adapter?.

Thank for your help.
_________________
Ing. José Luis Albor García
IBM Certified System Administrator – WebSphere MQ V6.0
IBM Certified Solution Designer – WebSphere Message Broker V6.0
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed May 31, 2006 3:00 pm    Post subject: Reply with quote

Grand High Poobah

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

SAP has essentially 2 RFC functions for accepting IDOCS.
One is ASYNCHRONOUS i.e. (fire and forget) and one is SYNCHRONOUS.

The IDOC is an Intermediate DOCument. Now each IDOC you send has a specific name and type. There is as well a "feedback" IDOC which is used to notify you of the status of the IDOC. You need to have that ALE communication enabled (SAP setup) so that you can receive this "feedback" IDOC.

The make up of any IDOC is 1 EDI_DC40 and x EDI_DD40.

Enjoy

My point here is that you should probably talk with your SAP folks about error handling and error resolution of the IDOCs across application borders. YOU CANNOT HAVE FULL CONTROL OUTSIDE OF SAP OF THE IDOC ERROR RESOLUTION PROCESS !!
_________________
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 Discussion » Websphere Adapter for SAP - IDOC number response
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.