cancel
Showing results for 
Search instead for 
Did you mean: 

Avoid SAPGUI security settings within ABAP program

former_member198406
Contributor
0 Kudos

Dear Gurus,

I have developed a program which generates an image file and insert the same in a word file and print the word file after printing is finished the program delete the image file.

I am using class CL_GUI_FRONTEND_SERVICES and methods GUI_DOWNLOAD and FILE_DELETE to generate the delete the image file respectively.

while performing download and delete the system shows a pop-up dialog box (at least for the first time) to allow/deny the access. I have set the SAPGUI security settings to "ASK" because of security reasons and It is not possible to make it "ALLOW".

So, I have no option to avoid this pop-up, Also, if user selects deny for deletion step for the image file intentionally/unintentionally the file will remain there and a smart user can use the image file and exploit the same. I don't want the user to decide on downloading/deleting the image file.

I am looking for some solution within the program to skip these pop-up.

Regards,

Dipeshkumar Bhavsar

Accepted Solutions (1)

Accepted Solutions (1)

former_member198406
Contributor

Hi,

I found the solution on my own.

I found a method that return the path of SAP temp directory where SAPGUI security is always allows anything. So, I decided to download and delete the image file in SAP temp directory to avoid the SAPGUI security pop-up dialog box.

Thanks for you inputs.

andrea_rosati3
Discoverer
0 Kudos

HI Dipenshkumar,

i have the same problem to set automatically "allow" the SAPGUI security pop-up dialog box.

please, tell me how do

thank so much

Andrea

former_member198406
Contributor

Hello,

I had used CL_GUI_FRONTEND_SERVICES >> GET_SAPGUI_WORKDIR and GET_TEMP_DIRECTORY in my program. This will give the path to SAP related directory. SAPGUI security allows anything to be added from SAP without any pop-up dialog box.

Dipesh

andrea_rosati3
Discoverer
0 Kudos

Sorry Dipesh,

but i don't understand...

temp directory is empity... and i dont know how add the targetpath file in temp dir.

Maybe i'm missing something?

thank

Answers (1)

Answers (1)

shashank_agarwal
Participant
0 Kudos

Hello Dipesh,

You can easily supress this popup via Security settings of GUI via following path -

Goto - Menu ->SAP Options(Customzed local layout) - > Options - >Security->Security Settings - >

Click on Security Configuration Dialog.

A popup would appear , there Input 'ALLOW' under Default Action.

Press OK twice .

Thats it.

Hope it helps!

Thanks.

former_member198406
Contributor
0 Kudos

Hi Shashank,

Thanks.

But, if you read my question carefully, I have already mentioned about the option you suggested is not going to work for me for security reason.

I have specifically asked for some solution within the program to suppress SAPGUI security settings.

Regards,

Dipeshkumar Bhavsar