SAP /ACCGO/CAS_GENERTE_STORAGE_STL Function Module for Generates Storage Settlement
/ACCGO/CAS_GENERTE_STORAGE_STL is a standard /accgo/cas generte storage stl SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Generates Storage Settlement 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 /accgo/cas generte storage stl FM, simply by entering the name /ACCGO/CAS_GENERTE_STORAGE_STL into the relevant SAP transaction such as SE37 or SE38.
Function Group: /ACCGO/FG_GENR_STL_GRP
Program Name: /ACCGO/SAPLFG_GENR_STL_GRP
Main Program: /ACCGO/SAPLFG_GENR_STL_GRP
Appliation area:
Release date: 04-Sep-2020
Mode(Normal, Remote etc): Remote-Enabled
Update:
Function /ACCGO/CAS_GENERTE_STORAGE_STL 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 '/ACCGO/CAS_GENERTE_STORAGE_STL'"Generates Storage Settlement.
EXPORTING
IT_T_APPLDOCS = "Table of Application Document numbers
* IV_RUN_DATE = SY-DATUM "Date
* IV_STORAGE_TYPE = 'T' "Settlement Type
* IV_RATE_TYPE = 'M' "Exchange Rate Type
* IV_EFFECTIVE_DATE = SY-DATUM "Effective date
* IV_COMMIT = 'X' "Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
* IV_PRO_STL = ABAP_TRUE "Single-Character Indicator
* IV_SUB_STL = ABAP_TRUE "Single-Character Indicator
* IV_FINAL_STL = ABAP_TRUE "Single-Character Indicator
IMPORTING
ET_GROUPID = "Table type for Settlement Group
ET_MESSAGES = "BAPI return structure
EXCEPTIONS
SYSTEM_FAILURE = 1 COMMUNICATION_FAILURE = 2 OTHERS = 3
IMPORTING Parameters details for /ACCGO/CAS_GENERTE_STORAGE_STL
IT_T_APPLDOCS - Table of Application Document numbers
Data type: /ACCGO/CAS_TT_APPL_DOC_ITEMOptional: No
Call by Reference: No ( called with pass by value option)
IV_RUN_DATE - Date
Data type: DATUMDefault: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)
IV_STORAGE_TYPE - Settlement Type
Data type: /ACCGO/E_STL_TYPDefault: 'T'
Optional: No
Call by Reference: No ( called with pass by value option)
IV_RATE_TYPE - Exchange Rate Type
Data type: KURST_CURRDefault: 'M'
Optional: No
Call by Reference: No ( called with pass by value option)
IV_EFFECTIVE_DATE - Effective date
Data type: /ACCGO/E_EFFECTIVE_DATEDefault: SY-DATUM
Optional: No
Call by Reference: No ( called with pass by value option)
IV_COMMIT - Data element for domain BOOLE: TRUE (='X') and FALSE (=' ')
Data type: BOOLE_DDefault: 'X'
Optional: No
Call by Reference: No ( called with pass by value option)
IV_PRO_STL - Single-Character Indicator
Data type: CHAR1Default: ABAP_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
IV_SUB_STL - Single-Character Indicator
Data type: CHAR1Default: ABAP_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
IV_FINAL_STL - Single-Character Indicator
Data type: CHAR1Default: ABAP_TRUE
Optional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for /ACCGO/CAS_GENERTE_STORAGE_STL
ET_GROUPID - Table type for Settlement Group
Data type: /ACCGO/CAS_TT_GRP_IDOptional: No
Call by Reference: No ( called with pass by value option)
ET_MESSAGES - BAPI return structure
Data type: /ACCGO/TT_COMMON_BR_BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
SYSTEM_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
COMMUNICATION_FAILURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
OTHERS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for /ACCGO/CAS_GENERTE_STORAGE_STL 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_et_groupid | TYPE /ACCGO/CAS_TT_GRP_ID, " | |||
lv_it_t_appldocs | TYPE /ACCGO/CAS_TT_APPL_DOC_ITEM, " | |||
lv_system_failure | TYPE /ACCGO/CAS_TT_APPL_DOC_ITEM, " | |||
lv_et_messages | TYPE /ACCGO/TT_COMMON_BR_BAPIRET2, " | |||
lv_iv_run_date | TYPE DATUM, " SY-DATUM | |||
lv_communication_failure | TYPE DATUM, " | |||
lv_others | TYPE DATUM, " | |||
lv_iv_storage_type | TYPE /ACCGO/E_STL_TYP, " 'T' | |||
lv_iv_rate_type | TYPE KURST_CURR, " 'M' | |||
lv_iv_effective_date | TYPE /ACCGO/E_EFFECTIVE_DATE, " SY-DATUM | |||
lv_iv_commit | TYPE BOOLE_D, " 'X' | |||
lv_iv_pro_stl | TYPE CHAR1, " ABAP_TRUE | |||
lv_iv_sub_stl | TYPE CHAR1, " ABAP_TRUE | |||
lv_iv_final_stl | TYPE CHAR1. " ABAP_TRUE |
  CALL FUNCTION '/ACCGO/CAS_GENERTE_STORAGE_STL' "Generates Storage Settlement |
EXPORTING | ||
IT_T_APPLDOCS | = lv_it_t_appldocs | |
IV_RUN_DATE | = lv_iv_run_date | |
IV_STORAGE_TYPE | = lv_iv_storage_type | |
IV_RATE_TYPE | = lv_iv_rate_type | |
IV_EFFECTIVE_DATE | = lv_iv_effective_date | |
IV_COMMIT | = lv_iv_commit | |
IV_PRO_STL | = lv_iv_pro_stl | |
IV_SUB_STL | = lv_iv_sub_stl | |
IV_FINAL_STL | = lv_iv_final_stl | |
IMPORTING | ||
ET_GROUPID | = lv_et_groupid | |
ET_MESSAGES | = lv_et_messages | |
EXCEPTIONS | ||
SYSTEM_FAILURE = 1 | ||
COMMUNICATION_FAILURE = 2 | ||
OTHERS = 3 | ||
. " /ACCGO/CAS_GENERTE_STORAGE_STL |
ABAP code using 7.40 inline data declarations to call FM /ACCGO/CAS_GENERTE_STORAGE_STL
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.DATA(ld_iv_run_date) | = SY-DATUM. | |||
DATA(ld_iv_storage_type) | = 'T'. | |||
DATA(ld_iv_rate_type) | = 'M'. | |||
DATA(ld_iv_effective_date) | = SY-DATUM. | |||
DATA(ld_iv_commit) | = 'X'. | |||
DATA(ld_iv_pro_stl) | = ABAP_TRUE. | |||
DATA(ld_iv_sub_stl) | = ABAP_TRUE. | |||
DATA(ld_iv_final_stl) | = ABAP_TRUE. | |||
Search for further information about these or an SAP related objects