Friday, 30 July 2021

Display Messages in ODATA Header Response while success and update and usage of ALL Query operations.

Introduction

This article explains the gradual creation of OData services, mapping messages on the OData response header, and simple operations($filter, $orderby, $inline count, $skip and $top).

Overview

1) Creation of OData service

Go to transaction code – SEGW.

Thursday, 29 July 2021

Sending Spool List into Excel Format through Email Attachment

Requirement

I got one requirement where i need to call the SUIM transaction -> Roles by Complex Selection Criteria with multiple variants selections as background job and need to send the output in XLS format to multiple users maintained in distribution list.

There was one more additional requirement where i need to create single excel output with multiple tabs ( indicating each variant of report ).

Solution

This Solution will help for any report which we want to execute as background job and display the List View in Excel format.

Wednesday, 28 July 2021

Error Handling In Odata

Introduction

◉ For raising error messages first we have to prepare a message container. Message Container is used to add corresponding success or error messages to the response of the OData service. We use a standard interface /IWBEP/IF_MESSAGE_CONTAINER to add the messages to the OData response.

◉ To add a message to the message container, we can use any of these methods in the message container interface apart from these 5 methods other methods also available. In this blog I will be showing these methods only.

Monday, 26 July 2021

SAP Extended Warehouse Management (EWM) deployment options with S/4 HANA

Introduction: 

Nowadays, SAP S/4 HANA is taking up rapidly, many companies face the challenges while deciding right SAP EWM solution for their businesses. This blog carries the functional information between SAP S/4 HANA EWM deployment options and will help you to decide right EWM solution which depends on enterprise structure, current system landscape, future automation plan and cost etc.

Objective:

The objective of this blog is to get clear understanding of SAP S/4 HANA EWM deployment options to Customer’s, Consultant’s, and partner. Also, this article contains few important point’s which are needs to take into consideration while choosing the EWM deployment option. All the information is based on latest releases of SAP S/4 HANA EWM.

Friday, 23 July 2021

SAP BTP ABAP Environment – Pre-Upgrade Option for Release 2108

Overview

Providing a significant number of new features is an important goal of release upgrades to deliver innovations to our customers and partners.

An upgrade is intended as a “no event” for customers and partners. For example, only compatible changes of released objects (APIs) will be delivered. But we recommend performing a test of the custom-built productive apps in a test environment for the new release. The complexity of the technical dependencies between the custom-built apps and the underlying environment cannot be tested isolated, only including the ABAP environment on SAP side. Therefore, we offer you to upgrade selected systems 15 days in advance to test the applications prior to the planned standard-upgrade.

Thursday, 22 July 2021

Exploring SAP Profitability and Performance Management’s Remote Function Adapter – External Function Type

SAP Profitability and Performance Management (abbreviated as “PaPM” in this blog further)  Remote Function Adapter (RFA) function provides automated communication capabilities to other application and systems. Remote Function Adapter comes with different function types to set-up communication and posting. These vary from:

◉ Posting of Finance AP, AR, GL entries

◉ Calling external R script procedure

◉ Calling HANA stored procedure

◉ Integration scenario with SAP SD for creation of Sales Order, Inquiry or Quotation

◉ Replicating CO Master Data

◉ And External Function for calling remote NetWeaver function or a Web service

Wednesday, 21 July 2021

Zchat – ABAP based instant messaging

As an external developer I’m involved in many projects. We usually connect to the client system using various combinations of Remote Desktop. For security reasons, the clipboard between Remote Desktop and the work computer is disabled. Also, we usually don’t have any Instant Messaging or even mail.

Lack of communication turns ordinary actions (copy, past, send) into a whole quest – you need to call, dictate the program name, line number, etc. This greatly slows down development and disturbs concentration.

I wrote a Web Service that works like a chat. The data is stored in the SAP system, the client part is stored in the web browser.

Tuesday, 20 July 2021

Build composition tree with ABAP CDS views

Parent child relationship in CDS data modeling for ABAP RESTful application programming model (RAP)

The ABAP RESTful application programming model (RAP) defines the architecture for efficient end-to-end development of intrinsically SAP HANA-optimized OData services (such as Fiori apps) in SAP Cloud Platform, ABAP Environment or Application Server ABAP.

SAP ABAP CDS Views, SAP ABAP Exam Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Material, SAP ABAP Career, SAP ABAP Learning, SAP ABAP Guides, SAP ABAP Study Material
ABAP RESTful application programming model

Monday, 19 July 2021

Split STO delivery with fixed number of line items

When users deal with delivery orders with lots of items lines like greater than 25, it creates processing challenges resulting in long delays as the work must be performed by a single person and can’t be divided out. Then the requirement is split delivery at VL10B for STO when the numbers of delivery line items are greater than a specific number.

This question has been asked many times in the community like this one. Jelena’s answer is absolutely working, in this article just make it more clear how to achieve this by using VOFM.

Friday, 16 July 2021

Download File through NetWeaver Gateway with OData Version 4

Introduction

In this blog post I would like to show you how you can download a file through NetWeaver Gateway with OData Version 4. The next sections contain following topics:

1. preliminary work

2. implementation of a model provider

3. implementation of a data provider

4. register and publish OData Service

5. test

Wednesday, 14 July 2021

A Step by Step process to create Odata services in SAP / SAP HANA system

In this blog post, I am going to tell you step by step process to create Odata services for SAP /SAP HANA system and how to test it.

I tried to explain the whole process in 4 steps.

Step 1. Go to transaction code – SEGW.

Tuesday, 13 July 2021

A Step by Step process to trigger Odata Service to send data based on Event Configuration in SAP HANA

In this blog post, I am going to share how to create a simple odata service and trigger GET event for Purchase order data based on Event configurations.

I tried to explain this document in Three steps:

Step 1. creation of Odata service to get data

Step 1. Go to transaction code – SEGW.

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.