SAP CACS_GET_CONTRACT_MIGRATION Function Module for NOTRANSL: Hole Standard Vertrag









CACS_GET_CONTRACT_MIGRATION is a standard cacs get contract migration SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Hole Standard Vertrag 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 cacs get contract migration FM, simply by entering the name CACS_GET_CONTRACT_MIGRATION into the relevant SAP transaction such as SE37 or SE38.

Function Group: CACS_CACSPY_TOOLS
Program Name: SAPLCACS_CACSPY_TOOLS
Main Program: SAPLCACS_CACSPY_TOOLS
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function CACS_GET_CONTRACT_MIGRATION 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 'CACS_GET_CONTRACT_MIGRATION'"NOTRANSL: Hole Standard Vertrag
EXPORTING
I_APPL = "Commission Application Identification
I_CTRTBU_ID = "Commission Contract Number
I_AGR_TYP = "Agreement Category
* I_DATE = "Date and Time, Current (Application Server) Date
I_RULE_ID = "Commission Contract Number
* I_PERIODRULE = "Period Rule
* I_CHECK = 'X' "Indicator: Row/Object/Subobject is Invalid or Reversed
* I_AMOUNT = "Remuneration Amount Ready for Disbursement in Contr Currency
* I_CURR = "Currency Key

EXCEPTIONS
SELECT_ERROR = 1 NO_AUTHORITY = 10 NO_STD_AGREMENT = 11 CONVERT_CURRENCY_ERROR = 12 PERIOD_ERROR = 2 PERIOD_EXIST_IN_JOURNAL = 3 NO_VALID_RULE = 4 INSERT_ERROR = 5 WRONG_CURRENCY = 6 WARRENTY_DOC_EXIST = 7 UNKNOWN = 8 PERIOD_NOT_FOUND = 9
.



IMPORTING Parameters details for CACS_GET_CONTRACT_MIGRATION

I_APPL - Commission Application Identification

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

I_CTRTBU_ID - Commission Contract Number

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

I_AGR_TYP - Agreement Category

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

I_DATE - Date and Time, Current (Application Server) Date

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

I_RULE_ID - Commission Contract Number

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

I_PERIODRULE - Period Rule

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

I_CHECK - Indicator: Row/Object/Subobject is Invalid or Reversed

Data type: CACS_S_MIGRATION_JO-CHECK_FLG
Default: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)

I_AMOUNT - Remuneration Amount Ready for Disbursement in Contr Currency

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

I_CURR - Currency Key

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

EXCEPTIONS details

SELECT_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_AUTHORITY - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_STD_AGREMENT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

CONVERT_CURRENCY_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PERIOD_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PERIOD_EXIST_IN_JOURNAL - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

NO_VALID_RULE - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

INSERT_ERROR - Insert not possible

Data type:
Optional: No
Call by Reference: Yes

WRONG_CURRENCY - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

WARRENTY_DOC_EXIST - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

UNKNOWN - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

PERIOD_NOT_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CACS_GET_CONTRACT_MIGRATION 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_i_appl  TYPE CACS_S_MIGRATION_JO-APPL, "   
lv_select_error  TYPE CACS_S_MIGRATION_JO, "   
lv_no_authority  TYPE CACS_S_MIGRATION_JO, "   
lv_no_std_agrement  TYPE CACS_S_MIGRATION_JO, "   
lv_convert_currency_error  TYPE CACS_S_MIGRATION_JO, "   
lv_i_ctrtbu_id  TYPE CACS_S_MIGRATION_JO-CTRTBU_ID, "   
lv_period_error  TYPE CACS_S_MIGRATION_JO, "   
lv_i_agr_typ  TYPE CACS_S_MIGRATION_JO-AGR_TYP, "   
lv_period_exist_in_journal  TYPE CACS_S_MIGRATION_JO, "   
lv_i_date  TYPE CACS_S_MIGRATION_JO-PER_DATE, "   
lv_no_valid_rule  TYPE CACS_S_MIGRATION_JO, "   
lv_i_rule_id  TYPE CACS_S_MIGRATION_JO-RULE_ID, "   
lv_insert_error  TYPE CACS_S_MIGRATION_JO, "   
lv_i_periodrule  TYPE CACS_S_MIGRATION_JO-PERIODRULE, "   
lv_wrong_currency  TYPE CACS_S_MIGRATION_JO, "   
lv_i_check  TYPE CACS_S_MIGRATION_JO-CHECK_FLG, "   'X'
lv_warrenty_doc_exist  TYPE CACS_S_MIGRATION_JO, "   
lv_unknown  TYPE CACS_S_MIGRATION_JO, "   
lv_i_amount  TYPE CACS_S_MIGRATION_JO-AMOUNT, "   
lv_i_curr  TYPE CACS_S_MIGRATION_JO-CURR, "   
lv_period_not_found  TYPE CACS_S_MIGRATION_JO. "   

  CALL FUNCTION 'CACS_GET_CONTRACT_MIGRATION'  "NOTRANSL: Hole Standard Vertrag
    EXPORTING
         I_APPL = lv_i_appl
         I_CTRTBU_ID = lv_i_ctrtbu_id
         I_AGR_TYP = lv_i_agr_typ
         I_DATE = lv_i_date
         I_RULE_ID = lv_i_rule_id
         I_PERIODRULE = lv_i_periodrule
         I_CHECK = lv_i_check
         I_AMOUNT = lv_i_amount
         I_CURR = lv_i_curr
    EXCEPTIONS
        SELECT_ERROR = 1
        NO_AUTHORITY = 10
        NO_STD_AGREMENT = 11
        CONVERT_CURRENCY_ERROR = 12
        PERIOD_ERROR = 2
        PERIOD_EXIST_IN_JOURNAL = 3
        NO_VALID_RULE = 4
        INSERT_ERROR = 5
        WRONG_CURRENCY = 6
        WARRENTY_DOC_EXIST = 7
        UNKNOWN = 8
        PERIOD_NOT_FOUND = 9
. " CACS_GET_CONTRACT_MIGRATION




ABAP code using 7.40 inline data declarations to call FM CACS_GET_CONTRACT_MIGRATION

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 APPL FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_appl).
 
 
 
 
 
"SELECT single CTRTBU_ID FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_ctrtbu_id).
 
 
"SELECT single AGR_TYP FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_agr_typ).
 
 
"SELECT single PER_DATE FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_date).
 
 
"SELECT single RULE_ID FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_rule_id).
 
 
"SELECT single PERIODRULE FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_periodrule).
 
 
"SELECT single CHECK_FLG FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_check).
DATA(ld_i_check) = 'X'.
 
 
 
"SELECT single AMOUNT FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_amount).
 
"SELECT single CURR FROM CACS_S_MIGRATION_JO INTO @DATA(ld_i_curr).
 
 


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!