Tricks

Naimesh Patel | Last Updated on July 8, 2014

Dynamic Background Colors in Smartforms

We were having some specific background colors in our output generated by the SMartforms. This background colors are coming properly in the print-out. But, when we try to send them as FAX, we are getting the BLACK background whereever we have that background color. I used Field-symbols to have an access of the table which…

Radiobutton Values using CASE

Today, we will how we can use the CASE .. ENDCASE statment to check the values of the Radiobutton. CASE.. ENDCASE has better performance compared to the IF.. ENDIF statement. So, here is the Code which will show how to use th CASE .. ENDCASE to access the values of the Radiobuttons. Code Snippet *&———————————————————————*…

Smartforms: Breakpoints

Debugging is necessary when we have program lines node in our Smartforms and the code in the program lines node is not working as per our expectation. Currently, we don’t have the Breakpoint button as what we have in the ABAP code Editor in the Workbench. So, what are the options to put a break…

Tricks

In this section you will find some Tricks in ALV, Classical Report, Smartforms… ALV Describes how to move the cursor to next row on Enter (like Excel) in the ALV created by class CL_GUI_ALV_GRID. Describes how to move the cursor to next row on Enter (like Excel) in the ALV created by REUSE_ALV_GRID_DISPLAY. Eloborates how…

Display ALV report output in the SAME Selection Screen

Shows the way to display the report output in the same selection screen using Docking Container and SLAV 2D Table display with minimal coding Preface I was searching for the option to display the report output on the same selection-screen from quite a long time. SDN Forum thread How can i display output in the…

Dynamic Parameter Texts in Selection Screen

Dynamic Parameter Text on Selection Screen by coding

Dynamic Parameter Texts in Selection Screen – 2

Selection Screen Parameter Text by coding using Function Modules SELECTION_TEXTS_MODIFY.

Why NOT to use Field-Symbols to access Global Memory?

Sometimes, we don’t have access to all the variables which we are looking for. Especially this happens when we are working with CMOD user-exits, BADI implementation, etc. So, we do it this way: Where it is used This is used frequently in the CMOD userexits, BADI implementations, where we don’t have access to all the…

Case Study: JavaScript in ABAP Usage

Sometimes, we need to evaluate complex expression. I had faced the similar issue. I was able to use JavaScript (JS) effectively to find a solution. The Background At one of my client’s place, we were moving away from Legacy Systems by implementing SAP. Client gets orders from its Customers. This Customers have unique requirement to…

Become a JAVAPER – is overloading possible in ABAP?

We all know it is a lie, but I will try to prove there are huge similarities b/w both languages in this matter, which eventually can form opinion that overloading in ABAP is possible.   What Java says In Java overloading is very common and useful. Within one class you can have same named methods…

Override (Redefine) Static Method?

We all know that we can’t redefine Static Method. We’ll try to explore the reasoning and alternatives to achieve the similar behavior.

Become a JAVAPER – “overriding” an attribute

Recently I have discovered very interesting feature in Java. Below I will try to compare this with what ABAP can do about it. Quick jump in Overriding a method in ABAP and Java is simple. In the former we use REDEFINITION keyword in a subclass, in the latter we rewrite method with the same signature…

Alternative to SAVE_LIST

Demonstrates the Alternative to FM SAVE_LIST.

Generalize the call to conversion exit functions

Well, everybody will be aware of the conversion exit functions available in SAP. The SAP provided conversion exit functions must be called individually in the programs to convert the field value internally and externally. Now, why can’t we do this dynamically by avoiding individual calls to the functions? Background Yes, it can be done ….

Think SAP is bug free? Not really

Recently, I was working on getting the Handling Unit (HU) details. The purpose of getting the details was to print it on a output. I faced quite a grief because of a simple stupid bug in standard SAP code. Preface Customer wanted to display the HU tree structure in the printed output on the Packing…

Bring Data to Life – Integrating D3.js in SAP via RESTful Web Service – Sneak Pick at d3.js (Part I)

Displaying data in using graphics like Bar charts, Stacked charts, Pyramids, Maps are more appealing as well as fun to work with. Recently, I came across this great library D3.js which is based on Javascript. The library D3.js is very powerful and provides so many different type of graphical options which we can use. Introduction…

Bring Data to Life – Integrating D3.js in SAP via RESTful Web Service – RESTful WS Step-by-Step (Part II)

This is part of the series in “Bring Data to Life”. In this part we explore how we create a working RESTFul Web Service in SAP and handle the request in ABAP. I have divided this tutorial in 3 parts: Introduction to RESTful WS RESTful WS is service implemented using HTTP using REST principles. In…

Bring Data to Life – Integrating D3.js in SAP via RESTful Web Service – Full Working Solution (Part III)

In last two posts related to D3.js integration, we have seen a and . In this post, I will show you how we will put all these pieces together for a full blown working solution on exposing the data and generating graphics using D3.js. I have divided this tutorial in 3 parts, so be sure…

Google Map integration in SAP using RESTful Web Service – Bring Data to Life

In series of Bring data to life, today I will demonstrate how you can use Google Map API to display SAP data. At high level, I want to display the location of SAP Entity i.e. Plant, Distribution Center, Warehouse, Customer, Vendor etc location on Google Map. Get Latitude and Longitude (geo coordinates) information for the…

ABAP Objects – Access Text from Super Class Text Symbols

Text Pools are great for creating language independent program. But, it create a very peculiar problem when used in ABAP objects