SAP LOGICAL DATABASE ABEXA



Get Example source ABAP code based on a different SAP table
  



ABAP_LDB - Calls Using a Function Module
This example demonstrates calling a logical database using the function module LDB_PROCESS.

ABAP_SOURCE_CODE
ABAP_EXEC

ABAP_DESCRIPTION
The program reads data using the logical database F1S. First a program-specific selection screen is defined. The data object wa_spfli is only required here. Next, suitable variables for the interface are declared.
The internal table callback is filled in such a way that, for the two nodes SPFLI and SFLIGHT, different callback routines in the calling program are called. For the node SPFLI , the corresponding routine for GET and GET LATE is only to be called for GET in the case of SFLIGHT.
The internal table seltab is filled with values from the selection table s_carr of the standalone selection screen 1100 for the selections of node SPFLI.
The function module LDB_PROCESS is called with these parameters.
The subroutines callback_spfli and callback_sflight are used as callback routines. Since the interface parameter wa is completely typed, the individual components of the work area can be accessed. In callback_spfli, the events GET and GET LATE are handled differently.