Skip to Content

This blog explains how to find Text name,Text ID, language and text object from the master data and change it as per our requirement.

Finding Text name,Text ID, language and Text object :

Let us take an example of a customer from VD03 transaction.

1.JPG

Then go to, EXTRAS –> TEXTS.

2.JPG

Once the texts appear, double click on the text we want to change. Lets choose “Internal Note” for our case.

3.JPG

Once the “Internal note” is displayed, GOTO –> Header.

4.JPG

Now we can see the Text Header, where we can find,Text name,Text ID, language and Text object as below:

5.JPG

Changing the TEXTs :

We make use of function module “SAVE_TEXT” using Text name,Text ID, language and Text object to change the master data text.

And write a simple report as below:

***************************************************************************

REPORT  ZINTERNALNOTE_CHANGE.

data:

      lint_header TYPE STANDARD TABLE OF THEAD,

      lws_header TYPE  THEAD,

      lint_lines TYPE STANDARD TABLE OF tline,

      lws_lines TYPE  tline,

      lw_text TYPE thead-tdname.

START-OF-SELECTION.

lws_header-tdobject = ‘KNVV’.                             “text object from above

lws_header-tdname = ‘0000472421SE100101’.      “text name from above

lws_header-tdid = ‘Z008’.                                     “text ID from above

lws_header-tdspras = ‘E’.                                    “text language from above

  lws_lines-TDFORMAT = ‘*’.

  lws_lines-TDLINE = ‘text’.

  APPEND lws_lines to lint_lines.

  CALL FUNCTION ‘SAVE_TEXT’             

    EXPORTING

      header                = lws_header

    SAVEMODE_DIRECT       = ‘X’

    tables

      lines                 = lint_lines .

  IF sy-subrc = 0.

      write : ‘Internal note text changed’.

  ENDIF.

***************************************************************************

Once the report is executed, we can see the change reflected as below :

6.JPG

Thanks,

Anil Supraj

To report this post you need to login first.

1 Comment

You must be Logged on to comment or reply to a post.

  1. nabheet madan

    Hi Anil

    Thanks for blogging. I dont understand the idea behind publishing this blog. If I google or search on scn I will find 100`s of threads for the same

    Nabheet

    (0) 

Leave a Reply