Automate

 View Only
  • 1.  Alternative UOM's

    Posted 20 days ago

    I am trying to write and run a script in SAP for a list of Alternative UOM's, in the material master this is in Additional Data, Units of Measure.

    But when I go to run the script I am faced with the below error.  Can anyone offer any support?

    Field (SMEINH-MEINH Alternative Unit of Measure) (2) SAPLMGMM 4300 is not an input field

    Many Thanks.



    ------------------------------
    Stuart Davidson
    ------------------------------


  • 2.  RE: Alternative UOM's

    Employee
    Posted 19 days ago

    Hi Stuart

    Can you please share your script and any information on what you've done to debug this? What do you need to do with alt UOM - i.e. are you adding or updating or deleting or just extracting to get which are defined?

    In general you need to use GUI scripting or a BAPI.

    This has been posted a few times in the community

    https://community.precisely.com/discussion/winshuttle-is-it-possible-to-create-a-script-mm02-that-modify-the-alternative-uom-data-based-on-alternative-uom-that-is-on-excel

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

    There are some examples in the SAP Module Templates community:

    BAPI https://community.precisely.com/viewdocument/add-or-update-alternate-units-of-me?CommunityKey=e1f0c200-ca7e-46e7-b5c7-01855e5120c7&tab=librarydocuments   - this adds or updates 

    Transaction to add alt UOM: https://community.precisely.com/viewdocument/add-alternate-units-of-measure-1?CommunityKey=e1f0c200-ca7e-46e7-b5c7-01855e5120c7&tab=librarydocuments

    Hope the examples help.

    Best Regards,

    Sigrid



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



  • 3.  RE: Alternative UOM's

    Posted 19 days ago

    Hi Stuart, I use the BAPI example for Add and Change, work well for me. I have attached my script too.



    ------------------------------
    Renette Nienaber
    Mrd
    VIVO ENERGY SOUTH AFRICA (PTY) LTD
    ------------------------------

    Attachment(s)

    xlsx
    BAP_Material_UOM.xlsx   5 KB 1 version
    Txr
    BAP_Material_UOM.Txr   1.09 MB 1 version


  • 4.  RE: Alternative UOM's

    Posted 16 days ago

    Many Thanks, very helpful..



    ------------------------------
    Stuart Davidson
    SUBSEA 7 LTD
    Aberdeenshire
    ------------------------------