SAP ICLH_INVOICE_HEADAMOUNT_GET Function Module for Calculate Total Amount for Invoice or Payment Proposal









ICLH_INVOICE_HEADAMOUNT_GET is a standard iclh invoice headamount get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Calculate Total Amount for Invoice or Payment Proposal processing and below is the pattern details for this FM, 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 iclh invoice headamount get FM, simply by entering the name ICLH_INVOICE_HEADAMOUNT_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function ICLH_INVOICE_HEADAMOUNT_GET 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 'ICLH_INVOICE_HEADAMOUNT_GET'"Calculate Total Amount for Invoice or Payment Proposal
EXPORTING
IS_PROCURE = "Claim Item Groupings
* IV_XCONTRIBAMOUNT_INV = "Checkbox
* IV_XCONTRIBAMOUNT = "Checkbox
* IV_XBULKINVOICE = "Checkbox

IMPORTING
EV_AMOUNT_INV = "Total Amount
EV_CONTRIBAMOUNT_INV = "
EV_AMOUNT = "Total Amount
EV_CONTRIBAMOUNT = "
EV_DISCOUNTAMOUNT = "
EV_AMOUNT_CANCELED = "Difference Amount of Items with Reason
EV_AMOUNT_DELTA = "Total Amount (Sum of Net Amounts of All Items)

TABLES
IT_INVPOS = "
.



IMPORTING Parameters details for ICLH_INVOICE_HEADAMOUNT_GET

IS_PROCURE - Claim Item Groupings

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

IV_XCONTRIBAMOUNT_INV - Checkbox

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

IV_XCONTRIBAMOUNT - Checkbox

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

IV_XBULKINVOICE - Checkbox

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

EXPORTING Parameters details for ICLH_INVOICE_HEADAMOUNT_GET

EV_AMOUNT_INV - Total Amount

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

EV_CONTRIBAMOUNT_INV -

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

EV_AMOUNT - Total Amount

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

EV_CONTRIBAMOUNT -

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

EV_DISCOUNTAMOUNT -

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

EV_AMOUNT_CANCELED - Difference Amount of Items with Reason

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

EV_AMOUNT_DELTA - Total Amount (Sum of Net Amounts of All Items)

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

TABLES Parameters details for ICLH_INVOICE_HEADAMOUNT_GET

IT_INVPOS -

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

Copy and paste ABAP code example for ICLH_INVOICE_HEADAMOUNT_GET 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:
lt_it_invpos  TYPE STANDARD TABLE OF ICLH_ICLH46, "   
lv_is_procure  TYPE ICL_PROCURE, "   
lv_ev_amount_inv  TYPE ICL_INV_AMOUNT_TOTAL, "   
lv_ev_contribamount_inv  TYPE ICL_CONTRIBAMOUNT_INV, "   
lv_iv_xcontribamount_inv  TYPE XFELD, "   
lv_ev_amount  TYPE ICL_AMOUNT, "   
lv_iv_xcontribamount  TYPE XFELD, "   
lv_iv_xbulkinvoice  TYPE XFELD, "   
lv_ev_contribamount  TYPE ICL_AMOUNT_CONTRIB, "   
lv_ev_discountamount  TYPE ICL_DISCOUNTAMOUNT, "   
lv_ev_amount_canceled  TYPE ICL_AMOUNT_CANCELED, "   
lv_ev_amount_delta  TYPE ICL_AMOUNT_TOTAL. "   

  CALL FUNCTION 'ICLH_INVOICE_HEADAMOUNT_GET'  "Calculate Total Amount for Invoice or Payment Proposal
    EXPORTING
         IS_PROCURE = lv_is_procure
         IV_XCONTRIBAMOUNT_INV = lv_iv_xcontribamount_inv
         IV_XCONTRIBAMOUNT = lv_iv_xcontribamount
         IV_XBULKINVOICE = lv_iv_xbulkinvoice
    IMPORTING
         EV_AMOUNT_INV = lv_ev_amount_inv
         EV_CONTRIBAMOUNT_INV = lv_ev_contribamount_inv
         EV_AMOUNT = lv_ev_amount
         EV_CONTRIBAMOUNT = lv_ev_contribamount
         EV_DISCOUNTAMOUNT = lv_ev_discountamount
         EV_AMOUNT_CANCELED = lv_ev_amount_canceled
         EV_AMOUNT_DELTA = lv_ev_amount_delta
    TABLES
         IT_INVPOS = lt_it_invpos
. " ICLH_INVOICE_HEADAMOUNT_GET




ABAP code using 7.40 inline data declarations to call FM ICLH_INVOICE_HEADAMOUNT_GET

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.

 
 
 
 
 
 
 
 
 
 
 
 


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!