SAP Function Modules

SBUF_SEL_DDLOG_RECS SAP Function module







SBUF_SEL_DDLOG_RECS is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SBUF_SEL_DDLOG_RECS into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: SBUF
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SBUF_SEL_DDLOG_RECS - SBUF SEL DDLOG RECS





CALL FUNCTION 'SBUF_SEL_DDLOG_RECS' "
  EXPORTING
*   host_id =                   " ddlog-systemid
    from_time =                 " ddlog-timestamp
    to_time =                   " ddlog-timestamp
*   max_cnt = 0                 " sy-dbcnt
*   keep_db2_tstmp = SPACE      " flag
  CHANGING
    sync_tab =                  " sync_tab_t    Requests to Buffer Synchronization
*   max_cnt_exceeded =          " char1
    .  "  SBUF_SEL_DDLOG_RECS

ABAP code example for Function Module SBUF_SEL_DDLOG_RECS





The ABAP code below is a full code listing to execute function module SBUF_SEL_DDLOG_RECS including all data declarations. The code uses the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the original method of declaring data variables up front. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8).


DATA(ld_sync_tab) = 'some text here'.
DATA(ld_max_cnt_exceeded) = 'some text here'.

SELECT single SYSTEMID
FROM DDLOG
INTO @DATA(ld_host_id).


SELECT single TIMESTAMP
FROM DDLOG
INTO @DATA(ld_from_time).


SELECT single TIMESTAMP
FROM DDLOG
INTO @DATA(ld_to_time).

DATA(ld_max_cnt) = '123 '.
DATA(ld_keep_db2_tstmp) = '123 '. . CALL FUNCTION 'SBUF_SEL_DDLOG_RECS' EXPORTING * host_id = ld_host_id from_time = ld_from_time to_time = ld_to_time * max_cnt = ld_max_cnt * keep_db2_tstmp = ld_keep_db2_tstmp CHANGING sync_tab = ld_sync_tab * max_cnt_exceeded = ld_max_cnt_exceeded . " SBUF_SEL_DDLOG_RECS
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_sync_tab  TYPE SYNC_TAB_T ,
ld_host_id  TYPE DDLOG-SYSTEMID ,
ld_max_cnt_exceeded  TYPE CHAR1 ,
ld_from_time  TYPE DDLOG-TIMESTAMP ,
ld_to_time  TYPE DDLOG-TIMESTAMP ,
ld_max_cnt  TYPE SY-DBCNT ,
ld_keep_db2_tstmp  TYPE FLAG .

ld_sync_tab = '123 '.

SELECT single SYSTEMID
FROM DDLOG
INTO ld_host_id.

ld_max_cnt_exceeded = '123 '.

SELECT single TIMESTAMP
FROM DDLOG
INTO ld_from_time.


SELECT single TIMESTAMP
FROM DDLOG
INTO ld_to_time.

ld_max_cnt = '123 '.
ld_keep_db2_tstmp = '123 '.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SBUF_SEL_DDLOG_RECS or its description.