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
Page 3 of 9
Concatenate 2 strings in ABAP without using CONCATENATE function
In ABAP you can use && sign to concatenate variables as below − Variable Declaration and Assignment First, declare the variables and assign values to them − DATA: hello TYPE string, world TYPE string, helloworld TYPE string. hello = 'hello'. world = 'world'. helloworld = hello && world. The output of the above code is − helloworld Direct String Concatenation If you want to concatenate strings directly without using variables, you can use − ...
Read MoreAssigning debug roles to few users of SAP ABAP program
To assign debug roles to specific users in SAP ABAP programs, you need to ensure the role contains the proper authorization object S_DEVELOP with debug permissions. Debug Role Configuration The role that you have added should contain only one permission − Object S_DEVELOP ACTVT = 03 DEVCLASS = * OBJNAME = * OBJTYPE = DEBUG P_GROUP = * This authorization object S_DEVELOP controls access to development functions, where ACTVT = 03 represents the debug ...
Read MoreUsing ABAP Function module RSAQ_REMOTE_QUERY_CALL, NO_DATA_SELECTED exception using selection parameters
SAP provides flexible options that allow selection parameters to be used easily with the RSAQ_REMOTE_QUERY_CALL function module. When using multiple parameters, please note the following important considerations − Key Parameter Settings KIND Field Configuration: Set KIND to "S" only when using select-options. If you are using simple parameters, it should be "P". Language Setting: Instead of using EN, try using the internal language code "E" for better compatibility. Finding Field Types with RSAQ_REMOTE_QUERY_FIELDLIST ...
Read MoreIn ABAP, How to select all the data into my internal table using loops?
In ABAP, there are different ways to select data into internal tables using loops and joins. Understanding the performance implications of different approaches is crucial for efficient programming. Using JOIN Statements with Internal Tables One approach is to join all tables in a single SELECT statement. Here's an example − SELECT t11~orgeh t11~msty t11~mshort t12~position t13~job t14~job_grade t14~scheme INTO gt_my_combined_table FROM zgerpt_rnk_min as t11 JOIN hrp1001 as t12 ON t11~orgeh = t12~objid JOIN hrp1001 as t13 ON t12~position = t13~objid ...
Read MoreAdding a text plus and text written from a parameter type C in ABAP
This can be achieved by using String Expressions or by using the CONCATENATE keyword. With the use of the concatenation operator && you can combine text and parameter values effectively. String Concatenation Methods in ABAP There are several ways to concatenate text with parameter values in ABAP. The most common approaches include using string expressions with the && operator and the traditional CONCATENATE statement. Using String Expressions with && Operator The modern approach uses string expressions with the concatenation operator && − ...
Read MoreChecking table existence using Class and it's method in SE11 without using FM in ABAP
To perform table existence checks without using Function modules, you can use the class cl_rebf_ddic_tabl. Note that Class methods are almost similar to function modules. They are defined as code blocks to perform specific functionality and provide a more object-oriented approach to DDIC operations. Example The following code demonstrates how to check if a table exists using the EXISTS method − CALL METHOD cl_rebf_ddic_tabl=>exists EXPORTING id_name = 'MARA' ...
Read MoreMultiple ALV grids on a single screen in SAP ABAP
It is not possible to resize or place the grid at a particular position using function modules as ALVs are always displayed in fullscreen when using function modules. This limitation makes it challenging when you need to display multiple ALV grids or have more control over the grid positioning. One method to overcome this limitation is to create a screen using custom container and then use the class CL_GUI_ALV_GRID to attach the ALV grids to this container at desired positions. Implementation Steps To create multiple ALV grids on a single screen, follow these key steps − ...
Read MoreViewing an ABAP program outside customer space.
When you encounter an ABAP program prefixed with "AQZZ", this indicates that the program was created by the SAP Query via transaction SQ01. While you might not be able to directly view the query, you can identify the Infoset on which the query relies. You can then enter the Infoset in SQ02 and when you click on 'Description', you can find more details about the program structure and data sources. Ad-hoc Queries T-Code: SQ01 You can use this transaction to create ad-hoc queries (SAP Queries) for reporting ...
Read MoreUsing SAP RSECNOTE tool to display information for ABAP and Java Stack
In SAP system, you can use tools like RSECNOTE and SAP EarlyWatch Alert which can be to find out the patches and verify their implementation status. You can access RSECNOTE by executing Transaction code: SA38 or ST13.RSECNOTE tool in SAP system is used to determine which important security notes or hot notes are missing in a system.You can refer more details about this tool in SAP OSS Note 888889. You can access this tool by calling T-Code: ST13 and entering RSECNOTE and then press F8 button.888889 - Automatic checks for security notes using RSECNOTE (outdated)You use transaction ST13 to start ...
Read MoreEverything is stored in database in SAP system
Note that it is easy to store data in form of SAP database tables as compared to files. You can also access files in SAP system but they are available on file system of SAP Application server and not easy to use with.With use of ABAP, you can easily raise queries against database tables and it is safe to run queries to get data. SAP has various tools that allow you to work with table entries and also to manage entire landscape easily.What databases are supported by SAP?PartnerVendorMicrosoft SQL Serverwww.microsoft.comMySQL MaxDBwww.mysql.comIBM DB2 (various versions)www.ibm.comOraclewww.oracle.comAlso SAP has its own in-memory computing ...
Read More