Skip to Content
Technical Articles
Author's profile photo Jorge Baltazar

SAP Fiori for SAP S/4HANA – Mass OData Unassign

Relevant for S/4HANA 1909, 1809, 1709, 1610, 1511

As a Fiori Administrator, you will sometimes face the need to unassign system alias names to the OData services.

This activity needs to be done as part of a Fiori Client Copy post processing or you may just want to clean-up your system configuration, however, this task needs to be done manually which means you need to manually process hundreds or thousands of OData services in transaction /IWFND/MAINT_SERVICE.

The OData Unassign program was created by the SAP S/4HANA RIG team hoping to solve these challenges and thanks to the positive feedback from our projects we have made this program publicly available.

You will find the source code in GitHub repository: ZFIO_ODATA_UNASSIGN and you can import it in your system using ABAPGit. Plus, you´ll find an easy to follow feature description here.

The program offers 4 options:

  • Delete single assignments
  • Delete all assignments related to a specific system alias
  • Replace assignments
  • Download list of active services

As this is not an official SAP delivered program and it is based on our project experiences, if you rely upon this software or program, you do so at your own risk, and you assume the responsibility for the results. So please, make sure you perform appropriate tests before moving to a production environment.

**This program has been tested in SAP S/4HANA 1909, 1809, 1709, 1610 and 1511.

Becoming a SAP Fiori for SAP S/4HANA guru

You’ll find much more on our SAP Fiori for SAP S/4HANA wiki

Do you have any questions? Let us know in the comments section.

Thanks,

SAP S/4HANA RIG

Assigned Tags

      10 Comments
      You must be Logged on to comment or reply to a post.
      Author's profile photo Gilbert Wong
      Gilbert Wong

       

      Great blog and very useful.  Thanks for putting this together.

      Author's profile photo Lucas Araujo
      Lucas Araujo

      Thanks for share!

      Abraços

      Author's profile photo Felipe Cantelmo
      Felipe Cantelmo

      Thanks for sharing that useful program with us!

      It worked perfectly for me and really saved my time.

      Best Regards.

      Author's profile photo Deepak Rade
      Deepak Rade

      Thanks for sharing. I replaced the alias after client copy. After replacing the alias , I see that  that the Default System flag is not set. Is this OK ?

      Thanks & Regards,

      Deepak R

       

      Author's profile photo Jorge Baltazar
      Jorge Baltazar
      Blog Post Author

      Hi Deepak,

       

      This program does not consider setting up a default system alias. To do this you can use the program described in the following blog: https://blogs.sap.com/2018/05/23/custom-tasklist-for-odata-service-mass-maintenance/

      Regards,

      JB

      Author's profile photo Sahil Manocha
      Sahil Manocha

      Hi , Thank you for your post.

      We got list of active services using the program.

       

      Is there any way we can activate them in one go in an another system?

       

      regards,

      Sahil

      Author's profile photo Jorge Baltazar
      Jorge Baltazar
      Blog Post Author

      Hi Sahil,

      To activate multiple OData services use task list: SAP_GATEWAY_ACTIVATE_ODATA_SERV in transaction STC01

      Author's profile photo Wayne Tinsley-Veale
      Wayne Tinsley-Veale

      *** I have fixed this Thanks ****

       

      Hi Jorge

      I am getting the following error when trying to get a list in S/4 Hana 2020 FPS01.

       

      Category ABAP programming error
      Runtime Errors RAISE_EXCEPTION
      ABAP Program CL_GUI_ALV_GRID===============CP
      Application Component BC-SRV-ALV
      Date and Time 19.07.2021 09:14:15

       

      Short Text
      Exception condition "NO_FIELDCATALOG_AVAILABLE" triggered

       

      What happened?
      The current ABAP program has encountered an unexpected situation.

       

      Error analysis
      A RAISE statement in program "CL_GUI_ALV_GRID===============CP" has raised
      exception condition "NO_FIELDCATALOG_AVAILABLE".
      Since the exception was not caught by a program higher up in the call
      hierarchy, processing was terminated.

      Short text for exception condition:
      You can find detailed documentation about the exception condition in
      transaction SE37 (Function Library). You can find the name of the
      function module called from the display of active calls.

       

      Any ideas how to fix.

      Thanks

      Author's profile photo Tino Gabelica
      Tino Gabelica

      ** I have fixed this Thanks ****

      Hi Wayne Tinsley-Veale

      how did you fix this?

      BR

      Tino

      Author's profile photo Tino Gabelica
      Tino Gabelica

      Hi Jorge,

      The Program is working very well, but I would need also an option with which I can deactivate and delete the ICF Nodes assigned to multiple Odata Services .. do you have such a Program?

      BR

      Tino