|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB 9 BAPI call via SAPRequest -node problem SOLVED |
« View previous topic :: View next topic » |
Author |
Message
|
marko.pitkanen |
Posted: Mon Jan 25, 2016 6:00 am Post subject: IIB 9 BAPI call via SAPRequest -node problem SOLVED |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
I wonder do you happen to know why SAPRequest node returns execution to the flow through Failure terminal, populates ExceptionList tree and do not give response message/data-object from SAP/BAPI back to the flow?
SAP says BAPI populates return message sub structure fine when they try it internally. From RFC trace we can see that adapter/jco receives the sub structure that contains the error message
Code: |
*> RfcReceive ...
table[4].name = RETURN
table[4].rows = 3
table[4].length = 1200
|
From ExceptionList we can see that what was the exception
Code: |
(0x03000000:NameValue):Text = 'Caught Throwable' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'SAP Request' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'ARBA_BABI_INVOICE_CREATE.outadapter' (CHARACTER)
)
(0x01000000:Name ):RecoverableException = (
(0x03000000:NameValue):File = 'MbErrorHandler.java' (CHARACTER)
(0x03000000:NameValue):Line = 121 (INTEGER)
(0x03000000:NameValue):Function = 'execute' (CHARACTER)
(0x03000000:NameValue):Type = '' (CHARACTER)
(0x03000000:NameValue):Name = '' (CHARACTER)
(0x03000000:NameValue):Label = '' (CHARACTER)
(0x03000000:NameValue):Catalog = 'BIPmsgs' (CHARACTER)
(0x03000000:NameValue):Severity = 3 (INTEGER)
(0x03000000:NameValue):Number = 3514 (INTEGER)
(0x03000000:NameValue):Text = 'throw a RecordNotFoundException' (CHARACTER)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'InvalidRequestFault' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '104' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = '' (CHARACTER)
)
(0x01000000:Name ):Insert = (
(0x03000000:NameValue):Type = 5 (INTEGER)
(0x03000000:NameValue):Text = 'BAPI Interface failed to process the request.Error thrown by SAP: Message = Vendor xxx is not defined in company code ZZZ, error code:
104' (CHARACTER)
|
but the expected behavior is that no exception rised and defined response message with return sub structure
should be returned via Out -terminal.
--
Marko
Last edited by marko.pitkanen on Fri Jan 29, 2016 2:56 am; edited 1 time in total |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Jan 25, 2016 7:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
The message tells me that this particular BAPI call would also fail internally (SAP).
The SAP environment is not set up to handle the data for this particular call:
Quote: |
Vendor xxx is not defined in company code ZZZ |
So you are trying to create an invoice from Vendor xxx in company code ZZZ.
However your supply chain in company code ZZZ does not know anything about vendor xxx (missing creditor master, or relevant part of it...)
Go Back to your SAP team. This is an SAP problem not a broker problem.
(If vendor xxx is known to another company code, maybe they need to set it up as an inter-company invoice?
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Jan 29, 2016 2:53 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
Problem / phenomenon was solved with IgnoreBAPIReturn property when we (re)creted the adapter with the wizard.
Marko |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jan 29, 2016 5:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
marko.pitkanen wrote: |
Hi,
Problem / phenomenon was solved with IgnoreBAPIReturn property when we (re)creted the adapter with the wizard.
Marko |
I don't think this is what you'd really want to do?
Does the sender need to know whether the BAPI call was successful?
This goes to the data being passed. Typical GIGO system...
Changing that parameter will force you to do your own error handling when the BAPI was not successful...
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|