SAP BDL_SMON_READ_HARDW_DESCR_FILE Function Module for Read hardware configuration as in ST06









BDL_SMON_READ_HARDW_DESCR_FILE is a standard bdl smon read hardw descr file SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Read hardware configuration as in ST06 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 bdl smon read hardw descr file FM, simply by entering the name BDL_SMON_READ_HARDW_DESCR_FILE into the relevant SAP transaction such as SE37 or SE38.

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



Function BDL_SMON_READ_HARDW_DESCR_FILE 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 'BDL_SMON_READ_HARDW_DESCR_FILE'"Read hardware configuration as in ST06
EXPORTING
* TERMINATIONWAIT = 'X' "Beendigung des ext. Kommandos abwarten
* FILE_NAME = 'SAPNTCHK.LOG' "Hardware description file
* FILE_TYPE = 'ASCII' "Hardware description file type

TABLES
HW_OBJ_DESCR_TABLE = "

EXCEPTIONS
CANT_OPEN_FILE = 1 X_ERROR = 10 PARAMETER_EXPECTED = 11 TOO_MANY_PARAMETERS = 12 ILLEGAL_COMMAND = 13 WRONG_ASYNCHRONOUS_PARAMETERS = 14 CANT_ENQ_TBTCO_ENTRY = 15 JOBCOUNT_GENERATION_ERROR = 16 SYSTEM_FAILURE = 17 COMMUNICATION_FAILURE = 18 NO_AUTHORIZATION = 19 FILE_IS_EMPTY = 2 NO_PERMISSION = 3 COMMAND_NOT_FOUND = 4 PARAMETERS_TOO_LONG = 5 SECURITY_RISK = 6 WRONG_CHECK_CALL_INTERFACE = 7 PROGRAM_START_ERROR = 8 PROGRAM_TERMINATION_ERROR = 9
.



IMPORTING Parameters details for BDL_SMON_READ_HARDW_DESCR_FILE

TERMINATIONWAIT - Beendigung des ext. Kommandos abwarten

Data type: EXTCMDEXIM-TERMWAIT
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FILE_NAME - Hardware description file

Data type: TPFHT-PFFILE
Default: 'SAPNTCHK.LOG'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FILE_TYPE - Hardware description file type

Data type: SY-PLAYO
Default: 'ASCII'
Optional: Yes
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for BDL_SMON_READ_HARDW_DESCR_FILE

HW_OBJ_DESCR_TABLE -

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

EXCEPTIONS details

CANT_OPEN_FILE -

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

X_ERROR -

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

PARAMETER_EXPECTED -

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

TOO_MANY_PARAMETERS -

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

ILLEGAL_COMMAND -

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

WRONG_ASYNCHRONOUS_PARAMETERS -

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

CANT_ENQ_TBTCO_ENTRY -

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

JOBCOUNT_GENERATION_ERROR -

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)

COMMUNICATION_FAILURE -

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

NO_AUTHORIZATION -

Data type:
Optional: No
Call by Reference: Yes

FILE_IS_EMPTY -

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

NO_PERMISSION -

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

COMMAND_NOT_FOUND -

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

PARAMETERS_TOO_LONG -

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

SECURITY_RISK -

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

WRONG_CHECK_CALL_INTERFACE -

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

PROGRAM_START_ERROR -

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

PROGRAM_TERMINATION_ERROR -

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

Copy and paste ABAP code example for BDL_SMON_READ_HARDW_DESCR_FILE 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_cant_open_file  TYPE STRING, "   
lv_terminationwait  TYPE EXTCMDEXIM-TERMWAIT, "   'X'
lt_hw_obj_descr_table  TYPE STANDARD TABLE OF SHWODESCR, "   
lv_x_error  TYPE SHWODESCR, "   
lv_parameter_expected  TYPE SHWODESCR, "   
lv_too_many_parameters  TYPE SHWODESCR, "   
lv_illegal_command  TYPE SHWODESCR, "   
lv_wrong_asynchronous_parameters  TYPE SHWODESCR, "   
lv_cant_enq_tbtco_entry  TYPE SHWODESCR, "   
lv_jobcount_generation_error  TYPE SHWODESCR, "   
lv_system_failure  TYPE SHWODESCR, "   
lv_communication_failure  TYPE SHWODESCR, "   
lv_no_authorization  TYPE SHWODESCR, "   
lv_file_name  TYPE TPFHT-PFFILE, "   'SAPNTCHK,LOG'
lv_file_is_empty  TYPE TPFHT, "   
lv_file_type  TYPE SY-PLAYO, "   'ASCII'
lv_no_permission  TYPE SY, "   
lv_command_not_found  TYPE SY, "   
lv_parameters_too_long  TYPE SY, "   
lv_security_risk  TYPE SY, "   
lv_wrong_check_call_interface  TYPE SY, "   
lv_program_start_error  TYPE SY, "   
lv_program_termination_error  TYPE SY. "   

  CALL FUNCTION 'BDL_SMON_READ_HARDW_DESCR_FILE'  "Read hardware configuration as in ST06
    EXPORTING
         TERMINATIONWAIT = lv_terminationwait
         FILE_NAME = lv_file_name
         FILE_TYPE = lv_file_type
    TABLES
         HW_OBJ_DESCR_TABLE = lt_hw_obj_descr_table
    EXCEPTIONS
        CANT_OPEN_FILE = 1
        X_ERROR = 10
        PARAMETER_EXPECTED = 11
        TOO_MANY_PARAMETERS = 12
        ILLEGAL_COMMAND = 13
        WRONG_ASYNCHRONOUS_PARAMETERS = 14
        CANT_ENQ_TBTCO_ENTRY = 15
        JOBCOUNT_GENERATION_ERROR = 16
        SYSTEM_FAILURE = 17
        COMMUNICATION_FAILURE = 18
        NO_AUTHORIZATION = 19
        FILE_IS_EMPTY = 2
        NO_PERMISSION = 3
        COMMAND_NOT_FOUND = 4
        PARAMETERS_TOO_LONG = 5
        SECURITY_RISK = 6
        WRONG_CHECK_CALL_INTERFACE = 7
        PROGRAM_START_ERROR = 8
        PROGRAM_TERMINATION_ERROR = 9
. " BDL_SMON_READ_HARDW_DESCR_FILE




ABAP code using 7.40 inline data declarations to call FM BDL_SMON_READ_HARDW_DESCR_FILE

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 TERMWAIT FROM EXTCMDEXIM INTO @DATA(ld_terminationwait).
DATA(ld_terminationwait) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single PFFILE FROM TPFHT INTO @DATA(ld_file_name).
DATA(ld_file_name) = 'SAPNTCHK.LOG'.
 
 
"SELECT single PLAYO FROM SY INTO @DATA(ld_file_type).
DATA(ld_file_type) = 'ASCII'.
 
 
 
 
 
 
 
 


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!