SAP CACS_CDT_CONTRACT_REHANG_DYNP Function Module for NOTRANSL: Vertrag Umhängen









CACS_CDT_CONTRACT_REHANG_DYNP is a standard cacs cdt contract rehang dynp 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: Vertrag Umhängen 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 cdt contract rehang dynp FM, simply by entering the name CACS_CDT_CONTRACT_REHANG_DYNP into the relevant SAP transaction such as SE37 or SE38.

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



Function CACS_CDT_CONTRACT_REHANG_DYNP 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_CDT_CONTRACT_REHANG_DYNP'"NOTRANSL: Vertrag Umhängen
EXPORTING
I_QSTRUC = "Source
* I_FLG_DIR_INPUT = ' ' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
I_ZSTRUC = "Destination
I_QOBJEC = "Source
I_ZOBJEC = "Destination
I_FSTRUC = "Structure Information for Database PCH
I_FOBJEC = "Work Area for Database PCH
* I_BEGIN = SY-DATUM "Predefined Type
* I_COMMIT_FLG = 'X' "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_CALL_FROM = 'CDT' "3-Byte field

EXCEPTIONS
REHANG_ERROR = 1 WRONG_REL_BEGDAT = 2 WRONG_REL_ENDDAT = 3 CONTRACT_HAS_OCCUPATION = 4
.



IMPORTING Parameters details for CACS_CDT_CONTRACT_REHANG_DYNP

I_QSTRUC - Source

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

I_FLG_DIR_INPUT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')

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

I_ZSTRUC - Destination

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

I_QOBJEC - Source

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

I_ZOBJEC - Destination

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

I_FSTRUC - Structure Information for Database PCH

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

I_FOBJEC - Work Area for Database PCH

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

I_BEGIN - Predefined Type

Data type: D
Default: SY-DATUM
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_COMMIT_FLG - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_CALL_FROM - 3-Byte field

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

EXCEPTIONS details

REHANG_ERROR - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

WRONG_REL_BEGDAT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

WRONG_REL_ENDDAT - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

CONTRACT_HAS_OCCUPATION - DE-EN-LANG-SWITCH-NO-TRANSLATION

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for CACS_CDT_CONTRACT_REHANG_DYNP 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_qstruc  TYPE STRUC, "   
lv_rehang_error  TYPE STRUC, "   
lv_i_flg_dir_input  TYPE BOOLE-BOOLE, "   SPACE
lv_i_zstruc  TYPE STRUC, "   
lv_wrong_rel_begdat  TYPE STRUC, "   
lv_i_qobjec  TYPE OBJEC, "   
lv_wrong_rel_enddat  TYPE OBJEC, "   
lv_i_zobjec  TYPE OBJEC, "   
lv_contract_has_occupation  TYPE OBJEC, "   
lv_i_fstruc  TYPE STRUC, "   
lv_i_fobjec  TYPE OBJEC, "   
lv_i_begin  TYPE D, "   SY-DATUM
lv_i_commit_flg  TYPE D, "   'X'
lv_i_call_from  TYPE CHAR3. "   'CDT'

  CALL FUNCTION 'CACS_CDT_CONTRACT_REHANG_DYNP'  "NOTRANSL: Vertrag Umhängen
    EXPORTING
         I_QSTRUC = lv_i_qstruc
         I_FLG_DIR_INPUT = lv_i_flg_dir_input
         I_ZSTRUC = lv_i_zstruc
         I_QOBJEC = lv_i_qobjec
         I_ZOBJEC = lv_i_zobjec
         I_FSTRUC = lv_i_fstruc
         I_FOBJEC = lv_i_fobjec
         I_BEGIN = lv_i_begin
         I_COMMIT_FLG = lv_i_commit_flg
         I_CALL_FROM = lv_i_call_from
    EXCEPTIONS
        REHANG_ERROR = 1
        WRONG_REL_BEGDAT = 2
        WRONG_REL_ENDDAT = 3
        CONTRACT_HAS_OCCUPATION = 4
. " CACS_CDT_CONTRACT_REHANG_DYNP




ABAP code using 7.40 inline data declarations to call FM CACS_CDT_CONTRACT_REHANG_DYNP

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 BOOLE FROM BOOLE INTO @DATA(ld_i_flg_dir_input).
DATA(ld_i_flg_dir_input) = ' '.
 
 
 
 
 
 
 
 
 
DATA(ld_i_begin) = SY-DATUM.
 
DATA(ld_i_commit_flg) = 'X'.
 
DATA(ld_i_call_from) = 'CDT'.
 


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!