SAP Function Modules

ISH_UPDATE_NAPHF SAP Function module - IS-H: Asynchronous update for IS-H: Charge factor history for case NAPHF







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

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


Pattern for FM ISH_UPDATE_NAPHF - ISH UPDATE NAPHF





CALL FUNCTION 'ISH_UPDATE_NAPHF' "IS-H: Asynchronous update for IS-H: Charge factor history for case NAPHF
  EXPORTING
*   datum = SY-DATUM            " sy-datum      Current system date for update
    tcode =                     " sy-tcode      Transaction code
*   uname = SY-UNAME            " sy-uname      Current user name for update
*   uzeit = SY-UZEIT            " sy-uzeit      Current system time for update
  TABLES
    nnaphf =                    " vnaphf        New data
    onaphf =                    " vnaphf        Old data
    .  "  ISH_UPDATE_NAPHF

ABAP code example for Function Module ISH_UPDATE_NAPHF





The ABAP code below is a full code listing to execute function module ISH_UPDATE_NAPHF 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_nnaphf  TYPE STANDARD TABLE OF VNAPHF,"TABLES PARAM
wa_nnaphf  LIKE LINE OF it_nnaphf ,
it_onaphf  TYPE STANDARD TABLE OF VNAPHF,"TABLES PARAM
wa_onaphf  LIKE LINE OF it_onaphf .

DATA(ld_datum) = '20210129'.
DATA(ld_tcode) = 'some text here'.
DATA(ld_uname) = 'some text here'.
DATA(ld_uzeit) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_nnaphf to it_nnaphf.

"populate fields of struture and append to itab
append wa_onaphf to it_onaphf. . CALL FUNCTION 'ISH_UPDATE_NAPHF' EXPORTING * datum = ld_datum tcode = ld_tcode * uname = ld_uname * uzeit = ld_uzeit TABLES nnaphf = it_nnaphf onaphf = it_onaphf . " ISH_UPDATE_NAPHF
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_datum  TYPE SY-DATUM ,
it_nnaphf  TYPE STANDARD TABLE OF VNAPHF ,
wa_nnaphf  LIKE LINE OF it_nnaphf,
ld_tcode  TYPE SY-TCODE ,
it_onaphf  TYPE STANDARD TABLE OF VNAPHF ,
wa_onaphf  LIKE LINE OF it_onaphf,
ld_uname  TYPE SY-UNAME ,
ld_uzeit  TYPE SY-UZEIT .

ld_datum = '20210129'.

"populate fields of struture and append to itab
append wa_nnaphf to it_nnaphf.
ld_tcode = 'some text here'.

"populate fields of struture and append to itab
append wa_onaphf to it_onaphf.
ld_uname = 'some text here'.
ld_uzeit = '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_UPDATE_NAPHF or its description.