Welcome, you seems to be new here. Get Connected: Become a Fan on Facebook Join ABAP Help on Google+ Subscribe to email X

Tricks

Alternative to SAVE_LIST

Demonstrates the Alternative to FM SAVE_LIST.

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 [...]

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 – 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 [...]

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 [...]

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 [...]

Dynamic Parameter Texts in Selection Screen – 2

Selection Screen Parameter Text by coding using Function Modules In the last post (which was so many weeks ago), we discussed how we can change the selection screen parameter by changing the values of some selection screen specific variables. Enno suggested to use the FM SELECTION_TEXTS_MODIFY to handle the selection screen parameters more easily and [...]

Dynamic Parameter Texts in Selection Screen

Selection Screen Parameter Text by coding Sometimes, we need to dispaly the Dynamic Parameter Text for the parameters in the selection screen. We can use %_parameter_%_APP_%-TEXT to have the parameter text from the coding. *——————————————————————— * Shows how to give the selection screen parameter name by *  using coding *——————————————————————— REPORT  ztest_np_tmp. * DATA: w_carrid TYPE sflight-carrid. * ** Selection Screen SELECTION-SCREEN: BEGIN OF BLOCK blk1 WITH FRAME TITLE aaa. SELECT-OPTIONS:   s_carrid FOR w_carrid. SELECTION-SCREEN: END   OF BLOCK blk1. * INITIALIZATION. * Description for the parameter   IF sy-uname = ’TEST’.     %_s_carrid_%_app_%-text = ’Carrier ID’.   ELSE.     %_s_carrid_%_app_%-text = ’Flight ID’.   ENDIF. Without [...]

Display ALV report output in the SAME Selection Screen

Shows the way to dispaly the report output in the same selection screen using Docking Container and SLAV 2D Table display with minimal coding 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 same [...]

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 [...]

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 [...]

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 *&———————————————————————* [...]

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 [...]