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
SAP Articles
Page 13 of 91
Change 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 MoreGetting error- Hard-coded logon parameters not allowed when using a Destination Configuration while connecting to SAP server dynamically
The "Hard-coded logon parameters not allowed when using a Destination Configuration" error occurs when you attempt to pass connection parameters directly to the SAP RFC destination while also using a custom destination configuration. This conflict arises because SAP.NET Connector expects either hard-coded parameters or a destination configuration, but not both simultaneously. Solution The solution is to implement the IDestinationConfiguration interface and register it with the RfcDestinationManager. This approach centralizes connection parameters and eliminates the conflict with hard-coded values. Complete Working Example Below ...
Read MoreSpecified cast not valid for datetime while using SAP RFC
When working with SAP RFC connections in .NET applications, you may encounter the "Specified cast not valid for datetime" error. This typically occurs when trying to convert SAP date/time formats to .NET DateTime objects due to format mismatches. Understanding the Issue SAP systems often use different date and time formats than what .NET expects by default. The most common SAP date format is dd.mm.yyyy or variations with time components. When .NET tries to automatically parse these values, it fails because it cannot recognize the format. Solution Using ParseExact Method The best approach is to use the ...
Read MoreChange leaves duration from hours to days in SAP Fiori app
In general, customizing Fiori applications involves customizing the parent SAP application. So, if in the application, it defaults to hours then the Fiori app will also inherit the default behavior and show it in hours. Go ahead and change it to days, it will impact your Fiori app and the app will also start showing in days. In case you cannot afford to make a change in SAP application, then you need to handle it in a custom manner which will require you to ...
Read MoreImplementing tree structure in Sapui5 and restricting parent property
Note that sap.ui.model.ClientTreeBinding which is used by TreeTable in JSONModel or XMLModel supports the parameter arrayNames. You need to pass an array of the model property names to create a sublevel. This parameter tells the TreeTable which properties in your data contain child nodes, enabling the hierarchical tree structure. Implementation Methods XML View Implementation In XML view, you can bind the TreeTable rows using the following approach − JavaScript Controller Implementation ...
Read More