Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
-
Economics & Finance
Articles on Trending Technologies
Technical articles with clear explanations and examples
Activation of ABAP table failing with reference error
When activating ABAP tables, reference errors commonly occur when quantity fields or currency fields are defined without proper reference configurations. This issue arises because SAP requires explicit references to determine the correct units and formatting for these special field types. Understanding Reference Fields In ABAP Data Dictionary, quantity and currency fields must reference other fields that define their units of measure or currency codes. This ensures proper display formatting and calculation accuracy throughout the system. Solution Steps To resolve the activation error, follow these steps − Step 1: Identify Problem Fields Check your table ...
Read MoreChange user settings for case sensitivity in SAP 6.0
SAP provides user-specific text settings that allow you to type in uppercase or lowercase according to your preference. To configure these case sensitivity settings, navigate to the ABAP Editor initial screen using T-Code: SE38. Accessing Case Sensitivity Settings To modify your case sensitivity preferences, follow these steps − 1. From the ABAP Editor screen, go to Utilities in the menu bar 2. Select Settings from the Utilities dropdown menu 3. ...
Read MoreReplace Tab with space in SAP ABAP
In SAP ABAP, replacing tab characters with spaces is a common requirement when processing text data. You just need to make a small change by adding an "If condition" for handling the tab character as shown below − Method To replace tab characters with spaces, you need to check if the field contains the tab character using the CO (Contains Only) operator and a hexadecimal constant − if CO gc_hex_char Complete Example Here's a more complete implementation showing how to replace tab characters with spaces − DATA: lv_text TYPE string, ...
Read MoreAnalogous to IN operator of SQL in SAP
You can get similar functionality to SQL's IN operator done in many ways in SAP. You can use an internal table usage or a range table approach. Let me showcase an example with an internal table for your reference. Using Internal Table with FOR ALL ENTRIES The FOR ALL ENTRIES clause in SAP allows you to filter data based on values from an internal table, similar to the IN operator in SQL − SELECT Id, Name, DOB FROM sEmployee INTO ...
Read MoreChanged SAP password not working while resetting using BAPI
You are using the structure Password for resetting the password. It is of type BAPIPWD and comprises of a field which is again named as BAPIPWD. When you need to reset the password, you need to specify the correct field name instead of password. The issue occurs when developers incorrectly reference the structure or use wrong field names in the BAPI call. Solution To properly reset the password using BAPI, you must correctly reference the password structure and set the value using the appropriate field name. Here's the correct implementation − JCO.Structure structPassword = userChangeInput.getStructure("PASSWORD"); ...
Read MoreAssign image source dynamically in XML View in Fiori app in SAP UI5
Yes, it can be done but you need to compute the dynamic field using a formatter function. This approach allows you to dynamically assign image sources based on data from your model in SAP UI5 XML views. Steps to Assign Dynamic Image Source To implement dynamic image source assignment, follow these three steps − Step 1: Enable Complex Binding Syntax First, you need to mention that the binding is complex so change the flag in your HTML file − data-sap-ui-bindingSyntax="complex" Step 2: Create a Formatter Function Then have a helper function ...
Read MoreUpdating Data source of provider by REST API in SAP
When updating a data source of a provider through REST API in SAP, it's important to understand that modifying the document is just the first step. You also need to save the changes to make them persistent in the repository. Understanding Document States After making changes to the document, you'll notice that its state has been updated to 'Modified' from the previous state, which could have been 'Unused' or 'Original'. This state change indicates that the document has been altered but not yet saved to the repository. Saving Changes with PUT Request To save your modifications, ...
Read MoreHow to animate scrollLeft using jQuery?
To animate scrollLeft using jQuery, use the animate() method with scrollLeft property. The scrollLeft property sets or returns the horizontal scrollbar position for selected elements, making it useful for creating smooth horizontal scrolling animations. Syntax The basic syntax for animating scrollLeft is − $(selector).animate({ scrollLeft: value }, duration, callback); Where value is the target horizontal scroll position, duration is the animation time in milliseconds, and callback is an optional function to execute when animation completes. Example You can try to run the following code to learn how to ...
Read MoreHow to set scroll left position in jQuery?
The scrollLeft() method in jQuery allows you to get or set the horizontal scroll position of an element. When you pass a value to this method, it sets the scroll position from the left edge of the element. Syntax To set the scroll left position, use the following syntax − $(selector).scrollLeft(position) Where position is the number of pixels to scroll from the left edge. Basic Example Here's a simple example that demonstrates how to set the scroll left position − ...
Read MoreHow to implement jQuery ScrollLeft with easing?
To implement jQuery ScrollLeft, use the jQuery Easing plugin. The easing plugin is used for animation and provides smooth scrolling effects with various animation styles. You need to first add the Easing Plugin library. Let's add the CDN − What is ScrollLeft? The scrollLeft property sets or returns the number of pixels an element's content is scrolled horizontally. When combined with jQuery's animate() method and easing functions, it creates smooth horizontal scrolling animations. Example You can try to run the following code to implement jQuery ScrollLeft with easing − ...
Read More