SAP Function Modules

UMB_API_GRAPHIC SAP Function module







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

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


Pattern for FM UMB_API_GRAPHIC - UMB API GRAPHIC





CALL FUNCTION 'UMB_API_GRAPHIC' "
  EXPORTING
    i_scard =                   " umb_y_scard
    i_meas =                    " umk_y_meas
    i_gseq =                    " umb_y_gseq
    i_curper =                  " umb_y_curper
    i_tarper =                  " umb_y_tarper
    i_frper =                   " umc_y_validfr
    i_toper =                   " umc_y_validto
    i_est_col =                 " umb_y_col
*   i_width = 320               " i
*   i_height = 200              " i
*   i_font_size = 8             " i
*   i_abs_url = SPACE           " as4flag
  IMPORTING
    e_response =                " string
  EXCEPTIONS
    INVALID_SCARD = 1           "
    INVALID_MEAS = 2            "
    INVALID_GRAPHIC = 3         "
    .  "  UMB_API_GRAPHIC

ABAP code example for Function Module UMB_API_GRAPHIC





The ABAP code below is a full code listing to execute function module UMB_API_GRAPHIC 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_e_response  TYPE STRING .

DATA(ld_i_scard) = 'Check type of data required'.
DATA(ld_i_meas) = 'Check type of data required'.
DATA(ld_i_gseq) = 'Check type of data required'.
DATA(ld_i_curper) = 'Check type of data required'.
DATA(ld_i_tarper) = 'Check type of data required'.
DATA(ld_i_frper) = 'Check type of data required'.
DATA(ld_i_toper) = 'Check type of data required'.
DATA(ld_i_est_col) = 'Check type of data required'.
DATA(ld_i_width) = 'Check type of data required'.
DATA(ld_i_height) = 'Check type of data required'.
DATA(ld_i_font_size) = 'Check type of data required'.
DATA(ld_i_abs_url) = 'Check type of data required'. . CALL FUNCTION 'UMB_API_GRAPHIC' EXPORTING i_scard = ld_i_scard i_meas = ld_i_meas i_gseq = ld_i_gseq i_curper = ld_i_curper i_tarper = ld_i_tarper i_frper = ld_i_frper i_toper = ld_i_toper i_est_col = ld_i_est_col * i_width = ld_i_width * i_height = ld_i_height * i_font_size = ld_i_font_size * i_abs_url = ld_i_abs_url IMPORTING e_response = ld_e_response EXCEPTIONS INVALID_SCARD = 1 INVALID_MEAS = 2 INVALID_GRAPHIC = 3 . " UMB_API_GRAPHIC
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_e_response  TYPE STRING ,
ld_i_scard  TYPE UMB_Y_SCARD ,
ld_i_meas  TYPE UMK_Y_MEAS ,
ld_i_gseq  TYPE UMB_Y_GSEQ ,
ld_i_curper  TYPE UMB_Y_CURPER ,
ld_i_tarper  TYPE UMB_Y_TARPER ,
ld_i_frper  TYPE UMC_Y_VALIDFR ,
ld_i_toper  TYPE UMC_Y_VALIDTO ,
ld_i_est_col  TYPE UMB_Y_COL ,
ld_i_width  TYPE I ,
ld_i_height  TYPE I ,
ld_i_font_size  TYPE I ,
ld_i_abs_url  TYPE AS4FLAG .

ld_i_scard = 'Check type of data required'.
ld_i_meas = 'Check type of data required'.
ld_i_gseq = 'Check type of data required'.
ld_i_curper = 'Check type of data required'.
ld_i_tarper = 'Check type of data required'.
ld_i_frper = 'Check type of data required'.
ld_i_toper = 'Check type of data required'.
ld_i_est_col = 'Check type of data required'.
ld_i_width = 'Check type of data required'.
ld_i_height = 'Check type of data required'.
ld_i_font_size = 'Check type of data required'.
ld_i_abs_url = '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 UMB_API_GRAPHIC or its description.