SAP ISU_O_CONTRACT_HIST_SAVE Function Module for Function to save contract product data in database









ISU_O_CONTRACT_HIST_SAVE is a standard isu o contract hist save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Function to save contract product data in database 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 isu o contract hist save FM, simply by entering the name ISU_O_CONTRACT_HIST_SAVE into the relevant SAP transaction such as SE37 or SE38.

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



Function ISU_O_CONTRACT_HIST_SAVE 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 'ISU_O_CONTRACT_HIST_SAVE'"Function to save contract product data in database
EXPORTING
* X_VERTRAG = "Contract
* X_UPD_ONLINE = "Update online
* X_CRMUPLOAD = "Indicator
* X_WRITE_DB = 'X' "Indicator
* X_SEND_CRM = 'X' "Indicator

CHANGING
XY_OBJ = "
.



IMPORTING Parameters details for ISU_O_CONTRACT_HIST_SAVE

X_VERTRAG - Contract

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

X_UPD_ONLINE - Update online

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

X_CRMUPLOAD - Indicator

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

X_WRITE_DB - Indicator

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

X_SEND_CRM - Indicator

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

CHANGING Parameters details for ISU_O_CONTRACT_HIST_SAVE

XY_OBJ -

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

Copy and paste ABAP code example for ISU_O_CONTRACT_HIST_SAVE 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_xy_obj  TYPE ES20H_OBJECT, "   
lv_x_vertrag  TYPE EVERH-VERTRAG, "   
lv_x_upd_online  TYPE REGEN-UPD_ONLINE, "   
lv_x_crmupload  TYPE KENNZX, "   
lv_x_write_db  TYPE KENNZX, "   'X'
lv_x_send_crm  TYPE KENNZX. "   'X'

  CALL FUNCTION 'ISU_O_CONTRACT_HIST_SAVE'  "Function to save contract product data in database
    EXPORTING
         X_VERTRAG = lv_x_vertrag
         X_UPD_ONLINE = lv_x_upd_online
         X_CRMUPLOAD = lv_x_crmupload
         X_WRITE_DB = lv_x_write_db
         X_SEND_CRM = lv_x_send_crm
    CHANGING
         XY_OBJ = lv_xy_obj
. " ISU_O_CONTRACT_HIST_SAVE




ABAP code using 7.40 inline data declarations to call FM ISU_O_CONTRACT_HIST_SAVE

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 VERTRAG FROM EVERH INTO @DATA(ld_x_vertrag).
 
"SELECT single UPD_ONLINE FROM REGEN INTO @DATA(ld_x_upd_online).
 
 
DATA(ld_x_write_db) = 'X'.
 
DATA(ld_x_send_crm) = '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!