Automate

 View Only
  • 1.  Label data view S4 MM02

    Posted 11-25-2025 06:43

    hi experts, 

    anyone has script for label data view update? or is it possible to use some BAPI for maintenance?

    I found it  difficult if you have multiple alternative units created as there is no navigation/sorting possible

    thank you in advance , Rado



    ------------------------------
    Radoslav Magal
    baa
    PPG INDUSTRIES INTERNATIONAL, INC.
    ------------------------------


  • 2.  RE: Label data view S4 MM02

    Employee
    Posted 11-26-2025 10:22

    Hi Radoslav

    I don't, as I don't have a material view called "Label".  Can you please share a screenshot and if you have either a customization or industry-specific SAP system? Also are you ECC or S4? Please advise.

    As for alternate UOM, you can use GUI scripting mode or a BAPI. If you search in the community you'll find a lot of posts in the community and from support:

    https://customer.precisely.com/s/article/How-to-delete-MM02-Alternate-Unit-of-Measure-using-BAPI-360041235551?language=en_US

    https://community.precisely.com/discussion/mass-add-of-alternate-unit-of-measure-for-retail-carhartt

    https://community.precisely.com/discussion/alternative-uoms

    There is also an example in the SAP Module Templates community (join to view/download) here: https://community.precisely.com/viewdocument/add-or-update-alternate-units-of-me?CommunityKey=e1f0c200-ca7e-46e7-b5c7-01855e5120c7&tab=librarydocuments 

    Hope that helps with the UOM - please advise on the label data.

    Best Regards,

    Sigrid

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 3.  RE: Label data view S4 MM02

    Posted 11-27-2025 08:20

    hi Sigrid,

     thanks for your answer. We have it in our S4 environment. I tried to use GUI scripting with index condition, but somehow it doesn't work as needed.



    ------------------------------
    Radoslav Magal
    baa
    PPG INDUSTRIES INTERNATIONAL, INC.
    ------------------------------



  • 4.  RE: Label data view S4 MM02

    Posted 12-01-2025 06:41
    Edited by Anke Heimann 12-01-2025 06:41

    Hi Radoslav,

    as the screen sequence starts with Z and the screen number with 9, it seems to be a customer specific view.

    Now if you go on the fields in this screen with F1 and look for the field name, you can find out if some of the fields may be standard fields (not starting with Z). Then you may have the chance to reach them via a BAPI.

    Best regards

    Anke



    ------------------------------
    Anke Heimann
    Head of Group Informatics Processes ERP
    Endress+Hauser Conducta GmbH & Co. KG
    NA
    ------------------------------



  • 5.  RE: Label data view S4 MM02

    Employee
    Posted 12-01-2025 18:29

    Hi again Radoslav

    We can often automate custom tcode and customized standard tcodes, but it depends on how they were customized.

    From your screenshots, it doesn't look to be setup to (easily?) automate that portion of your material master. 

    Anke is correct that if you have already tried standard recording modes and GUI scripting, a remote-enabled FM or BAPI would be best. 

    You may want to check with your SAP Basis team to see if they can either change the customization or provide a BAPI that can be used in Direct to maintain the Label data.

    Best Regards,

    Sigrid



    ------------------------------
    Sigrid Kok
    *Precisely Software Inc.
    ------------------------------



  • 6.  RE: Label data view S4 MM02

    Posted 12-02-2025 02:17

    Thank you Anke and Sigrid. I will ask our ABAP team if they can create program to update this view.



    ------------------------------
    Radoslav Magal
    baa
    PPG INDUSTRIES INTERNATIONAL, INC.
    ------------------------------