discovering-abap
Untitled
98 posts
Don't wanna be here? Send us removal request.
discovering-abap · 1 year ago
Text
ABAP Code Samples : Create PDF from Internal Table
This code sample explains how to create a PDF xstring from internal table. SELECT * FROM but000 INTO TABLE @DATA(lt_tab) UP TO 10 rows. DATA(lo_pdf) = NEW cl_apoc_pdf_generator( ). lo_pdf->create_pdf( EXPORTING input = lt_tab RECEIVING pdf_binary_output = DATA(rv_bin) ). The rv_bin is xstring binary content and can be displayed as pdf. To test this code, SEGW based OData service or RAP OData…
Tumblr media
View On WordPress
0 notes
discovering-abap · 1 year ago
Text
SQL Script for AMDP: Flow Control with IF and Loops
In this post, you will learn to use SQL Script in AMDP with flow control. This will cover below statements. IF LOOP Commenting the SQL Script Code The comments can be added using * or — * Example for EXISTS declare lv_result int; --data declaration Using IF and ELSE If syntax is similar to ABAP but uses additional THEN keyword. IF <condition_1> THEN <block_1> [ELSEIF <condition_2> THEN…
Tumblr media
View On WordPress
0 notes
discovering-abap · 1 year ago
Text
Important Resources for SAP ABAP Developers for working with S/4 HANA
In earlier post, Important Learning Resources for SAP Developers, the learning resources are summarized. This post talks about important links that can be useful while working on a S/4 HANA project. SAP Business Accelerator Hub : Explore Categories The Explore Categories page contains information about SAP Standard APIs, Events, Integrations, Process Automation, BAdIs, CDS Views which are…
Tumblr media
View On WordPress
0 notes
discovering-abap · 1 year ago
Text
Important Learning Resources for SAP Developers
If you are waiting for a learning opportunity, you are already too late. SAP provides great learning resources and systems where one can practice as well. This post covers links to SAP Learning content that every SAP developers should be aware of. Please add links in the comments if you feel anything is missing and I will update the article. SAP HANA Trial account Developers can use this link…
Tumblr media
View On WordPress
0 notes
discovering-abap · 1 year ago
Text
ABAP Managed Database Procedures(AMDP) : SQL Script Basics
In this post, you will learn to use SQL Script in AMDP for basic operations. Data Declaration Select Statements Data Declaration in SQL Scripts How to declare internal table in AMDP? A common requirement in AMDP is to declare and use a runtime table or internal table. Standard program demo_amdp_abap_types_access explains how to declare a table. Class Definition Class Implementation A data…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Annotations in CDS
This post summarizes the most common annotations that are required to build a RESTful Application Programming Service in ABAP. ABAP CDS are written in Data Definition Language (DDL). These annotations are broadly categorized into two types. ABAP CDS – ABAP Annotations Framework-Specific Annotations ABAP CDS – ABAP Annotations These annotations are evaluated by ABAP runtime…
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
ABAP RESTful Application Programming – Naming Conventions for Development Objects
Defining and using naming conventions ensure consistency in the names used by all the developers on a project. This posts summarizes the naming conventions recommended by SAP for the RAP Development Objects. General Rules The overall object name will be split into 3 parts. [/<namespace>/][<prefix>]_<meaningful_abbreviation>_[<suffix>]. Namespace [/<namespace>/] For custom object, the…
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
ABAP RESTful Application Programming Model - Behavior Implementation Class
This post explains the class where the behavior definition methods are implemented. This is covered in various posts of the ABAP RAP Series, however the methods are scattered across the posts. A business object is implemented through a specialized class pool that references its behavior definition. When the unmanaged implementation type is used, developers must implement all the behavior. This…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Determine Actions in ABAP RESTful Application Programming Model
This post talks about Determine Actions in ABAP RESTful Application Programming Model. This would be one of the most confusing concept from RAP Behavior. Determine actions allow the consumer to execute determinations and validations on request. Determinations can be usually triggered as side effects which are triggered automatically when some fields are updated on the application. For Determine…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Exploring ABAP on HANA [13] : Union in CDS
This post explores how Union can be defined in a CDS View Entity. Union merges the result sets of multiple SELECT statements of CDS view entities into one result set. Note that, Union was available in CDS Views earlier but in CDS Entities, it is allowed only from version 7.56. While extending a CDS with an Union clause in it, the extension also needs to have same number of unions. How to…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
ABAP RESTful Application Programming [28] – Authorization Control
In this post, you will learn about Authorization Control in ABAP RESTful Application Programming. Authorization Control Authorization control in RAP protects the RAP BO from unauthorized access to data. The authorization for consumers is managed and maintained by the system administrator but developers would sometime need to implement the controls. Authorization checks for read operations are…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
ABAP RESTful Application Programming [26] – Concurrency Control
In this post, you will learn about Concurrency handling in ABAP RESTful Application Programming. Concurrency Concurrency handling means handling simultaneous update requests for the same resource If simultaneous update requests are received, the service should allow only one update at a time and reject other updates Concurrency needs to be managed as we need to prevent concurrent and…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Exploring ABAP on HANA [12] : Virtual Elements in CDS
Hello SAP ABAP Developers, Learn how to use Virtual elements in CDS Views... Follow for more...
This post explores how virtual elements can be defined in a CDS View Entity. What are Virtual elements? Virtual elements are columns that are not stored in the source database table but are calculated at runtime. Virtual elements represent transient fields in business applications. They are defined at the level of CDS consumption views as additional elements within the SELECT list using…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
SAP ABAP Interview Questions : Data Dictionary Tables
This post covers, Information about the data dictionary Interview questions for Data Dictionary Database tables along with answers This is compiled to help SAP ABAP Developers and Freshers to prepare for a SAP ABAP interview. It is compiled from various resources available over the internet and referring to SAP documentation. How to prepare for SAP ABAP Interviews using this resource? Read…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Exploring ABAP Debugger[4]: Work with different desktops
This series covers all the details about ABAP debugging. If you have landed on this post directly, I recommend reading earlier posts as this post assumes that the reader has knowledge of concepts and steps covered in earlier posts. ABAP Debugging Basics ABAP Debugging Controls This post talks about the configurable desktops and how they can be used to understand the data and program flow at…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
Exploring ABAP Debugger[3]: ABAP Debugging Controls
This series covers all the details about ABAP debugging. If you have landed on this post directly, I recommend reading earlier posts as this post assumes that the reader has knowledge of concepts and steps covered in earlier posts. ABAP Debugging Basics This post talks about the controls to be used in ABAP Debugger. Find a sample program to debug Find any simple program to debug. If you are…
Tumblr media
View On WordPress
0 notes
discovering-abap · 2 years ago
Text
ABAP RESTful Application Programming [26] – Unmanaged Late Numbering
Numbering in ABAP RESTful Application Programming means setting up values for the primary key fields of the entity. The primary key can consist of one or more fields. Earlier posts cover the details of the options available for Numberin – External Numbering and Managed Early Numbering Unmanaged Early Numbering This post talks about Unmanaged Late Numbering. Unmanaged Late Numbering This…
Tumblr media
View On WordPress
0 notes