Use method : cl_gui_frontend_services=>directory_browse.
Read MoreUse method : cl_gui_frontend_services=>directory_browse.
Read MoreCreate 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.
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
You can check the SAP demo programs starting with BCALV_GRID_*
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