Detail Screen Selection Notes

To exclude the current entry from the selection-relevant function, its entry must be deselected in the individual routine before the function (e.g. event 03). The entry must be reselected after the function (e.g. event 04), to show the user that it was not processed.

Realization

If the user is in the detail screen, the field STATUS-MODE contains the constant DETAIL_BILD.

  • Activities before calling the requested function:

The selection flag of the table record <MARK> or <XMARK>) must be given the constant value UEBERGEHEN (skip) in the individual routine before the function.

The current entry is in the header of EXTRACT and in the field symbols <TABLE1> and <TABLE1_TEXT> for the text table read. The variable NEXTLINE contains the index of the current entry in the table EXTRACT.

  • Procedure:
    READ TABLE TOTAL WITH KEY EXTRACT BINARY SEARCH.
    <check entry>.
    MOVE UEBERGEHEN TO <MARK>.
    MODIFY TOTAL INDEX SY-TABIX.
    <XMARK> = <MARK>.
    MODIFY EXTRACT INDEX NEXTLINE.

The selection flag reset should be noted in the variables IGNORED_ENTRIES_EXIST for further processing.

  • Activities after performing the requested function:

The entry is reselected in the standard after performing the function, and the user is informed by message that the function was not performed. If this is the only activity after the event, no user EXIT routine is required, if the variable IGNORED_ENTRIES_EXIST has been set.

If other activities other than the reselect are required, they must be realized in a user routine (e.g. event 04), in which the skip flag can be converted into selection, and a message is output, by calling the routine 'MARK_IGNORED_ENTRIES' at the end of the EXIT routine. The skipped entry is in the header entry of the table TOTAL

  • PERFORM MARK_IGNORED_ENTRIES.

Use the internal table EXTRACT. This ensures that only entries which the user has seen are processed.

Entry existence checks should always use the table TOTAL.