SAP Function Modules

EDIT_TEXT_EXIT_TO SAP Function module - Office: SAPscript Editor Exit







EDIT_TEXT_EXIT_TO is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name EDIT_TEXT_EXIT_TO into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SOST
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM EDIT_TEXT_EXIT_TO - EDIT TEXT EXIT TO





CALL FUNCTION 'EDIT_TEXT_EXIT_TO' "Office: SAPscript Editor Exit
  EXPORTING
*   changed = SPACE             "
*   display = SPACE             "
*   fcode = 'DISP'              " sy-ucomm
    header =                    " thead
*   marked_string = SPACE       " tline-tdline
  IMPORTING
    exit =                      "
    function =                  " ttxct-function
    newchanged =                "
    newcursor =                 "
    newdisplay =                "
    newheader =                 " thead
    string_to_insert =          " tline-tdline
    string_to_delete =          " tline-tdline
  TABLES
    excludes =                  "
    lines =                     "
    .  "  EDIT_TEXT_EXIT_TO

ABAP code example for Function Module EDIT_TEXT_EXIT_TO





The ABAP code below is a full code listing to execute function module EDIT_TEXT_EXIT_TO including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).

DATA:
ld_exit  TYPE STRING ,
ld_function  TYPE TTXCT-FUNCTION ,
ld_newchanged  TYPE STRING ,
ld_newcursor  TYPE STRING ,
ld_newdisplay  TYPE STRING ,
ld_newheader  TYPE THEAD ,
ld_string_to_insert  TYPE TLINE-TDLINE ,
ld_string_to_delete  TYPE TLINE-TDLINE ,
it_excludes  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_excludes  LIKE LINE OF it_excludes ,
it_lines  TYPE STANDARD TABLE OF STRING,"TABLES PARAM
wa_lines  LIKE LINE OF it_lines .

DATA(ld_changed) = 'some text here'.
DATA(ld_display) = 'some text here'.
DATA(ld_fcode) = 'some text here'.
DATA(ld_header) = 'some text here'.

DATA(ld_marked_string) = some text here

"populate fields of struture and append to itab
append wa_excludes to it_excludes.

"populate fields of struture and append to itab
append wa_lines to it_lines. . CALL FUNCTION 'EDIT_TEXT_EXIT_TO' EXPORTING * changed = ld_changed * display = ld_display * fcode = ld_fcode header = ld_header * marked_string = ld_marked_string IMPORTING exit = ld_exit function = ld_function newchanged = ld_newchanged newcursor = ld_newcursor newdisplay = ld_newdisplay newheader = ld_newheader string_to_insert = ld_string_to_insert string_to_delete = ld_string_to_delete TABLES excludes = it_excludes lines = it_lines . " EDIT_TEXT_EXIT_TO
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_exit  TYPE STRING ,
ld_changed  TYPE STRING ,
it_excludes  TYPE STANDARD TABLE OF STRING ,
wa_excludes  LIKE LINE OF it_excludes,
ld_function  TYPE TTXCT-FUNCTION ,
ld_display  TYPE STRING ,
it_lines  TYPE STANDARD TABLE OF STRING ,
wa_lines  LIKE LINE OF it_lines,
ld_newchanged  TYPE STRING ,
ld_fcode  TYPE SY-UCOMM ,
ld_newcursor  TYPE STRING ,
ld_header  TYPE THEAD ,
ld_newdisplay  TYPE STRING ,
ld_marked_string  TYPE TLINE-TDLINE ,
ld_newheader  TYPE THEAD ,
ld_string_to_insert  TYPE TLINE-TDLINE ,
ld_string_to_delete  TYPE TLINE-TDLINE .

ld_changed = 'some text here'.

"populate fields of struture and append to itab
append wa_excludes to it_excludes.
ld_display = 'some text here'.

"populate fields of struture and append to itab
append wa_lines to it_lines.
ld_fcode = 'some text here'.
ld_header = 'some text here'.

ld_marked_string = some text here

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name EDIT_TEXT_EXIT_TO or its description.