SAP Function Modules

ALM_ME_PARTNER_MAINTAIN SAP Function module - ALM_ME_PARTNER_MAINTAIN







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

Associated Function Group: ALM_ME_PARTNER
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM ALM_ME_PARTNER_MAINTAIN - ALM ME PARTNER MAINTAIN





CALL FUNCTION 'ALM_ME_PARTNER_MAINTAIN' " ALM_ME_PARTNER_MAINTAIN
* EXPORTING
*   iv_t370t_rec =              " t370t         Equipmenttypen
*   iv_current_state =          " c             Aktualler Stand
*   iv_t370f_rec =              " t370f         Functional Location Category
  IMPORTING
    ev_abort =                  " c
    es_bapiret2 =               " bapiret2      Returnparameter
  TABLES
    it_bapi_ihpa =              " bapi_ihpa     Instandhaltung: Partner
  CHANGING
    cs_itob =                   " itob          Generated Table for View ITOB
    .  "  ALM_ME_PARTNER_MAINTAIN

ABAP code example for Function Module ALM_ME_PARTNER_MAINTAIN





The ABAP code below is a full code listing to execute function module ALM_ME_PARTNER_MAINTAIN 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_ev_abort  TYPE C ,
ld_es_bapiret2  TYPE BAPIRET2 ,
it_it_bapi_ihpa  TYPE STANDARD TABLE OF BAPI_IHPA,"TABLES PARAM
wa_it_bapi_ihpa  LIKE LINE OF it_it_bapi_ihpa .

DATA(ld_cs_itob) = 'Check type of data required'.
DATA(ld_iv_t370t_rec) = 'Check type of data required'.
DATA(ld_iv_current_state) = 'Check type of data required'.
DATA(ld_iv_t370f_rec) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bapi_ihpa to it_it_bapi_ihpa. . CALL FUNCTION 'ALM_ME_PARTNER_MAINTAIN' * EXPORTING * iv_t370t_rec = ld_iv_t370t_rec * iv_current_state = ld_iv_current_state * iv_t370f_rec = ld_iv_t370f_rec IMPORTING ev_abort = ld_ev_abort es_bapiret2 = ld_es_bapiret2 TABLES it_bapi_ihpa = it_it_bapi_ihpa CHANGING cs_itob = ld_cs_itob . " ALM_ME_PARTNER_MAINTAIN
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_cs_itob  TYPE ITOB ,
ld_ev_abort  TYPE C ,
ld_iv_t370t_rec  TYPE T370T ,
it_it_bapi_ihpa  TYPE STANDARD TABLE OF BAPI_IHPA ,
wa_it_bapi_ihpa  LIKE LINE OF it_it_bapi_ihpa,
ld_es_bapiret2  TYPE BAPIRET2 ,
ld_iv_current_state  TYPE C ,
ld_iv_t370f_rec  TYPE T370F .

ld_cs_itob = 'Check type of data required'.
ld_iv_t370t_rec = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_bapi_ihpa to it_it_bapi_ihpa.
ld_iv_current_state = 'Check type of data required'.
ld_iv_t370f_rec = 'Check type of data required'.

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