Friday 30 June 2023

SAP S/4HANA Cloud, public edition, ABAP Environment Case 5: Purchase Requisition Mass Upload

This is a detailed step-by-step technical guide document to introduce a Developer Extensibility case followed by this blog.

1. Case Background:


In this case, we create an custom Fiori application, which can create multiple purchase requisitions from an Excel file template. Furthermore, you can define the upload template based on your own requirement.

Monday 26 June 2023

ABAP SALV Share source code

Introduction

Today, I will continue to share a code repository that encapsulates SALV for more convenient display of ALV.

System version requirements

SAP ON PREMISE

ABAP 750 and later versions

Friday 23 June 2023

ABAP CDS View Where used List – A simple utility

Introduction:

CDS doesn’t need any introduction so let’s get to the core of the topic for which I am writing this blog post.

I was investigating on certain CDS annotations and I was missing something called “where used” option for CDS, this is a feature which we ABAPers use almost every day! But when comes to this CDS, no such option I could find. If you are using DDIC view instead of DDLS Entity then probably you can, but that is NOT the right approach and with “define view entity” syntax you wouldn’t get any DDIC view generated, right?

Wednesday 21 June 2023

How to Copy Table Entries from One System to another using Adjustment Process?

Introduction


In every Project you work on there will be cases where you need to copy data from One System to another. This can be QA System to Prod system or the much awaited SAP ECC To S/4HANA. This is a life saver provided all the data related to Check tables are already maintained in the Destination System. Most of the time we create Program for each table and that can add up to a lot. This blog should be used only for Custom Table not Customized.

Solution


Go to SM30 Transaction Code

Monday 19 June 2023

Schedule Background Job with Last Execution Date and Time or with a Time Window

Owing to various business scenarios, we might come across requirements where background jobs must be scheduled. Now, the most common way to schedule batch job is through the TCode SM36. Especially, in case of Interfaces through which SAP receives huge volumes of data from Third Party and must process them in one batch run, nightly in most cases, Background Jobs are critical.

However, few cases arise where SM36 does not meet our requirements sufficiently. For example, if the requirements are such that, the job must only run within a specific timeframe or the job should have a last execution date, SM36 fails to accommodate those cases.

Friday 16 June 2023

Git-enabled Change Supports More Git Servers and System Role-specific deployment

Introduction

Since SAP Solution Manager 7.2 SP12 Change Request Management (ChaRM) Git-enabled Change process supports GitHub as the Git server, now ChaRM extends its ability to support more Git severs like GitLab from 7.2 SP16. The default process of the Git-enabled Change triggers the deployment based on system role types, which means changes will be deployed into systems in the same role type without priority, now it’s possible for Git-enabled Change to trigger the deployment based on the system role.

Git-enabled Change Process Using GitLab as Git Server 

You have configured gCTS for ChaRM refer to the online help Configuring Git-enabled CTS.

Wednesday 14 June 2023

Editable AVL grid with class CL_GUI_ALV_GRID

I have been looking in the forums for ways of making a CL_GUI_ALV_GRID grid editable for the user in a way that whatever value they put in the cells gets registered in the iternal table being displayed on that ALV, but most of the content I found were solutions using the FUNCTION ‘REUSE_ALV_GRID_DISPLAY_LVC’, but in my case I couldn’t use this function module because the program I was editing was already buit with CL_GUI_ALV_GRID, so I had to find out by myself (and with a little help from ChatGPT).

Monday 12 June 2023

Your Guide to Calling S/4HANA APIs from SAP Build Apps

A year ago, people got busy building S/4HANA extensions with SAP Build Apps, and demanded a feature that would make their OData calls easily – by using $expand to get more data with fewer calls. That feature was recently delivered.

But people are still were confused.

When you create a connection to an OData service, SAP Build Apps automatically provides you with the schema so you can reference all the fields. But even when you expand the associations, the schema for the associated objects is not (readily) available.

Wednesday 7 June 2023

Custom Code Remediation

Overview:


Since, it was introduced twenty years ago, SAP ECC (Enterprise Central Component) has been a widely used Enterprise Resource Planning (ERP) tool. But as digitalization, cloud computing, and the demand for real-time data processing have increased, SAP ECC has become antiquated and unable to satisfy the needs of modern business. New and enhanced functionality to run the business processes simpler, faster and smarter, will only be available on S/4 HANA.

Monday 5 June 2023

Extend business process solutions using standard events.

Recently in one of the project implementations, I got a requirement to extend the solution by creating subsequent document based on a business process being executed. I am sharing this blog as I felt not much has been written for such type of requirements.

Problem Statement: –


How do you create a subsequent document based on a current business process being executed? Example – You want to create an asset and settlement rule immediately after the WBS is created and release the project. BADI implementation will not be an answer for the above requirement because the WBS element will not be created in the system while the BADI is being executed and you want to create the subsequent document based on the WBS element.