SAP ISH_SHOW_OPEN_ITEMS Function Module for









ISH_SHOW_OPEN_ITEMS is a standard ish show open items 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 show open items FM, simply by entering the name ISH_SHOW_OPEN_ITEMS into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_SHOW_OPEN_ITEMS 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_SHOW_OPEN_ITEMS'"
EXPORTING
* DEBITOR = ' ' "Customer in Financial Accounting -->F2
* PARENT = "
* DISPLAY_AS_GRID = "
* I_KOSTR_DOWNPAY_SHOW = ' ' "
EINRICHTUNG = "Institution
* MIT_AP = ' ' "With cleared items
* MIT_SHBV = 'X' "With special G/L transactions
PATIENT = "Patient
* SORTIERUNG = 1 "Sort --> F2
* WINDOW_TITLE1 = 'Patient'(SC1) "Window title before colon
* WINDOW_TITLE2 = 'Offene Posten'(SC2) "Window titel after colon
* EXTENDED_SEARCH = 'X' "

IMPORTING
E_OPEN_ITEMS = "Number of Open Items
OI_HANDLE = "

EXCEPTIONS
COMMUNICATION_ERROR = 1 NO_DEBITOR_FOUND = 2 NO_OPEN_ITEMS_FOUND = 3 NO_PERMISSION = 4
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLN019_001 IS-H: Determine Note to Payee for Copayment
EXIT_SAPLN019_003 IS-H: Check Whether Insurance Relationship can be Canceled

IMPORTING Parameters details for ISH_SHOW_OPEN_ITEMS

DEBITOR - Customer in Financial Accounting -->F2

Data type: NCIR-SZDEB
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PARENT -

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

DISPLAY_AS_GRID -

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

I_KOSTR_DOWNPAY_SHOW -

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: Yes

EINRICHTUNG - Institution

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

MIT_AP - With cleared items

Data type: NPDOK-XFELD
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

MIT_SHBV - With special G/L transactions

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

PATIENT - Patient

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

SORTIERUNG - Sort --> F2

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

WINDOW_TITLE1 - Window title before colon

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

WINDOW_TITLE2 - Window titel after colon

Data type:
Default: 'Offene Posten'(SC2)
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXTENDED_SEARCH -

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

EXPORTING Parameters details for ISH_SHOW_OPEN_ITEMS

E_OPEN_ITEMS - Number of Open Items

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

OI_HANDLE -

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

EXCEPTIONS details

COMMUNICATION_ERROR - Error in communications interface -->F2

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

NO_DEBITOR_FOUND - No customer found in FI

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

NO_OPEN_ITEMS_FOUND - No open items found for customer

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

NO_PERMISSION -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_SHOW_OPEN_ITEMS 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_debitor  TYPE NCIR-SZDEB, "   SPACE
lv_e_open_items  TYPE I, "   
lv_communication_error  TYPE I, "   
lv_parent  TYPE I, "   
lv_display_as_grid  TYPE NPDOK-XFELD, "   
lv_i_kostr_downpay_show  TYPE NPDOK-XFELD, "   ' '
lv_oi_handle  TYPE CL_GUI_ALV_GRID, "   
lv_einrichtung  TYPE TN01-EINRI, "   
lv_no_debitor_found  TYPE TN01, "   
lv_mit_ap  TYPE NPDOK-XFELD, "   ' '
lv_no_open_items_found  TYPE NPDOK, "   
lv_mit_shbv  TYPE NPDOK-XFELD, "   'X'
lv_no_permission  TYPE NPDOK, "   
lv_patient  TYPE NPAT-PATNR, "   
lv_sortierung  TYPE NPAT, "   1
lv_window_title1  TYPE NPAT, "   'Patient'(SC1)
lv_window_title2  TYPE NPAT, "   'Offene Posten'(SC2)
lv_extended_search  TYPE NPAT. "   'X'

  CALL FUNCTION 'ISH_SHOW_OPEN_ITEMS'  "
    EXPORTING
         DEBITOR = lv_debitor
         PARENT = lv_parent
         DISPLAY_AS_GRID = lv_display_as_grid
         I_KOSTR_DOWNPAY_SHOW = lv_i_kostr_downpay_show
         EINRICHTUNG = lv_einrichtung
         MIT_AP = lv_mit_ap
         MIT_SHBV = lv_mit_shbv
         PATIENT = lv_patient
         SORTIERUNG = lv_sortierung
         WINDOW_TITLE1 = lv_window_title1
         WINDOW_TITLE2 = lv_window_title2
         EXTENDED_SEARCH = lv_extended_search
    IMPORTING
         E_OPEN_ITEMS = lv_e_open_items
         OI_HANDLE = lv_oi_handle
    EXCEPTIONS
        COMMUNICATION_ERROR = 1
        NO_DEBITOR_FOUND = 2
        NO_OPEN_ITEMS_FOUND = 3
        NO_PERMISSION = 4
. " ISH_SHOW_OPEN_ITEMS




ABAP code using 7.40 inline data declarations to call FM ISH_SHOW_OPEN_ITEMS

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 SZDEB FROM NCIR INTO @DATA(ld_debitor).
DATA(ld_debitor) = ' '.
 
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_display_as_grid).
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_kostr_downpay_show).
DATA(ld_i_kostr_downpay_show) = ' '.
 
 
"SELECT single EINRI FROM TN01 INTO @DATA(ld_einrichtung).
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_mit_ap).
DATA(ld_mit_ap) = ' '.
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_mit_shbv).
DATA(ld_mit_shbv) = 'X'.
 
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_patient).
 
DATA(ld_sortierung) = 1.
 
DATA(ld_window_title1) = 'Patient'.
 
DATA(ld_window_title2) = 'Offene Posten'.
 
DATA(ld_extended_search) = '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!