SAP Function Modules

SCMG_PUBLISH_CUSTOM SAP Function module







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

Associated Function Group: SCMG_PUBLISH_AND_EXECUTE
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM SCMG_PUBLISH_CUSTOM - SCMG PUBLISH CUSTOM





CALL FUNCTION 'SCMG_PUBLISH_CUSTOM' "
  EXPORTING
    bor_type =                  " string        BOR Type
*   bor_id =                    " string
*   subtype =                   " string
    poid_state =                " string        POID Status
    bor_rmf_poid =              " srm_list_poid
    area_poid =                 " srm_list_poid
*   bor_sp_poid =               " srm_list_poid
    logical_system =            " string
  IMPORTING
    act_list =                  " srmactbor     Activity List
  EXCEPTIONS
    INTERNAL_ERROR = 1          "               Internal Error
    .  "  SCMG_PUBLISH_CUSTOM

ABAP code example for Function Module SCMG_PUBLISH_CUSTOM





The ABAP code below is a full code listing to execute function module SCMG_PUBLISH_CUSTOM 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_act_list  TYPE SRMACTBOR .

DATA(ld_bor_type) = 'Check type of data required'.
DATA(ld_bor_id) = 'Check type of data required'.
DATA(ld_subtype) = 'Check type of data required'.
DATA(ld_poid_state) = 'Check type of data required'.
DATA(ld_bor_rmf_poid) = 'Check type of data required'.
DATA(ld_area_poid) = 'Check type of data required'.
DATA(ld_bor_sp_poid) = 'Check type of data required'.
DATA(ld_logical_system) = 'Check type of data required'. . CALL FUNCTION 'SCMG_PUBLISH_CUSTOM' EXPORTING bor_type = ld_bor_type * bor_id = ld_bor_id * subtype = ld_subtype poid_state = ld_poid_state bor_rmf_poid = ld_bor_rmf_poid area_poid = ld_area_poid * bor_sp_poid = ld_bor_sp_poid logical_system = ld_logical_system IMPORTING act_list = ld_act_list EXCEPTIONS INTERNAL_ERROR = 1 . " SCMG_PUBLISH_CUSTOM
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_act_list  TYPE SRMACTBOR ,
ld_bor_type  TYPE STRING ,
ld_bor_id  TYPE STRING ,
ld_subtype  TYPE STRING ,
ld_poid_state  TYPE STRING ,
ld_bor_rmf_poid  TYPE SRM_LIST_POID ,
ld_area_poid  TYPE SRM_LIST_POID ,
ld_bor_sp_poid  TYPE SRM_LIST_POID ,
ld_logical_system  TYPE STRING .

ld_bor_type = 'Check type of data required'.
ld_bor_id = 'Check type of data required'.
ld_subtype = 'Check type of data required'.
ld_poid_state = 'Check type of data required'.
ld_bor_rmf_poid = 'Check type of data required'.
ld_area_poid = 'Check type of data required'.
ld_bor_sp_poid = 'Check type of data required'.
ld_logical_system = 'Check type of data required'.

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