SAP CACS_CDT_CONTRACT_REHANG Function Module for NOTRANSL: Provisionsvertrag pflegen aus dem CDT









CACS_CDT_CONTRACT_REHANG is a standard cacs cdt contract rehang 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: Provisionsvertrag pflegen aus dem CDT 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 FM, simply by entering the name CACS_CDT_CONTRACT_REHANG 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: E
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function CACS_CDT_CONTRACT_REHANG 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'"NOTRANSL: Provisionsvertrag pflegen aus dem CDT
EXPORTING
ACT_FCODE = "Function Code
ACT_PLVAR = "Plan Version
ACT_OTYPE = "Object Type
ACT_OBJID = "Extended Object ID
* ACT_BEGDA = SY-DATUM "Start Date
* ACT_ENDDA = '99991231' "End Date

IMPORTING
ACT_PROGNAME = "Predefined Type
ACT_SCREEN_NO = "ABAP System Field: Current Dynpro Number

TABLES
ACT_OBJECTS = "Extended Object
.



IMPORTING Parameters details for CACS_CDT_CONTRACT_REHANG

ACT_FCODE - Function Code

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

ACT_PLVAR - Plan Version

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

ACT_OTYPE - Object Type

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

ACT_OBJID - Extended Object ID

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

ACT_BEGDA - Start Date

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

ACT_ENDDA - End Date

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

EXPORTING Parameters details for CACS_CDT_CONTRACT_REHANG

ACT_PROGNAME - Predefined Type

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

ACT_SCREEN_NO - ABAP System Field: Current Dynpro Number

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

TABLES Parameters details for CACS_CDT_CONTRACT_REHANG

ACT_OBJECTS - Extended Object

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

Copy and paste ABAP code example for CACS_CDT_CONTRACT_REHANG 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_act_fcode  TYPE MWB_FCODE, "   
lt_act_objects  TYPE STANDARD TABLE OF HRSOBID, "   
lv_act_progname  TYPE SY-REPID, "   
lv_act_plvar  TYPE PLVAR, "   
lv_act_screen_no  TYPE SY-DYNNR, "   
lv_act_otype  TYPE OTYPE, "   
lv_act_objid  TYPE REALO, "   
lv_act_begda  TYPE BEGDATUM, "   SY-DATUM
lv_act_endda  TYPE ENDDATUM. "   '99991231'

  CALL FUNCTION 'CACS_CDT_CONTRACT_REHANG'  "NOTRANSL: Provisionsvertrag pflegen aus dem CDT
    EXPORTING
         ACT_FCODE = lv_act_fcode
         ACT_PLVAR = lv_act_plvar
         ACT_OTYPE = lv_act_otype
         ACT_OBJID = lv_act_objid
         ACT_BEGDA = lv_act_begda
         ACT_ENDDA = lv_act_endda
    IMPORTING
         ACT_PROGNAME = lv_act_progname
         ACT_SCREEN_NO = lv_act_screen_no
    TABLES
         ACT_OBJECTS = lt_act_objects
. " CACS_CDT_CONTRACT_REHANG




ABAP code using 7.40 inline data declarations to call FM CACS_CDT_CONTRACT_REHANG

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 REPID FROM SY INTO @DATA(ld_act_progname).
 
 
"SELECT single DYNNR FROM SY INTO @DATA(ld_act_screen_no).
 
 
 
DATA(ld_act_begda) = SY-DATUM.
 
DATA(ld_act_endda) = '99991231'.
 


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!