Start of Content Area

Controlling the Editor  Locate the document in its SAP Library structure

When calling the SAPscript text editor using the function modules EDIT_TEXT or EDIT_TEXT_INLINE, you can use the parameter CONTROL to set certain attributes of the editor. Some of these attributes depend on the editor interface used. The parameter CONTROL uses the structure ITCED.

NOENDLINES: no blank lines at the end of the text

Using this field, you can determine whether you want the system to automatically insert blank lines at the end of a text up to the bottom of the screen. These blank lines are ready to accept input.

These blank lines facilitate entering text at the end of the original text. The system automatically deletes any unused lines when saving the text.

Possible values:

X

insert no blank line

fill screen window with input-enabled blank lines (default)

 

SCROLLEND: position cursor at text end

Use this field to indicate whether you want the system to automatically position the cursor at the end of the text whenever you call the SAPscript editor. By default, the system displays the beginning of the text, starting with the first line of text, and positions the cursor on the first column of the first line.

Possible values:

'X'

position cursor at end of text

' '

display text from the first line (default)

 

 

USERTITLE: suppress SAPscript status information

SAPscript display the following status information in the tile line:

The calling program can pass additional information in the parameter EDITOR_TITLE when calling the function modules EDIT_TEXT or EDIT_TEXT_INLINE. The system displays this title text in addition to the SAPscript status information (default).

Use the parameter USERTITLE to suppress the SAPscript status information.

Possible values:

'X'

suppress SAPscript status information

' '

include SAPscript status information into the title (default)

 

If you suppress SAPscript status information, the system replaces a & character in the parameter EDITOR_TITLE with the editing function (display, change).

 

SHOWTPFM: display the format of template lines

Use the paragraph format ‘>‘ to define the contents of a line as template line. The system then highlights the line contents and disables the field for input. This function allows you to separate the text into different sections whose separator lines the user cannot change.

Usually, you want these template lines to appear in the printout as well. Therefore, you must place the paragraph format of the template line into the first two columns of the line. The editor does not display this paragraph format.

If you want to see the paragraph format in the editor, request it using the parameter SHOWTPFM.

Possible values:

'X'

display format of template lines

' '

suppress format information of template lines

 

 

APP_NEXT: activate menu function Next text

The calling program tells the SAPscript editor that a subsequent text exists for the current text. This activates the menu function Goto Next text in the editor.

Possible values:

'X'

subsequent text exists

' '

no subsequent text exists

 

Caution

This field applies only to texts edited on the TA interface.

 

APP_PREV: activate menu function Previous text

The calling program tells the SAPscript editor that a previous text exists for the current text. This activates the menu function Goto Previous text in the editor.

Possible values:

'X'

Previous text exists

' '

no previous text exists

 

Caution

This field applies only to texts edited on the TA interface.

APP_SUBID: use existing editor interfaces for own applications

The editor interface is set according to the interface assigned to the text object. If you want to change an existing interface, you can specify an application SUBID with reference type TDAPP.

Caution

When you specify the application SUBID, the system takes you to a function module of the application. Handling the respective function codes and activating or deactivating menu functions must be done by the application.

CHANGEMODE: allow switching between Create/Change

You can determine whether to allow switching between display and editing mode in the editor. If you select the parameter, the system displays the appropriate pushbutton in the editort.

Caution

You can set this parameter in the PC editor only. And, the parameter is effective for the TX interface for standard texts only.

Possible values:

'X'

allow switching between display and editing mode

' '

do not allow switching (default)