SAP CMS_MAP_FOB_CREATE Function Module for Create the financed objects
CMS_MAP_FOB_CREATE is a standard cms map fob create 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 the financed objects 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 cms map fob create FM, simply by entering the name CMS_MAP_FOB_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: CMS_MAP_FOB
Program Name: SAPLCMS_MAP_FOB
Main Program:
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function CMS_MAP_FOB_CREATE 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 'CMS_MAP_FOB_CREATE'"Create the financed objects.
EXPORTING
I_STR_FOB_DATA = "Financed objects details for create (Only for MAPI layer)
* I_FLG_COMMIT = ' ' "Indicates the responsibility on who triggers the commit work
* I_FLG_UPDATE_TASK = 'X' "Indicates that save happens in update task
* I_FLG_TESTRUN = ' ' "Indiacates that it is a test-run
IMPORTING
E_STR_RETURN = "Return Parameter
IMPORTING Parameters details for CMS_MAP_FOB_CREATE
I_STR_FOB_DATA - Financed objects details for create (Only for MAPI layer)
Data type: CMS_STR_FOB_CRT_MAPOptional: No
Call by Reference: No ( called with pass by value option)
I_FLG_COMMIT - Indicates the responsibility on who triggers the commit work
Data type: CMS_DTE_FLG_COMMIT_MAPDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_FLG_UPDATE_TASK - Indicates that save happens in update task
Data type: CMS_DTE_FLG_UPDATE_TASK_MAPDefault: 'X'
Optional: Yes
Call by Reference: Yes
I_FLG_TESTRUN - Indiacates that it is a test-run
Data type: CMS_DTE_FLG_TESTRUN_MAPDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for CMS_MAP_FOB_CREATE
E_STR_RETURN - Return Parameter
Data type: BAPIRET2Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for CMS_MAP_FOB_CREATE 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_e_str_return | TYPE BAPIRET2, " | |||
lv_i_str_fob_data | TYPE CMS_STR_FOB_CRT_MAP, " | |||
lv_i_flg_commit | TYPE CMS_DTE_FLG_COMMIT_MAP, " SPACE | |||
lv_i_flg_update_task | TYPE CMS_DTE_FLG_UPDATE_TASK_MAP, " 'X' | |||
lv_i_flg_testrun | TYPE CMS_DTE_FLG_TESTRUN_MAP. " SPACE |
  CALL FUNCTION 'CMS_MAP_FOB_CREATE' "Create the financed objects |
EXPORTING | ||
I_STR_FOB_DATA | = lv_i_str_fob_data | |
I_FLG_COMMIT | = lv_i_flg_commit | |
I_FLG_UPDATE_TASK | = lv_i_flg_update_task | |
I_FLG_TESTRUN | = lv_i_flg_testrun | |
IMPORTING | ||
E_STR_RETURN | = lv_e_str_return | |
. " CMS_MAP_FOB_CREATE |
ABAP code using 7.40 inline data declarations to call FM CMS_MAP_FOB_CREATE
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_i_flg_commit) | = ' '. | |||
DATA(ld_i_flg_update_task) | = 'X'. | |||
DATA(ld_i_flg_testrun) | = ' '. | |||
Search for further information about these or an SAP related objects