on 02-17-2014 11:46 AM
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.
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);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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:
If I supply the PartyID for processor and employee, will the WebService associate them automatically with the correspondent Party BO?
Do you mean that the webservice will automatically add them to the Party node inside the ActivityTask BO, with the correct role?
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.
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?
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
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.