Start of Content Area

Process documentation Calling the Editor  Locate the document in its SAP Library structure

Use the function module EDIT_TEXT to branch to a (fullscreen) text editor that allows you to edit the transferred text. Depending on the text format in the text header (TDTEXTTYPE), the system calls the corresponding editor. If the format field is empty, it calls the SAPscript editor. Otherwise it internally calls the function module EDIT_TEXT_FORMAT_xxx, which is responsible for establishing the link to the text editor that can process texts in the format xxx.

The SAPscript editor offers several functions.

The editor interface, that is, the activated functions in the editor menus, are determined by the text interface allocated to the text object in table TTXOB. In addition, you can set certain attributes of the interface using the parameters CONTROL, DISPLAY, and EDITOR_TITLE when calling the function module EDIT_TEXT.

Call the Editor Without Navigation

If you want to edit only one text in the editor, you should specify the interface TN for the corresponding text object in table TTXOB. After editing the text, you leave the editor and return to the application screen.

Call the Editor with Navigation

If you want to select several texts from the application screen and must, therefore, navigate in the text editor in this selection list, you must use the interface TA. This interface offers the functions Next text and Previous text in the Goto menu. You can use them to move among the selected texts without having to leave the editor.

From within the program, you must call the function module in a loop. After editing one text, you end the function module and return to the calling program. The program decides, depending on the parameter RESULT, field USEREXIT, which function the user used to leave the text editor, and then, depending on that function, either calls the text editor with another text or leaves the loop.

How to proceed:

  1. Provide the desired text of the selection list by placing the text header and the text lines into the appropriate work areas.
  2. Use the parameter CONTROL to specify which function Next text or Previous text you want to activate:
  3. APP_NEXT = 'X' , if the text passed for the subsequent editor call is not the last text in the selection list,

    APP_PREV = 'X' , if the text passed for the subsequent editor call is not the first in the selection list.

  4. Call the text editor.
  5. Check the return parameter RESULT, field USEREXIT to determine the next step: