BizTalk Server General - Problems with Microsoft SAP adapter for BizTalk 2004

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > May 2004 > Problems with Microsoft SAP adapter for BizTalk 2004





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Problems with Microsoft SAP adapter for BizTalk 2004
Peter Timkó

2004-05-18, 10:04 am

Dear All!

We are evaluating Microsoft's SAP adapter for Biztalk 2004 and we have some
problem with it:

We make a simple orchestration which takes the following simple message and
calls the BAPI_HU_CREATE function in SAP:
<ns0:BAPI_HU_CREATE_Request
xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003">
<HEADERPROPOSAL>
<HU_STATUS_INIT>C</HU_STATUS_INIT>
<PACK_MAT>000000000000000032</PACK_MAT>
<TOTAL_WGHT>1,000</TOTAL_WGHT>
<UNIT_OF_WT_ISO>KGM</UNIT_OF_WT_ISO>
</HEADERPROPOSAL>
</ns0:BAPI_HU_CREATE_Request>
If we run the orchestration with this message the adapter writes an entry to
the application log with the following message:
"Index was out of range. Must be non-negative and less than the size of the
collection. Parameter name: index"
And when it reaches the maximum retry count throws an XLANG exception.
But if we includes all the other fields of the HEADERPROPOSAL structure with
no data the adapter takes the document and passes it to SAP.
Does anybody have any idea why the adapter behave like this? Or any idea how
can i create automatically all the other unused elements in the
HEADERPROPOSAL structure without writing a pipeline component to do this?
I've read the following note in the BizTalk manual and i think it is a
solution to my problem but i wasn't able to get it to work:
SDK\Developing Pipeline\Pipeline Components\XML Assembler Pipeline Component
<...>
Note The XML Assembler pipeline component does not populate missing
attribute fields, but does populate empty element fields when the fields are
optional but do not have default or fixed values.
<...>

We using a beta SAP adapter which version number is 2.0.141.0

Thans for your help:

Peter


David Downing [MSFT]

2004-05-18, 1:05 pm

Can you attach your schema and instance data?
--
Dave

This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Timkó" <timko.peter@fmc.hu> wrote in message
news:u86JnnMPEHA.2876@TK2MSFTNGP09.phx.gbl...
> Dear All!
>
> We are evaluating Microsoft's SAP adapter for Biztalk 2004 and we have

some
> problem with it:
>
> We make a simple orchestration which takes the following simple message

and
> calls the BAPI_HU_CREATE function in SAP:
> <ns0:BAPI_HU_CREATE_Request
> xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003">
> <HEADERPROPOSAL>
> <HU_STATUS_INIT>C</HU_STATUS_INIT>
> <PACK_MAT>000000000000000032</PACK_MAT>
> <TOTAL_WGHT>1,000</TOTAL_WGHT>
> <UNIT_OF_WT_ISO>KGM</UNIT_OF_WT_ISO>
> </HEADERPROPOSAL>
> </ns0:BAPI_HU_CREATE_Request>
> If we run the orchestration with this message the adapter writes an entry

to
> the application log with the following message:
> "Index was out of range. Must be non-negative and less than the size of

the
> collection. Parameter name: index"
> And when it reaches the maximum retry count throws an XLANG exception.
> But if we includes all the other fields of the HEADERPROPOSAL structure

with
> no data the adapter takes the document and passes it to SAP.
> Does anybody have any idea why the adapter behave like this? Or any idea

how
> can i create automatically all the other unused elements in the
> HEADERPROPOSAL structure without writing a pipeline component to do this?
> I've read the following note in the BizTalk manual and i think it is a
> solution to my problem but i wasn't able to get it to work:
> SDK\Developing Pipeline\Pipeline Components\XML Assembler Pipeline

Component
> <...>
> Note The XML Assembler pipeline component does not populate missing
> attribute fields, but does populate empty element fields when the fields

are
> optional but do not have default or fixed values.
> <...>
>
> We using a beta SAP adapter which version number is 2.0.141.0
>
> Thans for your help:
>
> Peter
>
>



David Downing [MSFT]

2004-05-18, 1:05 pm

Peter,

Can you include a description of your scenario? Ideally, we'd like to set
it up here to reproduce your problem.

Thank you,
--
Dave

This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Timkó" <timko.peter@fmc.hu> wrote in message
news:u86JnnMPEHA.2876@TK2MSFTNGP09.phx.gbl...
> Dear All!
>
> We are evaluating Microsoft's SAP adapter for Biztalk 2004 and we have

some
> problem with it:
>
> We make a simple orchestration which takes the following simple message

and
> calls the BAPI_HU_CREATE function in SAP:
> <ns0:BAPI_HU_CREATE_Request
> xmlns:ns0="http://schemas.microsoft.com/BizTalk/2003">
> <HEADERPROPOSAL>
> <HU_STATUS_INIT>C</HU_STATUS_INIT>
> <PACK_MAT>000000000000000032</PACK_MAT>
> <TOTAL_WGHT>1,000</TOTAL_WGHT>
> <UNIT_OF_WT_ISO>KGM</UNIT_OF_WT_ISO>
> </HEADERPROPOSAL>
> </ns0:BAPI_HU_CREATE_Request>
> If we run the orchestration with this message the adapter writes an entry

to
> the application log with the following message:
> "Index was out of range. Must be non-negative and less than the size of

the
> collection. Parameter name: index"
> And when it reaches the maximum retry count throws an XLANG exception.
> But if we includes all the other fields of the HEADERPROPOSAL structure

with
> no data the adapter takes the document and passes it to SAP.
> Does anybody have any idea why the adapter behave like this? Or any idea

how
> can i create automatically all the other unused elements in the
> HEADERPROPOSAL structure without writing a pipeline component to do this?
> I've read the following note in the BizTalk manual and i think it is a
> solution to my problem but i wasn't able to get it to work:
> SDK\Developing Pipeline\Pipeline Components\XML Assembler Pipeline

Component
> <...>
> Note The XML Assembler pipeline component does not populate missing
> attribute fields, but does populate empty element fields when the fields

are
> optional but do not have default or fixed values.
> <...>
>
> We using a beta SAP adapter which version number is 2.0.141.0
>
> Thans for your help:
>
> Peter
>
>



David Downing [MSFT]

2004-05-19, 5:49 pm

Peter,

I'm not able to install the software needed to uncompress your files, can
you compress the file using winzip and repost?

Thank you,
--
Dave

This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Timkó" <timko.peter@fmc.hu> wrote in message
news:#C9$e7XPEHA.164@TK2MSFTNGP12.phx.gbl...
> Dear Dave!
>
> I've attached the schema, and the XSD. The orchestration is very simple,

it
> takes the message and send it to SAP without any modification.
> I've generated the schema from SAP with the adapter and i didn't do any
> modification on the schema.
>
> I've also sent directly to you a complete biztalk project with the

scenario.
>
> Thanks for your help!
>
> Peter
>
> "David Downing [MSFT]" <ddowning@online.microsoft.com> wrote in message
> news:eIUTvlOPEHA.2636@TK2MSFTNGP10.phx.gbl...
set[vbcol=seagreen]
> rights.
message[vbcol=seagreen]
> entry
of[vbcol=seagreen]
structure[vbcol=seagreen]
idea[vbcol=seagreen]
> this?
fields[vbcol=seagreen]
>
>
>
>



Peter Timkó

2004-05-24, 7:35 am

Dear David,

Any luck with this problem?

Regard

Peter

"David Downing [MSFT]" <ddowning@online.microsoft.com> wrote in message
news:u6Z2dcbPEHA.164@TK2MSFTNGP12.phx.gbl...
> Peter,
>
> I'm not able to install the software needed to uncompress your files, can
> you compress the file using winzip and repost?
>
> Thank you,
> --
> Dave
>
> This posting is provided "AS IS" with no warranties, and confers no

rights.
>
> "Peter Timkó" <timko.peter@fmc.hu> wrote in message
> news:#C9$e7XPEHA.164@TK2MSFTNGP12.phx.gbl...
> it
> scenario.
> set
have[vbcol=seagreen]
> message
size[vbcol=seagreen]
> of
exception.[vbcol=seagreen]
> structure
> idea
a[vbcol=seagreen]
> fields
>
>



David Downing [MSFT]

2004-05-30, 10:46 am

Peter,

Sorry it's taken me so long to respond... I've been timesliced over the past
week or so and haven't been able to look into this. I did want to respond
to one of your questions below regarding the population of missing fields.
You should be able to use a map to create the missing elements.

If you are running the Beta version of the adapter, it's likely that your
issues have already been resolved. You might want to post this to the
betanews.microsoft.com / microsoft.beta.frankfurt.general newsgroup as well.

--
Dave

This posting is provided "AS IS" with no warranties, and confers no rights.

"Peter Timkó" <ptimko@online.com> wrote in message
news:eW7sQXWQEHA.1160@TK2MSFTNGP09.phx.gbl...
> Dear David,
>
> Any luck with this problem?
>
> Regard
>
> Peter
>
> "David Downing [MSFT]" <ddowning@online.microsoft.com> wrote in message
> news:u6Z2dcbPEHA.164@TK2MSFTNGP12.phx.gbl...
can[vbcol=seagreen]
> rights.
simple,[vbcol=seagreen]
any[vbcol=seagreen]
message[vbcol=seagreen]
to[vbcol=seagreen]
> have
an[vbcol=seagreen]
> size
> exception.
any[vbcol=seagreen]
do[vbcol=seagreen]
is[vbcol=seagreen]
> a
missing[vbcol=seagreen]
>
>



Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com