SAP Function Modules

ISH_301_EVENTS_PROCESSING SAP Function module







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

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


Pattern for FM ISH_301_EVENTS_PROCESSING - ISH 301 EVENTS PROCESSING





CALL FUNCTION 'ISH_301_EVENTS_PROCESSING' "
  EXPORTING
    ediproc =                   " tnc301g0-ediproc  EDI Procedure
    institution =               " nfal-einri    Insitution (Affected by the Events)
    patnumber =                 " npat-patnr    Patient Number (Affected by the Events)
    casenumber =                " nfal-falnr    Case Number (Affected by the Events)
*   movenumber = '00000'        " nbew-lfdnr    Movement Number (Affected by the Events)
*   destkostr = SPACE           " nc301-kostr
*   kostr_passed = SPACE        " rncom-xfeld
*   insuranceseqno = '000'      " nvvf-lfdnr
*   invoicenumber = SPACE       " vbrk-vbeln    Invoice Number
*   reversednumber = SPACE      " vbrk-sfakn
  TABLES
    events =                    " rnevt
  EXCEPTIONS
    MISSING_PARAMETERS = 1      "               Parameters not specified in interface
    .  "  ISH_301_EVENTS_PROCESSING

ABAP code example for Function Module ISH_301_EVENTS_PROCESSING





The ABAP code below is a full code listing to execute function module ISH_301_EVENTS_PROCESSING 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_events  TYPE STANDARD TABLE OF RNEVT,"TABLES PARAM
wa_events  LIKE LINE OF it_events .


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


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


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


SELECT single FALNR
FROM NFAL
INTO @DATA(ld_casenumber).


SELECT single LFDNR
FROM NBEW
INTO @DATA(ld_movenumber).


SELECT single KOSTR
FROM NC301
INTO @DATA(ld_destkostr).


DATA(ld_kostr_passed) = some text here

SELECT single LFDNR
FROM NVVF
INTO @DATA(ld_insuranceseqno).


SELECT single VBELN
FROM VBRK
INTO @DATA(ld_invoicenumber).


SELECT single SFAKN
FROM VBRK
INTO @DATA(ld_reversednumber).


"populate fields of struture and append to itab
append wa_events to it_events. . CALL FUNCTION 'ISH_301_EVENTS_PROCESSING' EXPORTING ediproc = ld_ediproc institution = ld_institution patnumber = ld_patnumber casenumber = ld_casenumber * movenumber = ld_movenumber * destkostr = ld_destkostr * kostr_passed = ld_kostr_passed * insuranceseqno = ld_insuranceseqno * invoicenumber = ld_invoicenumber * reversednumber = ld_reversednumber TABLES events = it_events EXCEPTIONS MISSING_PARAMETERS = 1 . " ISH_301_EVENTS_PROCESSING
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_ediproc  TYPE TNC301G0-EDIPROC ,
it_events  TYPE STANDARD TABLE OF RNEVT ,
wa_events  LIKE LINE OF it_events,
ld_institution  TYPE NFAL-EINRI ,
ld_patnumber  TYPE NPAT-PATNR ,
ld_casenumber  TYPE NFAL-FALNR ,
ld_movenumber  TYPE NBEW-LFDNR ,
ld_destkostr  TYPE NC301-KOSTR ,
ld_kostr_passed  TYPE RNCOM-XFELD ,
ld_insuranceseqno  TYPE NVVF-LFDNR ,
ld_invoicenumber  TYPE VBRK-VBELN ,
ld_reversednumber  TYPE VBRK-SFAKN .


SELECT single EDIPROC
FROM TNC301G0
INTO ld_ediproc.


"populate fields of struture and append to itab
append wa_events to it_events.

SELECT single EINRI
FROM NFAL
INTO ld_institution.


SELECT single PATNR
FROM NPAT
INTO ld_patnumber.


SELECT single FALNR
FROM NFAL
INTO ld_casenumber.


SELECT single LFDNR
FROM NBEW
INTO ld_movenumber.


SELECT single KOSTR
FROM NC301
INTO ld_destkostr.


ld_kostr_passed = some text here

SELECT single LFDNR
FROM NVVF
INTO ld_insuranceseqno.


SELECT single VBELN
FROM VBRK
INTO ld_invoicenumber.


SELECT single SFAKN
FROM VBRK
INTO ld_reversednumber.

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