SAP Function Modules

MAM25_070_GETDETAIL SAP Function module







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

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


Pattern for FM MAM25_070_GETDETAIL - MAM25 070 GETDETAIL





CALL FUNCTION 'MAM25_070_GETDETAIL' "
  EXPORTING
    user =                      " alm_me_user_data-userid  User Name
    material =                  " mam_25_inventory_mng_item-material  Material Number
    serialno =                  " mam_25_inventory_mng_item-serialno  Serial Number
    equipment =                 " mam_25_inventory_mng_item-equipment  Equipment Number
  IMPORTING
    inventory_item =            " mam_25_inventory_mng_item  Stock of Technician
* TABLES
*   ce_inventory =              " alm_me_customer_enhancement  Customer Enhancement Technician's Stock
*   return =                    " bapiret2      Return Parameter(s)
*   wsap_extension =            " alm_me_sap_extension  SAP Enhancement
    .  "  MAM25_070_GETDETAIL

ABAP code example for Function Module MAM25_070_GETDETAIL





The ABAP code below is a full code listing to execute function module MAM25_070_GETDETAIL 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_inventory_item  TYPE MAM_25_INVENTORY_MNG_ITEM ,
it_ce_inventory  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT,"TABLES PARAM
wa_ce_inventory  LIKE LINE OF it_ce_inventory ,
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_material) = some text here

DATA(ld_serialno) = some text here

DATA(ld_equipment) = some text here

"populate fields of struture and append to itab
append wa_ce_inventory to it_ce_inventory.

"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_070_GETDETAIL' EXPORTING user = ld_user material = ld_material serialno = ld_serialno equipment = ld_equipment IMPORTING inventory_item = ld_inventory_item * TABLES * ce_inventory = it_ce_inventory * return = it_return * wsap_extension = it_wsap_extension . " MAM25_070_GETDETAIL
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_inventory_item  TYPE MAM_25_INVENTORY_MNG_ITEM ,
ld_user  TYPE ALM_ME_USER_DATA-USERID ,
it_ce_inventory  TYPE STANDARD TABLE OF ALM_ME_CUSTOMER_ENHANCEMENT ,
wa_ce_inventory  LIKE LINE OF it_ce_inventory,
ld_material  TYPE MAM_25_INVENTORY_MNG_ITEM-MATERIAL ,
it_return  TYPE STANDARD TABLE OF BAPIRET2 ,
wa_return  LIKE LINE OF it_return,
ld_serialno  TYPE MAM_25_INVENTORY_MNG_ITEM-SERIALNO ,
it_wsap_extension  TYPE STANDARD TABLE OF ALM_ME_SAP_EXTENSION ,
wa_wsap_extension  LIKE LINE OF it_wsap_extension,
ld_equipment  TYPE MAM_25_INVENTORY_MNG_ITEM-EQUIPMENT .


ld_user = some text here

"populate fields of struture and append to itab
append wa_ce_inventory to it_ce_inventory.

ld_material = some text here

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

ld_serialno = some text here

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

ld_equipment = some text here

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