Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CL_GUI_FRONTEND_SERVICES - different User

Former Member
0 Likes
792

Hello,

i have the following requirement.

As soon as a new PM-Order is released i need to create a directory on our file server.

I already found the right userexit and used CL_GUI_FRONTEND_SERVICES->DIRECTORY_CREATE.

This works fine as long as the user itself has authorization on this file server directory.

Is it somehow possible to have one technical user creating this directory and files on our file server.

I know with a job it is possible - but i need this in my user exit.

Thank you very much for your help.

Best regards

Manfred

Hello,

i have the following requirement.

As soon as a new PM-Order is released i need to create a directory on our file server.

I already found the right userexit and used CL_GUI_FRONTEND_SERVICES->DIRECTORY_CREATE.

This works fine as long as the user itself has authorization on this file server directory.

Is it somehow possible to have one technical user creating this directory and files on our file server.

I know with a job it is possible - but i need this in my user exit.

Thank you very much for your help.

Best regards

Manfred

4 REPLIES 4
Read only

anup_deshmukh4
Active Contributor
0 Likes
731

Hello I guess your basis guy can help you in same by creating the user to it.

the target directory should have Read write and change authorization ie. 777 for that particular user..

Read only

Former Member
0 Likes
731

I'm not clear which "user" you are talking about - SAP user or operating system user?

Your dialog process is running as a particular SAP user. Are you wanting the file & directory creation to be run as a different SAP user?

or

Your SAPgui is run as the user logged into the PC (which is most likely independent of the SAP user). You are using frontend services in SAP to to the file/directory create and so those actions will be carried out as the logged in user on the PC. Is this the user you are wanting to change?

Read only

0 Likes
731

Hi,

yes the frontend service is to create the directory/file is run by the user who is logged on in SAP GUI. To avoid that for each new user we have to think about file system authorization we want to run the creation of directory/file with a system user like SAPBATCH.

Is this somehow possible?

Thank you.

Kind regards

Manfred

Read only

0 Likes
731

So we're talking about SAP authorisations for SAP users. Is there a reason you don't want to assign this access to all SAP users? It doesn't given them any access to the file server that they don't already have outside of SAPgui, so I'm not sure I see the risk.

My gut feeling is that there's no way to do this in the way you want - change user auths for just a specific set of operations. If you didn't need a connection back to SAPgui then there are definitely ways to achieve it, but the ways I can think of all break that frontend connection. I don't think you have an option but to consider giving users the access directly.