SAP ISH_GET_ESTIMATED_BILL Function Module for
ISH_GET_ESTIMATED_BILL is a standard ish get estimated bill 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 estimated bill FM, simply by entering the name ISH_GET_ESTIMATED_BILL into the relevant SAP transaction such as SE37 or SE38.
Function Group: N065
Program Name: SAPLN065
Main Program: SAPLN065
Appliation area: N
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISH_GET_ESTIMATED_BILL 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_ESTIMATED_BILL'".
EXPORTING
I_EINRI = "Institution
I_POPUP_LOS = "
* I_LOS = "
I_RNEBILL = "
* I_NPAT = "Patient Data
* I_NPAT_ADR = "
* I_NFAL = "Case Data
* I_DATE = SY-DATUM "
I_MESSAGE_COLLECT = "Collect Messages
I_MESSAGE_SHOW = "Display Messages
I_SHOW_BILL = "
IMPORTING
ESAM = "
MED_CLAIM = "
DEPOSIT = "
LOS = "
LOS_FOUND = "
TABLES
* INBEW = "Movement Data
* INICP = "
* INDIA = "Diagnoses
* INFPZ = "
EBILL = "
EXCEPTIONS
EINRI_NOT_FOUND = 1 TN29_NOT_DEFINED = 2 TN29T_NOT_DEFINED = 3 TN29R_NOT_DEFINED = 4 NO_DATA = 5
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_SAPLN065_001 IS-H: Specify Down Payment Amount for Estimated Invoice
IMPORTING Parameters details for ISH_GET_ESTIMATED_BILL
I_EINRI - Institution
Data type: TN01-EINRIOptional: No
Call by Reference: No ( called with pass by value option)
I_POPUP_LOS -
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
I_LOS -
Data type: RNEBILL-LOSOptional: Yes
Call by Reference: No ( called with pass by value option)
I_RNEBILL -
Data type: RNEBILLOptional: No
Call by Reference: No ( called with pass by value option)
I_NPAT - Patient Data
Data type: NPATOptional: Yes
Call by Reference: No ( called with pass by value option)
I_NPAT_ADR -
Data type: NADROptional: Yes
Call by Reference: No ( called with pass by value option)
I_NFAL - Case Data
Data type: NFALOptional: Yes
Call by Reference: No ( called with pass by value option)
I_DATE -
Data type: SY-DATUMDefault: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_MESSAGE_COLLECT - Collect Messages
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
I_MESSAGE_SHOW - Display Messages
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
I_SHOW_BILL -
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for ISH_GET_ESTIMATED_BILL
ESAM -
Data type: NEOP-ESAMOptional: No
Call by Reference: No ( called with pass by value option)
MED_CLAIM -
Data type: TN16-MAXAMOptional: No
Call by Reference: No ( called with pass by value option)
DEPOSIT -
Data type: NEOP-ESAMOptional: No
Call by Reference: No ( called with pass by value option)
LOS -
Data type: RNEBILL-LOSOptional: No
Call by Reference: No ( called with pass by value option)
LOS_FOUND -
Data type: NPDOK-XFELDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISH_GET_ESTIMATED_BILL
INBEW - Movement Data
Data type: NBEWOptional: Yes
Call by Reference: No ( called with pass by value option)
INICP -
Data type: NICPOptional: Yes
Call by Reference: No ( called with pass by value option)
INDIA - Diagnoses
Data type: NDIAOptional: Yes
Call by Reference: No ( called with pass by value option)
INFPZ -
Data type: NFPZOptional: Yes
Call by Reference: No ( called with pass by value option)
EBILL -
Data type: RNECOMPOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
EINRI_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TN29_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TN29T_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TN29R_NOT_DEFINED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
NO_DATA - 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_GET_ESTIMATED_BILL 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_esam | TYPE NEOP-ESAM, " | |||
| lt_inbew | TYPE STANDARD TABLE OF NBEW, " | |||
| lv_i_einri | TYPE TN01-EINRI, " | |||
| lv_einri_not_found | TYPE TN01, " | |||
| lv_i_popup_los | TYPE NPDOK-XFELD, " | |||
| lv_i_los | TYPE RNEBILL-LOS, " | |||
| lt_inicp | TYPE STANDARD TABLE OF NICP, " | |||
| lv_i_rnebill | TYPE RNEBILL, " | |||
| lv_med_claim | TYPE TN16-MAXAM, " | |||
| lv_tn29_not_defined | TYPE TN16, " | |||
| lt_india | TYPE STANDARD TABLE OF NDIA, " | |||
| lv_i_npat | TYPE NPAT, " | |||
| lv_deposit | TYPE NEOP-ESAM, " | |||
| lv_tn29t_not_defined | TYPE NEOP, " | |||
| lv_los | TYPE RNEBILL-LOS, " | |||
| lt_infpz | TYPE STANDARD TABLE OF NFPZ, " | |||
| lv_i_npat_adr | TYPE NADR, " | |||
| lv_tn29r_not_defined | TYPE NADR, " | |||
| lt_ebill | TYPE STANDARD TABLE OF RNECOMP, " | |||
| lv_i_nfal | TYPE NFAL, " | |||
| lv_no_data | TYPE NFAL, " | |||
| lv_los_found | TYPE NPDOK-XFELD, " | |||
| lv_i_date | TYPE SY-DATUM, " SY-DATUM | |||
| lv_i_message_collect | TYPE NPDOK-XFELD, " | |||
| lv_i_message_show | TYPE NPDOK-XFELD, " | |||
| lv_i_show_bill | TYPE NPDOK-XFELD. " |
|   CALL FUNCTION 'ISH_GET_ESTIMATED_BILL' " |
| EXPORTING | ||
| I_EINRI | = lv_i_einri | |
| I_POPUP_LOS | = lv_i_popup_los | |
| I_LOS | = lv_i_los | |
| I_RNEBILL | = lv_i_rnebill | |
| I_NPAT | = lv_i_npat | |
| I_NPAT_ADR | = lv_i_npat_adr | |
| I_NFAL | = lv_i_nfal | |
| I_DATE | = lv_i_date | |
| I_MESSAGE_COLLECT | = lv_i_message_collect | |
| I_MESSAGE_SHOW | = lv_i_message_show | |
| I_SHOW_BILL | = lv_i_show_bill | |
| IMPORTING | ||
| ESAM | = lv_esam | |
| MED_CLAIM | = lv_med_claim | |
| DEPOSIT | = lv_deposit | |
| LOS | = lv_los | |
| LOS_FOUND | = lv_los_found | |
| TABLES | ||
| INBEW | = lt_inbew | |
| INICP | = lt_inicp | |
| INDIA | = lt_india | |
| INFPZ | = lt_infpz | |
| EBILL | = lt_ebill | |
| EXCEPTIONS | ||
| EINRI_NOT_FOUND = 1 | ||
| TN29_NOT_DEFINED = 2 | ||
| TN29T_NOT_DEFINED = 3 | ||
| TN29R_NOT_DEFINED = 4 | ||
| NO_DATA = 5 | ||
| . " ISH_GET_ESTIMATED_BILL | ||
ABAP code using 7.40 inline data declarations to call FM ISH_GET_ESTIMATED_BILL
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 ESAM FROM NEOP INTO @DATA(ld_esam). | ||||
| "SELECT single EINRI FROM TN01 INTO @DATA(ld_i_einri). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_popup_los). | ||||
| "SELECT single LOS FROM RNEBILL INTO @DATA(ld_i_los). | ||||
| "SELECT single MAXAM FROM TN16 INTO @DATA(ld_med_claim). | ||||
| "SELECT single ESAM FROM NEOP INTO @DATA(ld_deposit). | ||||
| "SELECT single LOS FROM RNEBILL INTO @DATA(ld_los). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_los_found). | ||||
| "SELECT single DATUM FROM SY INTO @DATA(ld_i_date). | ||||
| DATA(ld_i_date) | = SY-DATUM. | |||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_message_collect). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_message_show). | ||||
| "SELECT single XFELD FROM NPDOK INTO @DATA(ld_i_show_bill). | ||||
Search for further information about these or an SAP related objects