Skip to Content
author's profile photo
Former Member

Edit text of a report

Hi experts,

is it possible to edit a report text?

I've made a program which searches certain text in reports and when selected it shows the ABAP code of this report.

But instead of showing it, I was wondering if it is possible to edit the code (if you have a development key of course).

I've found 2 functions but am not able to figure out how to use them:

EDIT_REPORT_TEXT and REPORT_TEXT_EDIT.

thanks in advance,

Wim

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 12:10 PM

    If you want to make it interactive -

    1. You can use function module RS_TOOL_ACCESS passing these -

    OPERATION EDIT

    OBJECT_NAME ZKD0R_MATERIAL_COST ( prog name)

    OBJECT_TYPE REPS ( in case of reports)

    ENCLOSING_OBJECT

    POSITION 555 ( line # )

    2. if you want to replace all the text automatically, then you will have to read the report in to internal table, make the required modifications and then write it back to the report.

    Use ABAP statements READ REPORT and WRITE REPORT.

    In this case u r doing it without any authorization checks.

    Hope it helps.

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 12:22 PM

    Hi,

    Look at the below function modules

    G_RP_CHANGE_REPORT_HEADER

    G_RP_CHANGE_REPORT_LAYOUT

    ICUR_CHANGE_REPORT_VARIANTS

    CHANGE_REPORT_PATTERN

    Regards

    Sudheer

    Add comment
    10|10000 characters needed characters exceeded