Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DATA lv_count TYPE int_5.
- CALL FUNCTION 'ZFMTABLE_READ'
- EXPORTING
- im_uname = sy-uname
- IMPORTING
- ex_zznumber = lv_count.
- IF lv_count < 3.
- er_entity-title = 'Sad Tile'.
- er_entity-info = ':-('.
- er_entity-number = lv_count.
- er_entity-subtitle = 'Mood: sad'.
- er_entity-icon = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-bad'.
- er_entity-infostate = 'Critical'.
- er_entity-numberdigits = ''.
- er_entity-numberfactor = ''.
- er_entity-numberunit = ''.
- er_entity-numberstate = 'Critical'.
- er_entity-statearrow = 'Down'.
- er_entity-infostate = 'Critical'.
- ELSEIF lv_count >= 3 AND lv_count <= 5.
- er_entity-title = 'A little bit happier tile'.
- er_entity-info = ':-|'.
- er_entity-number = lv_count.
- er_entity-subtitle = 'Mood: better'.
- er_entity-icon = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-neutral'.
- er_entity-infostate = 'Negative'.
- er_entity-numberdigits = ''.
- er_entity-numberfactor = ''.
- er_entity-numberunit = ''.
- er_entity-numberstate = 'Negative'.
- er_entity-statearrow = 'None'.
- er_entity-infostate = 'Negative'.
- ELSEIF lv_count > 5.
- er_entity-title = 'Happy tile'.
- er_entity-info = ':-O'.
- er_entity-number = lv_count.
- er_entity-subtitle = 'Mood: happy'.
- er_entity-icon = 'sap-icon://BusinessSuiteInAppSymbols/icon-face-okey-dokey'.
- er_entity-infostate = 'Positive'.
- er_entity-numberdigits = ''.
- er_entity-numberfactor = ''.
- er_entity-numberunit = ''.
- er_entity-numberstate = ''.
- er_entity-statearrow = 'Up'.
- er_entity-infostate = 'Positive'.
- ENDIF.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement