SAP FCLM_BAM_CREATE_CHANGEREQUEST Function Module for Create Change Request
FCLM_BAM_CREATE_CHANGEREQUEST is a standard fclm bam create changerequest SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Create Change Request 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 fclm bam create changerequest FM, simply by entering the name FCLM_BAM_CREATE_CHANGEREQUEST into the relevant SAP transaction such as SE37 or SE38.
Function Group: FCLM_BAM_CHGREQ
Program Name: SAPLFCLM_BAM_CHGREQ
Main Program: SAPLFCLM_BAM_CHGREQ
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function FCLM_BAM_CREATE_CHANGEREQUEST 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 'FCLM_BAM_CREATE_CHANGEREQUEST'"Create Change Request.
EXPORTING
IT_ACCOUNT = "Account Information for Change Request's Create
* IV_REQ_STATUS = '01' "Change Request Status
* IV_DUEDATE = "Due Date
* IV_BYPASS = ABAP_FALSE "
* IV_CREATE_USER = "ABAP System Field: Name of Current User
* IV_ACCOUNT_ACTION = '01' "Action Performed on Bank Account
IV_TITLE = "Title
* IV_SAVE = 'X' "
* IV_COMMITWORK = 'X' "Boolean Variable (X=True, -=False, Space=Unknown)
* IV_STARTWF = 'X' "Boolean Variable (X=True, -=False, Space=Unknown)
* IS_STARTWF_INFO = "Change Request Start Workflow
* IV_RESETBOL = "Boolean Variable (X=True, -=False, Space=Unknown)
* IV_REQ_PROCESS = ' ' "Change Request Process
IMPORTING
EV_REQID = "Change request ID
ET_MESSAGE = "Table with BAPI Return Information
EV_ERRORFLAG = "Boolean Variable (X=True, -=False, Space=Unknown)
EXCEPTIONS
GENIL_FAILED = 1
IMPORTING Parameters details for FCLM_BAM_CREATE_CHANGEREQUEST
IT_ACCOUNT - Account Information for Change Request's Create
Data type: FCLM_BAM_T_CRCREATE_ACNTOptional: No
Call by Reference: Yes
IV_REQ_STATUS - Change Request Status
Data type: FCLM_BAM_REQ_STATUSDefault: '01'
Optional: Yes
Call by Reference: Yes
IV_DUEDATE - Due Date
Data type: FCLM_BAM_DUEDATEOptional: Yes
Call by Reference: Yes
IV_BYPASS -
Data type: ABAP_BOOLDefault: ABAP_FALSE
Optional: Yes
Call by Reference: Yes
IV_CREATE_USER - ABAP System Field: Name of Current User
Data type: SYST_UNAMEOptional: Yes
Call by Reference: Yes
IV_ACCOUNT_ACTION - Action Performed on Bank Account
Data type: FCLM_BAM_ACC_ACTIONDefault: '01'
Optional: Yes
Call by Reference: Yes
IV_TITLE - Title
Data type: FCLM_BAM_REQ_TITLEOptional: No
Call by Reference: Yes
IV_SAVE -
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_COMMITWORK - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IV_STARTWF - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANDefault: 'X'
Optional: Yes
Call by Reference: Yes
IS_STARTWF_INFO - Change Request Start Workflow
Data type: FCLM_BAM_S_CRSTARTWFOptional: Yes
Call by Reference: Yes
IV_RESETBOL - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANOptional: Yes
Call by Reference: Yes
IV_REQ_PROCESS - Change Request Process
Data type: FCLM_BAM_REQ_PROCESSDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for FCLM_BAM_CREATE_CHANGEREQUEST
EV_REQID - Change request ID
Data type: FCLM_BAM_REQ_IDOptional: No
Call by Reference: Yes
ET_MESSAGE - Table with BAPI Return Information
Data type: BAPIRETTABOptional: No
Call by Reference: Yes
EV_ERRORFLAG - Boolean Variable (X=True, -=False, Space=Unknown)
Data type: BOOLEANOptional: No
Call by Reference: Yes
EXCEPTIONS details
GENIL_FAILED -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for FCLM_BAM_CREATE_CHANGEREQUEST 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_ev_reqid | TYPE FCLM_BAM_REQ_ID, " | |||
| lv_it_account | TYPE FCLM_BAM_T_CRCREATE_ACNT, " | |||
| lv_genil_failed | TYPE FCLM_BAM_T_CRCREATE_ACNT, " | |||
| lv_iv_req_status | TYPE FCLM_BAM_REQ_STATUS, " '01' | |||
| lv_iv_duedate | TYPE FCLM_BAM_DUEDATE, " | |||
| lv_iv_bypass | TYPE ABAP_BOOL, " ABAP_FALSE | |||
| lv_iv_create_user | TYPE SYST_UNAME, " | |||
| lv_et_message | TYPE BAPIRETTAB, " | |||
| lv_iv_account_action | TYPE FCLM_BAM_ACC_ACTION, " '01' | |||
| lv_iv_title | TYPE FCLM_BAM_REQ_TITLE, " | |||
| lv_ev_errorflag | TYPE BOOLEAN, " | |||
| lv_iv_save | TYPE BOOLEAN, " 'X' | |||
| lv_iv_commitwork | TYPE BOOLEAN, " 'X' | |||
| lv_iv_startwf | TYPE BOOLEAN, " 'X' | |||
| lv_is_startwf_info | TYPE FCLM_BAM_S_CRSTARTWF, " | |||
| lv_iv_resetbol | TYPE BOOLEAN, " | |||
| lv_iv_req_process | TYPE FCLM_BAM_REQ_PROCESS. " SPACE |
|   CALL FUNCTION 'FCLM_BAM_CREATE_CHANGEREQUEST' "Create Change Request |
| EXPORTING | ||
| IT_ACCOUNT | = lv_it_account | |
| IV_REQ_STATUS | = lv_iv_req_status | |
| IV_DUEDATE | = lv_iv_duedate | |
| IV_BYPASS | = lv_iv_bypass | |
| IV_CREATE_USER | = lv_iv_create_user | |
| IV_ACCOUNT_ACTION | = lv_iv_account_action | |
| IV_TITLE | = lv_iv_title | |
| IV_SAVE | = lv_iv_save | |
| IV_COMMITWORK | = lv_iv_commitwork | |
| IV_STARTWF | = lv_iv_startwf | |
| IS_STARTWF_INFO | = lv_is_startwf_info | |
| IV_RESETBOL | = lv_iv_resetbol | |
| IV_REQ_PROCESS | = lv_iv_req_process | |
| IMPORTING | ||
| EV_REQID | = lv_ev_reqid | |
| ET_MESSAGE | = lv_et_message | |
| EV_ERRORFLAG | = lv_ev_errorflag | |
| EXCEPTIONS | ||
| GENIL_FAILED = 1 | ||
| . " FCLM_BAM_CREATE_CHANGEREQUEST | ||
ABAP code using 7.40 inline data declarations to call FM FCLM_BAM_CREATE_CHANGEREQUEST
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_req_status) | = '01'. | |||
| DATA(ld_iv_bypass) | = ABAP_FALSE. | |||
| DATA(ld_iv_account_action) | = '01'. | |||
| DATA(ld_iv_save) | = 'X'. | |||
| DATA(ld_iv_commitwork) | = 'X'. | |||
| DATA(ld_iv_startwf) | = 'X'. | |||
| DATA(ld_iv_req_process) | = ' '. | |||
Search for further information about these or an SAP related objects