Monday, 12 July 2021

Setup the dev environment for ABAP RESTfull application programming (RAP) using SAP BTP ABAP environment and eclipse ADT.

Setup the development environment for ABAP RESTfull application programming (RAP) using SAP BTP ABAP environment and eclipse ADT.

Getting started SAP BTP ABAP environment with Eclipse

SAP Business Technology platform (BTP) providing us ABAP environment.

In this blog, I would like to explain the process of connecting this SAP BTP ABAP environment platform to the eclipse.

This requires the below two steps.

◉ Creating SAP BTP ABAP environment Service instance and service key.

◉ Connecting SAP BTP ABAP environment to the Eclipse.

Saturday, 10 July 2021

Creating OData API based on a Mapped Data Source

This blog post will provide the steps to implement the pagination in OData by leveraging the CDS view and the SADL framework based on Mapped Data Source.

Introduction:

SADL offers a mapping editor in the SAP Gateway Service Builder to bind one or several SADL models to OData entity sets. This enables you to use SADL models as an additional data source besides RFC and others. Once the OData properties are mapped, the system provides a standard, optimized implementation of the OData service to retrieve the data.

Friday, 9 July 2021

Local ABAP exception classes (inside global classes)

SAP ABAP Exam Prep, SAP ABAP Tutorial and Material, SAP ABAP Exam Prep, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Guides

Why use local exception classes?

Although it is generally best practice to create global exception classes, they can seem a bit overkill for some applications. Think of PoCs, demo scenarios, BAdI implementations, etc. A handy but not so well-known option for these situations is to define a local exception class inside the global class. These allow internal exceptions (exceptions raised within the class itself) to be handled without the need for another global DDIC object. 

Wednesday, 7 July 2021

Post Customer and Vendor using BAPI_ACC_DOCUMENT_POST ((40/50 for G/L Accounts, 31/21 for vendor sub-ledger,11/01 for Customer sub-ledger))

Introduction:

This blog post will describe the various steps involved to post a FI document using BAPI ‘BAPI_ACC_DOCUMENT_POST’ from an TXT file.

Requirement:

The TXT file should be balanced for the document to be posted i.e. credit amount and debit amount should be equal.

Tuesday, 6 July 2021

Web Dynpro ABAP: New Customizing UI with UI Guideline FIORI

Introduction

The UIs of your Web Dynpro ABAP applications (including those built with Floorplan Manager) don’t always meet your exact requirements and you must adapt them accordingly.

And, you as an administrator, can make these UI adaptations using the customizing UI.

Until recently, the customizing UI had plenty of functionality but wasn’t the easiest to work with. Things have changed! Starting with SAP_UI 7.54 (for ABAP 1909), there is a totally new UI for customizing.

This UI is only available with UI guideline FIORI. Of course, the adapted applications can also be used with other guidelines.

Monday, 5 July 2021

Debug tips about VL014 “Error delivery split because the partners are different”

When using TCODE VL10B to create a delivery order based on one specific STO order, the user got the Error message of VL014 which is “Item &: delivery split because the partners are different”. All items share the same customer and related split configuration been checked without issue, those items should be group into one delivery order instead of split by items which increase lots of unnecessary further operations.

ABAP Development, SAP ABAP Exam Prep, SAP ABAP Tutorial and Materials, SAP ABAP Career, SAP ABAP Study Materials, SAP ABAP Preparation

Saturday, 3 July 2021

ABAP Restful Application Programming Model with Legacy BAPI

Unmanaged Or Managed?

While Sap was constructing the new RAP model, it made a distinction between managed and unmanaged scenarios. Managed means completely new and Greenfield implementation(no legacy logic).

If you have to use existing BAPI or function, SAP is recommended to turn to the unmanaged scenario in RAP model.

Friday, 2 July 2021

SALV: ALV Quickstart Snippets 🚀

The object model for the SAP List Viewer (ALV) is an object-oriented encapsulation of SAP’s much older ALV tool. Today class CL_SALV_TABLE remains widely used for displaying simple, two-dimensional ALV grids.

Get your ALV up and running in no time using this collection of shorts snippets covering most of the basic requirements.

Note: For simplicity’s sake error handling of SALV errors (subclasses of exception class CX_SALV_ERROR) have been left out. Make sure to implement appropriate exception handling for productive code.