SAP Function Modules

MAM25_040_CREATE SAP Function module







MAM25_040_CREATE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name MAM25_040_CREATE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: ALM_MEREP_040
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM MAM25_040_CREATE - MAM25 040 CREATE





CALL FUNCTION 'MAM25_040_CREATE' "
  EXPORTING
    user =                      " alm_me_user_data-userid
    measurement =               " mam_25_measmntdoc_2cr
  IMPORTING
    measurement_document =      " mam_25_measmntdoc_2cr-document
* TABLES
*   ce_measurement =            " alm_me_customer_enhancement
*   return =                    " bapiret2
*   wsap_extension =            " alm_me_sap_extension
    .  "  MAM25_040_CREATE

ABAP code example for Function Module MAM25_040_CREATE





The ABAP code below is a full code listing to execute function module MAM25_040_CREATE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_measurement_document  TYPE MAM_25_MEASMNTDOC_2CR-DOCUMENT ,
it_ce_measurement  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_measurement  LIKE LINE OF it_ce_measurement ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION,"TABLES PARAM
wa_wsap_extension  LIKE LINE OF it_wsap_extension .


DATA(ld_user) = some text here
DATA(ld_measurement) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_ce_measurement to it_ce_measurement.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_wsap_extension to it_wsap_extension. . CALL FUNCTION 'MAM25_040_CREATE' EXPORTING user = ld_user measurement = ld_measurement IMPORTING measurement_document = ld_measurement_document * TABLES * ce_measurement = it_ce_measurement * return = it_return * wsap_extension = it_wsap_extension . " MAM25_040_CREATE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_measurement_document  TYPE MAM_25_MEASMNTDOC_2CR-DOCUMENT ,
ld_user  TYPE ALM_ME_USER_DATA-USERID ,
it_ce_measurement  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_measurement  LIKE LINE OF it_ce_measurement,
ld_measurement  TYPE MAM_25_MEASMNTDOC_2CR ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION ,
wa_wsap_extension  LIKE LINE OF it_wsap_extension.


ld_user = some text here

"populate fields of struture and append to itab
append wa_ce_measurement to it_ce_measurement.
ld_measurement = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_return to it_return.

"populate fields of struture and append to itab
append wa_wsap_extension to it_wsap_extension.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name MAM25_040_CREATE or its description.