cancel
Showing results for 
Search instead for 
Did you mean: 

BOR Objects as Class Attributes

abdulbasit
Active Contributor
0 Kudos

Hi,

I'm building a class to use in the workflow tasks. There are some BOR objects that I'll also use in the Workflow and I decided to put these objects as an attribute of the class and instantiated them according to the documentation below :

http://wiki.sdn.sap.com/wiki/display/ABAP/Referencing+BOR+objects+in+ABAP+OO+classes

Everything is ok and I can see BOR objects instantiated in workflow. I can also bind BOR objects with containter objects. The problem starts when I try to bind attributes of the BOR objects to the container element. I get an error :

"XXXXXX is not a component of data object 'YYYYY'.

XXXXX: Key attribute of the BOR Object YYYYY

(See the attached figure)

I can reference BOR attributes to the local contanier objects and use these objects in the workflow but I've many workflows and this will increase the complications of the design.  I'm expecting this is possible according to the following statement on wiki:

Note: This initial value is critical to using the BOR object in workflows and tasks. Without it, workflows and tasks will not be able to guarantee what BOR type will be available at runtime, and will therefore only be able to access the generic attributes/methods of the root BOR object OBJECT, instead of the attributes/methods of the chosen BOR object type.

Does anyone tried similar operation ? Any idea ?

Regards,

Abdulbasit.

Accepted Solutions (1)

Accepted Solutions (1)

anjan_paul
Active Contributor

Hi,

In class what attributes type you are using. To declare BOR object in class attributes you should take it type as a SWFBORPTAB. Then you can use multiline BOR object as a attributes in CLASS.

abdulbasit
Active Contributor
0 Kudos

Hi,

I'm using the type SIBFLPOR as described in the wiki page I mentioned. I'll try with type SWFBORPTAB to see if it works.

Thanks for the quick answer.

Abdulbasit.

anjan_paul
Active Contributor
0 Kudos

Hi,

  Remeber it is multiline attributes.

abdulbasit
Active Contributor
0 Kudos

It worked.

Thanks again. You made my day!

abdulbasit
Active Contributor
0 Kudos

Yeah I saw that and used the line type instead of table type.

anjan_paul
Active Contributor
0 Kudos

Not mention

Answers (0)