SAP Function Modules

SALH_SELFMONI_BUILD_NODE SAP Function module







SALH_SELFMONI_BUILD_NODE 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 SALH_SELFMONI_BUILD_NODE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SALH_SELFMONI_BUILD_NODE - SALH SELFMONI BUILD NODE





CALL FUNCTION 'SALH_SELFMONI_BUILD_NODE' "
  EXPORTING
    selfmoni_mo_name =          " almtcreate-name
*   selfmoni_mo_uid =           " almtcreate-uniquenum
    selfmoni_mo_mte_class =     " almtcreate-cusgroupmt
*   selfmoni_ma_name =          " almtcreate-name
*   selfmoni_ma_uid =           " almtcreate-uniquenum
*   selfmoni_ma_mte_class =     " almtcreate-cusgroupmt
*   systemwide_context = ' '    " alparams-only_local
*   mte_seconds_til_collectingtool = 0  " almtcustwr-sectrgtool  Alert: Time Values in Seconds
*   tool_collecting =           " altoolassg-toolname  Alert: Logical Name of Tool
  IMPORTING
    selfmoni_tid =              " alglobtid
  EXCEPTIONS
    COULD_NOT_BUILD_NODE = 1    "
    .  "  SALH_SELFMONI_BUILD_NODE

ABAP code example for Function Module SALH_SELFMONI_BUILD_NODE





The ABAP code below is a full code listing to execute function module SALH_SELFMONI_BUILD_NODE 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_selfmoni_tid  TYPE ALGLOBTID .


DATA(ld_selfmoni_mo_name) = some text here

DATA(ld_selfmoni_mo_uid) = 123

DATA(ld_selfmoni_mo_mte_class) = some text here

DATA(ld_selfmoni_ma_name) = some text here

DATA(ld_selfmoni_ma_uid) = 123

DATA(ld_selfmoni_ma_mte_class) = some text here

DATA(ld_systemwide_context) = some text here

DATA(ld_mte_seconds_til_collectingtool) = 123

DATA(ld_tool_collecting) = some text here . CALL FUNCTION 'SALH_SELFMONI_BUILD_NODE' EXPORTING selfmoni_mo_name = ld_selfmoni_mo_name * selfmoni_mo_uid = ld_selfmoni_mo_uid selfmoni_mo_mte_class = ld_selfmoni_mo_mte_class * selfmoni_ma_name = ld_selfmoni_ma_name * selfmoni_ma_uid = ld_selfmoni_ma_uid * selfmoni_ma_mte_class = ld_selfmoni_ma_mte_class * systemwide_context = ld_systemwide_context * mte_seconds_til_collectingtool = ld_mte_seconds_til_collectingtool * tool_collecting = ld_tool_collecting IMPORTING selfmoni_tid = ld_selfmoni_tid EXCEPTIONS COULD_NOT_BUILD_NODE = 1 . " SALH_SELFMONI_BUILD_NODE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_selfmoni_tid  TYPE ALGLOBTID ,
ld_selfmoni_mo_name  TYPE ALMTCREATE-NAME ,
ld_selfmoni_mo_uid  TYPE ALMTCREATE-UNIQUENUM ,
ld_selfmoni_mo_mte_class  TYPE ALMTCREATE-CUSGROUPMT ,
ld_selfmoni_ma_name  TYPE ALMTCREATE-NAME ,
ld_selfmoni_ma_uid  TYPE ALMTCREATE-UNIQUENUM ,
ld_selfmoni_ma_mte_class  TYPE ALMTCREATE-CUSGROUPMT ,
ld_systemwide_context  TYPE ALPARAMS-ONLY_LOCAL ,
ld_mte_seconds_til_collectingtool  TYPE ALMTCUSTWR-SECTRGTOOL ,
ld_tool_collecting  TYPE ALTOOLASSG-TOOLNAME .


ld_selfmoni_mo_name = some text here

ld_selfmoni_mo_uid = 123

ld_selfmoni_mo_mte_class = some text here

ld_selfmoni_ma_name = some text here

ld_selfmoni_ma_uid = 123

ld_selfmoni_ma_mte_class = some text here

ld_systemwide_context = some text here

ld_mte_seconds_til_collectingtool = 123

ld_tool_collecting = some text here

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 SALH_SELFMONI_BUILD_NODE or its description.