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 HANA Articles
Page 11 of 58
Call screen on clicking the button in SAP ABAP
Please follow the steps below to make it functional − First, open the screen painter Now, double click on the button you want to make functional Above Context Menu Form, you will find a field to enter Function code where you enter the functional code This will convert your button to a functional trigger that sends the OK code which will run the dynpro PROCESS AFTER INPUT. Now add a PAI module to this dynpro which indicates the screen you want to call when the button is ...
Read MoreUsing AT_FIRST be used to initialize variables used in loop in SAP ABAP
In SAP ABAP, the AT_FIRST statement is a useful control flow construct that can be used to initialize variables at the beginning of a loop iteration. Understanding when and how to use AT_FIRST for variable initialization is crucial for writing efficient ABAP code. Understanding AT_FIRST vs. Regular Initialization There would not be much of difference in both ways. The only thing is without AT_FIRST, the counter variables will be cleared in all cases while using AT_FIRST, the counter variables will be cleared only if there is at least one execution of the loop. So, the only difference would ...
Read MoreReferences are not allowed in a SAP remote function call
When working with SAP remote function calls, you are trying to make use of references but you should be aware that references are only accessible within the same stack, and in your case, it is not. You are creating a remote function module and here references will not work. Why References Don't Work in Remote Function Calls In SAP ABAP, references point to memory locations within the current system's stack. When you make a remote function call (RFC), the function executes on a different system or server, which has ...
Read MoreRfcabapexception error while querying a number of columns using RFC_READ_TABLE in SAP
The Rfcabapexception error occurs when using RFC_READ_TABLE in SAP, but it is not because of the number of columns being queried. The actual issue is the total size of the fields you are querying, which should not exceed 512 bytes. Why This Error Occurs For RFC communication, complex data types like DATA or STANDARD tables are not supported. Therefore, the RFC_READ_TABLE function module must convert the data into a generic format, and the data is transferred as a series of lines. It is the size of these table lines ...
Read MoreFinding minimum value across different columns in SAP HANA
In SAP HANA, when you need to find the minimum value across multiple columns in a single row, you should use the LEAST function instead of the MIN function. The MIN function is an aggregate function that works across rows, while LEAST compares values across columns within the same row. Using LEAST Function The LEAST function syntax allows you to compare multiple column values and returns the smallest value among them − SELECT ID, LEAST(DAY_1, DAY_2, DAY_3) AS MIN_VALUE FROM your_table_name; ...
Read MoreStoring Personal Information in LDAP/AD or in SAP HR module
LDAP can store sensitive information, but it is not recommended to store sensitive personal information in LDAP from a security point of view. This information should go to some HR information system like SAP HR module, or you can also develop a middleware to store this information securely. You can use EMP ID to track this information back to middleware or LDAP. Storage Options for Personal Information When designing enterprise systems, you have several options for storing employee personal data − LDAP/Active Directory Approach ...
Read MoreMake a custom function call without using SAP NetWeaver
There are several ways you can make custom function calls without using SAP NetWeaver when working with RFC (Remote Function Call) in SAPUI5. Here are the most effective approaches − Web Service or REST Service Approach You can create a web service or REST service that utilizes the RFC you have created. Host this service in the SAP environment and then consume it in SAP UI5 using the service URL. This approach provides a clean separation between your UI5 application and the backend RFC functionality. // Example of consuming REST service in UI5 var oModel = ...
Read MoreDifferent ways to interact with SAP system from a web application
There are several methods to interact with SAP systems from web applications. Using any of these methods depends on what you are connecting to and the version of your SAP system. You can use Standard BAPI's (Business Application Programming Interface) to read or update service orders. BAPI is a Remote Function Call (RFC) with a standard API that provides a standardized interface for external systems. Web Services in SAP ERP In latest releases of SAP ERP, many Function Modules are exposed as Web Services, making it easier to integrate ...
Read MoreUsing SAP connector 3.0 on an MVC application
When working with SAP connector 3.0 in an MVC application, you may encounter issues when trying to set values in table parameters. A common solution is to try adding a new row before calling SetValue. Adding Rows to SAP Table Parameters To properly add data to a table parameter in SAP connector 3.0, you need to append a new row first and then set the values. Here's the correct approach − employeeHoli.Append(); employeeHoli.SetValue("ColumnName", "0000345"); Understanding Table Parameters When you ...
Read MoreNegation logic in SAP ABAP
You can use BOOLC to sort out your negation logic requirement. It should be like this − Varbool = BOOLC( NOT Logical_operation ) But be clear in your implementation, as ABAP does not have a true bool type. It does not store true or false in bool type rather it stores 'X' or '' (empty string) for true and false respectively. Example with BOOLC Here's a practical example showing negation logic using BOOLC − DATA: lv_number TYPE i VALUE 10, lv_result TYPE c LENGTH 1. ...
Read More