Application Development Blog Posts
Learn and share on deeper, cross technology development topics such as integration and connectivity, automation, cloud extensibility, developing at scale, and security.
cancel
Showing results for 
Search instead for 
Did you mean: 
former_member202771
Contributor
0 Kudos
6,014

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.

Then go to, EXTRAS --> TEXTS.

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

Once the "Internal note" is displayed, GOTO --> Header.

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

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 :

Thanks,

Anil Supraj

1 Comment
Labels in this area