Changing a private attribute from outside the Instance/Class
Hello my fellow ABAPers(others are welcome too!). When first facing object orientation in ABAP, some of you have probably tried to do something like this (at least I did..): CLASS lcl_fs_test...
View ArticleScheduling Periodic Job within a particular timeframe
Scheduling Periodic Job has one limitation , We can not schedule the job for a particular time frame . Lets Say if you want to schedule the job every one minute for one week only .In order to achieve...
View ArticleData not displayed in Excel in ALV report
In ALV report , when we click on Microsoft Excelbutton(CTRL+SHIFT+F7) as shown below, the excel sheet does not display data. For data to appear here do the following : 1. Open Excel 2....
View ArticleA handy RTTC tool
in one of my project the data type of the variable to hold service consumption result is not known in design time so I have to generate the data type dynamically via code, using ABAP RTTC( runtime type...
View ArticleVarious ways to debug a smartform
SFTRACE transaction.Hard break point.Debugging the actual function module generated on activation of smartforms. 1. SFTRACE transaction: This transaction is useful when you need to debug in...
View ArticleChange fieldcatalog and layout of ALV after its initial display.
We can do any number of modification to the fieldcatalog and layout of ALV grid even after it has been displayed on the screen, we can hide certain columns , change the column text, change the column...
View ArticleLeave Module Pool screen when field is mandatory
Hello again! This one is for the newbies out there or for those experienced ones who are new to Module Pool programming or Dynpro I must say. Main and the foremost objective of this post is to leave...
View ArticleMock specific classes with mockA
With mockA it is quite easy to mock interfaces for unit tests. But it is also capable of creating mock objects that are not based only on interfaces, but specific classes. This blog post shows how it...
View ArticleCode snippet to get the tag values from XML instead of using Transformation
Using Transformation , while retrieving values from XML can be sometimes difficult as most of the times exceptions are thrown from Transformation, which is difficult to understand. Using Object...
View Article[SAP & Excel Integration] Part 1: Backup/export data from any SAP table to Excel
Hi SCN, I'm currently working on SAP integration with Excel and want to share my developments with the SCN Community.In this first part of the integration project I'll share my development to export...
View ArticlePurchase order and Sales Document maintain in dialog mode
Sometimes the task is not to create order through Bapi, because in this case it will be saved,if not error occured. If you need to go into a standard transaction, passingwith some header information...
View ArticleMy favourite cryptic ST22 dumps around CL_GUI_ALV_TREE
Before you read this: I’ve spent some time debugging the things I describe here, I thoroughly searched SCN, I used my brain and although it can sound like one big low-brainer what I describe here, I...
View ArticleHow to add a view into favourite
the idea comes from Sougata Chatterjee's anwser in this thread:Suppose I need to add the maintenance view COMV_PARTNER_FCT to my favorite list. I expect once the entry in the favorite list is double...
View ArticleVendor classification in Vendor master
I was searching for reports which can give up a report of Vendor classification used in vendore master.This blog is about getting the report for vendor classification in the Vendor master data. Also...
View ArticleMultipart Emails
One of our customers requested data from SAP sent to him via Email. The data was a table and the customer complained that the presentation wasn't a in tabular form. Well, that is how plain text emails...
View ArticleDo you agree to write IF 1 = 0 in your production code
IMHO one purpose to write IF 1 = 0 code is to enable the cross reference of message raised in application code. I have written several blogs to discuss the tip how to find the source code where the...
View ArticleCreating the objects in different landscapes using Nugget files concept
To have same object in different systems we can achieve with help of nugget files. First you need to install the plugins. Once plugins are installed then a program with zsaplink is created in your...
View ArticleA small debugger tip: Access static attribute in debugger
To illustrate the usage of this small tip, I write the following simple report. cl_singleton is a simple singleton class. The single instance has one string table with two entries filled. The...
View ArticleAutomatic setting lock when creating the purchase requisition. BADI...
Task essence:My task was to set Block ID and Text automatically while end-user created purchase requisition in ME51N.Why do it? Because, it should be approved in another SAP module (PSM-FM) and only...
View ArticleGeneral properties of ABAP Classes / Interfaces
Every day you create or change ABAP class in class builder. When you activate your change, have you noticed a series of objects with several "=" in the middle part of each?Technically speaking, an ABAP...
View Article