cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement method in a BO

Former Member
0 Kudos

Hi

I have copied the business object(BUS2012) to a Z object. I have added a method to it and the method (when called from workflow task) is supposed to update the object attributes. First of all, is this possible? To call method on the BO to changes its attributes(these are the attributes that I added to the Z-BO).

I wrote code to change the attribs in the method of the BO, there is no error but when control returns from the method I do not see the attributes values set.

I am just doing: Object-attributeA = 'X' kind of assingment. Please help!

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi soumya

you have to do the necessary binding in order to see the reflected values or even you can write breakpoint in the method (i.e. in BO) to see its proper functioning or not.

Regards

vaibhav

SreekanthKrishn
Contributor
0 Kudos

Soumya,

This is possible.

You have to pass the attributes as import parameter into the method, change it, get the output parameters into the same workflow object field. Ofcourse, necessary binding has to be done from workflow to task.

Ex: SWC_GET_ELEMENT CONTAINER  'ATTR1'      L_ATTR1.

     <<<change the value of L_ATTR1.>>>

     SWC_SET_ELEMENT CONTAINER 'ATTR1'      L_ATTR1.

<Asking for points is against forum RoE>

Thanks,

Sreekanth

Message was edited by: Suhas Saha