SAP BUS_TABLE_CHANGEDOCUMENTS_READ Function Module for









BUS_TABLE_CHANGEDOCUMENTS_READ is a standard bus table changedocuments read 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 bus table changedocuments read FM, simply by entering the name BUS_TABLE_CHANGEDOCUMENTS_READ into the relevant SAP transaction such as SE37 or SE38.

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



Function BUS_TABLE_CHANGEDOCUMENTS_READ 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 'BUS_TABLE_CHANGEDOCUMENTS_READ'"
EXPORTING
I_OBJECTCLAS = "Object Class
I_OBJECTID = "Object Value
I_TABNAME = "Table Name
* I_DATUM = "Validity Date
* I_CD_CHECK_MESSAGE = ' ' "
* I_ACTRUN = ' ' "
* I_PCHNGNR = ' ' "
* I_DATUM_INT = "

IMPORTING
E_CHANGES_ACTUAL = "
E_NOACT = "No changes found

CHANGING
* C_STRUCTURE = "

TABLES
* T_DATA = "
* T_TABKEY = "Table Keys
* T_DNTAB = "Table Structure

EXCEPTIONS
DATE_NOT_ALLOWED = 1 PLANNED_CHANGES_NOT_ACTIVE = 2
.



IMPORTING Parameters details for BUS_TABLE_CHANGEDOCUMENTS_READ

I_OBJECTCLAS - Object Class

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

I_OBJECTID - Object Value

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

I_TABNAME - Table Name

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

I_DATUM - Validity Date

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

I_CD_CHECK_MESSAGE -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ACTRUN -

Data type: BOOLE-BOOLE
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PCHNGNR -

Data type: PCDHDR-PLANCHNGNR
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DATUM_INT -

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

EXPORTING Parameters details for BUS_TABLE_CHANGEDOCUMENTS_READ

E_CHANGES_ACTUAL -

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

E_NOACT - No changes found

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

CHANGING Parameters details for BUS_TABLE_CHANGEDOCUMENTS_READ

C_STRUCTURE -

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

TABLES Parameters details for BUS_TABLE_CHANGEDOCUMENTS_READ

T_DATA -

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

T_TABKEY - Table Keys

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

T_DNTAB - Table Structure

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

EXCEPTIONS details

DATE_NOT_ALLOWED - Invalid Date

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

PLANNED_CHANGES_NOT_ACTIVE -

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

Copy and paste ABAP code example for BUS_TABLE_CHANGEDOCUMENTS_READ 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_t_data  TYPE STANDARD TABLE OF BUSDATA, "   
lv_c_structure  TYPE BUSDATA, "   
lv_i_objectclas  TYPE CDHDR-OBJECTCLAS, "   
lv_date_not_allowed  TYPE CDHDR, "   
lv_e_changes_actual  TYPE BOOLE-BOOLE, "   
lv_e_noact  TYPE BOOLE-BOOLE, "   
lt_t_tabkey  TYPE STANDARD TABLE OF CDSHW, "   
lv_i_objectid  TYPE CDHDR-OBJECTID, "   
lv_planned_changes_not_active  TYPE CDHDR, "   
lt_t_dntab  TYPE STANDARD TABLE OF DNTAB, "   
lv_i_tabname  TYPE CDSHW-TABNAME, "   
lv_i_datum  TYPE BUS000FLDS-VALDT, "   
lv_i_cd_check_message  TYPE BOOLE-BOOLE, "   SPACE
lv_i_actrun  TYPE BOOLE-BOOLE, "   SPACE
lv_i_pchngnr  TYPE PCDHDR-PLANCHNGNR, "   SPACE
lv_i_datum_int  TYPE SY-DATLO. "   

  CALL FUNCTION 'BUS_TABLE_CHANGEDOCUMENTS_READ'  "
    EXPORTING
         I_OBJECTCLAS = lv_i_objectclas
         I_OBJECTID = lv_i_objectid
         I_TABNAME = lv_i_tabname
         I_DATUM = lv_i_datum
         I_CD_CHECK_MESSAGE = lv_i_cd_check_message
         I_ACTRUN = lv_i_actrun
         I_PCHNGNR = lv_i_pchngnr
         I_DATUM_INT = lv_i_datum_int
    IMPORTING
         E_CHANGES_ACTUAL = lv_e_changes_actual
         E_NOACT = lv_e_noact
    CHANGING
         C_STRUCTURE = lv_c_structure
    TABLES
         T_DATA = lt_t_data
         T_TABKEY = lt_t_tabkey
         T_DNTAB = lt_t_dntab
    EXCEPTIONS
        DATE_NOT_ALLOWED = 1
        PLANNED_CHANGES_NOT_ACTIVE = 2
. " BUS_TABLE_CHANGEDOCUMENTS_READ




ABAP code using 7.40 inline data declarations to call FM BUS_TABLE_CHANGEDOCUMENTS_READ

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 OBJECTCLAS FROM CDHDR INTO @DATA(ld_i_objectclas).
 
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_changes_actual).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_e_noact).
 
 
"SELECT single OBJECTID FROM CDHDR INTO @DATA(ld_i_objectid).
 
 
 
"SELECT single TABNAME FROM CDSHW INTO @DATA(ld_i_tabname).
 
"SELECT single VALDT FROM BUS000FLDS INTO @DATA(ld_i_datum).
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_cd_check_message).
DATA(ld_i_cd_check_message) = ' '.
 
"SELECT single BOOLE FROM BOOLE INTO @DATA(ld_i_actrun).
DATA(ld_i_actrun) = ' '.
 
"SELECT single PLANCHNGNR FROM PCDHDR INTO @DATA(ld_i_pchngnr).
DATA(ld_i_pchngnr) = ' '.
 
"SELECT single DATLO FROM SY INTO @DATA(ld_i_datum_int).
 


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!