SAP CACS00_SAMPLE_PRC_1004 Function Module for Structural Authorization
CACS00_SAMPLE_PRC_1004 is a standard cacs00 sample prc 1004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Structural Authorization 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 cacs00 sample prc 1004 FM, simply by entering the name CACS00_SAMPLE_PRC_1004 into the relevant SAP transaction such as SE37 or SE38.
Function Group: CACS00_SAMPLE
Program Name: SAPLCACS00_SAMPLE
Main Program: SAPLCACS00_SAMPLE
Appliation area:
Release date: 30-Nov-2004
Mode(Normal, Remote etc): Normal Function Module
Update:

Function CACS00_SAMPLE_PRC_1004 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 'CACS00_SAMPLE_PRC_1004'"Structural Authorization.
EXPORTING
I_APPL = "Commission Application Identification
I_CTRTBU_ID = "Commission Contract Number
I_SUBRC = "Return Value, Return Value After ABAP Statements
IMPORTING
E_FLG_NO_AUTHORITY = "Boolean Variables (X=true, space=false)
IMPORTING Parameters details for CACS00_SAMPLE_PRC_1004
I_APPL - Commission Application Identification
Data type: CACSAPPLOptional: No
Call by Reference: No ( called with pass by value option)
I_CTRTBU_ID - Commission Contract Number
Data type: CACS_CTRTBU_IDOptional: No
Call by Reference: No ( called with pass by value option)
I_SUBRC - Return Value, Return Value After ABAP Statements
Data type: SY-SUBRCOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for CACS00_SAMPLE_PRC_1004
E_FLG_NO_AUTHORITY - Boolean Variables (X=true, space=false)
Data type: BOOLEAN_FLGOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CACS00_SAMPLE_PRC_1004 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 CACSAPPL, " | |||
| lv_e_flg_no_authority | TYPE BOOLEAN_FLG, " | |||
| lv_i_ctrtbu_id | TYPE CACS_CTRTBU_ID, " | |||
| lv_i_subrc | TYPE SY-SUBRC. " |
|   CALL FUNCTION 'CACS00_SAMPLE_PRC_1004' "Structural Authorization |
| EXPORTING | ||
| I_APPL | = lv_i_appl | |
| I_CTRTBU_ID | = lv_i_ctrtbu_id | |
| I_SUBRC | = lv_i_subrc | |
| IMPORTING | ||
| E_FLG_NO_AUTHORITY | = lv_e_flg_no_authority | |
| . " CACS00_SAMPLE_PRC_1004 | ||
ABAP code using 7.40 inline data declarations to call FM CACS00_SAMPLE_PRC_1004
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 SUBRC FROM SY INTO @DATA(ld_i_subrc). | ||||
Search for further information about these or an SAP related objects