SAP ISH_GET_INVOICES_FOR_CASE Function Module for









ISH_GET_INVOICES_FOR_CASE is a standard ish get invoices for case 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 get invoices for case FM, simply by entering the name ISH_GET_INVOICES_FOR_CASE into the relevant SAP transaction such as SE37 or SE38.

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



Function ISH_GET_INVOICES_FOR_CASE 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_GET_INVOICES_FOR_CASE'"
EXPORTING
EINRI = "IS-H: Institution
* EINZELFAELLE = ' ' "Technically: Controls DB access to NFAL/NLEI ->F2
* RANGE_RVBELN = 'X' "IS-H: Switch for using range RVBELN -F2
* ENQUEUE_NFAL = ' ' "IS-H: Cases still blocked ? 'X'=yes

IMPORTING
PROTOKOLL = "IS-H: If applicable contains termination table ->F2

TABLES
RFALNR = "IS-H: Contains case numbers (input) ->F2
RVBELN = "IS-H: Range table for document numbers (SD) option.
XNFAL = "IS-H: Contains case records (output) from NFAL
XVBRK = "SD: Billing header (output)
XVBRP = "SD: Billing items (output)

EXCEPTIONS
MISSING_PARAMETERS = 1
.



IMPORTING Parameters details for ISH_GET_INVOICES_FOR_CASE

EINRI - IS-H: Institution

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

EINZELFAELLE - Technically: Controls DB access to NFAL/NLEI ->F2

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

RANGE_RVBELN - IS-H: Switch for using range RVBELN -F2

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

ENQUEUE_NFAL - IS-H: Cases still blocked ? 'X'=yes

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

EXPORTING Parameters details for ISH_GET_INVOICES_FOR_CASE

PROTOKOLL - IS-H: If applicable contains termination table ->F2

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

TABLES Parameters details for ISH_GET_INVOICES_FOR_CASE

RFALNR - IS-H: Contains case numbers (input) ->F2

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

RVBELN - IS-H: Range table for document numbers (SD) option.

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

XNFAL - IS-H: Contains case records (output) from NFAL

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

XVBRK - SD: Billing header (output)

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

XVBRP - SD: Billing items (output)

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

EXCEPTIONS details

MISSING_PARAMETERS - Parameters not specified in interface

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

Copy and paste ABAP code example for ISH_GET_INVOICES_FOR_CASE 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 NFAL-EINRI, "   
lt_rfalnr  TYPE STANDARD TABLE OF RNRFAL, "   
lv_protokoll  TYPE NPDOK-C4, "   
lv_missing_parameters  TYPE NPDOK, "   
lt_rvbeln  TYPE STANDARD TABLE OF NPDOK, "   
lv_einzelfaelle  TYPE NPDOK-XFELD, "   ' '
lt_xnfal  TYPE STANDARD TABLE OF NFAL, "   
lv_range_rvbeln  TYPE NPDOK-XFELD, "   'X'
lt_xvbrk  TYPE STANDARD TABLE OF VBRKVB, "   
lv_enqueue_nfal  TYPE NPDOK-XFELD, "   ' '
lt_xvbrp  TYPE STANDARD TABLE OF VBRPVB. "   

  CALL FUNCTION 'ISH_GET_INVOICES_FOR_CASE'  "
    EXPORTING
         EINRI = lv_einri
         EINZELFAELLE = lv_einzelfaelle
         RANGE_RVBELN = lv_range_rvbeln
         ENQUEUE_NFAL = lv_enqueue_nfal
    IMPORTING
         PROTOKOLL = lv_protokoll
    TABLES
         RFALNR = lt_rfalnr
         RVBELN = lt_rvbeln
         XNFAL = lt_xnfal
         XVBRK = lt_xvbrk
         XVBRP = lt_xvbrp
    EXCEPTIONS
        MISSING_PARAMETERS = 1
. " ISH_GET_INVOICES_FOR_CASE




ABAP code using 7.40 inline data declarations to call FM ISH_GET_INVOICES_FOR_CASE

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 NFAL INTO @DATA(ld_einri).
 
 
"SELECT single C4 FROM NPDOK INTO @DATA(ld_protokoll).
 
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_einzelfaelle).
DATA(ld_einzelfaelle) = ' '.
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_range_rvbeln).
DATA(ld_range_rvbeln) = 'X'.
 
 
"SELECT single XFELD FROM NPDOK INTO @DATA(ld_enqueue_nfal).
DATA(ld_enqueue_nfal) = ' '.
 
 


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!