Blank row in SO-Method list when no criteria fit

  • 27 April 2015
  • 3 replies
  • 0 views

Badge +4

Hello everyone,

I've got a problem with a SO-list-method:

 

First of all the method is connected to a Service-Object-Method which connects to our SAP. I've got several Parameters which I have to pass to the method. If I pass valid data to the parameters I get exactly 1 record back which isn't corrcect. If I load the complete xml into a String I can see that there are more records. 

Next problem: If I pass invalid data to the parameters I still get 1 record back which isn't filled but I want that the method won't give any data back. 

 

I tested the method in SAP and in the K2 SAP-Test-Cockpit and everything is working fine. I also think that my mapping in the Service Object ist correct. So there must be an error in the SO but I can't figure out what is wrong.

 

I attached some screenshots. 


17038iA585882C97BD8B28.jpg
14010iE4D9F4A1ACDBB83D.jpg
13600i18743DD09A3DB502.jpg

3 replies

Badge +10

Can you please post the code where you are assigning the service object propertes the values.

Badge +4

Do you talk about the typemapping? It is attached as a screenshot. 

Badge +10

Ok, I thought you had written a custom service object. So, in the smartobject tester tool which service insantce type are you under.

Reply