SAP Function Modules

SRT_WSP_CREATE_OM_PRINTER SAP Function module - Create specific printer service configuration







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

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


Pattern for FM SRT_WSP_CREATE_OM_PRINTER - SRT WSP CREATE OM PRINTER





CALL FUNCTION 'SRT_WSP_CREATE_OM_PRINTER' "Create specific printer service configuration
  EXPORTING
*   pi_renew_config = ABAP_TRUE  " boolean      X=re-create configuration if already existing; space=otherwise
    pi_config_name =            " srt_wsp_rt_config_name  WSP Name of RT Configuration
*   pi_binding_name = 'binding'  " string       Binding name
    pi_service_def =            " srt_wsp_dt_obj_name  WSP Name of Interface Object
  EXCEPTIONS
    TECHNICAL_EXCEPTION = 1     "               Technischer Fehler aufgetreten
    CONFIG_ALREADY_EXISTS = 2   "               Konfiguration existiert bereits
    INVALID_PARAMETERS = 3      "               Ungültige Parameter
    .  "  SRT_WSP_CREATE_OM_PRINTER

ABAP code example for Function Module SRT_WSP_CREATE_OM_PRINTER





The ABAP code below is a full code listing to execute function module SRT_WSP_CREATE_OM_PRINTER 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_pi_renew_config) = 'Check type of data required'.
DATA(ld_pi_config_name) = 'Check type of data required'.
DATA(ld_pi_binding_name) = 'Check type of data required'.
DATA(ld_pi_service_def) = 'Check type of data required'. . CALL FUNCTION 'SRT_WSP_CREATE_OM_PRINTER' EXPORTING * pi_renew_config = ld_pi_renew_config pi_config_name = ld_pi_config_name * pi_binding_name = ld_pi_binding_name pi_service_def = ld_pi_service_def EXCEPTIONS TECHNICAL_EXCEPTION = 1 CONFIG_ALREADY_EXISTS = 2 INVALID_PARAMETERS = 3 . " SRT_WSP_CREATE_OM_PRINTER
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 3. "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_pi_renew_config  TYPE BOOLEAN ,
ld_pi_config_name  TYPE SRT_WSP_RT_CONFIG_NAME ,
ld_pi_binding_name  TYPE STRING ,
ld_pi_service_def  TYPE SRT_WSP_DT_OBJ_NAME .

ld_pi_renew_config = 'Check type of data required'.
ld_pi_config_name = 'Check type of data required'.
ld_pi_binding_name = 'Check type of data required'.
ld_pi_service_def = '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 SRT_WSP_CREATE_OM_PRINTER or its description.