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
ABAP Articles
Found 84 articles
nHow to pass dynamic values on the fly to CDS in SAP ABAP
While CDS (Core Data Services) views in SAP ABAP don't directly support passing dynamic values at runtime, there are several workarounds to achieve similar functionality depending on your specific use case. Limitations of Dynamic Values in CDS CDS views are compiled artifacts that cannot accept dynamic parameters like traditional ABAP methods. However, you can work around this limitation using the following approaches − Method 1: Using DCL (Data Control Language) with Authority Objects For authorization-based filtering, you need to declare and define the authority object in your DCL. This allows the system to automatically filter data ...
Read MorePseudo code to hide warning in SAP ABAP
In SAP ABAP, certain warnings cannot be overridden or suppressed by a pseudo code of pragma. If you run your query with extended syntax check, you will find the message as well that this cannot be suppressed. Understanding Pragma Limitations The pragma directive in ABAP is used to suppress specific warnings and messages during code compilation. However, some critical warnings are intentionally designed to be non-suppressible to maintain code quality and system integrity. Extended Syntax Check The extended check can be performed by navigating to PROGRAM => Check => Extended Syntax Check in the ABAP editor. ...
Read MoreUse decimal in where clause in SAP ABAP
When working with decimal values in SAP ABAP WHERE clauses, you might encounter issues if you try to use locale-specific decimal separators. ABAP does not support user-specific regional settings for decimal notation in SQL queries. You must always use the standard dot (.) as the decimal separator instead of comma (, ) or other regional separators. Using Decimal Values in WHERE Clause The correct syntax requires using a dot (.) as the decimal separator, regardless of your system's regional settings. Here's the proper approach − SELECT ...
Read MoreDeclare dynamically in SAP ABAP
In SAP ABAP, you can declare an internal table in a dynamic manner when the table type is not known at compile time. This approach is useful when working with generic programming or when the table structure depends on runtime conditions. Dynamic Internal Table Declaration To declare an internal table dynamically, you need to use data references and field symbols. Here's the basic syntax − DATA: tbl_TEST TYPE REF TO DATA. FIELD-SYMBOLS: TYPE STANDARD TABLE. CREATE DATA tbl_TEST TYPE (Received_Type). ASSIGN tbl_TEST->* TO . Complete Example Here's a complete working example that ...
Read MoreUsing logarithm in SAP ABAP
Yes, there is a log function in SAP ABAP. You can use it to implement logarithmic calculations for your requirements. The LOG function in ABAP calculates the natural logarithm (base e) of a number. To calculate logarithms with different bases, you can use the mathematical formula: logbase(number) = ln(number) / ln(base). Example Here is a code snippet which demonstrates how to calculate logarithm with a custom base − DATA: NUMBER TYPE INT, BASE TYPE INT, RESULT TYPE FLOAT. NUMBER = ...
Read MoreUse workbench along with SAP Business One
The answer is No. Workbench is not present in SAP Business One. The reason being the core of Business One is not based on ABAP or NetWeaver platform. SAP Business One Architecture Business One relies heavily on SQL. It has a SQL database (SQL Server or SAP HANA) and you can write queries for fetching data. These data are then used for creating reports and custom applications. When you compare Business One with ABAP development capabilities, the extension possibilities are more limited in Business One compared to what's available in traditional SAP systems with ABAP workbench. ...
Read MoreSAP Associate Level Exam preparation
First, let me make your core basics clear about SAP system architecture and exam preparation. When you are referring to SAP ECC, you are referring to SAP ERP Central Component which is more or less equivalent to the prior SAP R/3 System. ABAP does not play a direct functional role in ECC modules like FI, CO, MM, or SD. However, ABAP resides in the kernel of SAP which is referred to as SAP BASIS. BASIS forms the technical foundation that supports all SAP applications and modules. Key Study Resources for SAP ...
Read MoreInstalling free version of SAP ERP to learn ABAP
You can install a free trial from the SAP site, but for that, you require an SAP Partner ID. SAP also provides a developer trial which you can access through the following link − https://developers.sap.com/trials-downloads.html License Requirements The SAP NetWeaver Application Server ABAP comes with a temporary license that allows you to log on to the system. As a first step before using the system, you need to install a 90-day Minisap license to ...
Read MoreSorting an already sorted internal table in ABAP
When working with internal tables in ABAP, sorting performance can be optimized by understanding how sorting affects subsequent operations. If you leave the second sort operation, it would be quicker as the internal table (itab) will already be in the right order. Sorting and Binary Search Example Consider the following example where we sort by multiple fields and then perform binary searches − SORT itab BY f1 f2 f3. READ TABLE itab WITH KEY f1 = 'A' f2 = 'B' ...
Read MoreMoving TABKEY from CDPOS table into field structure in ABAP
When working with change documents in ABAP, you may need to move the TABKEY from the CDPOS table into a field structure. I would suggest you make use of Function Module CHANGEDOCU_KEY_ANY2CHAR and other function modules of function group SCD8. This function module performs the reverse function of converting change document keys. Using CHANGEDOCU_KEY_ANY2CHAR Function Module The primary function module for this task has the following details − Function Module: CHANGEDOCU_KEY_ANY2CHAR Function Group: SCD8 ...
Read More