SAP FILL_SNAPSHOT_DATA Function Module for









FILL_SNAPSHOT_DATA is a standard fill snapshot data SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for fill snapshot data FM, simply by entering the name FILL_SNAPSHOT_DATA into the relevant SAP transaction such as SE37 or SE38.

Function Group: SMON
Program Name: SAPLSMON
Main Program: SAPLSMON
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function FILL_SNAPSHOT_DATA pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'FILL_SNAPSHOT_DATA'"
EXPORTING
* LOCAL_REMOTE = 'LOCAL' "
* LOGICAL_DESTINATION = "
* SYSTEM_ID = 0 "

IMPORTING
F_CPU_ALL_READ = "
DETAILSREQI = "
DETAILSMODE = "
LASTCOLLWRT = "
LASTCOLLINT = "
NORMCOLLINT = "
F_POOL_ALL_READ = "
F_SPAG_ALL_READ = "
F_STOR_ALL_READ = "
F_CPU_SINGLE_READ = "
F_POOL_SINGLE_READ = "
F_MEM_ALL_READ = "
F_CPU_VIRT_AIX_READ = "
F_VIRT_CONFIG_READ = "
F_VIRT_METRICS_READ = "
F_DISK_SINGLE_READ = "
F_LAN_SINGLE_READ = "
F_TOP_SINGLE_READ = "
TAB_TYPE = "
ACTIVEFLAG = "
INTERVAL = "
DETAILSCOLL = "

TABLES
* TF_CPU_ALL = "
* TF_POOL_SINGLE = "
* TF_CPU_VIRT_AIX = "
* TF_VIRT_CONFIG = "
* TF_VIRT_METRICS = "
* TF_MEM_ALL = "
* TF_DISK_SINGLE = "
* TF_LAN_SINGLE = "
* TF_TOP_SINGLE = "
* TF_POOL_ALL = "
* TF_SPAG_ALL = "
* TF_STOR_ALL = "
* TF_CPU_SINGLE = "

EXCEPTIONS
INTERNAL_ERROR_ADRESS_FAILED = 1 COMMUNICATION_FAILURE = 10 INTERNAL_ERROR_DIFFERENT_FIELD = 2 INTERNAL_ERROR_NO_NEW_LINE = 3 COLLECTOR_NOT_RUNNING = 4 SHARED_MEMORY_NOT_AVAILABLE = 5 COLLECTOR_BUSY = 6 VERSION_CONFLICT = 7 NO_NETWORK_COLLECTOR_RUNNING = 8 SYSTEM_FAILURE = 9
.



IMPORTING Parameters details for FILL_SNAPSHOT_DATA

LOCAL_REMOTE -

Data type: DEF_PAR_FU-LOC_REMOTE
Default: 'LOCAL'
Optional: Yes
Call by Reference: No ( called with pass by value option)

LOGICAL_DESTINATION -

Data type: RFCDES-RFCDEST
Optional: Yes
Call by Reference: No ( called with pass by value option)

SYSTEM_ID -

Data type: DEF_PAR_FU-RFC_DATA_H
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for FILL_SNAPSHOT_DATA

F_CPU_ALL_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

DETAILSREQI -

Data type: DEF_PAR_FU-DETAILSREQ
Optional: No
Call by Reference: No ( called with pass by value option)

DETAILSMODE -

Data type: DEF_PAR_FU-DETAILSMOD
Optional: No
Call by Reference: No ( called with pass by value option)

LASTCOLLWRT -

Data type: DEF_PAR_FU-LASTCOLLWR
Optional: No
Call by Reference: No ( called with pass by value option)

LASTCOLLINT -

Data type: DEF_PAR_FU-LASTCOLLIN
Optional: No
Call by Reference: No ( called with pass by value option)

NORMCOLLINT -

Data type: DEF_PAR_FU-NORMCOLLIN
Optional: No
Call by Reference: No ( called with pass by value option)

F_POOL_ALL_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_SPAG_ALL_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_STOR_ALL_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_CPU_SINGLE_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_POOL_SINGLE_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_MEM_ALL_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_CPU_VIRT_AIX_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_VIRT_CONFIG_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_VIRT_METRICS_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_DISK_SINGLE_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_LAN_SINGLE_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

F_TOP_SINGLE_READ -

Data type: DEF_PAR_FU-NO_YES
Optional: No
Call by Reference: No ( called with pass by value option)

TAB_TYPE -

Data type: DEF_PAR_FU-TAB_TYP
Optional: No
Call by Reference: No ( called with pass by value option)

ACTIVEFLAG -

Data type: DEF_PAR_FU-ACTIVEFLAG
Optional: No
Call by Reference: No ( called with pass by value option)

INTERVAL -

Data type: DEF_PAR_FU-INTERVAL
Optional: No
Call by Reference: No ( called with pass by value option)

DETAILSCOLL -

Data type: DEF_PAR_FU-DETAILSCOL
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for FILL_SNAPSHOT_DATA

TF_CPU_ALL -

Data type: CPU_ALL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_POOL_SINGLE -

Data type: AS4_POOL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_CPU_VIRT_AIX -

Data type: CPU_VIRT_AIX
Optional: Yes
Call by Reference: Yes

TF_VIRT_CONFIG -

Data type: VIRT_CONFIG
Optional: Yes
Call by Reference: Yes

TF_VIRT_METRICS -

Data type: VIRT_METRICS
Optional: Yes
Call by Reference: Yes

TF_MEM_ALL -

Data type: MEM_ALL
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_DISK_SINGLE -

Data type: DSK_SINGLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_LAN_SINGLE -

Data type: LAN_SINGLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_TOP_SINGLE -

Data type: TOP_SINGLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_POOL_ALL -

Data type: AS4_POOL_A
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_SPAG_ALL -

Data type: MVS_SPAG_A
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_STOR_ALL -

Data type: MVS_STOR_A
Optional: Yes
Call by Reference: No ( called with pass by value option)

TF_CPU_SINGLE -

Data type: CPU_SINGLE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

INTERNAL_ERROR_ADRESS_FAILED -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COMMUNICATION_FAILURE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR_DIFFERENT_FIELD -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

INTERNAL_ERROR_NO_NEW_LINE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COLLECTOR_NOT_RUNNING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SHARED_MEMORY_NOT_AVAILABLE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

COLLECTOR_BUSY -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

VERSION_CONFLICT -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

NO_NETWORK_COLLECTOR_RUNNING -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

SYSTEM_FAILURE -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for FILL_SNAPSHOT_DATA Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_tf_cpu_all  TYPE STANDARD TABLE OF CPU_ALL, "   
lv_local_remote  TYPE DEF_PAR_FU-LOC_REMOTE, "   'LOCAL'
lv_f_cpu_all_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_internal_error_adress_failed  TYPE DEF_PAR_FU, "   
lv_detailsreqi  TYPE DEF_PAR_FU-DETAILSREQ, "   
lt_tf_pool_single  TYPE STANDARD TABLE OF AS4_POOL, "   
lv_communication_failure  TYPE AS4_POOL, "   
lv_detailsmode  TYPE DEF_PAR_FU-DETAILSMOD, "   
lt_tf_cpu_virt_aix  TYPE STANDARD TABLE OF CPU_VIRT_AIX, "   
lv_lastcollwrt  TYPE DEF_PAR_FU-LASTCOLLWR, "   
lt_tf_virt_config  TYPE STANDARD TABLE OF VIRT_CONFIG, "   
lv_lastcollint  TYPE DEF_PAR_FU-LASTCOLLIN, "   
lt_tf_virt_metrics  TYPE STANDARD TABLE OF VIRT_METRICS, "   
lv_normcollint  TYPE DEF_PAR_FU-NORMCOLLIN, "   
lv_f_pool_all_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_spag_all_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_stor_all_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_cpu_single_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_pool_single_read  TYPE DEF_PAR_FU-NO_YES, "   
lt_tf_mem_all  TYPE STANDARD TABLE OF MEM_ALL, "   
lv_f_mem_all_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_logical_destination  TYPE RFCDES-RFCDEST, "   
lv_internal_error_different_field  TYPE RFCDES, "   
lv_f_cpu_virt_aix_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_virt_config_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_f_virt_metrics_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_system_id  TYPE DEF_PAR_FU-RFC_DATA_H, "   0
lt_tf_disk_single  TYPE STANDARD TABLE OF DSK_SINGLE, "   
lv_f_disk_single_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_internal_error_no_new_line  TYPE DEF_PAR_FU, "   
lt_tf_lan_single  TYPE STANDARD TABLE OF LAN_SINGLE, "   
lv_f_lan_single_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_collector_not_running  TYPE DEF_PAR_FU, "   
lt_tf_top_single  TYPE STANDARD TABLE OF TOP_SINGLE, "   
lv_f_top_single_read  TYPE DEF_PAR_FU-NO_YES, "   
lv_shared_memory_not_available  TYPE DEF_PAR_FU, "   
lv_tab_type  TYPE DEF_PAR_FU-TAB_TYP, "   
lt_tf_pool_all  TYPE STANDARD TABLE OF AS4_POOL_A, "   
lv_collector_busy  TYPE AS4_POOL_A, "   
lv_activeflag  TYPE DEF_PAR_FU-ACTIVEFLAG, "   
lt_tf_spag_all  TYPE STANDARD TABLE OF MVS_SPAG_A, "   
lv_version_conflict  TYPE MVS_SPAG_A, "   
lv_interval  TYPE DEF_PAR_FU-INTERVAL, "   
lt_tf_stor_all  TYPE STANDARD TABLE OF MVS_STOR_A, "   
lv_no_network_collector_running  TYPE MVS_STOR_A, "   
lv_detailscoll  TYPE DEF_PAR_FU-DETAILSCOL, "   
lt_tf_cpu_single  TYPE STANDARD TABLE OF CPU_SINGLE, "   
lv_system_failure  TYPE CPU_SINGLE. "   

  CALL FUNCTION 'FILL_SNAPSHOT_DATA'  "
    EXPORTING
         LOCAL_REMOTE = lv_local_remote
         LOGICAL_DESTINATION = lv_logical_destination
         SYSTEM_ID = lv_system_id
    IMPORTING
         F_CPU_ALL_READ = lv_f_cpu_all_read
         DETAILSREQI = lv_detailsreqi
         DETAILSMODE = lv_detailsmode
         LASTCOLLWRT = lv_lastcollwrt
         LASTCOLLINT = lv_lastcollint
         NORMCOLLINT = lv_normcollint
         F_POOL_ALL_READ = lv_f_pool_all_read
         F_SPAG_ALL_READ = lv_f_spag_all_read
         F_STOR_ALL_READ = lv_f_stor_all_read
         F_CPU_SINGLE_READ = lv_f_cpu_single_read
         F_POOL_SINGLE_READ = lv_f_pool_single_read
         F_MEM_ALL_READ = lv_f_mem_all_read
         F_CPU_VIRT_AIX_READ = lv_f_cpu_virt_aix_read
         F_VIRT_CONFIG_READ = lv_f_virt_config_read
         F_VIRT_METRICS_READ = lv_f_virt_metrics_read
         F_DISK_SINGLE_READ = lv_f_disk_single_read
         F_LAN_SINGLE_READ = lv_f_lan_single_read
         F_TOP_SINGLE_READ = lv_f_top_single_read
         TAB_TYPE = lv_tab_type
         ACTIVEFLAG = lv_activeflag
         INTERVAL = lv_interval
         DETAILSCOLL = lv_detailscoll
    TABLES
         TF_CPU_ALL = lt_tf_cpu_all
         TF_POOL_SINGLE = lt_tf_pool_single
         TF_CPU_VIRT_AIX = lt_tf_cpu_virt_aix
         TF_VIRT_CONFIG = lt_tf_virt_config
         TF_VIRT_METRICS = lt_tf_virt_metrics
         TF_MEM_ALL = lt_tf_mem_all
         TF_DISK_SINGLE = lt_tf_disk_single
         TF_LAN_SINGLE = lt_tf_lan_single
         TF_TOP_SINGLE = lt_tf_top_single
         TF_POOL_ALL = lt_tf_pool_all
         TF_SPAG_ALL = lt_tf_spag_all
         TF_STOR_ALL = lt_tf_stor_all
         TF_CPU_SINGLE = lt_tf_cpu_single
    EXCEPTIONS
        INTERNAL_ERROR_ADRESS_FAILED = 1
        COMMUNICATION_FAILURE = 10
        INTERNAL_ERROR_DIFFERENT_FIELD = 2
        INTERNAL_ERROR_NO_NEW_LINE = 3
        COLLECTOR_NOT_RUNNING = 4
        SHARED_MEMORY_NOT_AVAILABLE = 5
        COLLECTOR_BUSY = 6
        VERSION_CONFLICT = 7
        NO_NETWORK_COLLECTOR_RUNNING = 8
        SYSTEM_FAILURE = 9
. " FILL_SNAPSHOT_DATA




ABAP code using 7.40 inline data declarations to call FM FILL_SNAPSHOT_DATA

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
"SELECT single LOC_REMOTE FROM DEF_PAR_FU INTO @DATA(ld_local_remote).
DATA(ld_local_remote) = 'LOCAL'.
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_cpu_all_read).
 
 
"SELECT single DETAILSREQ FROM DEF_PAR_FU INTO @DATA(ld_detailsreqi).
 
 
 
"SELECT single DETAILSMOD FROM DEF_PAR_FU INTO @DATA(ld_detailsmode).
 
 
"SELECT single LASTCOLLWR FROM DEF_PAR_FU INTO @DATA(ld_lastcollwrt).
 
 
"SELECT single LASTCOLLIN FROM DEF_PAR_FU INTO @DATA(ld_lastcollint).
 
 
"SELECT single NORMCOLLIN FROM DEF_PAR_FU INTO @DATA(ld_normcollint).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_pool_all_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_spag_all_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_stor_all_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_cpu_single_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_pool_single_read).
 
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_mem_all_read).
 
"SELECT single RFCDEST FROM RFCDES INTO @DATA(ld_logical_destination).
 
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_cpu_virt_aix_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_virt_config_read).
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_virt_metrics_read).
 
"SELECT single RFC_DATA_H FROM DEF_PAR_FU INTO @DATA(ld_system_id).
 
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_disk_single_read).
 
 
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_lan_single_read).
 
 
 
"SELECT single NO_YES FROM DEF_PAR_FU INTO @DATA(ld_f_top_single_read).
 
 
"SELECT single TAB_TYP FROM DEF_PAR_FU INTO @DATA(ld_tab_type).
 
 
 
"SELECT single ACTIVEFLAG FROM DEF_PAR_FU INTO @DATA(ld_activeflag).
 
 
 
"SELECT single INTERVAL FROM DEF_PAR_FU INTO @DATA(ld_interval).
 
 
 
"SELECT single DETAILSCOL FROM DEF_PAR_FU INTO @DATA(ld_detailscoll).
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!