SAP Function Modules

ISH_AT_EDHON_EVENTS_PROC SAP Function module







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

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


Pattern for FM ISH_AT_EDHON_EVENTS_PROC - ISH AT EDHON EVENTS PROC





CALL FUNCTION 'ISH_AT_EDHON_EVENTS_PROC' "
  EXPORTING
    institution =               " nfal-einri
    casenumber =                " nfal-falnr
    patnumber =                 " npat-patnr
*   movenumber = '00000'        " nbew-lfdnr
*   destkostr = SPACE           " nc301-kostr
*   kostr_passed = SPACE        " rncom-xfeld
*   invoicenumber = SPACE       " vbrk-vbeln
*   reversednumber = SPACE      " vbrk-sfakn
*   i_test = SPACE              " ish_on_off
  IMPORTING
    e_qntneworders =            " rncom-quantity
  TABLES
    events =                    " rnevt
  EXCEPTIONS
    NO_EVENT_PROCESSED = 1      "
    .  "  ISH_AT_EDHON_EVENTS_PROC

ABAP code example for Function Module ISH_AT_EDHON_EVENTS_PROC





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


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


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


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


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 VBELN
FROM VBRK
INTO @DATA(ld_invoicenumber).


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

DATA(ld_i_test) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_events to it_events. . CALL FUNCTION 'ISH_AT_EDHON_EVENTS_PROC' EXPORTING institution = ld_institution casenumber = ld_casenumber patnumber = ld_patnumber * movenumber = ld_movenumber * destkostr = ld_destkostr * kostr_passed = ld_kostr_passed * invoicenumber = ld_invoicenumber * reversednumber = ld_reversednumber * i_test = ld_i_test IMPORTING e_qntneworders = ld_e_qntneworders TABLES events = it_events EXCEPTIONS NO_EVENT_PROCESSED = 1 . " ISH_AT_EDHON_EVENTS_PROC
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_e_qntneworders  TYPE RNCOM-QUANTITY ,
ld_institution  TYPE NFAL-EINRI ,
it_events  TYPE STANDARD TABLE OF RNEVT ,
wa_events  LIKE LINE OF it_events,
ld_casenumber  TYPE NFAL-FALNR ,
ld_patnumber  TYPE NPAT-PATNR ,
ld_movenumber  TYPE NBEW-LFDNR ,
ld_destkostr  TYPE NC301-KOSTR ,
ld_kostr_passed  TYPE RNCOM-XFELD ,
ld_invoicenumber  TYPE VBRK-VBELN ,
ld_reversednumber  TYPE VBRK-SFAKN ,
ld_i_test  TYPE ISH_ON_OFF .


SELECT single EINRI
FROM NFAL
INTO ld_institution.


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

SELECT single FALNR
FROM NFAL
INTO ld_casenumber.


SELECT single PATNR
FROM NPAT
INTO ld_patnumber.


SELECT single LFDNR
FROM NBEW
INTO ld_movenumber.


SELECT single KOSTR
FROM NC301
INTO ld_destkostr.


ld_kostr_passed = some text here

SELECT single VBELN
FROM VBRK
INTO ld_invoicenumber.


SELECT single SFAKN
FROM VBRK
INTO ld_reversednumber.

ld_i_test = '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 ISH_AT_EDHON_EVENTS_PROC or its description.