SAP ISH_FIND_FORMS Function Module for









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

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



Function ISH_FIND_FORMS 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_FIND_FORMS'"
EXPORTING
EINRI = "Institution
* PATIENTID = ' ' "Patient Number
* PATCASEID = ' ' "Case Number
* ORGID = ' ' "Org. unit for possible further restriction
* VBELN = ' ' "Invoice Document Number
* PRINTER = ' ' "Printer name overrides configured printer
* ST_PRINT = 'X' "ON = standard form print option, OFF = Choose form.. print option
* TERMINAL = ' ' "Terminal name overrides current terminal (for batch)
* ONLY_DISPLAY_FORMS = ' ' "

IMPORTING
ABNORMAL_END = "Printing terminated abnormally in FM

TABLES
CONDITIONS = "Conditions for selecting technical work organizers
EVENTS = "Table of events which trigger form printout
FORMS = "Determined forms with all print specifications

EXCEPTIONS
NO_AUTHORITY = 1 NO_EVENT = 2 NO_FORM = 3 NO_PRINTER = 4 NO_STANDARD = 5 NO_TERMINAL = 6 FORM_NOT_EXIST = 7
.



IMPORTING Parameters details for ISH_FIND_FORMS

EINRI - Institution

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

PATIENTID - Patient Number

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

PATCASEID - Case Number

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

ORGID - Org. unit for possible further restriction

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

VBELN - Invoice Document Number

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

PRINTER - Printer name overrides configured printer

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

ST_PRINT - ON = standard form print option, OFF = Choose form.. print option

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

TERMINAL - Terminal name overrides current terminal (for batch)

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

ONLY_DISPLAY_FORMS -

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

EXPORTING Parameters details for ISH_FIND_FORMS

ABNORMAL_END - Printing terminated abnormally in FM

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

TABLES Parameters details for ISH_FIND_FORMS

CONDITIONS - Conditions for selecting technical work organizers

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

EVENTS - Table of events which trigger form printout

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

FORMS - Determined forms with all print specifications

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

EXCEPTIONS details

NO_AUTHORITY - No authorization to print forms

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

NO_EVENT - No events for form printout

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

NO_FORM - No forms found for events

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

NO_PRINTER - Printer missing (only with BATCH INPUT)

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

NO_STANDARD - No standard combination for standard printout

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

NO_TERMINAL - No terminal found

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

FORM_NOT_EXIST -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for ISH_FIND_FORMS 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 TNF30-EINRI, "   
lt_conditions  TYPE STANDARD TABLE OF RNCOND, "   
lv_abnormal_end  TYPE RNFPR-ABBRUCH, "   
lv_no_authority  TYPE RNFPR, "   
lt_events  TYPE STANDARD TABLE OF RNEVT, "   
lv_no_event  TYPE RNEVT, "   
lv_patientid  TYPE NPAT-PATNR, "   SPACE
lt_forms  TYPE STANDARD TABLE OF RNFOR, "   
lv_no_form  TYPE RNFOR, "   
lv_patcaseid  TYPE NFAL-FALNR, "   SPACE
lv_orgid  TYPE TNF10-ORGID, "   SPACE
lv_no_printer  TYPE TNF10, "   
lv_vbeln  TYPE ISH_VBELN, "   SPACE
lv_no_standard  TYPE ISH_VBELN, "   
lv_printer  TYPE TNF07-PRINTER, "   SPACE
lv_no_terminal  TYPE TNF07, "   
lv_st_print  TYPE RNCOM-XFELD, "   'X'
lv_form_not_exist  TYPE RNCOM, "   
lv_terminal  TYPE TNF07-TERMINAL, "   SPACE
lv_only_display_forms  TYPE RNCOM-XFELD. "   SPACE

  CALL FUNCTION 'ISH_FIND_FORMS'  "
    EXPORTING
         EINRI = lv_einri
         PATIENTID = lv_patientid
         PATCASEID = lv_patcaseid
         ORGID = lv_orgid
         VBELN = lv_vbeln
         PRINTER = lv_printer
         ST_PRINT = lv_st_print
         TERMINAL = lv_terminal
         ONLY_DISPLAY_FORMS = lv_only_display_forms
    IMPORTING
         ABNORMAL_END = lv_abnormal_end
    TABLES
         CONDITIONS = lt_conditions
         EVENTS = lt_events
         FORMS = lt_forms
    EXCEPTIONS
        NO_AUTHORITY = 1
        NO_EVENT = 2
        NO_FORM = 3
        NO_PRINTER = 4
        NO_STANDARD = 5
        NO_TERMINAL = 6
        FORM_NOT_EXIST = 7
. " ISH_FIND_FORMS




ABAP code using 7.40 inline data declarations to call FM ISH_FIND_FORMS

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 TNF30 INTO @DATA(ld_einri).
 
 
"SELECT single ABBRUCH FROM RNFPR INTO @DATA(ld_abnormal_end).
 
 
 
 
"SELECT single PATNR FROM NPAT INTO @DATA(ld_patientid).
DATA(ld_patientid) = ' '.
 
 
 
"SELECT single FALNR FROM NFAL INTO @DATA(ld_patcaseid).
DATA(ld_patcaseid) = ' '.
 
"SELECT single ORGID FROM TNF10 INTO @DATA(ld_orgid).
DATA(ld_orgid) = ' '.
 
 
DATA(ld_vbeln) = ' '.
 
 
"SELECT single PRINTER FROM TNF07 INTO @DATA(ld_printer).
DATA(ld_printer) = ' '.
 
 
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_st_print).
DATA(ld_st_print) = 'X'.
 
 
"SELECT single TERMINAL FROM TNF07 INTO @DATA(ld_terminal).
DATA(ld_terminal) = ' '.
 
"SELECT single XFELD FROM RNCOM INTO @DATA(ld_only_display_forms).
DATA(ld_only_display_forms) = ' '.
 


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!