cancel
Showing results for 
Search instead for 
Did you mean: 

Composite Operation Problem (SUP 2.2)

Former Member
0 Kudos

Hi,

I'm trying to implement Compositie operations, a new feature of SUP 2.2. Basically it allows you to save an entire graph of objects with a single operation on the root object. This allows you for example to save an order header and items with a single JCO call or web service call.

We run into problems using this functionality. The biggest difference between the examples (see links below) and our situation is that we have composite 1-to-1 relations instead of composite 1-to-many relations. (We are not using SAP CRM btw, but another CRM vendor)

What goes right:

- Modeling a compositie relation on our 1-to-1 MBOs works just fine.

- iOS code for this model is generated, on first inspection it looks fine.

What goes wrong:

- During deployment, we get the following error message:

org.eclipse.core.runtime.CoreException: Deploy error:

code_generation_failed:

          ----Code generation failed:

Compile: C:\Sybase\UnwiredPlatform\JDK1.6.0_31-x64\bin\javac.exe

Output:

C:\Sybase\UnwiredPlatform\Servers\UnwiredServer\temp\dsgaps23\207\genfiles\java\src\IFS_CRM\server\SOME_MBO.java:1182: cannot find symbol

symbol  : method iterator()

location: class CRM.server.SOME_CHILDMBO

            java.util.Iterator<CRM.server.SOME_CHILDMBO> it = __SOME_CHILDMBO.iterator();

It seems that the server side code that has been generated expects a 1-to-many relationships as it calls an iterator object. This would make sense in a 1-to-many relatinonship, where a list would be used for the relation. However, in a 1-to-1 relationship the relation is not using a list but rather a straight MBO, which does not have an iterator. So it seems that the SUP does not generate correct server side java code.

Any ideas? To me it seems there is no real logical reason why this should only work with 1-to-many relationships...

General info on Composite operations:

http://infocenter.sybase.com/help/index.jsp?topic=/com.sybase.infocenter.dc01206.0200/doc/html/mqu12...

Composite Operation and Input Mapping Terminology and Configuration Guidelines:

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01206.0222/doc/html/fre1340725848091...

Composite Operation Requirements and Limitations:

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01283.0222/doc/html/fre1336064953054...

Composite Operation Data flow:

http://infocenter.sybase.com/help/topic/com.sybase.infocenter.dc01781.0222/doc/html/fre1336070491981...

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

We've created an OSS Message and SAP has acknowledged this behavior as a bug. It's fixed for us in a custom patch, but I assume the fix will also make in some release of SUP 2.2 or higher

Answers (0)