SAP Send mail error: Cannot process message, no route from xxxx to xxxx

August 27th, 2010

How to fix the error “Cannot process message, no route from xxxx to xxxx” when you send mail through SAP R3?

Follow the steps, and that’s it!

Read the rest of this entry »

How to get messages of type text from Messages Pool in webdynpro runtime application

July 29th, 2010

As we know, in Webdynpro for java application, we can define messages in Messages Pool, and display/report the messages in web pages using IWDMessageManager “wdComponentAPI.getMessageManager()”.

Someone wants to get a message text in runtime rather than using IWDMessageManager to display the message on pages. How can we do that?

Read the rest of this entry »

The Best Reference for SAP ALV GRID CONTROL

July 11th, 2010
Table of Contents
Purpose……………………………………………………………………1
Prerequisites……………………………………………………………1
A. Introduction………………………………………………………..1
B. Building Blocks……………………………………………………1
B.1. General Scheme……………………………………………..2
B.2. Building Field Catalog………………………………………7
B.2.1. Structure of a Field Catalog………………………..7
B.2.2. Building Field Catalog Manually…………………..9
B.2.3. Building Field Catalog Semi-Automatically…..10
B.3. Layout Adjustments…………………………………………..12
B.4. Printing Adjustments…………………………………………14
B.5. Excluding Unwanted Standard Function Buttons…..15
C. Non-Event Based Additional Functionalities………….16
C.1. Changing Field Catalog or Layout after First Display..16
C.2. Setting Sort Conditions……………………………………….16
C.3. Filtering…………………………………………………………………17
C.4. Making Selections……………………………………………………18
C.5. Retrieving and Setting Scroll Status Info……………………..19
C.6. Coloring………………………………………………………………….19
C.6.1. Coloring an Entire Column…………………………………20
C.6.2. Coloring an Entire Row……………………………………..20
C.6.3. Coloring Individual Cells…………………………………….21
C.7. Inserting Hyperlinks…………………………………………………22
C.8. Making Fields as Dropdown Menus………………………..23
C.9. Managing variants……………………………………………………24
D. Event Based Additional Functionalities………………………25
D.1. General Scheme for the Event Handler Class……………26
D.2. Hotspot Clicking…………………………………………………….28
D.3. Double Clicking…………………………………………………………..29
D.4. Pushbuttons On The List…………………………………….29
D.5. Adding Your Own Functions……………………………..30
D.6. Overriding Standard Functions……………………….32
D.7. Context Menus…………………………………………………32
D.8. About printing……………………………………………………..33
D.9. Making alv Grid Editable………………………………..34
D.10. Controlling Data Changes………………………………35
D.11. Linking F1 Help to Fields…………………………………36
D.12. Linking F4 Help to Fields……………………………………37
E. A Piece of Troubleshooting………………………………..38
TRADEMARKS………………………………………….
Purpose
The purpose of this tutorial is to provide an easy and quick reference that may be used as a guide while coding to build lists using alv Grid Control. Actually, there is easy-to-reach information about implementing ALV Grid lists. However, it is generally required to find the information sought in a quicker way. This tutorial handles this, being a condensed source that can be used as a 鈥済uide.鈥 It will not deal with the technical infrastructure on which ALV lays. Some of the tables are taken from the online SAP Library, which is the most trustable source about the topic. Shortly, this will be a booklet summarizing major capabilities of the ALV Grid Control.
To get deep into the ALV Grid control, you can refer to the standard SAP course 鈥BC412 鈥 ABAP Dialog Programming Using EnjoySAP Controls鈥 and the book 鈥Controls Technology鈥. Also you had better inspect demo programs.

Is SAP ABAP a career sand trap?

May 11th, 2010

I’m a recent graduate with a BSCS. My areas of interest include C++, Java, C# and systems type programming. I’ve had one job offer so far. They want an SAP BW ABAP programmer. They provide 4 weeks training.
How hard would it be for an SAP BW ABAP person to change careers and do systems programming using C++ after 2 or 3 years? I don’t want to necessarily get stuck in SAP. I’m concerned that in 3 years, my resume will be all business/SAP and no systems/C++.

After reading many posts on SAPALV.net, I’m getting the feeling that once you’re an SAP person, you stay there for life. Is SAP ABAP a sand trap?

EXPERT RESPONSE
This is a terrific question.

Read the rest of this entry »

Sample programs on ALV Grid

April 16th, 2010

report zbnstest.
************************************************************************
* TABLES AND DATA DECLARATION.
************************************************************************
*TABLES: mara,makt.”,marc.
data syrepid like sy-repid.
data sydatum(10). ” LIKE sy-datum.
data sypagno(3) type n.

* WHEN USING MORE THAN ONE TABLE IN alv WE NEEED TO DECLARE THE TYPE
* GROUP (TYPE-POOLS———>SLIS)
type-pools : slis.

************************************************************************
* INTERNAL TABLE DECLARATION.
************************************************************************
* INTERNAL TABLE TO HOLD THE VALUES FROM THE MARA TABLE
data: begin of t_mara occurs 0,
matnr like mara-matnr,
meins like mara-meins,
mtart like mara-mtart,
matkl like mara-matkl,
Read the rest of this entry »

How to get and modify subobjects of a main ALV class

March 18th, 2010

Today we will discuss about how to get and modify subobjects of main alv classes. We know that the alv object model includes a large number of classes and you can use them to make specific settings. Take a look at the following picture, it compares the class diagram of the three main ALV classes.

Read the rest of this entry »

How to find BADI

August 16th, 2009

There are several ways to find BADIs in the program.

1. Set a beark-point in method ‘CL_EXITHANDLER=>GET_INSTANCE’. Because old BAID technology will alwasys call this method to get the BADI instance.

2. Search string ‘CL_EXITHANDLER=>GET_INSTANCE’ in the program. This drawback of this method is that the program may call another program in the runtime. In this case, you will be able to find the BADI in another program.

Read the rest of this entry »

ALV handle double click event

August 11th, 2009

This example will retrieve purchase order according to purchase order number and handle double click event. If聽 user double click purchase order number column, the report will navigate to transaction ME23N and display corresponding purchase order.

Read the rest of this entry »

BADI Concept

August 11th, 2009

BADI is used in ABAP enhancement frequently. This post will aims to find out the implemetation mechanism behind it. We commonly use below code to use BADI in the program.

Read the rest of this entry »

SAP Enhancement Technologies

August 10th, 2009

This article aims to give a brief introduction about the SAP Enhancement technologies. The standard deliveried sap programs do not always meet the requirement, so enhancment is an very importment part in the ABAP development. SAP provide several technologies to support developer to enhance the standard logic.

Read the rest of this entry »