SAP SYB_GET_DATACHANGE Function Module for SYB: Get datachange ratio









SYB_GET_DATACHANGE is a standard syb get datachange SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for SYB: Get datachange ratio processing and below is the pattern details for this FM, 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 syb get datachange FM, simply by entering the name SYB_GET_DATACHANGE into the relevant SAP transaction such as SE37 or SE38.

Function Group: SSYBEXT
Program Name: SAPLSSYBEXT
Main Program: SAPLSSYBEXT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SYB_GET_DATACHANGE 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 'SYB_GET_DATACHANGE'"SYB: Get datachange ratio
EXPORTING
* CON_NAME = "Logical name for a database connection
* DBNAME = "
* TABOWNER = 'SAPSR3' "
TABNAME = "

IMPORTING
DATACHANGE = "Datachange in %
ROWCOUNT = "Current total row count

TABLES
* PARTITIONS = "Table of Strings
PARTITION_DATACHANGE = "SYB: Partition datachange (external)

EXCEPTIONS
INVALID_PARAMETER_SET = 1 TABLE_NOT_FOUND = 2 PARTITION_NOT_FOUND = 3 DB_ERROR = 4
.



IMPORTING Parameters details for SYB_GET_DATACHANGE

CON_NAME - Logical name for a database connection

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

DBNAME -

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

TABOWNER -

Data type: STRING
Default: 'SAPSR3'
Optional: Yes
Call by Reference: Yes

TABNAME -

Data type: STRING
Optional: No
Call by Reference: Yes

EXPORTING Parameters details for SYB_GET_DATACHANGE

DATACHANGE - Datachange in %

Data type: SYBEXT_PART_DATACHANGE-DATACHANGE
Optional: No
Call by Reference: Yes

ROWCOUNT - Current total row count

Data type: SYBEXT_PART_DATACHANGE-ROWCOUNT
Optional: No
Call by Reference: Yes

TABLES Parameters details for SYB_GET_DATACHANGE

PARTITIONS - Table of Strings

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

PARTITION_DATACHANGE - SYB: Partition datachange (external)

Data type: SYBEXT_PART_DATACHANGE
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INVALID_PARAMETER_SET - Invalid Parameter Set

Data type:
Optional: No
Call by Reference: Yes

TABLE_NOT_FOUND - Table not found

Data type:
Optional: No
Call by Reference: Yes

PARTITION_NOT_FOUND - Data Partition not found

Data type:
Optional: No
Call by Reference: Yes

DB_ERROR - DB Error

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for SYB_GET_DATACHANGE 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:
lv_con_name  TYPE DBCON_NAME, "   
lv_datachange  TYPE SYBEXT_PART_DATACHANGE-DATACHANGE, "   
lt_partitions  TYPE STANDARD TABLE OF STRING_TABLE, "   
lv_invalid_parameter_set  TYPE STRING_TABLE, "   
lv_dbname  TYPE STRING, "   
lv_rowcount  TYPE SYBEXT_PART_DATACHANGE-ROWCOUNT, "   
lv_table_not_found  TYPE SYBEXT_PART_DATACHANGE, "   
lt_partition_datachange  TYPE STANDARD TABLE OF SYBEXT_PART_DATACHANGE, "   
lv_tabowner  TYPE STRING, "   'SAPSR3'
lv_partition_not_found  TYPE STRING, "   
lv_tabname  TYPE STRING, "   
lv_db_error  TYPE STRING. "   

  CALL FUNCTION 'SYB_GET_DATACHANGE'  "SYB: Get datachange ratio
    EXPORTING
         CON_NAME = lv_con_name
         DBNAME = lv_dbname
         TABOWNER = lv_tabowner
         TABNAME = lv_tabname
    IMPORTING
         DATACHANGE = lv_datachange
         ROWCOUNT = lv_rowcount
    TABLES
         PARTITIONS = lt_partitions
         PARTITION_DATACHANGE = lt_partition_datachange
    EXCEPTIONS
        INVALID_PARAMETER_SET = 1
        TABLE_NOT_FOUND = 2
        PARTITION_NOT_FOUND = 3
        DB_ERROR = 4
. " SYB_GET_DATACHANGE




ABAP code using 7.40 inline data declarations to call FM SYB_GET_DATACHANGE

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 DATACHANGE FROM SYBEXT_PART_DATACHANGE INTO @DATA(ld_datachange).
 
 
 
 
"SELECT single ROWCOUNT FROM SYBEXT_PART_DATACHANGE INTO @DATA(ld_rowcount).
 
 
 
DATA(ld_tabowner) = 'SAPSR3'.
 
 
 
 


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!