SAP HANA Articles

Page 4 of 58

Changed SAP password not working while resetting using BAPI

radhakrishna
radhakrishna
Updated on 13-Mar-2026 443 Views

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 More

Assign image source dynamically in XML View in Fiori app in SAP UI5

seetha
seetha
Updated on 13-Mar-2026 1K+ Views

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 More

Updating Data source of provider by REST API in SAP

vanithasree
vanithasree
Updated on 13-Mar-2026 255 Views

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 More

Getting error- Hard-coded logon parameters not allowed when using a Destination Configuration while connecting to SAP server dynamically

Priya Pallavi
Priya Pallavi
Updated on 13-Mar-2026 659 Views

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 More

Specified cast not valid for datetime while using SAP RFC

Prabhas
Prabhas
Updated on 13-Mar-2026 251 Views

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 More

Change leaves duration from hours to days in SAP Fiori app

varun
varun
Updated on 13-Mar-2026 239 Views

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 More

While using SAP .NET connector, I am an getting error: Could not load file or assembly 'sapnco' or one of its dependencies.

Srinivas Gorla
Srinivas Gorla
Updated on 13-Mar-2026 2K+ Views

When working with the SAP .NET connector, you may encounter the error "Could not load file or assembly 'sapnco' or one of its dependencies." This typically occurs due to platform architecture mismatches or incorrect IIS configuration. You can try any of the below fixes − Solution 1: Enable 64-bit IIS Express This solution addresses architecture compatibility issues by enabling 64-bit support in IIS Express − Go to Run → Regedit Navigate to "HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\1X.0\WebProjects" Change Use64BitIISExpress from 0 ...

Read More

ABAP constants with %_ as prefix

Nancy Den
Nancy Den
Updated on 13-Mar-2026 447 Views

The constants with a value of %_ as prefix are defined in ABAP for its internal use of the system. These need to be used as such and cannot be modified by the user. Understanding %_ Prefixed Constants In ABAP, constants that begin with %_ are system-reserved constants used internally by the SAP system. These constants serve specific purposes within the ABAP runtime environment and various system components. Key Characteristics The %_ prefixed constants have the following important characteristics − Read-only − They cannot be modified or redefined by developers ...

Read More

Truncating multiple strings after 100 characters in ABAP

Daniol Thomas
Daniol Thomas
Updated on 13-Mar-2026 594 Views

You can truncate strings to 100 characters in ABAP by defining a character field of 100 bytes and moving your variable to that character field. When you move a longer string to a shorter field, ABAP automatically truncates it to fit the target field length. Example The following example demonstrates how to truncate a string to 100 characters using a fixed-length character field − DATA: lv_original_text TYPE string VALUE 'This is a very long text that exceeds 100 characters and will be truncated when ...

Read More

Writing at the end of report without clearing current screen in SAP ABAP

Krantik Chavan
Krantik Chavan
Updated on 13-Mar-2026 207 Views

Yes, it is possible to write at the end of a report without clearing the current screen in SAP ABAP. You can achieve this by using the MODIFY LINE statement, which allows you to update specific lines on the screen without clearing the entire display. Using MODIFY LINE Statement The MODIFY LINE statement enables you to modify existing lines in the output list without affecting other content on the screen. This is particularly useful when you want to append information or update specific parts of your report output. Basic Syntax The basic syntax for using MODIFY ...

Read More
Showing 31–40 of 573 articles
« Prev 1 2 3 4 5 6 58 Next »
Advertisements