SAP Function Modules

MAM30_ML_090_GETDETAIL_SD SAP Function module







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

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


Pattern for FM MAM30_ML_090_GETDETAIL_SD - MAM30 ML 090 GETDETAIL SD





CALL FUNCTION 'MAM30_ML_090_GETDETAIL_SD' "
  EXPORTING
    customizing_user =          " mam_30_user_data_sd-userid  User Name
*   replication_type =          " alm_me_replication_type_struct-replication_type  Type of Replication
  IMPORTING
    user_customizing_head =     " mam_30_user_data_sd
* TABLES
*   partner_links =             " mam_30_partner_key_struct  Partner Key
*   funcloc_links =             " mam_30_funcloc_header_struct
*   equipment_links =           " mam_30_equipment_header_struct
*   measurement_links =         " mam_30_measmnt_pt_key
*   ce_user_data =              " alm_me_customer_enhancement
*   return =                    " bapiret2      Return Parameters
*   variances =                 " mam_30_catalog_variances
*   workcenters =               " mam_30_workcenters
*   activity_types =            " mam_30_cust_activity_type
*   wsap_extension =            " alm_me_sap_extension
*   y1_ml_variances =           " alm_me_ml_90_variances
*   y1_ml_workcenters =         " alm_me_ml_90_workcenters
*   y1_ml_activity_types =      " alm_me_ml_90_activity_types
*   y1_ml_ce_user_data =        " alm_me_ml_customer_enhancement
*   y1_ml_wsap_extension =      " alm_me_ml_sap_extension
    .  "  MAM30_ML_090_GETDETAIL_SD

ABAP code example for Function Module MAM30_ML_090_GETDETAIL_SD





The ABAP code below is a full code listing to execute function module MAM30_ML_090_GETDETAIL_SD 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_user_customizing_head  TYPE MAM_30_USER_DATA_SD ,
it_partner_links  TYPE STANDARD TABLE OF MAM_30_PARTNER_KEY_STRUCT,"TABLES PARAM
wa_partner_links  LIKE LINE OF it_partner_links ,
it_funcloc_links  TYPE STANDARD TABLE OF MAM_30_FUNCLOC_HEADER_STRUCT,"TABLES PARAM
wa_funcloc_links  LIKE LINE OF it_funcloc_links ,
it_equipment_links  TYPE STANDARD TABLE OF MAM_30_EQUIPMENT_HEADER_STRUCT,"TABLES PARAM
wa_equipment_links  LIKE LINE OF it_equipment_links ,
it_measurement_links  TYPE STANDARD TABLE OF MAM_30_MEASMNT_PT_KEY,"TABLES PARAM
wa_measurement_links  LIKE LINE OF it_measurement_links ,
it_ce_user_data  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_user_data  LIKE LINE OF it_ce_user_data ,
it_return  TYPE STANDARD TABLE OF BAPIRET2,"TABLES PARAM
wa_return  LIKE LINE OF it_return ,
it_variances  TYPE STANDARD TABLE OF MAM_30_CATALOG_VARIANCES,"TABLES PARAM
wa_variances  LIKE LINE OF it_variances ,
it_workcenters  TYPE STANDARD TABLE OF MAM_30_WORKCENTERS,"TABLES PARAM
wa_workcenters  LIKE LINE OF it_workcenters ,
it_activity_types  TYPE STANDARD TABLE OF MAM_30_CUST_ACTIVITY_TYPE,"TABLES PARAM
wa_activity_types  LIKE LINE OF it_activity_types ,
it_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION,"TABLES PARAM
wa_wsap_extension  LIKE LINE OF it_wsap_extension ,
it_y1_ml_variances  TYPE STANDARD TABLE OF ALM_ME_ML_90_VARIANCES,"TABLES PARAM
wa_y1_ml_variances  LIKE LINE OF it_y1_ml_variances ,
it_y1_ml_workcenters  TYPE STANDARD TABLE OF ALM_ME_ML_90_WORKCENTERS,"TABLES PARAM
wa_y1_ml_workcenters  LIKE LINE OF it_y1_ml_workcenters ,
it_y1_ml_activity_types  TYPE STANDARD TABLE OF ALM_ME_ML_90_ACTIVITY_TYPES,"TABLES PARAM
wa_y1_ml_activity_types  LIKE LINE OF it_y1_ml_activity_types ,
it_y1_ml_ce_user_data  TYPE STANDARD TABLE OF ALM_ME_ML_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_y1_ml_ce_user_data  LIKE LINE OF it_y1_ml_ce_user_data ,
it_y1_ml_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_ML_SAP_EXTENSION,"TABLES PARAM
wa_y1_ml_wsap_extension  LIKE LINE OF it_y1_ml_wsap_extension .


DATA(ld_customizing_user) = some text here

DATA(ld_replication_type) = some text here

"populate fields of struture and append to itab
append wa_partner_links to it_partner_links.

"populate fields of struture and append to itab
append wa_funcloc_links to it_funcloc_links.

"populate fields of struture and append to itab
append wa_equipment_links to it_equipment_links.

"populate fields of struture and append to itab
append wa_measurement_links to it_measurement_links.

"populate fields of struture and append to itab
append wa_ce_user_data to it_ce_user_data.

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

"populate fields of struture and append to itab
append wa_variances to it_variances.

"populate fields of struture and append to itab
append wa_workcenters to it_workcenters.

"populate fields of struture and append to itab
append wa_activity_types to it_activity_types.

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

"populate fields of struture and append to itab
append wa_y1_ml_variances to it_y1_ml_variances.

"populate fields of struture and append to itab
append wa_y1_ml_workcenters to it_y1_ml_workcenters.

"populate fields of struture and append to itab
append wa_y1_ml_activity_types to it_y1_ml_activity_types.

"populate fields of struture and append to itab
append wa_y1_ml_ce_user_data to it_y1_ml_ce_user_data.

"populate fields of struture and append to itab
append wa_y1_ml_wsap_extension to it_y1_ml_wsap_extension. . CALL FUNCTION 'MAM30_ML_090_GETDETAIL_SD' EXPORTING customizing_user = ld_customizing_user * replication_type = ld_replication_type IMPORTING user_customizing_head = ld_user_customizing_head * TABLES * partner_links = it_partner_links * funcloc_links = it_funcloc_links * equipment_links = it_equipment_links * measurement_links = it_measurement_links * ce_user_data = it_ce_user_data * return = it_return * variances = it_variances * workcenters = it_workcenters * activity_types = it_activity_types * wsap_extension = it_wsap_extension * y1_ml_variances = it_y1_ml_variances * y1_ml_workcenters = it_y1_ml_workcenters * y1_ml_activity_types = it_y1_ml_activity_types * y1_ml_ce_user_data = it_y1_ml_ce_user_data * y1_ml_wsap_extension = it_y1_ml_wsap_extension . " MAM30_ML_090_GETDETAIL_SD
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_user_customizing_head  TYPE MAM_30_USER_DATA_SD ,
ld_customizing_user  TYPE MAM_30_USER_DATA_SD-USERID ,
it_partner_links  TYPE STANDARD TABLE OF MAM_30_PARTNER_KEY_STRUCT ,
wa_partner_links  LIKE LINE OF it_partner_links,
ld_replication_type  TYPE ALM_ME_REPLICATION_TYPE_STRUCT-REPLICATION_TYPE ,
it_funcloc_links  TYPE STANDARD TABLE OF MAM_30_FUNCLOC_HEADER_STRUCT ,
wa_funcloc_links  LIKE LINE OF it_funcloc_links,
it_equipment_links  TYPE STANDARD TABLE OF MAM_30_EQUIPMENT_HEADER_STRUCT ,
wa_equipment_links  LIKE LINE OF it_equipment_links,
it_measurement_links  TYPE STANDARD TABLE OF MAM_30_MEASMNT_PT_KEY ,
wa_measurement_links  LIKE LINE OF it_measurement_links,
it_ce_user_data  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_user_data  LIKE LINE OF it_ce_user_data,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
it_variances  TYPE STANDARD TABLE OF MAM_30_CATALOG_VARIANCES ,
wa_variances  LIKE LINE OF it_variances,
it_workcenters  TYPE STANDARD TABLE OF MAM_30_WORKCENTERS ,
wa_workcenters  LIKE LINE OF it_workcenters,
it_activity_types  TYPE STANDARD TABLE OF MAM_30_CUST_ACTIVITY_TYPE ,
wa_activity_types  LIKE LINE OF it_activity_types,
it_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION ,
wa_wsap_extension  LIKE LINE OF it_wsap_extension,
it_y1_ml_variances  TYPE STANDARD TABLE OF ALM_ME_ML_90_VARIANCES ,
wa_y1_ml_variances  LIKE LINE OF it_y1_ml_variances,
it_y1_ml_workcenters  TYPE STANDARD TABLE OF ALM_ME_ML_90_WORKCENTERS ,
wa_y1_ml_workcenters  LIKE LINE OF it_y1_ml_workcenters,
it_y1_ml_activity_types  TYPE STANDARD TABLE OF ALM_ME_ML_90_ACTIVITY_TYPES ,
wa_y1_ml_activity_types  LIKE LINE OF it_y1_ml_activity_types,
it_y1_ml_ce_user_data  TYPE STANDARD TABLE OF ALM_ME_ML_CUSTOMER_ENHANCEMENT ,
wa_y1_ml_ce_user_data  LIKE LINE OF it_y1_ml_ce_user_data,
it_y1_ml_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_ML_SAP_EXTENSION ,
wa_y1_ml_wsap_extension  LIKE LINE OF it_y1_ml_wsap_extension.


ld_customizing_user = some text here

"populate fields of struture and append to itab
append wa_partner_links to it_partner_links.

ld_replication_type = some text here

"populate fields of struture and append to itab
append wa_funcloc_links to it_funcloc_links.

"populate fields of struture and append to itab
append wa_equipment_links to it_equipment_links.

"populate fields of struture and append to itab
append wa_measurement_links to it_measurement_links.

"populate fields of struture and append to itab
append wa_ce_user_data to it_ce_user_data.

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

"populate fields of struture and append to itab
append wa_variances to it_variances.

"populate fields of struture and append to itab
append wa_workcenters to it_workcenters.

"populate fields of struture and append to itab
append wa_activity_types to it_activity_types.

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

"populate fields of struture and append to itab
append wa_y1_ml_variances to it_y1_ml_variances.

"populate fields of struture and append to itab
append wa_y1_ml_workcenters to it_y1_ml_workcenters.

"populate fields of struture and append to itab
append wa_y1_ml_activity_types to it_y1_ml_activity_types.

"populate fields of struture and append to itab
append wa_y1_ml_ce_user_data to it_y1_ml_ce_user_data.

"populate fields of struture and append to itab
append wa_y1_ml_wsap_extension to it_y1_ml_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 MAM30_ML_090_GETDETAIL_SD or its description.