SAP Function Modules

ISH_CASESERVICE_SAVE SAP Function module







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

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


Pattern for FM ISH_CASESERVICE_SAVE - ISH CASESERVICE SAVE





CALL FUNCTION 'ISH_CASESERVICE_SAVE' "
  EXPORTING
    ss_einri =                  " tn01-einri    Institution
    ss_falnr =                  " nfal-falnr    Case Number
    ss_actnfal =                " nfal          Current Case Data
*   ss_nonlkz = ' '             " ish_on_off
  IMPORTING
    ss_retmaxtype =             " npdok-bapiretmaxty  Message Type That Occurred Most
* TABLES
*   ss_actnlei =                " vnlei         Current Services
*   ss_actnnlz =                " vnnlz
*   ss_actnllz =                " vnllz
*   ss_actnlicz =               " vnlicz
*   ss_onlei =                  " nlei
*   ss_onnlz =                  " nnlz
*   ss_return =                 " bapiret2      Return Code
    .  "  ISH_CASESERVICE_SAVE

ABAP code example for Function Module ISH_CASESERVICE_SAVE





The ABAP code below is a full code listing to execute function module ISH_CASESERVICE_SAVE 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_ss_retmaxtype  TYPE NPDOK-BAPIRETMAXTY ,
it_ss_actnlei  TYPE STANDARD TABLE OF VNLEI,"TABLES PARAM
wa_ss_actnlei  LIKE LINE OF it_ss_actnlei ,
it_ss_actnnlz  TYPE STANDARD TABLE OF VNNLZ,"TABLES PARAM
wa_ss_actnnlz  LIKE LINE OF it_ss_actnnlz ,
it_ss_actnllz  TYPE STANDARD TABLE OF VNLLZ,"TABLES PARAM
wa_ss_actnllz  LIKE LINE OF it_ss_actnllz ,
it_ss_actnlicz  TYPE STANDARD TABLE OF VNLICZ,"TABLES PARAM
wa_ss_actnlicz  LIKE LINE OF it_ss_actnlicz ,
it_ss_onlei  TYPE STANDARD TABLE OF NLEI,"TABLES PARAM
wa_ss_onlei  LIKE LINE OF it_ss_onlei ,
it_ss_onnlz  TYPE STANDARD TABLE OF NNLZ,"TABLES PARAM
wa_ss_onnlz  LIKE LINE OF it_ss_onnlz ,
it_ss_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_ss_return  LIKE LINE OF it_ss_return .


SELECT single EINRI
FROM TN01
INTO @DATA(ld_ss_einri).


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

DATA(ld_ss_actnfal) = 'Check type of data required'.
DATA(ld_ss_nonlkz) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ss_actnlei to it_ss_actnlei.

"populate fields of struture and append to itab
append wa_ss_actnnlz to it_ss_actnnlz.

"populate fields of struture and append to itab
append wa_ss_actnllz to it_ss_actnllz.

"populate fields of struture and append to itab
append wa_ss_actnlicz to it_ss_actnlicz.

"populate fields of struture and append to itab
append wa_ss_onlei to it_ss_onlei.

"populate fields of struture and append to itab
append wa_ss_onnlz to it_ss_onnlz.

"populate fields of struture and append to itab
append wa_ss_return to it_ss_return. . CALL FUNCTION 'ISH_CASESERVICE_SAVE' EXPORTING ss_einri = ld_ss_einri ss_falnr = ld_ss_falnr ss_actnfal = ld_ss_actnfal * ss_nonlkz = ld_ss_nonlkz IMPORTING ss_retmaxtype = ld_ss_retmaxtype * TABLES * ss_actnlei = it_ss_actnlei * ss_actnnlz = it_ss_actnnlz * ss_actnllz = it_ss_actnllz * ss_actnlicz = it_ss_actnlicz * ss_onlei = it_ss_onlei * ss_onnlz = it_ss_onnlz * ss_return = it_ss_return . " ISH_CASESERVICE_SAVE
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_ss_retmaxtype  TYPE NPDOK-BAPIRETMAXTY ,
ld_ss_einri  TYPE TN01-EINRI ,
it_ss_actnlei  TYPE STANDARD TABLE OF VNLEI ,
wa_ss_actnlei  LIKE LINE OF it_ss_actnlei,
ld_ss_falnr  TYPE NFAL-FALNR ,
it_ss_actnnlz  TYPE STANDARD TABLE OF VNNLZ ,
wa_ss_actnnlz  LIKE LINE OF it_ss_actnnlz,
ld_ss_actnfal  TYPE NFAL ,
it_ss_actnllz  TYPE STANDARD TABLE OF VNLLZ ,
wa_ss_actnllz  LIKE LINE OF it_ss_actnllz,
ld_ss_nonlkz  TYPE ISH_ON_OFF ,
it_ss_actnlicz  TYPE STANDARD TABLE OF VNLICZ ,
wa_ss_actnlicz  LIKE LINE OF it_ss_actnlicz,
it_ss_onlei  TYPE STANDARD TABLE OF NLEI ,
wa_ss_onlei  LIKE LINE OF it_ss_onlei,
it_ss_onnlz  TYPE STANDARD TABLE OF NNLZ ,
wa_ss_onnlz  LIKE LINE OF it_ss_onnlz,
it_ss_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_ss_return  LIKE LINE OF it_ss_return.


SELECT single EINRI
FROM TN01
INTO ld_ss_einri.


"populate fields of struture and append to itab
append wa_ss_actnlei to it_ss_actnlei.

SELECT single FALNR
FROM NFAL
INTO ld_ss_falnr.


"populate fields of struture and append to itab
append wa_ss_actnnlz to it_ss_actnnlz.
ld_ss_actnfal = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ss_actnllz to it_ss_actnllz.
ld_ss_nonlkz = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ss_actnlicz to it_ss_actnlicz.

"populate fields of struture and append to itab
append wa_ss_onlei to it_ss_onlei.

"populate fields of struture and append to itab
append wa_ss_onnlz to it_ss_onnlz.

"populate fields of struture and append to itab
append wa_ss_return to it_ss_return.

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