Comparing Selection Texts

When you choose Selection texts and Compare on the ABAP Text Elements screen, the system supports you by finding missing or unused selection texts.

The function Compare enhances the functionality of the normal maintenance of selection texts but does not include the possibility to work with texts from the ABAP Dictionary (see Selection Texts).

The following example shows how to work with the function Compare with selection texts.

Assume the following program:

PROGRAM SAPMZTST.

TABLES SBOOK.

PARAMETERS: TEXT(10).

SELECT-OPTIONS: SEL1 FOR SBOOK-CARRID,
SEL2 FOR SBOOK-CONNID.

If you have not maintained the selection texts for this program yet and you choose the function Compare for Selection texts on the ABAP Text Elements screen, the following screen appears:

This screen shows for which parameters and select options the selection texts are missing. You can maintain these texts either in the normal selection text maintenance (for example to include texts from the ABAP Dictionary, see Selection Texts ) or define them right here, for example, as follows:

By choosing the function Edit marked tex, you designate the changed and marked lines for adjustment.

In the above figure, SEL1 and SEL2 are changed but only SEL1 is marked. Therefore, only SEL1 is designated for adjustment. If you choose Save now, the selection text for SEL1 is saved in the text pool.

If you have maintained selection texts for all input fields of the selection screen and you choose Compare, you obtain for example the following screen:

Now, replace the parameter TEXT in the program by the parameter PARA:

PROGRAM SAPMZTST.

TABLES SBOOK.

PARAMETERS: PARA(10).

SELECT-OPTIONS: SEL1 FOR SBOOK-CARRID,
SEL2 FOR SBOOK-CONNID.

Again, choose the function Compare for the selection texts. After generating the program, the system display the following screen:

The system offers you to define a new selection text for PARA and to delete the selection text for TEXT.

Compare this with the example in the Selection Texts section.