cancel
Showing results for 
Search instead for 
Did you mean: 

Issue with SUS2MMOrderResponse mapping udf

former_member255627
Participant
0 Kudos

Hi,

I have copied a udf for finding the receiver system from another SWCV. I executed after making required changes in SUS2MMOrderResponse mapping, then got the following error:

Please help me in avoiding these errors.

Appreciate quick responses.

Thanks,

Pushpa

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Pushpa,

If you no longer use the testText UDF try deleting that UDF to see if it works.

Answers (2)

Answers (2)

former_member255627
Participant
0 Kudos

Hi,

Thanks to everyone. As textTest udf was not used anywhere and I just deleted it. Now its working fine.

Regards,

Pushpa

former_member182412
Active Contributor
0 Kudos

Hi Pushpa,

Your current UDF execution type is single values you should change it to all values of a context or all values of queue as per original UDF.

Regards,

Praveen.

former_member255627
Participant
0 Kudos

Hi Praveen,

Thanks for quick reply. As per original udf, execution type is single values. I can not change this one as the original udf is working fine in another SWCV.

Thanks,

Pushpa

former_member182412
Active Contributor
0 Kudos

Hi Pushpa,

It is not possible because when the execution type is single values then the parameter is String and the UDF does not contain ResultList, it only returns String.

When the execution type is all values of context then parameter is string array and it contains ResultList object and you can write it to ResultList.

So your UDF contains string array and result list objects that is why i am saying your UDF should be all value of context or all values of queue.

Regards,

Praveen.

former_member186851
Active Contributor
0 Kudos

Hello Pushpa,

You cant the use UDF as Praveen mentioned.

What is your requirment?to get the Sender System?why don;t you try using Sender business system function available in the mapping.?

former_member255627
Participant
0 Kudos

Hi Raghuraman,

My requirement is to map RCVPRN and RCVPOR fields of IDOC .

below is the udf used for the same.

Thanks,

Pushpa

former_member186851
Active Contributor
0 Kudos

Hello Pushpa.

Since your IDOC will contain only one RCVPRN and RCVPOR,Change the execution type to single values.

because return statement is supported for singe values

For all values of queue/Context you need to use resultlist.add

former_member255627
Participant
0 Kudos

Hi Raghuram,

I am getting the same error even If I place single values as execution type.

Regards,

Pushpa

former_member182412
Active Contributor
0 Kudos

Hi Pushpa,

The error is with function name 'textTest' so you need check this function, this function execution type must be All Values Of Context or All Values of Queue.

Regards,

Praveen.

former_member186851
Active Contributor
0 Kudos

Please post your complete UDF Puspha to assist further

former_member255627
Participant
0 Kudos

Yes Praveen, thanks, the error shows in some other udf in the same mapping.

But after including this new udf getReceiverBS in the mapping, it is showing the error in textTest udf.

I did not understand why it is showing error in  textTest udf when I created new udf getReceiverBS.

Before creating new udf getReceiverBS, everything is fine with textTest udf.

any idea on this?

Regards,

Pushpa

former_member182412
Active Contributor
0 Kudos

Hi Pushpa,

It should not be a problem with other function when you add the new function, may be mistakenly you clicked on textTest function.

Do one thing change the version back to previous version where you did not add the new function and add the function again and see if it happens again.

Regards,

Praveen.

former_member186851
Active Contributor
0 Kudos

Hello Puspha,

In that case back to history and check by mistake any changes are done to the UDF.

former_member255627
Participant
0 Kudos

Hi Praveen,

I rejected my changes and checked the syntax, evrything is fine. Now I added new function,then again giving  same problem. I just deleted that textTest udf and executed with new udf, everything is fine, no errors.

@Raghuraman

There is no history of changes to this mapping.

Thanks,

Pushpa

former_member186851
Active Contributor
0 Kudos

Pushpa,

Can you post the UDF used in textTest?

former_member255627
Participant
0 Kudos

Raghuraman,

see below is the code in textTest udf:

Initially when i check syntax of this udf, no errors

After adding getReceiverBS, getting error message.