Conversion Routine in SAP

Write this simple code.
REPORT ZFIELDCONV.
data: d_auart LIKE vbak-auart.
d_auart = ‘TA’.
WRITE d_auart.

What the result output on screen do you expect, “TA”? No, the result will be “OR”.

Continue Reading…

ABAP Program for Creating an ALV Grid in 3 lines

Now you can create an ALV Grid very fast; you don’t need to define a layout, a fieldcatalog, a container and all the other small things we usually define in an ALV Grid. If we don’t need to finetune the ALV Grid and just want to display a list on the screen or to the printer, here is a very simple way to proceed.

ALV Grid Output

Continue Reading…

ABAP Program Showing a progress bar in SAP

This process is very easy but a lot of programmers don’t know how to do it. You just have to call the ABAP Function Module ‘ SAPGUI_PROGRESS_INDICATOR ‘ , at the appropriate points.

Progress Bar

Continue Reading…

Pass different Internal Tables to a Subroutine in ABAP

There are situations where an ABAPer needs to write the same code over and over again, just for the reason that the parameters (in this case, Internal Table) to be passed to this Subroutine are different in structure.

The code passes different Internal Tables to the same Subroutine, performing the common set of function on the tables.

Continue Reading…

Assign a T-code to Maintenance View in SAP

There are some cases where you want your application to call the Maintenance View (instead of creating Create/Changes/Delete i.e. CCD screens for the operation).

In this case you have to assign a T-Code to the Maintenance View you created. (Note: User should have the authorization for SM30).

Continue Reading…

Page 27 of 31« First...2526272829...Last »