SAP ISH_DETERMINE_CLASS_OF_SERVICE Function Module for









ISH_DETERMINE_CLASS_OF_SERVICE is a standard ish determine class of service 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 determine class of service FM, simply by entering the name ISH_DETERMINE_CLASS_OF_SERVICE into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_DETERMINE_CLASS_OF_SERVICE 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_DETERMINE_CLASS_OF_SERVICE'"
EXPORTING
EINRI = "
LNRLS = "
FALNR = "
* BGDT = "
* BGZT = "
* ENDT = "
* ENZT = "
* LFDBEW = "

IMPORTING
PAYCLASS = "

TABLES
* INBEW = "

EXCEPTIONS
MISSING_DATA = 1 LNRLS_NOT_FOUND = 2 NO_DATA_FOUND = 3
.



IMPORTING Parameters details for ISH_DETERMINE_CLASS_OF_SERVICE

EINRI -

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

LNRLS -

Data type: NLEI-LNRLS
Optional: No
Call by Reference: No ( called with pass by value option)

FALNR -

Data type: NBEW-FALNR
Optional: No
Call by Reference: No ( called with pass by value option)

BGDT -

Data type: NLEI-IBGDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

BGZT -

Data type: NLEI-IBZT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENDT -

Data type: NLEI-IENDT
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENZT -

Data type: NLEI-IEZT
Optional: Yes
Call by Reference: No ( called with pass by value option)

LFDBEW -

Data type: NBEW-LFDNR
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for ISH_DETERMINE_CLASS_OF_SERVICE

PAYCLASS -

Data type: TNP01-CLASS
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for ISH_DETERMINE_CLASS_OF_SERVICE

INBEW -

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

EXCEPTIONS details

MISSING_DATA -

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

LNRLS_NOT_FOUND -

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

NO_DATA_FOUND -

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

Copy and paste ABAP code example for ISH_DETERMINE_CLASS_OF_SERVICE 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:
lv_einri  TYPE NLEI-EINRI, "   
lt_inbew  TYPE STANDARD TABLE OF VNBEW, "   
lv_payclass  TYPE TNP01-CLASS, "   
lv_missing_data  TYPE TNP01, "   
lv_lnrls  TYPE NLEI-LNRLS, "   
lv_lnrls_not_found  TYPE NLEI, "   
lv_falnr  TYPE NBEW-FALNR, "   
lv_no_data_found  TYPE NBEW, "   
lv_bgdt  TYPE NLEI-IBGDT, "   
lv_bgzt  TYPE NLEI-IBZT, "   
lv_endt  TYPE NLEI-IENDT, "   
lv_enzt  TYPE NLEI-IEZT, "   
lv_lfdbew  TYPE NBEW-LFDNR. "   

  CALL FUNCTION 'ISH_DETERMINE_CLASS_OF_SERVICE'  "
    EXPORTING
         EINRI = lv_einri
         LNRLS = lv_lnrls
         FALNR = lv_falnr
         BGDT = lv_bgdt
         BGZT = lv_bgzt
         ENDT = lv_endt
         ENZT = lv_enzt
         LFDBEW = lv_lfdbew
    IMPORTING
         PAYCLASS = lv_payclass
    TABLES
         INBEW = lt_inbew
    EXCEPTIONS
        MISSING_DATA = 1
        LNRLS_NOT_FOUND = 2
        NO_DATA_FOUND = 3
. " ISH_DETERMINE_CLASS_OF_SERVICE




ABAP code using 7.40 inline data declarations to call FM ISH_DETERMINE_CLASS_OF_SERVICE

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.

"SELECT single EINRI FROM NLEI INTO @DATA(ld_einri).
 
 
"SELECT single CLASS FROM TNP01 INTO @DATA(ld_payclass).
 
 
"SELECT single LNRLS FROM NLEI INTO @DATA(ld_lnrls).
 
 
"SELECT single FALNR FROM NBEW INTO @DATA(ld_falnr).
 
 
"SELECT single IBGDT FROM NLEI INTO @DATA(ld_bgdt).
 
"SELECT single IBZT FROM NLEI INTO @DATA(ld_bgzt).
 
"SELECT single IENDT FROM NLEI INTO @DATA(ld_endt).
 
"SELECT single IEZT FROM NLEI INTO @DATA(ld_enzt).
 
"SELECT single LFDNR FROM NBEW INTO @DATA(ld_lfdbew).
 


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!