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

RS_DELETE_PROGRAM - which includes?

Former Member
0 Likes
1,115

Hi,

I want to use the RS_DELETE_PROGRAM function, but I'm not sure which includes it deletes... I mean, if the report has a shared include will it also be deleted?

5 REPLIES 5
Read only

Former Member
0 Likes
901

HI,

If you Check the paramter WITH_INCLUDES then it will delete the include's .

Thanks

Mahesh

Read only

0 Likes
901

yes, I know that, but all the includes? even the ones that are used by other reports?

Read only

Former Member
0 Likes
901

Hi,

The function module is having the below fields

WITH_DOCUMENTATION

WITH_DYNPRO

WITH_INCLUDES

WITH_TEXTPOOL

WITH_VARIANTS

If you check the WITH_INCLUDES then it will delete the includes also,

Regards

Sudheer

Read only

0 Likes
901

yes, I got the point about the possibility of deleting includes but...

//

report zmy_report1.

include zmy_include.

//

report zmy_report2.

include zmy_include.

//

report zdelete_report.

call function rs_delete_program

exporting

progname = 'zmy_report1

with_includes = 'X'.

//

my question is: will it delete the include knowing that it's being used by another report?

Read only

0 Likes
901

It seems the answer is no, only if you check the last exporting parameter, then, it will try to force the deletion of the shared include.