cancel
Showing results for 
Search instead for 
Did you mean: 

How To Self Assign Planner Group To Notification in Edit Mode

former_member337066
Participant
0 Kudos


AK K

Chandra Ayyagari

Stephen Streeter

Leonardo Gomez


Hello Experts,

                     Wea are working on Agentry Work Manager 6.2 Application. In our case for 1 user it download Notification for 2 planer group.

For Example:- We have planer group AD,JP and SE.In this SE is virtual planer group. When any notification create then by default it considered as SE.

                      Now when User AD Logged in application then he will see notifications of AD as well as SE planer group.

                      Same way if User JP Logged in then he will see Notifications of JP as well as SE.

Now we have requirement that If User AD opens any notification of SE in edit mode then planer group should change from SE to AD and this change should also reflect in SAP Backend.

We have created a custom table which maps the Login ID to Planner groups:-

So where and what changes we have to make in Syclo or ABAP backend to make this working.

If there is anyother way to make it work then also helpful.

Accepted Solutions (0)

Answers (1)

Answers (1)

LeonardoGomez
Advisor
Advisor
0 Kudos

Hi Ashish,

I wouldn't use a Z table. What I would do is:

1) configure assignment type to be Planner group at header level

2) in the user parameters add parameter IHG with value AD or JP accordingly.

3) At the Config Panel set the configuration of the Planner Group filter as this, include the user parameter to be read from user profile, and include the fixed value SE for all users.

This way, every user will receive WO of his planner group and group SE as well. Then you need to enhance your Agentry application to update field planner group to the one of the user. For that I think you should change transaction WorkOrderStart and include field planner group to be updated with global UserProfile.PlannerGroup.

Be aware that conflicts may occur as many users will receive a single work order and more than one could start it on their device at the same time.

Regards,

Leonardo.

former_member337066
Participant
0 Kudos

Thanks Leonardo

                     Will Same Logic work for Notification??

and one more thing when planer group AD Logged in through his ID then he could able to see all the notifications assigned to him as well as SE.

but when Workcenter (Technician) APS Logged in through his ID he could able to see only his assigned notifications.

LeonardoGomez
Advisor
Advisor
0 Kudos

Hi Ashish,

It's the same for notifications.

If not everyone should receive workorders of workcenter SE then the implementation is a bit more difficult. But you can still do it with the user parameters without a Z table. Take a look at note 1919274. It's a different assignment type but the implementation is similar.

In ERP:

Create a Z class handler with interface /SYCLO/IF_CORE_FILTER_HANDLER. You can use class /SYCLO/CL_PM_ORDER_TYPE_DOF as a reference. You will have to write the logic to get the planner groups of the user and pass it as filter values to PLANGROUP filter.

In the Config Panel:

Configure the Get Method of SWM61_WORKORDER_GENERIC MDO. Open the Distribution segment and edit the PLANGROUP filter. You have to create a rule there and select your Z class created before.

Regards,

Leonardo.