Friday 28 February 2020

ABAP with Coffee and Chain of Responsibility(CoR) OO Pattern

Let me ask you, what do you think about the flow diagram below?

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

Left most image is often called “spaghetti wiring mess” , second one is an “organized and labelled wiring” and last two are the SAP icons for ‘Code’ and ‘Coffee’ respectively. Obviously I am at the last stage in this flow ! So let me explain a little bit about ‘Code’ while having this ‘Coffee’.

Tuesday 25 February 2020

Using Texts in Fiori Apps

Introduction


Texts describe objects in SAP. When texts are language dependent they are are stored in a separate table from the object itself. An example of this would be the Dimension Texts table T006T which gives a text per language for the dimension objects in table T006D.

When the texts are language independent they are usually stored in the same table as the object they describe. For example t001W defines plants along with their name.

Monday 24 February 2020

RRI: Jump from BW Reports based on SAP PPM to PPM WebDynpro Applications

In this post I would like to share how to create RRI to Portfolio and Project Management WebDynpro Applications from BW reports. This solution is based on creation a customer target with use of BADI RS_BBS_BADI.

In this post there are 3 custom targets:

◉ Go to item master data details
◉ Go to item financial planning
◉ Go to cProjects master data details

Friday 21 February 2020

How to create ABAP proxies using eclipse

ADT in Eclipse has been a boon for us developers. Everything is so easy to develop in perspectives of ease of accessing the development objects when you don’t have to type different tcodes for different types of objects. One such important object type is proxy. Service consumers or service provider proxies are fairly common in ABAP landscape where we use SAP PI/PO to connect with other third parties. In traditional development environment we would use tcode SPROXY to find the relevant service in Enterprise Service Browser.

Wednesday 19 February 2020

BDC – Batch Data Communication in SAP ABAP

BDC – Batch Data Communication in SAP ABAP


BDC means Batch Data Communication, not Batch Data Conversion. Moreover, it was renamed Batch Input at least 20 years ago (the term BDC is still widely used though).

In this blog, I am gonna discussed the SAP DATA Migration tools mainly BDC- Batch Data Communication to export data from non-SAP environment to SAP ERP.
I will create BDC (Upload) Program for cheques with Payment doc.i-e; the BDC Program for transaction code FCH5 – Create Check.

Tuesday 18 February 2020

Implementation of SAP Odata V4

In SAP terms, Odata a platform/framework that can be used to create SAP objects or services that can be consumed from outside of SAP box to read or write data. A service can be called an API that SAP provides to their consumers.

Any consumer or provider of SAP who can call REST APIs can use it. It’s OOP based, faster, secure and having nice trace tools.

Monday 17 February 2020

CDS based data extraction – Part I Overview

Anyone interested in the state of the art extracting data in the SAP universe and beyond? This blog (series) is meant to provide a comprehensive overview of the topic, highlight the main features but also make sure you understand the meaning and implication of all available annotations related to the topic. I am aware of the fact that various documents/blogs have been published on the topic already, but for sake of completeness I will repeat parts here which you might already know.

Saturday 15 February 2020

Using CDS views in ABAP code – Part 1 (data selection)

Introduction


In this blog post we will look at how and when to use CDS views in ABAP code to select data.

The standard SELECT statement in ABAP includes the ability to reference a CDS view. This addition is defined as follows in the SAP help:

Friday 14 February 2020

Centralised Transport Naming Standards

Background


The company I work for has a sizeable and complex SAP estate with dozens of production SAP systems and therefore an equally complex development environment.  Although development standards have been in place for a number of years, it is always a challenge to ‘encourage’ developers to adhere to them.

Wednesday 12 February 2020

Proof of Concept: Deploying ABAP in Kubernetes

This blog post describes our experiences and findings while doing a proof of concept (PoC) in the SAP LinuxLab where we containerized the SAP ABAP application server components and deployed them on various Kubernetes environments. It will also point out potential benefits and challenges.

Please note that this document is neither a complete solution, nor does it provide any current product or development status.

Monday 10 February 2020

Create REST APIs secured with XSUAA in Cloud Foundry environment and call REST APIs in ABAP environment

ABAP programming is still the most powerful development tool in SAP core ERP, while we will find some cloud native features (ex. JWT relevant techniques) are not fully supported in ABAP environment in near future. If developers work on NetWeaver as well as Cloud Foundry environment, a workaround is to deploy REST APIs with cloud native functions in Cloud Foundry, and use ABAP programming to access the REST APIs.

Saturday 8 February 2020

Simulation of ITSMobile Applications from Chrome browser

Introduction 


Data entry and update operations in a enterprise generally requires modern hand held gadgets like  RF devices, fork terminals for easy and synchronous update to the enterprise systems. SAP provides flexibility and solutions for integrations of RF devices and terminal with ECC systems for warehouse related operations. Internet service solutions are provided to for easy usage of ECC transactions in remote devices. The large warehouses which requires detailed tracking and monitoring of warehouse stock uses RF technology and constantly reviews procedures to further adopt the technology to improve operations. With the usage of BR codes, QR codes the error percentage due to manual intervention is reduced.

Friday 7 February 2020

Convert Emoji Characters in Unicode String to equivalent Unicode Code Points using SAP ABAP

Preface:


Character encodings are no alien to SAP systems or any computer systems for that matter, as they form the basis for data storage in and communication between computer systems. In the recent times, Unicode has become the dominant encoding scheme, of which UTF-8 representation is quite popular, especially with web content.

It is very rare that we get to deal with encoding schemes directly in ABAP. But, recently, there was a unique requirement, wherein it was required to convert the emoji characters in a unicode string to their equivalent Unicode code points in Hexadecimal so that they could be properly displayed in a HTML compliant client.

Wednesday 5 February 2020

CRM Bol programming Debugging Tips and Code Snippet on how to read & populate values

This blog explains on how to do basic debugging and write code in CRM. It covers the below topic areas

1. Requirement: To disable one specific field in an Address section

2. Find the UI component

3. Find technical object to do code changes

4. Get value using IF_BOL_BO_PROPERTY_ACCESS

Tuesday 4 February 2020

FM to retrieve data from excel into an internal table of any type

I have developed an FM ‘Y_EXCEL_TO_ITAB ‘, which takes an excel file name and a structure/table name as inputs. And parses the excel content into an internal table with the same structure given as input.

Background:


SAP has provided us the means to create data at run-time. We can use various RTTS (Run Time Type Services), Data references, Field-Symbols to achieve this.