Advertisement
ignatov

Untitled

May 20th, 2020
2,637
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
ABAP 1.74 KB | None | 0 0
  1.  
  2.     DATA lv_count TYPE int_5.
  3.  
  4.     CALL FUNCTION 'ZFMTABLE_READ'
  5.       EXPORTING
  6.         im_uname    = sy-uname
  7.       IMPORTING
  8.         ex_zznumber = lv_count.
  9.  
  10.     IF lv_count < 3.
  11.       er_entity-title = 'Sad Tile'.
  12.       er_entity-info = ':-('.
  13.       er_entity-number = lv_count.
  14.       er_entity-subtitle = 'Mood: sad'.
  15.       er_entity-icon  = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-bad'.
  16.       er_entity-infostate = 'Critical'.
  17.       er_entity-numberdigits = ''.
  18.       er_entity-numberfactor = ''.
  19.       er_entity-numberunit = ''.
  20.       er_entity-numberstate = 'Critical'.
  21.       er_entity-statearrow = 'Down'.
  22.       er_entity-infostate = 'Critical'.
  23.     ELSEIF lv_count >= 3 AND lv_count <= 5.
  24.       er_entity-title = 'A little bit happier tile'.
  25.       er_entity-info = ':-|'.
  26.       er_entity-number = lv_count.
  27.       er_entity-subtitle = 'Mood: better'.
  28.       er_entity-icon  = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-neutral'.
  29.       er_entity-infostate = 'Negative'.
  30.       er_entity-numberdigits = ''.
  31.       er_entity-numberfactor = ''.
  32.       er_entity-numberunit = ''.
  33.       er_entity-numberstate = 'Negative'.
  34.       er_entity-statearrow = 'None'.
  35.       er_entity-infostate = 'Negative'.
  36.     ELSEIF lv_count > 5.
  37.       er_entity-title = 'Happy tile'.
  38.       er_entity-info = ':-O'.
  39.       er_entity-number = lv_count.
  40.       er_entity-subtitle = 'Mood: happy'.
  41.       er_entity-icon  = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-okey-dokey'.
  42.       er_entity-infostate = 'Positive'.
  43.       er_entity-numberdigits = ''.
  44.       er_entity-numberfactor = ''.
  45.       er_entity-numberunit = ''.
  46.       er_entity-numberstate = ''.
  47.       er_entity-statearrow = 'Up'.
  48.       er_entity-infostate = 'Positive'.
  49.     ENDIF.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement