Category Archive Blog

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

Read MARA characteristics in mass

The code below shows how to retrieve a characteristic value in mass.
The characteristic in example is named INDICE.
Read More

Program to fill entries in SFLIGHT, SBOOK, SPFLI

To use main of SAP demo programs, it is useful to have data in flights management tables.

You can use program SAPBC_DATA_GENERATOR to fill tables SFLIGHT, SBOOK, SPFLI.

Read More

How to CALL TRANSACTION in ABAP

The goal is to call Transaction with parameters and skip first screen.

Simple way

Example to call the Prod Order display transaction :


  SET PARAMETER ID 'ANR' FIELD w_of_number.
  CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.

 

Advanced way

The example below show how to call a transaction and skip first screen when it in not possible to SET parameters ID.
Read More

How to edit table content in SE16n

Notice that this tip must only be used on specific tables, only when concerned table is not maintained through SM30 transaction.

Check if you have authorization to do it by clicking on Maintain entries (working according table configuration).

If this tick box is greyed, write &sap_edit on transaction field and press enter.

Read More

Configure the pretty printer

In transaction where you can edit code (like SE38, SE80…) :