Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

FM ALM_ME_EQUI_USTATUS_CHANGE

Hi Gurus,

I use this FM to change the user status of a SERNR (equipment).

I set the parameters like follows :

   refresh: gt_equst.

   clear: gs_equst.

   gs_equst-objnr  = gv_objnr.       "IEsernr

   gs_equst-status = gv_stlin(5).   "Old status

   gs_equst-inact  = 'X'.

   append  gs_equst to gt_equst.

   clear: gs_equst.

   gs_equst-objnr  = gv_objnr. "IEsernr

   gs_equst-status = 'ELAG'.   "New Status

   append  gs_equst to gt_equst.

   CALL FUNCTION 'ALM_ME_EQUI_USTATUS_CHANGE'

     EXPORTING

       equipment                   = sernr

       MODE                        = 'X'

     tables

       equipment_user_status       = gt_equst

     EXCEPTIONS

       LOCK_ERROR                  = 1

       EQUI_READ_ERROR             = 2

       STATUS_CHANGE_ERROR         = 3

       OTHERS                      = 4

             .

   IF sy-subrc <> 0.

* Implement suitable error handling here

   ENDIF.

   CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

     EXPORTING

       wait   = 'X'

     IMPORTING

       return = gt_ret.

I don't get any error but I don't see the result. What do I make wrong ?

Thanks a lot for Your helps !

KR   Peter

Former Member
Not what you were looking for? View more on this topic or Ask a question