Showing posts with label ADT. Show all posts
Showing posts with label ADT. Show all posts

Aug 20, 2026

Error "(Un)-Publishing of Service Binding SRBV XXXXXXXXX in Customizing Client not allowed"

This error occurs when you try to use the Publish Locally button in ABAP Development Tools (ADT/Eclipse) for an OData V4 service binding inside a client configured for customizing or testing.

ADT local publishing is restricted in these clients; instead, you must publish the service manually using SAP GUI transaction /IWFND/V4_ADMIN.
How to Fix the Error
  1. Activate in ADT: Open your Service Binding in ADT (Eclipse) and make sure it is activated, but do not click "Publish Locally". 
  2. Open Gateway Administration: Log in to your SAP system and run transaction [/IWFND/V4_ADMIN](https://help.sap.com/docs/SAP_FIORI_OVERVIEW/9b4ee51ce91e4a9cadd5e6d43c2992ba/10ac7f6e59fa43508d486aa8997384c1.html). 
  3. Publish Service Group:
    • Click the Publish Service Groups button.
    • Select your system alias (e.g., LOCAL) and click Get Service Groups.
    • Find and select your Service Group ID from the list, then click Publish Service Groups again. 
  4. Assign Request: Provide a customizing or transport request if prompted by the client settings. 
  5. Refresh ADT: Go back to Eclipse, select your Service Binding, and press F5 to refresh

Jul 13, 2026

Remove Leading Zero of a Field in CDS (ADT)

Example: Field QAPP.PPSORTKEY



Original Code
      /*-- Sample / Inspection Point (from QAPP) ---------------------------*/
      qapp.probenr    as SampleInspectionPoint,
      qapp.ppsortkey, as InspectionPoint


The change, using ltrim (supported in CDS view entities):



New Code
      /*-- Sample / Inspection Point (from QAPP) ---------------------------*/
      qapp.probenr    as SampleInspectionPoint,
      ltrim( qapp.ppsortkey, '0' ) as InspectionPoint

Two notes on this:

  1. ltrim( field, '0' ) removes only leading '0' characters — an all-zero value becomes an empty string. If you'd rather show '0' in that case, wrap it: case when ltrim(...) = '' then '0' else ltrim(...) end. I didn't add that since you didn't ask.
  2. The result type stays character, same length — no dictionary impact, activation-safe. If the Fiori app later sorts or filters on InspectionPoint, remember it's now text-sorted without zero padding, so ordering across values of different lengths will look wrong ('12' before '3' is gone, but '3' now comes after '12' alphabetically... actually '12' < '3' as text). If sorting matters, keep the raw field as a hidden sort column.

Apr 20, 2026

Shortcut to Find/search in Eclipse

The primary shortcuts for finding and searching in the Eclipse IDE depend on whether you are searching within a single file or across your entire workspace.

Searching Within a File
  • Find/Replace: Ctrl + F (Windows/Linux) or Cmd + F (Mac). Opens the standard find and replace dialog for the current editor.
  • Find Next: Ctrl + K. Quickly jumps to the next occurrence of the selected text without opening a dialog.
  • Find Previous: Ctrl + Shift + K. Jumps to the previous occurrence.
  • Incremental Find: Ctrl + J. Start typing to jump to matches instantly as you type; use arrow keys to navigate.
  • Quick Outline: Ctrl + O. Opens a searchable popup of all methods and variables in the current class.
Searching Across Workspace/Project
  • Global Search Dialog: Ctrl + H. Opens the comprehensive Search Dialog, which includes tabs for File SearchJava Search, and more.
  • Quick Search (Newer Versions): Ctrl + Shift + L. Provides a fast, incremental text search across the entire workspace (similar to "Find in Files").
  • Search for References: Ctrl + Shift + G. Finds all workspace references to the selected method, class, or variable.
  • Open Resource: Ctrl + Shift + R. Quickly find and open any file (XML, text, etc.) by name.
  • Open Type: Ctrl + Shift + T. Quickly find and open a Java class, interface, or enum.
Navigation & Quick Access
  • Quick Access Search: Ctrl + 3. A universal search bar to find any Eclipse command, view, or preference.
  • Show Key Assist: Ctrl + Shift + L (when no search plugin is active). Displays a list of all currently active keyboard shortcuts in Eclipse.