Selection program &1 uses LDB &2, LEAVE statement is missing

Message type: E = Error

Message class: HRPAY99PM - Messages for HR Process Manager

Message number: 408

Message text: Selection program &1 uses LDB &2, LEAVE statement is missing



What causes this issue?

The selection program <LS>&V1&</> uses the logical database &V2&. This
automatically triggers an event. This is not required for the selection
program because the events are triggered by the function module
<LS>HRPY_PROCESS_CLOSE_SELECTION</>. To make sure that the logical
database does not trigger the event, the program must end with either
LEAVE, LEAVE PROGRAM, or LEAVE-LIST PROCESSING.


System Response

The system issues an error message and will not allow you to continue with this transaction until the error is resolved.



How to fix this error?

Insert one of the above statements at the end of <LS>&V1&</>.


Procedure for System Administrators


Error message extract from SAP system. Copyright SAP SE.