sap process bar shows

2011-04-01  来源:本站原创  分类:Industry  人气:84 

Progress bar to load the file in some games in particular, are often used to load some large files

Slow loading process, when a reminder to the user otherwise has crashed or process problems that may be directly in the task manager to kill the process, a progress bar can give visual information is now running and running

sap in such a function also provided the following is an example of someone writing to do reference
REPORT zprogressbar.
DO 100 TIMES.
PERFORM show_progressbar USING sy-index.
WAIT UP TO 1 SECONDS.
ENDDO.
MESSAGE 'Finished!' (Fin) TYPE 'S'.
*&------------------------------------------------ ---------------------*
* & Form show_progressbar
*&------------------------------------------------ ---------------------*
* Text
*------------------------------------------------- ---------------------*
* -> PCT text
*------------------------------------------------- ---------------------*
FORM show_progressbar USING upct TYPE i.
DATA: fbar TYPE c LENGTH 13,
fmsg TYPE c LENGTH 70.
CONSTANTS: percent1 TYPE c VALUE '▏',
percent2 TYPE c VALUE '▎',
percent3 TYPE c VALUE '▍',
percent4 TYPE c VALUE '▌',
percent5 TYPE c VALUE '▋',
percent6 TYPE c VALUE '▊',
percent7 TYPE c VALUE '▉',
percent8 TYPE c VALUE '█'.
DATA: fmod TYPE n,
ftim TYPE i,
ffield TYPE c LENGTH 10,
fidx TYPE c LENGTH 3.
FIELD-SYMBOLS: <fs> TYPE c.
ftim = upct DIV 8.
fmod = upct MOD 8.
CLEAR: fbar.
DO ftim TIMES.
CONCATENATE fbar percent8 INTO fbar.
ENDDO.
IF fmod NE 0.
CONCATENATE 'percent' fmod INTO ffield.
ASSIGN (ffield) TO <fs>.
CONCATENATE fbar <fs> INTO fbar.
ENDIF.
fidx = sy-index.
CONCATENATE fbar fidx '%' INTO fmsg.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = upct
text = fmsg.
.
ENDFORM. "Show_progressbar

http://blog.sina.com.cn/s/blog_701594f40100l8wq.html

相关文章
  • sap process bar shows 2011-04-01

    Progress bar to load the file in some games in particular, are often used to load some large files Slow loading process, when a reminder to the user otherwise has crashed or process problems that may be directly in the task manager to kill the proces

  • sap process bar displays 2011-04-01

    Progress bar load the file in some games in particular, often used in a number of large files to be loaded Slow loading process, when the user is also a reminder that the crash was not the case or the program may be a problem in the Task Manager to k

  • Jsp | Ajax + fileupload + json + servlet by many file upload progress bar shows 2009-04-02

    Sales: Jsp | Ajax + fileupload + json + servlet by many file upload progress bar shows demo video and screenshots download 7.55M: Download 1: mail.qq.com / cgi-bin / ftnExs_download Download 2 (javaEye): http://celerity.javaeye.com/topics/download/d1

  • Set features a new browser window - in the status bar shows the time 2010-08-20

    The new feature set to open window <html> <head> <title> set features a new browser window </ title> <meta http-equiv="content-type" content="text/html;charset=gb2312"> </ Head> <body> <! -

  • VC++进度条process Bar的用法实例 2014-01-31

    这篇文章主要介绍了VC++进度条process Bar的用法,是进行VC++应用程序开发中非常常见的实用技巧,需要的朋友可以参考下 本文实例讲述了VC进度条的用法实例,分享给大家供大家参考.具体实现代码如下: #include <Windows.h> #include "resource.h" #include <Commctrl.h> //对话框函数 INT_PTR CALLBACK DialogProc( __in HWND hwndDlg, __in UI

  • Collection of java applications 4: Save large object Upload progress bar shows 2010-07-20

    Using fileupload upload documents, and save blob field, show progress in the process of uploading. <form name="uploadform" method="POST" action="upload.action" ENCTYPE="multipart/form-data" target="hidden&qu

  • Progress bar shows Ajax_ 2009-08-04

    JSP part: <% @ Page language = "java" import = "java.util .*" pageEncoding = "gbk"%> <! DOCTYPE HTML PUBLIC "- / / W3C / / DTD HTML 4.01 Transitional / / EN"> <html> <head> <title> My J

  • Share ProgressMonitorInputStream of usage - the progress bar shows 2010-03-29

    Summary ProgressMonitorInputStream the usage is as follows: import java.io.FileInputStream; import javax.swing.ProgressMonitor; import javax.swing.ProgressMonitorInputStream; public class ProgressMonitorTest ( public static void main (String args [])

  • Small map location bar shows the player 2010-06-22

    This method has many limitations, but does it apply to many, many places need him, such as cross-board clearance games, a small map is bar box, the player's position according to the player's position in a large proportion of the map to show the smal

  • C # WebClient upload and download progress bar shows the time, looking for a long time to find the Oh! 2010-07-23

    2, code: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Net; namespace WebClientUpload ( public partial class Form3: Fo

  • shortcut icon icon in the address bar shows personality 2010-09-26

    Shortcut Icon is the website address in front of the small icon that appears. Want to make your site show personality icon, first need to create a icon in the icon (or, to use PS to do their own production line, the specific site, see appendix), Seco

  • PHP + JavaScript dynamic progress bar shows the server is running (to) 2010-12-24

    I have a PHP program, you need to call XMLRPC 500 times per cycle, running more than 20 minutes. When the application is running, the client is only a blank page, the browser's status has been a load. As a user, the wait is long, will complain more.

  • struts2 + jquery.uploadify file upload progress bar shows 2010-07-29

    package com.app.xizhenyin.webapp.action; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.io.InputStream; import java.io.OutputS

  • AJAX and Servlet files progress bar shows 2010-07-31

    1: weblogic8.1 Next, commons-fileupload-1.2.jar and commons-io-1.1.jar reported the following exception. java.lang.NoSuchMethodError: parseRequest at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest (Ljavax.servlet.http.HttpServle

  • Flex Player (for playing. Buffer curves show the progress bar and audio) 2010-07-14

    mx: ProgressBar buffer progress bar to achieve load songs ProgressBar mode has three modes, namely event, manual, polled, event-based event-driven mode, set the source object can be automatically loaded process; manual to manual mode, you need to cal

  • Implementation of a progress bar 2010-10-28

    Create a new class MyProcessBar internal class MyProcessBar { private frmProcessBar myProcessBar = null;// Progress bar form event private delegate bool IncreaseHandle(int nValue);// Declare a delegate private IncreaseHandle myIncrease = null;// Defi

  • Android Round Set progress bar colors 2011-01-10

    In recent days the need of the project a bit listView data dynamically update the sliding display, which requires the data loading process in a circular progress bar shows the problems encountered is the progress bar's color settings, some in the onl

  • Software Development Process (CMMI / RUP / XP / MSF) are with non-? 2009-05-05

    Often see and hear everyone in the process of argument Agile, RUP and CMM software development process which better or what the process well, have their own reasons, the controversy was in fact ...... joy, there is no perfect process, there is no bet

  • Java application to change the default icon title bar 2010-06-19

    Java application title bar to change the default icon Now offers two methods: Method 1: If you used the Toolkit (java.awt.Toolkit) class, which is a very simple thing: Toolkit tk = Toolkit.getDefaultToolkit () Image image = tk.createImage ("image.gif

  • jBPM flex Process status display 2010-08-03

    Recently made a simple flex version of the jBPM process state shows the results map below Selling point to bring money to help some people, this program can be extended are extremely strong, I Ziji You opportunities will Shengji, introduced in many N