Automate

 View Only
  • 1.  IE02 - delete class from equipment

    Posted 02-23-2021 12:53
    Hi,
    Using IE02, we are able to add classes to an equipment record in S4. However, when we want to 'delete' any existing class in the equipment, there is no search/find capability to find a specific Class in the equipment.
    Anybody was able to accomplish this "delete class from equipment" scenario? either using a transaction script or a BAPI?

    Thanks
    Ocal

    ------------------------------
    Ocal Yilmaz | Winshuttle consultant
    PepsiCo (Business Solutions Group) | 4084314619
    ------------------------------


  • 2.  RE: IE02 - delete class from equipment

    Employee
    Posted 02-25-2021 10:02
    Hi Ocal,

    I am unsure if there is a BAPI to remove classes from an object, like equipment.  That would be the best option.  BAPI_OBJCL_CHANGE will allow you to update them, but I don't see an "action" field that would specify update/insert/delete.

    GUI scripting would work with an Indexed IF.  You could use IE02, or CL24N - with CL24N being a bit easier. 

    I've attached a quick example.  One row didn't have the class and one did - thus the different messages.

    Best Regards,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------

    Attachment(s)



  • 3.  RE: IE02 - delete class from equipment

    Posted 02-25-2021 15:08
    Thank you for your response Sigrid, and for the GUI script provided.

    There is also BAPI_OBJCL_DELETE that I am still checking but not sure if this works for equipment...I tried EQUI for object table but no luck.




    Thanks,

    Ocal Yilmaz (IBM)

    Winshuttle

    email: ocal.yilmaz.contractor@pepsico.com







  • 4.  RE: IE02 - delete class from equipment

    Employee
    Posted 02-25-2021 15:57
    Nice find, Ocal!

    It does work.  Attaching a quick example.


    Table is EQUI and fixed, and class type 002 for equipment classes.

    Input class name & the object key, which is the equipment number.  If your equipment number is not character, check the padding.  The object key is 100 characters and used for all sorts of objects in SAP.  You can always use an Excel formula to pad zeros, if needed, to the length that SAP expects for equipment.

    HTH,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 5.  RE: IE02 - delete class from equipment

    Employee
    Posted 02-25-2021 19:02
    Hi Ocal

    Replying to your email.  I did build and run this in an S4 1909 system.  Unless yours is highly customized, it should work. 

    Again, please ensure padding is correct for the equipment number.  In my system, equipment number is 18 digits, so pad your entry, if numeric, to 18 places (if yours is the same), ex:  000000000012345678.   Below is a screen shot of one way in Excel.

    FYI,
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------



  • 6.  RE: IE02 - delete class from equipment

    Posted 02-26-2021 09:34
    Thank you Sigrid....we made this work now. I appreciate your help

    ------------------------------
    Ocal Yilmaz | Winshuttle Consultant
    PepsiCo (Business Solutions Group) | 4084314619
    ------------------------------



  • 7.  RE: IE02 - delete class from equipment

    Employee
    Posted 02-26-2021 09:44
    Glad to hear it, Ocal!

    Have a nice weekend!
    Sigrid

    ------------------------------
    Sigrid Kok
    PSE | Winshuttle NA
    ------------------------------