Friday 28 April 2023

The power of dynamism and data reference in SAP ABAP

Dynamic structures and data references have been well-documented and written for more than a decade already and it’s one of the most flexible (albeit, also the most dangerous security-wise) components of SAP development. I would not be re-engineering the wheel but presenting it in different layers of a dynamic structure.

In addition, I wouldn’t include the inline declarations yet as it defeats the purpose of dynamism in the context of learning.

We’ll try to peel the onion and go from the simplest to the more complex structures using dynamic and data references. What I would try is to best explain dynamic programming to someone who is new to ABAP programming as this is a huge topic and learning it early helps develop a good framework mindset.

Wednesday 26 April 2023

How to add different Colors in SAP VIM Workplace?

Introduction


SAP VIM Workplace is a Transaction code similar to SAP Inbox but it has a lot of more features than SAP Inbox or My Inbox Fiori App. Sometimes the AP Team or other role wishes to see Items with different Colors. This Blog will cover the steps.

Solution


Go to Transaction Code /OPT/VIM_WP

Monday 24 April 2023

Company code Determination for FI-EDI incoming payment advice

Recently got one request to check why the payment advice showing incorrect company code details for the new company code. Not familiar with this process before, so write this down as a tips and hope can help someone who faces the same issues.

SAP ABAP Career, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP Jobs, SAP ABAP Prep

Friday 21 April 2023

How to Manage and Move Transport Request in S/4HANA Public Cloud in 3 System Landscape

SAP HANA, SAP HANA Exam, SAP HANA Exam Prep, SAP HANA Preparation, SAP HANA Tutorial and Materials

Purpose of this Document


This document helps you understand moving transport request from Development to Q system and Q system to Production system in 3 System Landscape. Transports for business configuration, key user extensibility, and developer extensibility are of the different categories and that is why these are separated. So, we need to understand all of three.

Wednesday 19 April 2023

Single Responsibility of SOLID in Abap

In this post, I would like to share my thoughts and suggestions on SOLID’s most violated principle, Single responsibility.

Before we start with SOLID, I need to mention about MVC. Because they go hand in hand. You can read about applying MVC in this blog post.

Previous to Abap, I had chance to work with different programming languages such as Java and C#. And on those platforms, software development has already evolved to create high quality software. But unfortunately same can not be said for Abap development. And most Abapers do not even pay attention SOLID or MVC pattern and do not understand OOP. And as a result, we end up having low quality code.

Monday 17 April 2023

IDOC error for same custom IDOC extension/segment between two SAP systems (version 750->740) – Part I

Introduction: I recently experienced a scenario in which we wanted to send data from the SAP MDG (release 750) system to the SAP ECC (release 740) system following an upgrade of the MDG system. There were no problems prior to the upgrade when both SAP systems were on the same release (740).

Background: To illustrate the issues and potential fix, I’ll use the MATMAS IDOC (Basic Type: MATMAS05) with extension (ZMATMAS05_EXTENSION) and a single custom segment (Y1MARAM1) that was developed identically in both the SAP systems.

Scenario 1: Add new custom fields in the existing custom segments in both the SAP systems, which I’ll cover in this blog.

Friday 14 April 2023

Secure Coding in modern SAP custom developments

Data breaches are one of the most prevalent issues in the technology space in today’s technology-driven world with easy access to information. It not only poses an information risk but often results in financial losses such as loss of trust or government penalties. For instance, in 2018, a Singapore government health tech agency was fined $750k due to a cyberattack on its patients’ records. Marriott International was also fined GBP 18.4M by the UK’s Information Commissioner’s Office due to an unauthorized copying of data by malicious actors.

Despite being regarded as a leader in security, SAP’s product is still prone to gaps and flaws, particularly in custom code development. As such, Security Audits must be carried out in any project. Security Audits typically include a Security Risk Assessment, IT General Controls, Technical Design Review, IT Policy Review, Host Configuration review, Network Vulnerability assessment, Source Code review, and Application Penetration Testing.

Wednesday 12 April 2023

Where-Used List for NAST output types

If the current system already has dozens or even hundreds of NAST output types, one day must adapt all those forms if related to one group of specific criteria like sales organization, then how to identify which output type has been used by the sales organization?

SAP ABAP Career, SAP ABAP Skills, SAP ABAP Jobs, SAP ABAP Prep, SAP ABAP Preparation, SAP ABAP Tutorial and Materials, SAP ABAP Guides, SAP ABAP Learning, SAP ABAP NAST, SAP ABAP Guides

It’s well known that general NAST output determination and configuration are maintained with various key combinations and stored at multiple condition record tables just like pricing determination processing.

Friday 7 April 2023

Some useful exits

This blog is to help those who are looking for some exits for interfaces. We are trying to collate number of exits which can help in interfaces.

1. MATMAS – Outbound idoc

i. EXIT_SAPLMV01_002 – This can help in Outbound idocs where we have to modify values as per requirement. example code below:

Wednesday 5 April 2023

Build and Deploy your SAPUI5 application using SAP Business Application Studio to ABAP repository (on-premise system).

In this blog post, I will guide you through the process of building and deploying an SAPUI5 application using SAP Business Application Studio to an ABAP repository in an on-premise system.

Lets get started.

1) Activate and maintain the repository service in backend system.

◉ Go to t-code /n/iwfnd/maint_services.

Monday 3 April 2023

How to Create Table and Push Data to ODBC/Remote Database using Native SQL with ABAP DB Connectivity (ADBC)

Recently I had a task to Push Data from SAP Reports to MS SQL DB, periodically, and to Create Tables of the required Reports in their MS SQL DB, as well

Being a complete novice ABAP developer, I learned about ABAP DB Connectivity (ADBC) DDL and DML methods, which helped me complete the task more dynamically, instead of using EXEC SQL with Placeholders ? for each field

Before moving forward I would like to state the obvious that by no means my approach is best/optimal out there