Two SAP standard reports are available for viewing icons: RSTXICON and SHOWICON. Use the transaction SE38 to start them. The output is similar in both. Another alternative is to direct display the content of table ICON in SE16. Below is a direct comparison of the three options. In my opinion SE16 is the most helpful option.
All three ways list all the icons. But in the end, you will want to copy an icon code or an icon constant. In the case of the reports you will have to tinker with CTRL-Y and a careful mouse selection in order to get that part of the output into your copy/paste buffer.
You can output icons directy with a write command. But again, the icon must come first in the string, ot you will see the @-code as string. If you need an icon inbetween then you have to use several write commands or you have to separate the parts with comma.
Change documents in SAP log the modification of objects at the field level. Many SAP transactions provide a direct link to a list of the corresponding change lists directly via the SAP menu. You can...
Only use traffic light icons when you want to differentiate between exactly three different states. Always remember that traffic light icons require a relatively large amount of space. On the positive side, it is immediately apparent that the traffic light visualizes one of three possible states.
Similar to the traffic lights; Advantage: Save space; Disadvantage: It is not immediately apparent that the LED represents one of three possible states. Sensible in tables and when the context (adjacent field labels) makes the meaning apparent.
When this addition is used, the icon of the message type specified in dtype is displayed instead of the associated icon. dtype expects a character-like data objects containing one of the values "A", "E", "I", "S", or "W" in uppercase letters.
For messages displayed in a dialog box by default, the short text is still displayed as a dialog box. Messages with the type "E" or "W" (except those for PBO and LOAD-OF-PROGRAM) are displayed as a dialog window if dtype contains "A" or "I". Messages with the type "S" are always displayed in the status bar, regardless of the dtype. The latter also applies to messages of the type "I" for PBO and LOAD-OF-PROGRAM. Messages of the type "X" always cause a runtime error.
If you are asking about making your OWN icon, not using one of SAP's, then I don't think that is possible, because icons are a part of your SAPGui installation. Even if you uploaded an icon successfully (SE78 or RSTXLDMC), it would only work for you, and only work until you update or reinstall your SAPGui. Hence you wouldn't be able to create a custom icon for all users.
If you go to your own status now, under "Application Toolbar", you can define there your own function codes and use them in your code. As far as the icon is concerned, when you will first set the function code, the system will pop-up a screen in which you can define the icon you want to assign to that function code. You just have to do an F4 on the respective field of the pop-up and a new pop-up will show you all the available standard icons of the system that are available for use in your own GUI status. There, the name of each icon (for example, ICON_OKAY, or ICON_CANCEL etc) can be used to display icons in standard ABAP lists. In this case you have to add in your report the following line
You can use icons in place of or together with text elements, pushbuttons, checkboxes, and radio buttons. Different icon types are available, depending on the element type. If you attempt to use an invalid icon, the system displays an error message.
In this ABAP tutorial, we will build a small ABAP report to display SAP icons list using ABAP icon code.
This ABAP program can be considered to supply the SAP icon list used in ABAP programs.
Here is an ABAP sample report with ABAP source code for ABAP developers displaying the all list of SAP icons.
This ABAP code is very simple. There is just a SELECT query on ABAP table Icon where the returned rows are stored in the internal table gt_icon.
Then I used the ABAP WRITE command and Write ID of the icon workarea gs_icon in order to print the ABAP icon picture on the ABAP screen.
Here is an other ABAP code example for displaying list of SAP icons or ABAP icons.
This ABAP program ZSAPIconsList uses Icon type pool and uses field-symbols in order to write the sap icon list on screen.
Again within the ABAP icon code, we execute a SELECT query from SAP table icon and store the return set as an internal ABAP table gt_icon.
In this ABAP report, I used the ABAP WRITE syntax : WRITE 'sap-icon-name' AS ICON.
The "Save", "Attach Receipt" and other icons normally at the bottom of each expense screen are no longer showing which prevents any of the changes or edits I make to an expense from being saved. Can anyone suggest a solution?
I have found that the Save icon is not showing up on the Hotel expense only. All other expenses seem to be working, I am going to ask my organization to allow me to expense my lodging under a different category.
Yes, I've been using Firefox but it had worked fine until the past two months. However, I just found that if I check two expenses and then uncheck one, the icons re-appear on the one that remains checked.
In the ICON table there are almost 1200 different icons, which you can also find anywhere in the system. If you are looking for a specific icon, you can usually do this quickly by name. If you are looking for the traffic lights, you can search for * LIGHT * or if there are only individual statuses, then for * LED *.
Hint: If you copy the ID field in the SE16/SE16N and the ALV display is active, you will also get the technical value of the icon. This technical value is always the same, consists of 4 characters, the first and last always being an @. This way you can recognize icon IDs in the system very quickly. For example @5C@ stands for a red LED or @0V@ for a green check.
With the transaction you can change the icons and texts and also search for them. The transaction is primarily used to maintain texts and to set the settings. Unfortunately there is no way to get the technical ID here.
At this point, the technical IDs are linked to constants that are globally available in the system, as we explained in another article. For ease of use, we recommend using the constants as they are more readable in the source code.
There will be cases where you will show a status with an icon in an ALV, which gives the user too little information or may not be clear. In such cases, you can still create a text that appears when you move the mouse over the icon.
The search and use of icons in SAP should now be less of a problem for you and should be a bit more colorful and lively for the next projects. You can also use the icons for your next program documentation, where they work like in an ALV.
Are you satisfied with the content of the article? We post new content in the ABAP area every Friday and irregularly in all other areas. Take a look at our tools and apps, we provide them free of charge.
Note: If you regenerate the table maintenance generator, then all the above changes will be lost. To avoid this we have another method to disable delete icon in table maintenance generator.
Like most storefronts, Spartacus uses icons in the UI. You are welcome to use the Spartacus icons in your storefront, but of course, you can also replace them with other icons. The following sections describe how icons are integrated in the storefront, and also how you can replace them.
Spartacus is shipped as a library, so there is no straightforward approach to loading SVG files. Libraries are installed in the node_modules folder, and using SVG-based icons would require an import from an application location, such as the /assets folder. For this reason, Spartacus is configured by default to use a font-based setup for icons. This default configuration uses Font Awesome icons, which are added to the IconModule directly with the fontawesomeIconConfig. Note, this is not necessarily the best practice for production, because most standard font icon sets cover more icons than are needed for a storefront.
The type is used to find the relevant icon setup in the configuration. With this approach, the integration of icons in the UI is decoupled from the actual implementation. This makes it easy to replace icons without changing a UI component implementation.
Depending on the configuration, the icon component either creates an inline SVG fragment, or it adds class names to the cx-icon element to align with a font library. The CSS class names can also be used for a CSS-based icon solution, or even an image-based icons solution (using CSS background images).
Icons are configured in Spartacus using the ConfigModule. In the configuration, you can mix different technical icon formats in a single storefront. The following example demonstrates the usage of font-based icons (using Font Awesome) and SVG-based icons:
The Font Awesome icon set provides ready-to-use icons with defined classes, such as fab fa-cc-visa for the VISA icon. You can search for icons and find their related class definitions on the Font Awesome website.
To construct an SVG icon, the component creates an xlink to the SVG symbol. If a url is given for the icon type, the symbol is constructed using the URL and the symbol configuration. The setup shown in the previous section produces links to ./assets/sprite.svg#info and ./assets/sprite.svg#warning.
Note: To generate a font sprite for Font Awesome, you can use the fontawesome-svg-sprite-generator. This library can automatically generate a sprite with the Font Awesome icons that you are using in your storefront. It is also possible to give the icons a custom icon name.
To load the font-related CSS file, a resource can be added for a specific icon type, or for all types (by leaving out types entirely). When a resource is added, the CSS file is linked to the DOM dynamically. Spartacus ensures that the font is only loaded once.
c80f0f1006