SAP Function Modules

ISH_NPMI_POLL_ERRMSGREF SAP Function module







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

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


Pattern for FM ISH_NPMI_POLL_ERRMSGREF - ISH NPMI POLL ERRMSGREF





CALL FUNCTION 'ISH_NPMI_POLL_ERRMSGREF' "
  EXPORTING
    institution =               " nc301s-einri
*   patnumber = SPACE           " npat-patnr
    extpatid =                  " npat-extnr
*   ediproc = 'NPMI'            " nc301s-ediproc
*   ss_lf301 =                  " nc301s-lf301
*   ss_request = 'X'            " rncom-xfeld
  IMPORTING
    e_nodata_error =            " rncom-xfeld
    e_nodata_ok =               " rncom-xfeld
  TABLES
    e_rnc301err =               " rnc301err
  EXCEPTIONS
    NO_MSG_AVAILABLE = 1        "
    MISSING_PARAMETERS = 2      "
    .  "  ISH_NPMI_POLL_ERRMSGREF

ABAP code example for Function Module ISH_NPMI_POLL_ERRMSGREF





The ABAP code below is a full code listing to execute function module ISH_NPMI_POLL_ERRMSGREF 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_nodata_error  TYPE RNCOM-XFELD ,
ld_e_nodata_ok  TYPE RNCOM-XFELD ,
it_e_rnc301err  TYPE STANDARD TABLE OF RNC301ERR,"TABLES PARAM
wa_e_rnc301err  LIKE LINE OF it_e_rnc301err .


SELECT single EINRI
FROM NC301S
INTO @DATA(ld_institution).


SELECT single PATNR
FROM NPAT
INTO @DATA(ld_patnumber).


SELECT single EXTNR
FROM NPAT
INTO @DATA(ld_extpatid).


SELECT single EDIPROC
FROM NC301S
INTO @DATA(ld_ediproc).


SELECT single LF301
FROM NC301S
INTO @DATA(ld_ss_lf301).


DATA(ld_ss_request) = some text here

"populate fields of struture and append to itab
append wa_e_rnc301err to it_e_rnc301err. . CALL FUNCTION 'ISH_NPMI_POLL_ERRMSGREF' EXPORTING institution = ld_institution * patnumber = ld_patnumber extpatid = ld_extpatid * ediproc = ld_ediproc * ss_lf301 = ld_ss_lf301 * ss_request = ld_ss_request IMPORTING e_nodata_error = ld_e_nodata_error e_nodata_ok = ld_e_nodata_ok TABLES e_rnc301err = it_e_rnc301err EXCEPTIONS NO_MSG_AVAILABLE = 1 MISSING_PARAMETERS = 2 . " ISH_NPMI_POLL_ERRMSGREF
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 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_nodata_error  TYPE RNCOM-XFELD ,
ld_institution  TYPE NC301S-EINRI ,
it_e_rnc301err  TYPE STANDARD TABLE OF RNC301ERR ,
wa_e_rnc301err  LIKE LINE OF it_e_rnc301err,
ld_e_nodata_ok  TYPE RNCOM-XFELD ,
ld_patnumber  TYPE NPAT-PATNR ,
ld_extpatid  TYPE NPAT-EXTNR ,
ld_ediproc  TYPE NC301S-EDIPROC ,
ld_ss_lf301  TYPE NC301S-LF301 ,
ld_ss_request  TYPE RNCOM-XFELD .


SELECT single EINRI
FROM NC301S
INTO ld_institution.


"populate fields of struture and append to itab
append wa_e_rnc301err to it_e_rnc301err.

SELECT single PATNR
FROM NPAT
INTO ld_patnumber.


SELECT single EXTNR
FROM NPAT
INTO ld_extpatid.


SELECT single EDIPROC
FROM NC301S
INTO ld_ediproc.


SELECT single LF301
FROM NC301S
INTO ld_ss_lf301.


ld_ss_request = 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 ISH_NPMI_POLL_ERRMSGREF or its description.