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
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
Use transaction SE63.
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.
The code below shows how to retrieve a characteristic value in mass.
The characteristic in example is named INDICE.
Read More
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.
The goal is to call Transaction with parameters and skip first screen.
Example to call the Prod Order display transaction :
SET PARAMETER ID 'ANR' FIELD w_of_number.
CALL TRANSACTION 'CO03' AND SKIP FIRST SCREEN.
The example below show how to call a transaction and skip first screen when it in not possible to SET parameters ID.
Read More
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
In transaction where you can edit code (like SE38, SE80…) :
Mains infos, to be completed…
Tables, cf. LE – Logistic and execution
Even with an external break-point, it is not always possible to trigger the debugger for update task.
The tip is to use infinite loop in your code executed in update task, to prevent the code to be debugged from execution, and then, trigger the debugger from SM50.
" ==========================================================
" Infinite LOOP to retrieve debug in SM50 (background tasks)
" ----------------------------------------------------------
DATA lw_x TYPE char1.
IF sy-uname = 'USERNAME'. " <== Not not lock everybody
WHILE lw_x IS INITIAL.
ENDWHILE.
ENDIF.
" ==========================================================