cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Task within ABSL

Former Member
0 Kudos

Hi everyone

We needed to setup a WebService that updates the status of a PurchaseRequest, but when we asked the support to release the Business Object in PSM they answered that this is not possible.

We devised, as an alternative, to create a task when the webservice is called, so that a user will manually update the status of the PurchaseRequest when needed.

Is there a "Task" business object, or an ABSL command to create one?

Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello, the task business object is

ActivityTask but in 1405 it will be replaced with Activity BO

to create an instance:

var taskdata:elementsof(ActivityTask);

taskdata.<var> = <value>;

...

...

var instance = ActivityTask.Create(taskdata);

Former Member
0 Kudos

Hi Alessandro!

What do you think would be better: to create the ActivityTask from an action (called by a webservice) or to create a webservice for the ActivityTask BO which creates the task when called?

Former Member
0 Kudos

The second approach is natively supported so for me is better.

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi llaria,

Now ActivityTask had been moved to Activity BO in 1402. So check this before you proceed. Our test tenant is already upgraded to 1402.

Check 's blog on the same:

Regards

Vinod

vinodkumar_kommineni
Active Contributor
0 Kudos

Its 1402 right ??

Former Member
0 Kudos

Hi Vinod

We are on 1311. Will it be a problem when we update to the new release?

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi llaria,

please check this document( page 5) with the process to change from the old BO to new BO.

http://help.sap.com/saphelp_studio_1402/WhatNew_studio_1402.pdf

This should be done once your system is upgraded to 1402 and before SAP upgrades it again to 1405 as you will not be able to access the Old BO's after 1405.

As our system is not yet live we could change it easily. But SAP promises to migrate the data as well. So you need not worry from your end if you follow the process.

Regards

Vinod

Former Member
0 Kudos

I'm creating the WebService on the ActivityTask BO. From my understanding, the mandatory data I have to supply when consuming the webservice is going to be:

  • Processor Party
  • Responsible Employee
  • Description

If I supply the PartyID for processor and employee, will the WebService associate them automatically with the correspondent Party BO?

Former Member
0 Kudos

HI Ilaria, in this document suggested by Vinod you can also find all the requirements data to create an activity instance.

Former Member
0 Kudos

Hi Alessandro

We are not upgrading yet, but I will keep the document at hand for when the time comes. Can you please answer my question above?

"Will the WebService associate them (ResponsibleParty and ProcessorParty) automatically with the correspondent Party BO?"

Thanks

Former Member
0 Kudos

Do you mean that the webservice will automatically add them to the Party node inside the ActivityTask BO, with the correct role?

  • Processor Party
  • Responsible Employee

in the BO are associations that points to the Party node of the BO. So if you fill them you will see the data in the Party node as well.

Former Member
0 Kudos

Let me explain this better:

I have a two users, represented by the party objects with ID 001 and ID 002. These will be my Processor and Responsible Employee.

I have a WebService with the create operation, which takes in input a party ID for the processor, a party ID for the Responsible Employee and a Description.

If I supply to the webservice just these three values, will it automatically find the Party BOs with those IDs and associate to the newly created ActivityTask?

Former Member
0 Kudos

Hi Ilaria,

is this a standard webservice or you created this based on some BO?

Former Member
0 Kudos

I have created it based on the ActivityTask BO

Former Member
0 Kudos

Yes it should be. But I am not sure 100% you have to try or somebody else that tried it can give a better feedback.

vinodkumar_kommineni
Active Contributor
0 Kudos

Hi llaria,

As per this 2nd point below in Page 6 of the same doc, probably what you expect might not happen from 1402.

Root node association ActivityParty: When you create a root node for the Activity business object, an initial

activity party (account) instance is not created automatically anymore. To provide the activity party, define

a Create instead of an Update action.

This is my understanding again!. It can only be confirmed after trying it out in system.

Regards

Vinod

Answers (0)