Skip to Content

FM/BAPI to deactivate/delete EQUI and M-plan

Is there any FM/BAPI to delete and deactivate EQUIPMENT or M-Plan?

Or any FM/BAPI to update the JEST table?

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Jul 22, 2009 at 11:06 AM

    Maybe it would help if you explain the business process...

    PeteA

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Eva,

      You can use the FM 'I_CHANGE_STATUS' to change teh status of equipment/Maintenance plan . Below is the code that you can use .

      data: lv_objnr type equi-objnr,
               current_stat type TJ30-ESTAT . "(get the current staus by using FM (READ_STATUS)
             
      
      CALL FUNCTION 'I_CHANGE_STATUS'
        EXPORTING
          objnr                   = lv_objnr
          estat_inactive      = current_stat 
          estat_active        = 'I0320'  "(Status for deactivation = 'I0320' , status for deletion = 'I0076')
      *   STSMA               =
       EXCEPTIONS
         CANNOT_UPDATE        = 1
         OTHERS               = 2
                .
      IF sy-subrc <> 0.
      * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
      *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.

      Edited by: Vasuki S Patki on Sep 17, 2009 9:39 AM

  • author's profile photo Former Member
    Former Member
    Posted on Jul 22, 2009 at 11:11 AM

    Hi

    why you want to use only Bapi& FM

    use t code SE38 & run following Programmes RIARCEQV,RIARCEQA,RIARCEQD then your equipment will be deleted or use SARA transaction

    The archieving object what should be archieved & how

    Following archeving objects are available pm_equi,PM_Mplan

    Regards

    chand

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.