Category Archive Blog

Display transport request (TR) informations in ABAP

Use FMs :

  • STRF_READ_COFILE
  • TR_READ_GLOBAL_INFO_OF_REQUEST

Search tag: TO, Transport order, ordre de transport, OT

SAP PM transaction codes

Here are only displayed the transaction I most use.

IL03 : Display Functional Location (Afficher poste technique)

IQ03 : Display Material Serial Number (Afficher le numéro de série d’un article)

IE03 : Display Equipment (Afficher Equipement)

Open popup window to choose a diretory

Use method : cl_gui_frontend_services=>directory_browse.

Read More

Write spool in color

Create spool to display it later in SP01, SP02…

With code below, you can easily add lines in spool like that :


    ls_text-color = c_color_jaune.
    CONCATENATE 'Error on PN' lw_matnr INTO ls_text-text SEPARATED BY space.
    APPEND ls_text TO gt_text.

    CLEAR ls_text.
    ls_text-color = c_color_rouge.
    APPEND ls_text TO gt_text.

Read More

Reassign the original system on SAP objects

Sometimes, where objects are imported from other SAP systems (via TO or others), the original system is not the current development system. It can be useful in certain case to reassign it.

First, check the original system :

Check the original system, here ISG.

If you want to change it on this object, note the objects info : R3TR – FUGR – ZBNC_INIT.
Read More

Create an ALV with custom control

You can check the SAP demo programs starting with BCALV_GRID_*

Read More

Add day/month/year to a date in ABAP

Add days to date

You can simply add integer value if your variable is typed DATUM.


  DATA : lw_date  TYPE  sy-datum.
  lw_date = '20170927'.
  lw_processed_date = lw_date + 5.
* ==> lw_processed_date = 20171002

Read More

Manage translations

Use transaction SE63.

Read More

Get text symbols from another program

In theory, you can’t access the text symbols of one program into another program.
They are program dependent.

Nevertheless, if you need to do that, there is the following statement in ABAP.


DATA : li_textpool TYPE TABLE OF textpool.
READ TEXTPOOL 'SAPLLCPP' INTO li_textpool LANGUAGE sy-langu.

Read More