Local ALV event class template (to be completed with missing events) :
Read MoreLocal ALV event class template (to be completed with missing events) :
Read MoreIf you work with adobe form translations, you will see that translations are not effective immediately. It is because of cache.
To clear the cache, launch program : FP_PDF_TEST_26 .
Search tag : refresh, buffer, pdf
To specify with javascript the color for a text field in adobe form, use the code below.
// data.MAIN.SUBFORM.FIELD_TO_CHANGE_COLOR::initialize - (JavaScript, client)
this.font.fill.color.value = "255,0,0"; // Color Red in RGB Color
The color has to be specified in 🔗 RGB format.
Read MoreUse method CL_RS_DATA=>SWITCH_ORDER( ) :
cl_rs_data=>switch_order( CHANGING c_t_data = lt_my_table ).
Technically, the method loops on table entries and insert each of them with INDEX 1.
Read MoreTransaction SE18, enter your BADI name and go to
Enhancement Implementation –> Overview :
Use class CL_ABAP_RANDOM_INT to generate a random integer number :
DATA(lv_random_num) = cl_abap_random_int=>create( seed = cl_abap_random=>seed( )
min = 1
max = 100 )->get_next( ).
* lv_random_num will be type i
Value | Designation EN | Designation FR |
---|---|---|
AR | Dependent reservation | Réservation dépendante |
FE | Production order | Ordre de fabrication |
PP | Planned independent requirement | Besoins indépendants Prévisionnel (BIP) |
QM | Inspection lot for quality management | Lot de contrôle QM |
SA | Simulation order | Ordre de simulation |
SM | Sim. dependent reqmts | Besoin dépendant de simulation |
WB | Plant stock | Stock division |
Example of implementation in SE38 : SALV_DEMO_TABLE_SELECTIONS.
DATA : go_alv_table TYPE REF TO CL_SALV_TABLE.
TRY.
cl_salv_table=>factory(
IMPORTING
r_salv_table = go_alv_table
CHANGING
t_table = gt_table_to_display ).
CATCH cx_salv_msg.
ENDTRY.
" Optimize columns width
DATA(lo_columns) = go_alv_table->get_columns( ).
lo_columns->set_optimize( ).
" Apply zebra style to lv_rows
DATA(lo_display) = go_alv_table->get_display_settings( ).
lo_display->set_striped_pattern( cl_salv_display_settings=>true ).
" Display ALV
go_alv_table->display( ).
Trigger message from standard data :
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
Set BAPIRET2 structure from standard data :
ls_return-type = sy-msgty.
ls_return-id = sy-msgid.
ls_return-number = sy-msgno.
ls_return-message_v1 = sy-msgv1.
ls_return-message_v2 = sy-msgv2.
ls_return-message_v3 = sy-msgv3.
ls_return-message_v4 = sy-msgv4.
MESSAGE ID sy-msgid
TYPE sy-msgty
NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4
INTO ls_return-message.
Trigger message from BAPIRET2 structure :
MESSAGE ID ls_return-id
TYPE ls_return-type
NUMBER ls_return-number
WITH ls_return-message_v1
ls_return-message_v2
ls_return-message_v3
ls_return-message_v4.
Check dedicated post to Add days/month/year to date.
You can use Function BKK_ADD_WORKINGDAY.
You can use Function RKE_SELECT_FACTDAYS_FOR_PERIOD.
Read More