SAP ALE_RE_SU_CHANGE Function Module for
ALE_RE_SU_CHANGE is a standard ale re su change SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 ale re su change FM, simply by entering the name ALE_RE_SU_CHANGE into the relevant SAP transaction such as SE37 or SE38.
Function Group: RESC_BAPI_SETTL_UNIT
Program Name: SAPLRESC_BAPI_SETTL_UNIT
Main Program: SAPLRESC_BAPI_SETTL_UNIT
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function ALE_RE_SU_CHANGE 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 'ALE_RE_SU_CHANGE'".
EXPORTING
COMPCODE = "
* OBJ_TYPE = 'BUS1506' "
* SERIAL_ID = '0' "
BUSINESSENTITYNUMBER = "
SERVCHARGEKEY = "
SETTLEMENTUNITNUMBER = "
* SETTLUNIT = "
* SETTLUNITX = "
* COSTCOLLECTOR = "
* TRANS = "
* TESTRUN = ' ' "
TABLES
* PARTICIPREL = "
* EXTENSIONIN = "
RECEIVERS = "
* COMMUNICATION_DOCUMENTS = "
* APPLICATION_OBJECTS = "
* APPORTRULE = "
* COSTOBJECT = "
* TERMORGASSIGNMENT = "
* MEASPT = "
* OPTIONRATE = "
* RESUBMRULE = "
* RESUBMDATE = "
* STATUS = "
EXCEPTIONS
ERROR_CREATING_IDOCS = 1
IMPORTING Parameters details for ALE_RE_SU_CHANGE
COMPCODE -
Data type: BAPI_RE_SETTL_UNIT_KEY-COMP_CODEOptional: No
Call by Reference: No ( called with pass by value option)
OBJ_TYPE -
Data type: SERIAL-OBJ_TYPEDefault: 'BUS1506'
Optional: Yes
Call by Reference: No ( called with pass by value option)
SERIAL_ID -
Data type: SERIAL-CHNUMDefault: '0'
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUSINESSENTITYNUMBER -
Data type: BAPI_RE_SETTL_UNIT_KEY-BUSINESS_ENTITYOptional: No
Call by Reference: No ( called with pass by value option)
SERVCHARGEKEY -
Data type: BAPI_RE_SETTL_UNIT_KEY-SERV_CHARGE_KEYOptional: No
Call by Reference: No ( called with pass by value option)
SETTLEMENTUNITNUMBER -
Data type: BAPI_RE_SETTL_UNIT_KEY-SETTLEMENT_UNITOptional: No
Call by Reference: No ( called with pass by value option)
SETTLUNIT -
Data type: BAPI_RE_SETTL_UNIT_DATOptional: Yes
Call by Reference: No ( called with pass by value option)
SETTLUNITX -
Data type: BAPI_RE_SETTL_UNIT_DATXOptional: Yes
Call by Reference: No ( called with pass by value option)
COSTCOLLECTOR -
Data type: BAPI_RE_COSTCOLLECTOR_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
TRANS -
Data type: BAPI_RE_ADDITIONAL_FIELDS-TRANSOptional: Yes
Call by Reference: No ( called with pass by value option)
TESTRUN -
Data type: BAPI_RE_ADDITIONAL_FIELDS-TESTRUNDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ALE_RE_SU_CHANGE
PARTICIPREL -
Data type: BAPI_RE_PARTICIP_REL_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXTENSIONIN -
Data type: BAPIPAREXOptional: Yes
Call by Reference: No ( called with pass by value option)
RECEIVERS -
Data type: BDI_LOGSYSOptional: No
Call by Reference: No ( called with pass by value option)
COMMUNICATION_DOCUMENTS -
Data type: SWOTOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
APPLICATION_OBJECTS -
Data type: SWOTOBJIDOptional: Yes
Call by Reference: No ( called with pass by value option)
APPORTRULE -
Data type: BAPI_RE_APPORT_RULE_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
COSTOBJECT -
Data type: BAPI_RE_COST_OBJECT_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
TERMORGASSIGNMENT -
Data type: BAPI_RE_TERM_OA_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
MEASPT -
Data type: BAPI_RE_MEASPT_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
OPTIONRATE -
Data type: BAPI_RE_OPTION_RATE_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
RESUBMRULE -
Data type: BAPI_RE_RESUBM_RULE_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
RESUBMDATE -
Data type: BAPI_RE_RESUBM_DATE_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
STATUS -
Data type: BAPI_RE_STATUS_DATCOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_CREATING_IDOCS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ALE_RE_SU_CHANGE 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_compcode | TYPE BAPI_RE_SETTL_UNIT_KEY-COMP_CODE, " | |||
lt_participrel | TYPE STANDARD TABLE OF BAPI_RE_PARTICIP_REL_DATC, " | |||
lv_error_creating_idocs | TYPE BAPI_RE_PARTICIP_REL_DATC, " | |||
lv_obj_type | TYPE SERIAL-OBJ_TYPE, " 'BUS1506' | |||
lt_extensionin | TYPE STANDARD TABLE OF BAPIPAREX, " | |||
lt_receivers | TYPE STANDARD TABLE OF BDI_LOGSYS, " | |||
lv_serial_id | TYPE SERIAL-CHNUM, " '0' | |||
lt_communication_documents | TYPE STANDARD TABLE OF SWOTOBJID, " | |||
lt_application_objects | TYPE STANDARD TABLE OF SWOTOBJID, " | |||
lt_apportrule | TYPE STANDARD TABLE OF BAPI_RE_APPORT_RULE_DATC, " | |||
lv_businessentitynumber | TYPE BAPI_RE_SETTL_UNIT_KEY-BUSINESS_ENTITY, " | |||
lt_costobject | TYPE STANDARD TABLE OF BAPI_RE_COST_OBJECT_DATC, " | |||
lv_servchargekey | TYPE BAPI_RE_SETTL_UNIT_KEY-SERV_CHARGE_KEY, " | |||
lt_termorgassignment | TYPE STANDARD TABLE OF BAPI_RE_TERM_OA_DATC, " | |||
lv_settlementunitnumber | TYPE BAPI_RE_SETTL_UNIT_KEY-SETTLEMENT_UNIT, " | |||
lt_measpt | TYPE STANDARD TABLE OF BAPI_RE_MEASPT_DATC, " | |||
lv_settlunit | TYPE BAPI_RE_SETTL_UNIT_DAT, " | |||
lt_optionrate | TYPE STANDARD TABLE OF BAPI_RE_OPTION_RATE_DATC, " | |||
lv_settlunitx | TYPE BAPI_RE_SETTL_UNIT_DATX, " | |||
lt_resubmrule | TYPE STANDARD TABLE OF BAPI_RE_RESUBM_RULE_DATC, " | |||
lv_costcollector | TYPE BAPI_RE_COSTCOLLECTOR_DATC, " | |||
lv_trans | TYPE BAPI_RE_ADDITIONAL_FIELDS-TRANS, " | |||
lt_resubmdate | TYPE STANDARD TABLE OF BAPI_RE_RESUBM_DATE_DATC, " | |||
lt_status | TYPE STANDARD TABLE OF BAPI_RE_STATUS_DATC, " | |||
lv_testrun | TYPE BAPI_RE_ADDITIONAL_FIELDS-TESTRUN. " SPACE |
  CALL FUNCTION 'ALE_RE_SU_CHANGE' " |
EXPORTING | ||
COMPCODE | = lv_compcode | |
OBJ_TYPE | = lv_obj_type | |
SERIAL_ID | = lv_serial_id | |
BUSINESSENTITYNUMBER | = lv_businessentitynumber | |
SERVCHARGEKEY | = lv_servchargekey | |
SETTLEMENTUNITNUMBER | = lv_settlementunitnumber | |
SETTLUNIT | = lv_settlunit | |
SETTLUNITX | = lv_settlunitx | |
COSTCOLLECTOR | = lv_costcollector | |
TRANS | = lv_trans | |
TESTRUN | = lv_testrun | |
TABLES | ||
PARTICIPREL | = lt_participrel | |
EXTENSIONIN | = lt_extensionin | |
RECEIVERS | = lt_receivers | |
COMMUNICATION_DOCUMENTS | = lt_communication_documents | |
APPLICATION_OBJECTS | = lt_application_objects | |
APPORTRULE | = lt_apportrule | |
COSTOBJECT | = lt_costobject | |
TERMORGASSIGNMENT | = lt_termorgassignment | |
MEASPT | = lt_measpt | |
OPTIONRATE | = lt_optionrate | |
RESUBMRULE | = lt_resubmrule | |
RESUBMDATE | = lt_resubmdate | |
STATUS | = lt_status | |
EXCEPTIONS | ||
ERROR_CREATING_IDOCS = 1 | ||
. " ALE_RE_SU_CHANGE |
ABAP code using 7.40 inline data declarations to call FM ALE_RE_SU_CHANGE
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 COMP_CODE FROM BAPI_RE_SETTL_UNIT_KEY INTO @DATA(ld_compcode). | ||||
"SELECT single OBJ_TYPE FROM SERIAL INTO @DATA(ld_obj_type). | ||||
DATA(ld_obj_type) | = 'BUS1506'. | |||
"SELECT single CHNUM FROM SERIAL INTO @DATA(ld_serial_id). | ||||
DATA(ld_serial_id) | = '0'. | |||
"SELECT single BUSINESS_ENTITY FROM BAPI_RE_SETTL_UNIT_KEY INTO @DATA(ld_businessentitynumber). | ||||
"SELECT single SERV_CHARGE_KEY FROM BAPI_RE_SETTL_UNIT_KEY INTO @DATA(ld_servchargekey). | ||||
"SELECT single SETTLEMENT_UNIT FROM BAPI_RE_SETTL_UNIT_KEY INTO @DATA(ld_settlementunitnumber). | ||||
"SELECT single TRANS FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_trans). | ||||
"SELECT single TESTRUN FROM BAPI_RE_ADDITIONAL_FIELDS INTO @DATA(ld_testrun). | ||||
DATA(ld_testrun) | = ' '. | |||
Search for further information about these or an SAP related objects