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

delete pdf file from application server

abybakk
Explorer
0 Likes
1,089

Hello,

I tried to delete  a pdf file from application server like this via an abap program:

  OPEN DATASET p_file FOR INPUT IN TEXT MODE ENCODING DEFAULT.

  IF sy-subrc = 0.

    DELETE DATASET p_file.

ENDIF.

but the Open dataset does not work for pdf file (subrc = 😎

Is there anay solution the delete pdf file stored in server (under windows)  from an abap program

Best regards

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
952

Hi,

Can you please try by calling the function module EPS_DELETE_FILE to delete the file from AL11.

Thanks & Regards,

Polu

3 REPLIES 3
Read only

RaymondGiuseppi
Active Contributor
0 Likes
952

Coult you add a call of AUTHORITY_CHECK_DATASET at start of your report.

Also are you able to see the file (and content) from AL11 ?


Regards,

Raymond

Read only

Former Member
0 Likes
953

Hi,

Can you please try by calling the function module EPS_DELETE_FILE to delete the file from AL11.

Thanks & Regards,

Polu

Read only

0 Likes
952

Thanks for your replies.

Now it's works, i have made a mistake for p_file name