cancel
Showing results for 
Search instead for 
Did you mean: 

XML Structure

Former Member
0 Kudos

Hi Abhradeep,

Can you check below attchment for XML structure

Accepted Solutions (1)

Accepted Solutions (1)

former_member192343
Active Contributor
0 Kudos

HI

What kind of check do you need? what for?

your xml is not coorect, it includes "-" signs before <row>, <itemDetails> tags but it shouldn't has it

It has "-" signs because you just copied it from browser view

Former Member
0 Kudos

Hi Mikhail,

I tried removing the '-' also again i am getting same error.

Please find the attachment for XML structure removing '-'.

former_member192343
Active Contributor
0 Kudos

What error you have? You didn't write about it.

former_member192343
Active Contributor
0 Kudos

remove also last line  </n0:MaterialStockUpdate_ECC_Multi_AllPlants_N&rt;

Former Member
0 Kudos

Hi,

I removed 2nd and last line also again i am getting below error.

I attached removed last line of XML.

Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=[sender compenent details name here]=;AN=[Interface Name];ANS=[Namespace name]; in the current context [Unknown].

former_member192343
Active Contributor
0 Kudos

Check you configuration now, or maybe you make some mistakes in interface names in test tool

Answers (1)

Answers (1)

former_member312864
Active Participant
0 Kudos


Hi,

Remove those "-" or you can right click on your payload and copy from view source or download the payload .

Regards,

Former Member
0 Kudos

Hi saroj,

Directly i can't remove '-' from payload it is allowing the copying of that XML only,no editing option is not there in payload.

I copied from payload and again i am pasting in

Runtime workbench->Component monitoring->Adapter engine->Test message.

I am giving the details here in interface,sender component,interface namespace,user,password and payload XML structure.

After i am clicking on "Send Message"

Error While Sending Message: Additional error text from response: com.sap.engine.interfaces.messaging.api.exception.ConfigException: ConfigException in XI protocol handler. Failed to determine a receiver agreement for the given message. Root cause: com.sap.aii.af.service.cpa.CPAObjectNotFoundException: Couldn't retrieve outbound binding for the given P/S/A values: FP=;TP=;FS=[sender compenent details name here];TS=;AN=[Interface name];ANS=[Namespace name]; in the current context [Unknown].

former_member192343
Active Contributor
0 Kudos

right click on payload, menu -> view source (view html source or source code) then it will be opened in notepad or some other text editor, copy xml from that text source and then paste in test

Former Member
0 Kudos

Hi Mikhail,

I am getting same error again.

I copied from payload->view source.

Please find below link.

former_member312864
Active Participant
0 Kudos

use atcched xml

Former Member
0 Kudos

Hi,

Everything is correct in configuration interface names.

I am testing In configuration there i am getting error "Operation Mapping" -> runtime error.

Runtime exception occurred during application mapping com/sap/xi/tf/_MaterialStockUpdate_Multi_AllPlant~; com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-fieldmapping /ns0:MaterialStockUpdate_HIS_Multi_AllPla~
former_member312864
Active Participant
0 Kudos

share the mapping screenshot, something wrong in mapping

Former Member
0 Kudos

Hi.

Mapping screen shot.

1) Screen shot is mapping with primary key field.

2)Using count function:

we added here newly count function and count variable and mapping with statamentname2.

former_member192343
Active Contributor
0 Kudos

Did you test mapping in mapping editor?

Former Member
0 Kudos

Hi,

1)Testing in manual executed succesfully.

2) I am giving wrong input count value 2 that y it is showing error.

I am giving 1 line item values only i am entering as "2 count" that y here it is showing error.

former_member192343
Active Contributor
0 Kudos

Try to use EqualsS function instead of Equals.

The eqauls works only with boolean values, but you use count numbers.

Former Member
0 Kudos

Hi ,

I added function "equals s"

I am giving count value is 2 i am giving 1 line item only it should be show runtime error,but it is not showing error,showing executed succesfully.

I added function "equals"

I am giving count value is 2 it showing compulsory error.

Not working using function "equals s".

working fine with "equals".this function is working with correct way.

former_member192343
Active Contributor
0 Kudos

the error with count 2 and equals function is not that error that you need, it is working wrong, mapping is faield.

Former Member
0 Kudos

Hi Mikhail,

Yes if i give the count value is 2 using equals function it should be shown the runtime error.

this is boolean values.

"equals S" it is not working fine.


former_member192343
Active Contributor
0 Kudos

You will not get application error in mapping test. Try to use equalsS an test it in runtime workbanch

2 is not boolean value, boolean values are 1 or 0

former_member192343
Active Contributor
0 Kudos

the error directly says to you: "...Cannot cast '2' to boolean ... method equalsBoolean[1,2,..."

Former Member
0 Kudos

Hi Mikahail,

Sorry for late reply.

I know 2 is not boolean value,boolean values are 1 or 0.

If i give using equals function count is 2 then it says "cannot cast 2 to boolean method".

count value is 1 then its true and executing succesfully.

former_member192343
Active Contributor
0 Kudos

Your example test message has <T_Count>4</T_Count>

You will always get mapping error in this case.

former_member192343
Active Contributor
0 Kudos

one more notice: in attached xml file 6244920_3612HTML000006.xml you have space after 4 sign in <T_Count>4 </T_Count>

it can also cause to error

Former Member
0 Kudos

Hi,

No space everything is ok T_Count value.


former_member192343
Active Contributor
0 Kudos
Former Member
0 Kudos
<MKPF_MBLNR>145201400035</MKPF_MBLNR>
<MKPF_MJAHR>2014</MKPF_MJAHR>
<MKPF_BLDAT>2014-06-24</MKPF_BLDAT>
<MKPF_BUDAT>2014-06-24</MKPF_BUDAT>
<MKPF_XBLNR>INV-123</MKPF_XBLNR>
<MSEG_WERKS>MHB1</MSEG_WERKS>
<MSEG_LGORT>G001</MSEG_LGORT>
<MSEG_LIFNR>10000029</MSEG_LIFNR>
<MSEG_EBELN>4600000121</MSEG_EBELN>
<T_Count>4</T_Count>
former_member192343
Active Contributor
0 Kudos

I'm talking about file attached  by you. It's name 6244920_3612HTML000006.xml

I just point you to mind it

Former Member
0 Kudos

Hi,

please resolve this issue.

why its happening for these type of errors .

Former Member
0 Kudos

Go to trace and see for which exact field the mapping is failing. copy paste that error from the trace here.

Former Member
0 Kudos

hi,

check attachment for trace.

former_member192343
Active Contributor
0 Kudos

I told you yet yerstaday....

your trace says "Cannot cast '3' to boolean] in class com.sap.aii.mappingtool.flib7.Bool method equalsBoolean[3, 4 , com.sap.aii.mappingtool.tf7.rt.Context@726c9e1e]"

The problem is in equals function

Former Member
0 Kudos

Hi Sagarika

As Mikhail also mentioned. Your trace clearly mentions that "Cannot cast 3 to boolean"

Your logic should ideally work when you used equalS(text) or equalsA(Arthematic) functions.

if none is working(worst case) then u can always write small udf

PFB the screenshots

Regards

Osman

Former Member
0 Kudos

Hi osman,

Sorry for late reply.

Namespace ->new->mapping objects-> function libarary->create.

In this way like i have to create?

Can you please explain me briefly.

Canyou send me the complete code of using "local equals UDF"

My scenario is ECC  to HIS.


Former Member
0 Kudos

Hi osman,

see above screen shot for "UDF".

I created example for UDF.

After that what i have to do.

In mapping which function i have to use : " equalsA,equals,equalsS".

Now i am using in mapping "equalsA".

Former Member
0 Kudos

Hi,

Can you please suggest me how to proceed.

Reply me its very urgent.

Former Member
0 Kudos

HI,

Namespace ->new->mapping objects-> function libarary->create.

In this way like i have to create?

Can you please explain me briefly.

Canyou send me the complete code of using "local equals UDF"

My scenario is ECC  to HIS.

Former Member
0 Kudos

see above screen shot for "UDF".

I created example for UDF.

After that what i have to do.

In mapping which function i have to use : " equalsA,equals,equalsS".

Now i am using in mapping "equalsA".

Former Member
0 Kudos

I created UDF after that how to proceed.

You sent screenshot for UDF in that  functions->userdefined

where i have to see in my message mapping.

please reply me.

Former Member
0 Kudos

Once you create the UDF, you will be able to see it under "User Defined" Category.

You can replace your equalsA with the UDF.

Since your are using the UDF not, the standard equalsA will not be required.

Regards

Osman

Former Member
0 Kudos

Hi,

I done the mapping using UDF.

After that also i am getting same error.

Below attached for "Trace".

Please check and let me know.

former_member192343
Active Contributor
0 Kudos

Too few values in the first queue in function useOneAsMany. It must have the same number of contexts as the second queue

Former Member
0 Kudos

Here i am using "useoneasmany" function.

Please suggest me after that what i have to do.

Former Member
0 Kudos

Hi team,

I done the mapping both statementname1 & statementname2.

Now "sxmb_moni" showing processed success.

In payload 7 line item details are there,but in my "sql query analyser" first line item only it is showing the details,6 line item details are not showing my "sql query analyser".

How i can check please tell me.

Former Member
0 Kudos

Hi,

Total line items are not getting updated to the table in "SQL" .

only 1 line item are getting updated,after that where i have to check rest are all the line items.

Please help me this issue is very urgent.