ABAP Program for Marble Game in SAP

August 1st, 2009

Try to remove all but one marble from the board. You can remove a marble by skipping over it to an empty spot. Select a marble by clicking on it and move it by selecting the spot that you want to move to.

Marble Game

Read the rest of this entry »

Catch the Dump in ABAP – II

July 31st, 2009

As an ABAPer, you probably know how combursome it is to work with classical exceptions (discussed in last post), since you must handle all of them immediately after a function or method call. Beside being labourious, these mappings clutter our code and make it difficult to read.

SAP also have Object Oriented Class based exceptions which are easy to handle and less cumbersome.

Read the rest of this entry »

Catch the Dump in ABAP - I

July 30th, 2009

Normally, if any exception occurred it will go to dump immediately in a program, then we will process this through the tcode ST22(dump analysis). This code comes handy when the behaviour of function module is not predictable.

Explicit Error Handling

We will convert the dump into an error message (like in above snap) or some text statement. For this we need to call this statement
RECEIVE RESULTS FROM FUNCTION ‘function module’

Read the rest of this entry »

ABAP Program to Display OAER pictures on Screen

July 29th, 2009
There is another way to upload the image and display on screen in our custom application. We can also add the Images using the Transaction OAER, then calling the relevant functions to do rest of the work at PBO.

Image display (using OAER)

Read the rest of this entry »

ABAP Program to Display SE78 pictures on Screen

July 28th, 2009

There has been requirement to upload the image and show that on the screen in Module Pool programming. The following program displays a color Picture in a custom container on screen that has been uploaded using SE78 pictures.

SE78 Graphics (on-screen)

Read the rest of this entry »