SAP Function Modules

ISH_N2_SHIFT_DOC_CHECK SAP Function module







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

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


Pattern for FM ISH_N2_SHIFT_DOC_CHECK - ISH N2 SHIFT DOC CHECK





CALL FUNCTION 'ISH_N2_SHIFT_DOC_CHECK' "
* EXPORTING
*   i_einri =                   " einri
*   i_source_falnr =            " falnr
*   i_source_lfdnr =            " lfdbew
*   i_source_type =             " ish_shift_type
*   it_source_id =              " ish_t_shift_id
*   i_dest_falnr =              " falnr
*   i_dest_lfdnr =              " lfdbew
*   i_dest_type =               " ish_shift_type
*   it_dest_tab =               " ish_t_shift_object
*   i_testrun =                 " ish_on_off
*   i_shiftmode =               " ish_shiftmode
*   i_authority_check =         " ish_on_off
*   i_process =                 " ish_shift_process
*   i_cancel_reason =           " n1stoid
*   it_corr_tab =               " ish_t_shift_corr
*   it_source_tab =             " ish_t_shift_object
*   it_protocol =               " ish_t_nshift
*   it_protocol_id =            " ish_t_nshift_id
*   i_delete_case =             " ish_on_off
* CHANGING
*   c_errorhandler =            " cl_ishmed_errorhandling
    .  "  ISH_N2_SHIFT_DOC_CHECK

ABAP code example for Function Module ISH_N2_SHIFT_DOC_CHECK





The ABAP code below is a full code listing to execute function module ISH_N2_SHIFT_DOC_CHECK 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_c_errorhandler) = 'Check type of data required'.
DATA(ld_i_einri) = 'Check type of data required'.
DATA(ld_i_source_falnr) = 'Check type of data required'.
DATA(ld_i_source_lfdnr) = 'Check type of data required'.
DATA(ld_i_source_type) = 'Check type of data required'.
DATA(ld_it_source_id) = 'Check type of data required'.
DATA(ld_i_dest_falnr) = 'Check type of data required'.
DATA(ld_i_dest_lfdnr) = 'Check type of data required'.
DATA(ld_i_dest_type) = 'Check type of data required'.
DATA(ld_it_dest_tab) = 'Check type of data required'.
DATA(ld_i_testrun) = 'Check type of data required'.
DATA(ld_i_shiftmode) = 'Check type of data required'.
DATA(ld_i_authority_check) = 'Check type of data required'.
DATA(ld_i_process) = 'Check type of data required'.
DATA(ld_i_cancel_reason) = 'Check type of data required'.
DATA(ld_it_corr_tab) = 'Check type of data required'.
DATA(ld_it_source_tab) = 'Check type of data required'.
DATA(ld_it_protocol) = 'Check type of data required'.
DATA(ld_it_protocol_id) = 'Check type of data required'.
DATA(ld_i_delete_case) = 'Check type of data required'. . CALL FUNCTION 'ISH_N2_SHIFT_DOC_CHECK' * EXPORTING * i_einri = ld_i_einri * i_source_falnr = ld_i_source_falnr * i_source_lfdnr = ld_i_source_lfdnr * i_source_type = ld_i_source_type * it_source_id = ld_it_source_id * i_dest_falnr = ld_i_dest_falnr * i_dest_lfdnr = ld_i_dest_lfdnr * i_dest_type = ld_i_dest_type * it_dest_tab = ld_it_dest_tab * i_testrun = ld_i_testrun * i_shiftmode = ld_i_shiftmode * i_authority_check = ld_i_authority_check * i_process = ld_i_process * i_cancel_reason = ld_i_cancel_reason * it_corr_tab = ld_it_corr_tab * it_source_tab = ld_it_source_tab * it_protocol = ld_it_protocol * it_protocol_id = ld_it_protocol_id * i_delete_case = ld_i_delete_case * CHANGING * c_errorhandler = ld_c_errorhandler . " ISH_N2_SHIFT_DOC_CHECK
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_c_errorhandler  TYPE CL_ISHMED_ERRORHANDLING ,
ld_i_einri  TYPE EINRI ,
ld_i_source_falnr  TYPE FALNR ,
ld_i_source_lfdnr  TYPE LFDBEW ,
ld_i_source_type  TYPE ISH_SHIFT_TYPE ,
ld_it_source_id  TYPE ISH_T_SHIFT_ID ,
ld_i_dest_falnr  TYPE FALNR ,
ld_i_dest_lfdnr  TYPE LFDBEW ,
ld_i_dest_type  TYPE ISH_SHIFT_TYPE ,
ld_it_dest_tab  TYPE ISH_T_SHIFT_OBJECT ,
ld_i_testrun  TYPE ISH_ON_OFF ,
ld_i_shiftmode  TYPE ISH_SHIFTMODE ,
ld_i_authority_check  TYPE ISH_ON_OFF ,
ld_i_process  TYPE ISH_SHIFT_PROCESS ,
ld_i_cancel_reason  TYPE N1STOID ,
ld_it_corr_tab  TYPE ISH_T_SHIFT_CORR ,
ld_it_source_tab  TYPE ISH_T_SHIFT_OBJECT ,
ld_it_protocol  TYPE ISH_T_NSHIFT ,
ld_it_protocol_id  TYPE ISH_T_NSHIFT_ID ,
ld_i_delete_case  TYPE ISH_ON_OFF .

ld_c_errorhandler = 'Check type of data required'.
ld_i_einri = 'Check type of data required'.
ld_i_source_falnr = 'Check type of data required'.
ld_i_source_lfdnr = 'Check type of data required'.
ld_i_source_type = 'Check type of data required'.
ld_it_source_id = 'Check type of data required'.
ld_i_dest_falnr = 'Check type of data required'.
ld_i_dest_lfdnr = 'Check type of data required'.
ld_i_dest_type = 'Check type of data required'.
ld_it_dest_tab = 'Check type of data required'.
ld_i_testrun = 'Check type of data required'.
ld_i_shiftmode = 'Check type of data required'.
ld_i_authority_check = 'Check type of data required'.
ld_i_process = 'Check type of data required'.
ld_i_cancel_reason = 'Check type of data required'.
ld_it_corr_tab = 'Check type of data required'.
ld_it_source_tab = 'Check type of data required'.
ld_it_protocol = 'Check type of data required'.
ld_it_protocol_id = 'Check type of data required'.
ld_i_delete_case = '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_N2_SHIFT_DOC_CHECK or its description.