SAP Function Modules

PM_NOTIFICATION_DOWNLOAD SAP Function module







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

Associated Function Group: ICUS
Released Date: Not Released
Processing type: Start update immediately (start immed)
update module start immediate settings


Pattern for FM PM_NOTIFICATION_DOWNLOAD - PM NOTIFICATION DOWNLOAD





CALL FUNCTION 'PM_NOTIFICATION_DOWNLOAD' "
* EXPORTING
*   iviqmel = SPACE             " viqmel        Notification header
*   isadr = SPACE               " sadr          Address
*   language = SYST-LANGU       " t390_u-print_lang  Lang...
*   riwo1 = SPACE               " riwo1         Object data
*   riwo00 = SPACE              " riwo00        Parameter notification
  TABLES
    iviqmfe =                   " wqmfe         Notification items
    iviqmma =                   " wqmma         Notification tasks
    iviqmsm =                   " wqmsm         Notification measures
    iviqmur =                   " wqmur         Notification causes of damage
    ihpad_tab =                 " ihpad         Partners
    .  "  PM_NOTIFICATION_DOWNLOAD

ABAP code example for Function Module PM_NOTIFICATION_DOWNLOAD





The ABAP code below is a full code listing to execute function module PM_NOTIFICATION_DOWNLOAD 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:
it_iviqmfe  TYPE STANDARD TABLE OF WQMFE,"TABLES PARAM
wa_iviqmfe  LIKE LINE OF it_iviqmfe ,
it_iviqmma  TYPE STANDARD TABLE OF WQMMA,"TABLES PARAM
wa_iviqmma  LIKE LINE OF it_iviqmma ,
it_iviqmsm  TYPE STANDARD TABLE OF WQMSM,"TABLES PARAM
wa_iviqmsm  LIKE LINE OF it_iviqmsm ,
it_iviqmur  TYPE STANDARD TABLE OF WQMUR,"TABLES PARAM
wa_iviqmur  LIKE LINE OF it_iviqmur ,
it_ihpad_tab  TYPE STANDARD TABLE OF IHPAD,"TABLES PARAM
wa_ihpad_tab  LIKE LINE OF it_ihpad_tab .

DATA(ld_iviqmel) = 'Check type of data required'.
DATA(ld_isadr) = 'Check type of data required'.

SELECT single PRINT_LANG
FROM T390_U
INTO @DATA(ld_language).

DATA(ld_riwo1) = 'Check type of data required'.
DATA(ld_riwo00) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmfe to it_iviqmfe.

"populate fields of struture and append to itab
append wa_iviqmma to it_iviqmma.

"populate fields of struture and append to itab
append wa_iviqmsm to it_iviqmsm.

"populate fields of struture and append to itab
append wa_iviqmur to it_iviqmur.

"populate fields of struture and append to itab
append wa_ihpad_tab to it_ihpad_tab. . CALL FUNCTION 'PM_NOTIFICATION_DOWNLOAD' * EXPORTING * iviqmel = ld_iviqmel * isadr = ld_isadr * language = ld_language * riwo1 = ld_riwo1 * riwo00 = ld_riwo00 TABLES iviqmfe = it_iviqmfe iviqmma = it_iviqmma iviqmsm = it_iviqmsm iviqmur = it_iviqmur ihpad_tab = it_ihpad_tab . " PM_NOTIFICATION_DOWNLOAD
IF SY-SUBRC EQ 0. "All OK 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_iviqmel  TYPE VIQMEL ,
it_iviqmfe  TYPE STANDARD TABLE OF WQMFE ,
wa_iviqmfe  LIKE LINE OF it_iviqmfe,
ld_isadr  TYPE SADR ,
it_iviqmma  TYPE STANDARD TABLE OF WQMMA ,
wa_iviqmma  LIKE LINE OF it_iviqmma,
ld_language  TYPE T390_U-PRINT_LANG ,
it_iviqmsm  TYPE STANDARD TABLE OF WQMSM ,
wa_iviqmsm  LIKE LINE OF it_iviqmsm,
ld_riwo1  TYPE RIWO1 ,
it_iviqmur  TYPE STANDARD TABLE OF WQMUR ,
wa_iviqmur  LIKE LINE OF it_iviqmur,
ld_riwo00  TYPE RIWO00 ,
it_ihpad_tab  TYPE STANDARD TABLE OF IHPAD ,
wa_ihpad_tab  LIKE LINE OF it_ihpad_tab.

ld_iviqmel = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmfe to it_iviqmfe.
ld_isadr = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmma to it_iviqmma.

SELECT single PRINT_LANG
FROM T390_U
INTO ld_language.


"populate fields of struture and append to itab
append wa_iviqmsm to it_iviqmsm.
ld_riwo1 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_iviqmur to it_iviqmur.
ld_riwo00 = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ihpad_tab to it_ihpad_tab.

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