Automate

 View Only
Expand all | Collapse all

Update Classifications

  • 1.  Update Classifications

    Posted 04-01-2025 02:51

    Hi,

    I want to update Classifications based on Class Type and Attribute per below.

    I have tried all 3 types of recording via MM02 but it doesn't work.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------


  • 2.  RE: Update Classifications

    Posted 04-02-2025 01:46

    Hi Nart,

    This topic has already been discussed in the community. Please find the link below:

    https://community.precisely.com/communities/community-home/digestviewer/viewthread?MessageKey=795d5278-4eeb-4adf-980a-cce3fbf91ef7&CommunityKey=4418e63a-9f6f-4468-b3f1-0186605ed001

    Most likely it will not fit 100% for your requirements, so some minor changes to the script need to be done. Together with info from the SAP community you will sure find the best configuration.



    ------------------------------
    Ronald Vlasveld
    Master Data Specialist
    Industrie- en Handelsonderneming Vreugdenhil B.V.
    ------------------------------



  • 3.  RE: Update Classifications

    Employee
    Posted 04-02-2025 09:28

    Hi Nart

    Thanks Ron.  This highlights that you can search the community on a topic, as it's likely we've discussed it and posted some options.

    There is also an educational webinar in the Precisely University: https://preciselyu.precisely.com/how-to-master-class-characteristics-in-studio 

    If this doesn't help, we'll need to know what "doesn't work" means, and also what you're trying - scripts/templates (cleanse data as needed before sharing).

    Best Regards,

    Sigrid



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



  • 4.  RE: Update Classifications

    Posted 06-02-2025 04:10
    Edited by Nart Paksamut 06-02-2025 04:11

    Hi Sigrid,

    It's in the Fiori side as per below tiles. I don't think it's linked to Material Master.

    Example screen



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 5.  RE: Update Classifications

    Employee
    Posted 06-02-2025 10:11

    Hi Nart,

    That is, indeed, different from setting class characteristics, which was pictured in your first post..

    Classify product in S/4Hana is only available in Fiori.  You should be able to create an automation for Fiori apps using the Fiori option, which is available with a Developer Pro license. 

    Best Regards,

    Sigrid



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



  • 6.  RE: Update Classifications

    Posted 06-04-2025 04:36

    Hi Sigrid,

    So, there is no correlation between Fiori, BAPI, and S4 at all?



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 7.  RE: Update Classifications

    Employee
    Posted 06-04-2025 10:29

    Hi Nart

    I'm confused.  You started off asking about class characteristics. Then you asked about commodity code. Now you're asking about approaches to automation in S/4Hana?

    Since I'm not really sure what you need, I will answer in general terms.

    • Automations in S/4Hana can be done via Transaction, Direct, Fiori or GUI for HTML - they're all different approaches that are available in Studio.
    • Commodity code assignments/reassignments are only available in Fiori - that was an SAP decision, presumably to force people to setup Fiori (not that there aren't benefits to Fiori). That field was removed from the Transaction, and likely isn't available via Direct (although I haven't checked.
    • Not all functionality in the GUI is available in Fiori apps, and may require either GUI or GUI for HTML automation.

    Hope that helps a little.  If you can share some specifics of what it is you are after, it may help us help you.

    Best Regards,

    Sigrid



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



  • 8.  RE: Update Classifications

    Posted 06-05-2025 02:05

    Hi Sigrid,

    It helps a lot, thank you.

    I thought that they are related (Commodity codes and Characteristics). I was aiming to use Direct to maintain Customs Tariffs Numbers and Commodity Codes in Fiori.



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 9.  RE: Update Classifications

    Posted 06-05-2025 06:06

    hi Sigrid, I am using basically 2 FM's with Direct.

    /SAPSLL/API_COMCO_CLS_DISTR and /SAPSLL/API_COMCO_MD_DISTR

    (for the latter we made a Z-version due to text fields if I remember well)

    They are working Ok but need a lot of love and tenderness to get it working. Specifically due to date settings...

    I am using it for single Create of comm codes, assignment of a comm code to a new material and doing mass (re-)assignments.

    I guess with Fiori recording this would be much easier.



    ------------------------------
    Ed Meiners
    Lead Consultant MDIM
    Wessanen Nederland Holding BV
    Amsterdam
    ------------------------------



  • 10.  RE: Update Classifications

    Posted 06-05-2025 06:27

    Hi Ed,

    Are both for updating the Commodity Codes and Custom Tariffs Numbers directly to Fiori?

    If yes, do you have an example script/data file?

    Example screen



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 11.  RE: Update Classifications

    Employee
    Posted 06-05-2025 10:17

    Hi Nart,

    That would be the Fiori automation. You would use the screen you have to search for a material to classify or reclassify, open it and assign/reassign a classification that relates to import/export.  I haven't tried Tariffs, but I imagine it would be similar.

    It's a super simple recording to create.  If you have a Developer Pro license, please give it a try.

    Best Regards,

    Sigrid



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



  • 12.  RE: Update Classifications

    Posted 06-05-2025 22:18

    Hi Sigrid,

    Ed mentioned that he's using Direct '/SAPSLL/API_COMCO_CLS_DISTR and /SAPSLL/API_COMCO_MD_DISTR'. Will this work for updating Commodity Codes and Custom Tariff Numbers in Fiori?



    ------------------------------
    Best Regards,
    Nart
    ------------------------------



  • 13.  RE: Update Classifications

    Employee
    Posted 06-06-2025 10:12

    Hi Nart,

    You're mixing technologies and thus approaches again.  :) 

    BAPIs might populate the commodity code - I haven't tried the ones Ed mentioned.  But Fiori can do the same another way.

    • Fiori uses unpublished APIs under the covers to interact with SAP.  They may end up running ABAP and thus a BAPI in the end, but it's not published as to the how.
    • Direct can leverage BAPIs to interact with SAP. Like I said, I'm not familiar with the options Ed mentions, but it's not using Fiori.
    • Transaction cannot populate commodity code in S4, because SAP removed the field and forces you to use Fiori.  That also means GUI for HTML won't work because the field is missing.  (It may be that your Basis team could add it back, but I'm not 100% sure :)   )

    So it boils down to choice on approach, availability of the field(s) you want to populate, as well as SAP permissions to use the options.  Fiori access (permissions) is not the same as Transaction access or Direct access.

    Hope that helps,

    Sigrid



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



  • 14.  RE: Update Classifications

    Employee
    Posted 06-05-2025 10:14

    That's super helpful to know, @Ed Meiners, thanks!  :)

    Yes, the automating the Fiori apps are easier. But I'm a big fan of BAPIs/rFMs, as many people know, and options are a good thing!

    Best Regards,

    Sigrid



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