Application Development 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: 

RS_DELETE_PROGRAM - which includes?

Former Member
0 Kudos

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

Former Member
0 Kudos

HI,

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

Thanks

Mahesh

0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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?

0 Kudos

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.