主页 > 专属服务器 > > 正文

分布式存储_百度云盘怎么用迅雷下载_速度快

浏览:

分布式存储_百度云盘怎么用迅雷下载_速度快

Scenario: Your Boss says you are getting your HANA Server as a christmas present, under the condition you provide a real-time cockpit for some KPIs from your production ERP by tonight.

Mission Impossible?

i guess you don’t have a preinstalled HANA-Live with the KPI Framework(and also no Hana yet), Fiori, UI5 Framework, ADT on Eclipse or Hana Studio and maybe your javascript skills are not yet up to date

but you still can trust on good old ABAP (Screens)

you only use Old-Fashioned SE80 and after a few clicks, you (auto-refreshing) Dasboard looks like a fiori launchpad with ‘smart’ tiles, where the numbers in the box represent the actual kpi, the screen is auto-refreshed and also works with webgui. a double click on the kpi is calling the transaction with the details

(as i use SAPGUI 7.40 with BlueCrystal Design, you have the fiori-style icons)

so what’s the task?

create a report with a screen:

REPORT Z_MY_DASHBOARD. DATA : ob_timer  TYPE REF TO cl_gui_timer .

data: lv_error_01 type i, lv_warning_01 type i. data: lv_error_02 type i, lv_warning_02 type i. data: frame01(30). data: frame02(30). data: number01 type i. data: number02 type i. data: icon01(50). data: icon02(50). data: it_session_list type  SSI_SESSION_LIST. data: it_worker_list type SSI_WORKER_LIST. data: lo_server_info type ref to cl_server_info. create object lo_server_info.

class lcl_event_handler definition.

public section.

class-methods: on_finished for event finished of cl_gui_timer.

endclass.                    "lcl_event_handler DEFINITION

class lcl_event_handler implementation.

method on_finished.

perform get_data. ob_timer->run( ) . *cause PAI call method cl_gui_cfw=>set_new_ok_code EXPORTING new_code = ‘REFRESH’. endmethod.                    "on_finished

endclass.                    "lcl_event_handler IMPLEMENTATION

start-of-selection. *   Initialise object CL_GUI_TIMER. data: event_handler type ref to lcl_event_handler. CREATE OBJECT ob_timer . create object event_handler . *   Bind event handling method to object of CL_GUI_TIMER *    SET HANDLER timer_event FOR ob_timer . set handler  event_handler->on_finished for ob_timer.

*   Set interval for timer ob_timer->interval = 10.

*   Call method RUN of CL_GUI_TIMER. ob_timer->run( ) .

perform get_data.

call screen 0100.

*———————————————————————-* ***INCLUDE Z_MY_DASHBOARD_STATUS_0100O01. *———————————————————————-* *&———————————————————————* *&      Module  STATUS_0100  OUTPUT *&———————————————————————* *       text *———————————————————————-* MODULE STATUS_0100 OUTPUT. SET PF-STATUS ‘MAIN’. *  SET TITLEBAR ‘xxx’. ENDMODULE.                 " STATUS_0100  OUTPUT

MODULE USER_COMMAND_0100 INPUT.

data: lv_field(50).

case sy–ucomm. when ‘EXIT’ or ‘CANC’ or ‘BACK’. leave program. when ‘SELE’.* Double Click for Navigation/Drill Down

GET CURSOR FIELD lv_field. if lv_field cp ‘*01’. call transaction ‘VF04’. elseif lv_field cp ‘*02’. call transaction ‘SM04’. endif.

endcase. ENDMODULE.                 " USER_COMMAND_0100  INPUT

form get_data.

FRAME01 = ‘Amount Billing Due List’.FRAME02 = ‘Logged in Sessions’.

* KPI 1: select sum( netwr ) from vkdfs *    connection dbco-con_name "for sidecar/hana live into number01. "where fkdat le sy-datum.

* KPI 2:

CALL METHOD lo_SERVER_INFO->GET_SESSION_LIST *  EXPORTING *    WITH_APPLICATION_INFO = 1 *    TENANT                = " RECEIVING SESSION_LIST          = it_session_list . describe table it_session_list lines number02.

* For SM50/Processes:

*CALL METHOD lo_SERVER_INFO->GET_WORKER_LIST

perform get_icon using number01 lv_warning_01 lv_error_01 icon01. perform get_icon using number02 lv_warning_02 lv_error_02 icon02. endform.  form get_icon using number warning error icon.

if number > error. data: lv_icon(50). CALL FUNCTION ‘ICON_CREATE’ EXPORTING name   = ‘ICON_RED_LIGHT’ *      text   = ‘Refresh’ *      info   = ‘Refresh Monitor Status’ IMPORTING RESULT = lv_icon EXCEPTIONS OTHERS = 0. else. if number > warning. CALL FUNCTION ‘ICON_CREATE’ EXPORTING name   = ‘ICON_YELLOW_LIGHT’ *      text   = ‘Refresh’ *      info   = ‘Refresh Monitor Status’ IMPORTING RESULT = lv_icon EXCEPTIONS OTHERS = 0. else.

CALL FUNCTION ‘ICON_CREATE’ EXPORTING name   = ‘ICON_GREEN_LIGHT’ *      text   = ‘Refresh’ *      info   = ‘Refresh Monitor Status’ IMPORTING RESULT = lv_icon EXCEPTIONS OTHERS = 0. endif. endif. ICON = lv_icon.

endform.

Screen:

PROCESS BEFORE OUTPUT. MODULE STATUS_0100.PROCESS AFTER INPUT. MODULE USER_COMMAND_0100.

thats it -> welcome to simple smart business

of course its all hardcoded, but maybe your boss gives you some time till tomorrow to add a control table (/NSE11)

发表评论
验证码: 点击我更换图片

注:网友评论仅供其表达个人看法,并不代表本站立场。

热门文章

  • 亚马逊云_海报cdn_优惠券
    <strong>亚马逊云_海报cdn_优惠券</strong>

    亚马逊云_海报cdn_优惠券

    消费者在哪里?这不是医疗保健领域的"捉迷藏"游戏,而是建立一个全面运转的医疗保健系统所需要的关键缺失要素。让消费者参与进来——作为一个消费...

  • 云解析_svn服务器安装_限时特惠
    <strong>云解析_svn服务器安装_限时特惠</strong>

    云解析_svn服务器安装_限时特惠

    集成/docker/梅索斯/marathonapachemesos是一个用于调度和管理分布式应用程序的开源集群管理器。Mesos几乎就像整个集群是一个单一的集群一样分配CPU和RAM等资源...

  • 云服务器_阿里云服务器账号_哪家好
    <strong>云服务器_阿里云服务器账号_哪家好</strong>

    云服务器_阿里云服务器账号_哪家好

    技术支持副总裁Aileen Wyer和高级系统管理员Maruf Rahman最近与我们坐下来讨论我们的合作伙伴关系如何帮助CAN Capital的遗留备份基础设施现代化,以简化数据管...

  • 消息队列_折枝by困倚危楼百度云_新注册优
    <strong>消息队列_折枝by困倚危楼百度云_新注册优</strong>

    消息队列_折枝by困倚危楼百度云_新注册优

    今天,两位前行业分析师(现在是Veeam高管)讨论了塑造数据保护行业和IT格局的趋势:Jason Buffington@JBuff,前ESG数据保护首席分析师Dave Russell@BackupDave,Ga...

  • 中间件_服务器能干什么_超低折扣
    <strong>中间件_服务器能干什么_超低折扣</strong>

    中间件_服务器能干什么_超低折扣

    Nathan Sielaff,World Vision的系统工程师,负责备份、存储等。他致力于创建一个灵活和敏捷的IT环境,这样组织就不必担心底层基础设施,可以将精力集中在任...

云储存

更多 >
  • <strong>腾讯云_阿里云免费_限时特惠</strong>
    腾讯云_阿里云免费_限时特惠

    在最近的一个客户项目中,我和我的同事遇到了一个问题,将Webi文档和universe导入到Translation Manager中(都在BO4.1 SP4上),得到以下错误消息: org.apache.ax...

  • <strong>网站建设_腾讯云直播_多少钱</strong>
    网站建设_腾讯云直播_多少钱

    伟大的文件和它真正有助于改变日志历史的帐户。。。。。。。。。。。。!!!!! 您好, Mithun 谢谢您Mithun。 是的,当我们发现标准C4C实现中没有发布...

云储存企业网站_英语二历年真题百度云_优惠券
云储存大带宽_腾讯云服务平台_价格
云储存企业邮箱_校时服务器_12月免费
云储存域名注册_基础网站建设_促销
云储存云服务器_网易云企业邮箱登陆入口_便宜