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
SAP HANA Articles
Page 14 of 58
Importing/Exporting ABAP packages to Presentation server
When working with ABAP packages, you often need to import or export them to your local presentation server for backup, sharing, or migration purposes. There are two main approaches to accomplish this task effectively. Using SAPlink Tool SAPlink is a popular open-source tool that allows you to export custom ABAP objects to your presentation server. This tool is particularly useful for exporting individual development objects or small collections of related objects. You can use SAPlink to export custom objects and package them as ...
Read MoreProperties of SAP ABAP Development Objects
Similar to reflection in JAVA we have RTTS in SAP. RTTS stands for Runtime Type Services. It provides you with ways to retrieve the definitions of variables and lets you create a new variable during program execution. RTTS comprises of two sub-components − RTTI − Run Time Type Identification RTTC − Run Time Type Creation As the name suggests, RTTI is responsible for retrieving the definitions of variables and types whereas RTTC is responsible for the creation of new variables with provided definition at run-time. RTTI − Run Time ...
Read MoreComparing SAP ABAP Field symbols and data reference with Pointers in C
Field symbols resemble pointers in C but there is one main difference: you can use field symbols only to access the values present in them but not the memory address. Similar to a pointer in actual implementation, a field symbol stores the memory address of the variable that was assigned to it. You can see the data held by the variable but you cannot fetch the memory address. Similar to a pointer, if you make changes to data referenced by field symbol, it changes the value at the original location too. ...
Read MoreSAP Authorization concept and Authorization Objects, Object Class
To clear the air all at once, SAP Authorization Objects and Object Class have nothing much in common with Object Oriented classes and objects and differ vastly from them. Authorization objects detail the current user's privileges which are used to authorize user activities and data availability. The Authorization Object is the place where configurations pertaining to permissions are set up and initialized against fields. An object class, on the other hand, is a grouping of Authorization objects. It may contain one or more authorization objects. Understanding Authorization Objects Authorization objects contain authorization fields that define what ...
Read MoreDistinguish SAP ABAP code between clients
In SAP ABAP, you can distinguish code execution between different clients by using the system field sy-mandt. This field contains the current client (mandant) number and allows you to implement client-specific logic in your programs. Using sy-mandt for Client Identification The sy-mandt system field is automatically populated with the current client number when a user logs into the system. You can use this field in conditional statements to execute different code blocks based on the client − IF sy-mandt = '002'. * do ...
Read MoreEntering a condition to perform SELECT in an existing report in SAP system
When working with SAP ABAP SELECT statements, you need to be careful with spacing and syntax, especially when adding complex conditions. One of the most common mistakes is improper spacing around brackets and logical operators in WHERE clauses. Adding Complex Conditions to SELECT Statements In ABAP, proper spacing is crucial for the parser to correctly interpret your code. When combining multiple conditions with logical operators like AND, OR, and NOT, ensure you have adequate spaces before and after brackets and operators. Example ...
Read MoreHandling higher level Boolean values in SAP system
As per the general standards and coding practice, you should use abap_bool for handling Boolean values or truth values in SAP systems. When any object is declared as abap_bool type, it can hold values only from the set (abap_true, abap_false, and abap_undefined). However, in older systems, you might not be able to use abap_bool as it is not available. For example, in Web Dynpro ABAP, abap_bool is not available. You need to use WDY_BOOLEAN as an alternative in this case. WDY_BOOLEAN only allows true Boolean values, meaning it allows only ...
Read MoreIs it possible to delete the actives while you are running a loop over an internal table in SAP ABAP?
The DELETE command will have a result. You should make sure that once you delete the row, there should not be any reference or use of that row subsequently in the loop. The best practice is to use CONTINUE as soon as you perform deletion. Best Practices for Deleting Records I suggest avoiding "DELETE lt_itab INDEX sy-tabix" because it will change the sy-tabix (table index) and can lead to unexpected behavior. When you delete a row, all subsequent rows shift up, making the index unreliable for the ...
Read More\\\\\\\\nParsing IDoc files to extract information from SAP system
There are few third party libraries which can be used to perform this task however they involve some cost. The best way here is to use an SAP Connector. SAP Connectors are available for almost all prevalent programming languages like Java, C#, Python. You can program against these connectors and read data from IDoc. You can do many things with these connectors from reading data to converting them to flat files for further usage. Using Java Connector for IDoc Parsing I have used ...
Read MoreWhat is ABAP? Explain ABAP OOP feature in detail?
ABAP stands for Advanced Business Application Programming. It is one of the primary programming languages used for developing programs and applications for SAP R/3 systems and its related modules. It is a high-level language with respect to SAP as it is understood and known only to SAP environment. The latest version of ABAP which is ABAP Objects follows Object Oriented paradigm. Also, it is fully backward compatible with applications written in previous versions of ABAP whether it is ABAP/4 or other which were highly impressed by COBOL. ...
Read More