SAP ISH_CH_API_CALL Function Module for









ISH_CH_API_CALL is a standard ish ch api call SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for ish ch api call FM, simply by entering the name ISH_CH_API_CALL into the relevant SAP transaction such as SE37 or SE38.

Function Group: NWCHCR_ERR
Program Name: SAPLNWCHCR_ERR
Main Program: SAPLNWCHCR_ERR
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function ISH_CH_API_CALL pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'ISH_CH_API_CALL'"
EXPORTING
I_CLIENT = "
I_INSTITUTION = "
* I_TESTRUN = 'X' "
I_ASSTYPEMSS = "
* I_CALL_FROM_BAPI = 'X' "

IMPORTING
E_RETMAXTY = "

TABLES
T_NFAL = "
* T_NLEI = "
* T_NNLZ = "
* T_NLLZ = "
* T_NWCHZME = "
* T_NWCHEXTREF = "
* T_RNDIAFLAG = "
T_RNLSR = "
* T_RNLRG = "
* T_RNLRZ = "
* T_RNLRZM = "
* T_RNLRZE = "
T_RETURN = "
* T_NDIA = "
.



IMPORTING Parameters details for ISH_CH_API_CALL

I_CLIENT -

Data type: MANDT
Optional: No
Call by Reference: No ( called with pass by value option)

I_INSTITUTION -

Data type: EINRI
Optional: No
Call by Reference: No ( called with pass by value option)

I_TESTRUN -

Data type: NTESTRUN
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_ASSTYPEMSS -

Data type: ISH_ZUOTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_CALL_FROM_BAPI -

Data type: ISH_ON_OFF
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISH_CH_API_CALL

E_RETMAXTY -

Data type: ISH_BAPIRETMAXTY
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_CH_API_CALL

T_NFAL -

Data type: RNWCHLS_NFAL
Optional: No
Call by Reference: Yes

T_NLEI -

Data type: NLEI
Optional: Yes
Call by Reference: Yes

T_NNLZ -

Data type: NNLZ
Optional: Yes
Call by Reference: Yes

T_NLLZ -

Data type: NLLZ
Optional: Yes
Call by Reference: Yes

T_NWCHZME -

Data type: NWCHZME
Optional: Yes
Call by Reference: Yes

T_NWCHEXTREF -

Data type: NWCHEXTREF
Optional: Yes
Call by Reference: Yes

T_RNDIAFLAG -

Data type: RNDIAFLAG
Optional: Yes
Call by Reference: Yes

T_RNLSR -

Data type: RNLSR
Optional: No
Call by Reference: Yes

T_RNLRG -

Data type: RNLRG
Optional: Yes
Call by Reference: Yes

T_RNLRZ -

Data type: RNLRZ
Optional: Yes
Call by Reference: Yes

T_RNLRZM -

Data type: RNLRZM
Optional: Yes
Call by Reference: Yes

T_RNLRZE -

Data type: RNLRZE_CH
Optional: Yes
Call by Reference: Yes

T_RETURN -

Data type: BAPIRET2
Optional: No
Call by Reference: Yes

T_NDIA -

Data type: NDIA
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for ISH_CH_API_CALL Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lt_t_nfal  TYPE STANDARD TABLE OF RNWCHLS_NFAL, "   
lv_i_client  TYPE MANDT, "   
lv_e_retmaxty  TYPE ISH_BAPIRETMAXTY, "   
lt_t_nlei  TYPE STANDARD TABLE OF NLEI, "   
lt_t_nnlz  TYPE STANDARD TABLE OF NNLZ, "   
lt_t_nllz  TYPE STANDARD TABLE OF NLLZ, "   
lt_t_nwchzme  TYPE STANDARD TABLE OF NWCHZME, "   
lt_t_nwchextref  TYPE STANDARD TABLE OF NWCHEXTREF, "   
lt_t_rndiaflag  TYPE STANDARD TABLE OF RNDIAFLAG, "   
lv_i_institution  TYPE EINRI, "   
lt_t_rnlsr  TYPE STANDARD TABLE OF RNLSR, "   
lv_i_testrun  TYPE NTESTRUN, "   'X'
lt_t_rnlrg  TYPE STANDARD TABLE OF RNLRG, "   
lv_i_asstypemss  TYPE ISH_ZUOTYP, "   
lt_t_rnlrz  TYPE STANDARD TABLE OF RNLRZ, "   
lv_i_call_from_bapi  TYPE ISH_ON_OFF, "   'X'
lt_t_rnlrzm  TYPE STANDARD TABLE OF RNLRZM, "   
lt_t_rnlrze  TYPE STANDARD TABLE OF RNLRZE_CH, "   
lt_t_return  TYPE STANDARD TABLE OF BAPIRET2, "   
lt_t_ndia  TYPE STANDARD TABLE OF NDIA. "   

  CALL FUNCTION 'ISH_CH_API_CALL'  "
    EXPORTING
         I_CLIENT = lv_i_client
         I_INSTITUTION = lv_i_institution
         I_TESTRUN = lv_i_testrun
         I_ASSTYPEMSS = lv_i_asstypemss
         I_CALL_FROM_BAPI = lv_i_call_from_bapi
    IMPORTING
         E_RETMAXTY = lv_e_retmaxty
    TABLES
         T_NFAL = lt_t_nfal
         T_NLEI = lt_t_nlei
         T_NNLZ = lt_t_nnlz
         T_NLLZ = lt_t_nllz
         T_NWCHZME = lt_t_nwchzme
         T_NWCHEXTREF = lt_t_nwchextref
         T_RNDIAFLAG = lt_t_rndiaflag
         T_RNLSR = lt_t_rnlsr
         T_RNLRG = lt_t_rnlrg
         T_RNLRZ = lt_t_rnlrz
         T_RNLRZM = lt_t_rnlrzm
         T_RNLRZE = lt_t_rnlrze
         T_RETURN = lt_t_return
         T_NDIA = lt_t_ndia
. " ISH_CH_API_CALL




ABAP code using 7.40 inline data declarations to call FM ISH_CH_API_CALL

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
 
 
 
 
 
 
 
 
 
DATA(ld_i_testrun) = 'X'.
 
 
 
 
DATA(ld_i_call_from_bapi) = 'X'.
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!