on 10-09-2017 9:44 AM
Hi,
I'm new to scripting, I need help in After Loading Event for filling in information to an element declared in extended business object for Activity Business object.
I have gone through all the links in this community like
https://archive.sap.com/discussions/thread/3846927
https://archive.sap.com/discussions/thread/3796437
But from all the above links i came to know that we can't do anything to the element declared in extended BO in an After loading event.(like modifying element value).
So here is my requirement : I need to modify a value while loading a node(i.e., during after loading event). Is that possible ? or at least can i create an instance of other BO so that i can modify element value of that BO or can i call web services to make changes to the element.
At last I need to change my element's value during After Loading Event.
Thanks you in advance
Thanks,
Adithya
Hello Adithya,
The event AfterLoading is reserved for transient elements which are not persisted and need to calculated after loading and every roundtrip (as mentioned in the links).
What do you want to achieve?
With 1711 you at able to extend the SAP BO AP.PC.ActivityManagement.Global:Activity not only with regular Extension Fields, Actions and Nodes but also with transient Extension Fields. 🙂
HTH,
. Horst
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Horst,
Requirement is : when a user opens and view a task assigned to him, I need to update a read_task field(custom field provided at extended BO of Activity task) which is available in Activity task TI - which says that the user has viewed the task. And when Task creator sees the task he/she need to understand that assignee has viewed the task. For this purpose i need to persist data during after loading event. Thanks for updating.
Adithya.
Hello Adithya,
This should not be done direct in the UI on the instance assigned to the UI. Changing data by simply looking at it reminds me to Heisenberg's Uncertainty Relation. 🙂
Instead you should use another BO (as SAP I would use a workflow ) for tracing this information.
HTH,
. Horst
Hello Adithya,
The possibilities of Workflow within PDI are limited. 😞 Therefore I wrote "as SAP"
In brief I would
HTH,
. Horst
Hello Adithya,
You're right and I'm sorry. 😞
The restriction to the transient elements is that strict that even actions or create calls for other BOs are not allowed. 😞
Another idea:
HTH,
. Horst
Hi,
I have very the same request from customer and facing very the same problem as Jalda.
Actually customer want that during stetting the status of activity task "in process" that field owner is populated with name of the person that triggers this action.
Problem at mine side is that in PDI I cannot created script files for activity task., and therefore I cannot write the code for changing owner.
Here is the screenshot:
Horst do you have idea?
Hi,
I use C4C. I need to set task from activity WC. Here is the screenshot:
In PDI I used namespace:
http://sap.com/xi/AP/FO/Activity/Global
for business object:
ActivityTask
Is this correct?
br,
Zoran
Thanks Horst!
That solved my problem.
Btw. What is http://sap.com/xi/AP/FO/Activity/Global used for?!
I believe this is solution for JALDA ADITHYA also
br,
Zoran
Hello Zoran,
We migrated the ActivityTask, Appointment, PhoneCalll, ... activities from the old implementation (using template and projections, old runtime framework) in AP.FO.Activity.Global to a new design & implementation. Therefore we needed a new namespace.
As there are still e.g. data types inside the old namespace we can not deprecate the whole namespace, but we deprecated the BOs.
HTH,
. Horst
Hi horst.schaude,
When i opened my solution in sap cloud application studio, i'm able to see my custom field(read task) in the UI of Activity Task as shown below
But when i open the activity task without opening my solution in sap cloud application studio, i'm not able to see my custom field in the UI as shown below
What will be the issue ? could you please explain how to resolve it.
Thanks,
Adithya.
Hi horst.schaude,
I created a question. Link is https://answers.sap.com/questions/332756/xbo-fields-are-not-visible-when-custom-solution-is.html.
Thanks,
Adithya
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.