cancel
Showing results for 
Search instead for 
Did you mean: 

How to add a my team query in owl screen in UI designer with cloud application studio?

abhishek_raj07
Participant
0 Kudos

Hi Expert,

I have a business requirement in which there need to be add a my team query in owl screen for the cloud application studio .

If any one has implemented this scenario kindly tell how to proceed further or have any documentation ,please share.

Thanks,

Abhishek Raj

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Abhishek ,

You can create custom query in the OWL screen for the cloud application studio .

Hope this helps : https://archive.sap.com/discussions/thread/3749466

Thanks

Gaurav

abhishek_raj07
Participant
0 Kudos

Hi Gaurav,

Thanks for your reply ,I am not looking for this.

Actually if you take an example of any standard owl screen like opportunity ,quotes you will find one query as My team quote,My team opportunity etc so in my custom owl screen i have created three query My ,All and team.

So My and All is working fine but i want to know what logic should be written in the reusable library for the team query ,so that when we select the team it will show only those record of the employee who are in the team of the user logged in.

Hope you are able to understand it,

Thanks,

Abhishek

JOSC_ITLAB
Participant
0 Kudos

Hi Abhishek,

you may try to create a reuse library script which returns the logged in user ID from the standard object context.

You have to enable the script for usage on the UI. In the UI you can create an FieldTransformation which uses the script created. Then you could in an eventhandler select the User via an BOOperation and assign the group id to a data field. Now you should be able to compare the group id in an DefaultSet with the group id in the datafield.

Kind Regards,

Johannes

abhishek_raj07
Participant
0 Kudos

Hi Johannes,

Thanks for the reply.

Could you please provide me the steps for this, I have done till the transformation part but not able to understand after that.

If you have any documentation for that ,please share.

Thanks in advance.

Regards,

Abhishek

JOSC_ITLAB
Participant
0 Kudos

Hi Abhishek,

i would provide you with more informations but i dont know where the team informations are stored in an employee.

I just tried to do some stuff about this but without the info i cant really do something. But I just realised you could also create a FieldTransformation for the TeamID (or sth). Then with a SADL query you can compare the ID to a field in your custom BO. Everything I'm thinking about does not want to succeed so im also srewed up here.

Kind Regards,

Johannes