SAP Function Modules

ALM_MEREP_011_CREATE SAP Function module







ALM_MEREP_011_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 ALM_MEREP_011_CREATE into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM ALM_MEREP_011_CREATE - ALM MEREP 011 CREATE





CALL FUNCTION 'ALM_MEREP_011_CREATE' "
  EXPORTING
    user =                      " alm_me_user_data-userid
    notification_header =       " mam_20_notif_header
  IMPORTING
    notif_no =                  " mam_20_notif_header-notif_no
* TABLES
*   notification_item =         " mam_20_notif_item
*   notification_cause =        " mam_20_notif_cause
*   notification_activity =     " mam_20_notif_activity
*   notification_task =         " mam_20_notif_task
*   notification_partner =      " alm_me_partner_key_struct
*   notification_longtext =     " alm_me_longtext
*   notification_status =       " alm_me_user_status_changes
*   ce_notif_header =           " alm_me_customer_enhancement
*   ce_notif_item =             " alm_me_customer_enhancement
*   ce_notif_cause =            " alm_me_customer_enhancement
*   ce_notif_activity =         " alm_me_customer_enhancement
*   ce_notif_task =             " alm_me_customer_enhancement
*   return =                    " bapiret2
*   wsap_extension =            " alm_me_sap_extension
    .  "  ALM_MEREP_011_CREATE

ABAP code example for Function Module ALM_MEREP_011_CREATE





The ABAP code below is a full code listing to execute function module ALM_MEREP_011_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_notif_no  TYPE MAM_20_NOTIF_HEADER-NOTIF_NO ,
it_notification_item  TYPE STANDARD TABLE OF MAM_20_NOTIF_ITEM,"TABLES PARAM
wa_notification_item  LIKE LINE OF it_notification_item ,
it_notification_cause  TYPE STANDARD TABLE OF MAM_20_NOTIF_CAUSE,"TABLES PARAM
wa_notification_cause  LIKE LINE OF it_notification_cause ,
it_notification_activity  TYPE STANDARD TABLE OF MAM_20_NOTIF_ACTIVITY,"TABLES PARAM
wa_notification_activity  LIKE LINE OF it_notification_activity ,
it_notification_task  TYPE STANDARD TABLE OF MAM_20_NOTIF_TASK,"TABLES PARAM
wa_notification_task  LIKE LINE OF it_notification_task ,
it_notification_partner  TYPE STANDARD TABLE OF ALM_ME_PARTNER_KEY_STRUCT,"TABLES PARAM
wa_notification_partner  LIKE LINE OF it_notification_partner ,
it_notification_longtext  TYPE STANDARD TABLE OF ALM_ME_LONGTEXT,"TABLES PARAM
wa_notification_longtext  LIKE LINE OF it_notification_longtext ,
it_notification_status  TYPE STANDARD TABLE OF ALM_ME_USER_STATUS_CHANGES,"TABLES PARAM
wa_notification_status  LIKE LINE OF it_notification_status ,
it_ce_notif_header  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_notif_header  LIKE LINE OF it_ce_notif_header ,
it_ce_notif_item  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_notif_item  LIKE LINE OF it_ce_notif_item ,
it_ce_notif_cause  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_notif_cause  LIKE LINE OF it_ce_notif_cause ,
it_ce_notif_activity  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_notif_activity  LIKE LINE OF it_ce_notif_activity ,
it_ce_notif_task  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_notif_task  LIKE LINE OF it_ce_notif_task ,
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_notification_header) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_notification_item to it_notification_item.

"populate fields of struture and append to itab
append wa_notification_cause to it_notification_cause.

"populate fields of struture and append to itab
append wa_notification_activity to it_notification_activity.

"populate fields of struture and append to itab
append wa_notification_task to it_notification_task.

"populate fields of struture and append to itab
append wa_notification_partner to it_notification_partner.

"populate fields of struture and append to itab
append wa_notification_longtext to it_notification_longtext.

"populate fields of struture and append to itab
append wa_notification_status to it_notification_status.

"populate fields of struture and append to itab
append wa_ce_notif_header to it_ce_notif_header.

"populate fields of struture and append to itab
append wa_ce_notif_item to it_ce_notif_item.

"populate fields of struture and append to itab
append wa_ce_notif_cause to it_ce_notif_cause.

"populate fields of struture and append to itab
append wa_ce_notif_activity to it_ce_notif_activity.

"populate fields of struture and append to itab
append wa_ce_notif_task to it_ce_notif_task.

"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 'ALM_MEREP_011_CREATE' EXPORTING user = ld_user notification_header = ld_notification_header IMPORTING notif_no = ld_notif_no * TABLES * notification_item = it_notification_item * notification_cause = it_notification_cause * notification_activity = it_notification_activity * notification_task = it_notification_task * notification_partner = it_notification_partner * notification_longtext = it_notification_longtext * notification_status = it_notification_status * ce_notif_header = it_ce_notif_header * ce_notif_item = it_ce_notif_item * ce_notif_cause = it_ce_notif_cause * ce_notif_activity = it_ce_notif_activity * ce_notif_task = it_ce_notif_task * return = it_return * wsap_extension = it_wsap_extension . " ALM_MEREP_011_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_notif_no  TYPE MAM_20_NOTIF_HEADER-NOTIF_NO ,
ld_user  TYPE ALM_ME_USER_DATA-USERID ,
it_notification_item  TYPE STANDARD TABLE OF MAM_20_NOTIF_ITEM ,
wa_notification_item  LIKE LINE OF it_notification_item,
ld_notification_header  TYPE MAM_20_NOTIF_HEADER ,
it_notification_cause  TYPE STANDARD TABLE OF MAM_20_NOTIF_CAUSE ,
wa_notification_cause  LIKE LINE OF it_notification_cause,
it_notification_activity  TYPE STANDARD TABLE OF MAM_20_NOTIF_ACTIVITY ,
wa_notification_activity  LIKE LINE OF it_notification_activity,
it_notification_task  TYPE STANDARD TABLE OF MAM_20_NOTIF_TASK ,
wa_notification_task  LIKE LINE OF it_notification_task,
it_notification_partner  TYPE STANDARD TABLE OF ALM_ME_PARTNER_KEY_STRUCT ,
wa_notification_partner  LIKE LINE OF it_notification_partner,
it_notification_longtext  TYPE STANDARD TABLE OF ALM_ME_LONGTEXT ,
wa_notification_longtext  LIKE LINE OF it_notification_longtext,
it_notification_status  TYPE STANDARD TABLE OF ALM_ME_USER_STATUS_CHANGES ,
wa_notification_status  LIKE LINE OF it_notification_status,
it_ce_notif_header  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_notif_header  LIKE LINE OF it_ce_notif_header,
it_ce_notif_item  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_notif_item  LIKE LINE OF it_ce_notif_item,
it_ce_notif_cause  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_notif_cause  LIKE LINE OF it_ce_notif_cause,
it_ce_notif_activity  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_notif_activity  LIKE LINE OF it_ce_notif_activity,
it_ce_notif_task  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_notif_task  LIKE LINE OF it_ce_notif_task,
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_notification_item to it_notification_item.
ld_notification_header = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_notification_cause to it_notification_cause.

"populate fields of struture and append to itab
append wa_notification_activity to it_notification_activity.

"populate fields of struture and append to itab
append wa_notification_task to it_notification_task.

"populate fields of struture and append to itab
append wa_notification_partner to it_notification_partner.

"populate fields of struture and append to itab
append wa_notification_longtext to it_notification_longtext.

"populate fields of struture and append to itab
append wa_notification_status to it_notification_status.

"populate fields of struture and append to itab
append wa_ce_notif_header to it_ce_notif_header.

"populate fields of struture and append to itab
append wa_ce_notif_item to it_ce_notif_item.

"populate fields of struture and append to itab
append wa_ce_notif_cause to it_ce_notif_cause.

"populate fields of struture and append to itab
append wa_ce_notif_activity to it_ce_notif_activity.

"populate fields of struture and append to itab
append wa_ce_notif_task to it_ce_notif_task.

"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 ALM_MEREP_011_CREATE or its description.