Skip to content

Instantly share code, notes, and snippets.

@cbuckowitz
Created April 8, 2020 09:28
Show Gist options
  • Save cbuckowitz/466e43cadd9f871f121ef8dc03f42dac to your computer and use it in GitHub Desktop.
Save cbuckowitz/466e43cadd9f871f121ef8dc03f42dac to your computer and use it in GitHub Desktop.
#ABAP inline date computation in parameter assignment
cl_abap_unit_assert=>assert_true( f_cut->check_werk_aktiv( iv_werks = lv_werks iv_keydate = lv_datum ) ).
cl_abap_unit_assert=>assert_true( f_cut->check_werk_aktiv( iv_werks = lv_werks iv_keydate = CONV d( lv_datum + 1 ) ) ).
cl_abap_unit_assert=>assert_true( f_cut->check_werk_aktiv( iv_werks = lv_werks iv_keydate = CONV d( lv_datum + 456 ) ) ).
cl_abap_unit_assert=>assert_false( f_cut->check_werk_aktiv( iv_werks = lv_werks iv_keydate = CONV d( lv_datum - 1 ) ) ).
cl_abap_unit_assert=>assert_false( f_cut->check_werk_aktiv( iv_werks = lv_werks iv_keydate = CONV d( lv_datum - 789 ) ) ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment