当前位置: 首页 > news >正文

免费开源的网站系统搜易网提供的技术服务

免费开源的网站系统,搜易网提供的技术服务,网站建设合同.doc,自建站工具有时候需要查找某个具体的内容,在哪个文件内。数据量大的时候可以利用程序查找 选择界面: 路径,和文件名都可以模糊搜查 search string:你要查找的信息。 代码参考如下: report z00R010 NO STANDARD PAGE HEADING…

有时候需要查找某个具体的内容,在哪个文件内。数据量大的时候可以利用程序查找

选择界面:

路径,和文件名都可以模糊搜查

search string:你要查找的信息。

代码参考如下:

report  z00R010 NO STANDARD PAGE HEADING MESSAGE-ID zzLINE-COUNT 65 LINE-SIZE 255.*-----------------------------------------------------------------------
* Tables
*-----------------------------------------------------------------------
tables: z00files.*-----------------------------------------------------------------------
* Selection Screen
*-----------------------------------------------------------------------
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001 .PArameters: p_Dir  type z00files-zto_dir default '/SAPINTER/AG'.
parameters: p_File type z00files-zto_name obligatory.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002 .
parameters: p_text(50) type c obligatory.
SELECTION-SCREEN END OF BLOCK b2.
*Write no text - only file name
parameters: p_ntxt radiobutton group rb1.
*Write First text
parameters: p_ftxt radiobutton group rb1.
*WRite All text
parameters: p_atxt radiobutton group rb1.DATA: gv_infile(200)   TYPE c,gv_lines        type i,gv_split        type c value '/',gv_commndl(500).*internal table for storing filenames to be processed.
data: begin of i_filetab occurs 10,name(500),date(8),time(8),end of i_filetab.data: begin of i_comtab occurs 10,name(500),date(8),time(8),end of i_comtab.data: ipath(100) occurs 0.constants:  gc_x value 'X',gc_R value 'R',gc_Y value 'Y',gc_N value 'N'.*-----------------------------------------------------------------------
* Initialization
*-----------------------------------------------------------------------
initialization.
*------------include z01init.
*-----------------------------------------------------------------------
* Start of selection
*-----------------------------------------------------------------------
at SELECTION-SCREEN.if p_file co '* '.message e001 with 'Enter full or partial file name'.endif.start-of-selection.
*----------------WRite: / 'Search Directory:', p_Dir.WRite: / 'Search File Name:', p_file.write: / 'Search Text     :', p_Text.if p_nTxt = gc_X.write: / 'Do not display any results - only file names'.elseif p_Ftxt = gc_X.write: / 'Display only first result found'.else.write: / 'Display all results'.endif.*Explore path nameperform open_files.*Check if any founddescribe table i_filetab lines gv_lines.write: / 'Files to check  :', gv_lines.*Process files and search for given textif gv_lines > 0.perform process_files.endif.*&---------------------------------------------------------------------*
*&      Form  open_files
*&---------------------------------------------------------------------*
form open_files.data: lv_fil(50).*find files from given directoryrefresh i_filetab.clear i_filetab.concatenate '\' p_file  into lv_fil.concatenate 'find' p_Dir '-name' lv_fil '-printf''''%TY%Tm%Td\t%p\n'''into gv_commndl separated by space.*  write :/ gv_commndl.call 'SYSTEM' id 'COMMAND' field gv_commndlid 'TAB'     field i_filetab-*sys*.endform.                    " open_files
*&---------------------------------------------------------------------*
*&      Form  process-files
*&---------------------------------------------------------------------*
form process_files.data: lv_len type i.data: lv_restname(500) type c.data: lv_name(100) type c.*End of File indicatordata: lv_eof     type c.data: lv_open    type c.data: lv_Count   type i.data: lv_found   type c.data: lv_pos     type i.data: lv_msg(50) type c.DATA: istring TYPE string.*==================*
*EXPLORE SUBFOLDERS
*==================*
*only consider exact path (ignore main folder)lv_len = strlen( p_dir ) + 1.loop at i_filetab.*No spaces allowed in input file path
*    lv_len = strlen( gv_infile ).lv_len = strlen( i_filetab-name ).i_filetab-date = i_filetab-name(8).gv_infile      = i_filetab-name+9(lv_len).lv_len = strlen( gv_infile ).if gv_infile(lv_len) ca ' '.lv_msg = 'infile contains spaces'(013).write: / lv_msg, gv_infile.message s001 with lv_msg  gv_infile.continue.endif.*======================*
*CHECK STATUS OF INFILE  -
*======================*lv_Eof     = gc_N.lv_Found   = gc_N.open dataset gv_infile for input in text modeencoding default with smart linefeed ignoring conversion errors.if sy-subrc = 0.
*SEarch for text in the file and list if founddo.read dataset gv_infile into istring.if sy-subrc > 0.exit.endif.if istring cs p_text.
*LIst file name firs timeif lv_Found = gc_n.
*underline for text to followif not p_nTxt = gc_X.uline.endif.lv_Found = gc_Y.add 1 to lv_count.write: / 'File Date=', i_filetab-date, 'Name=', gv_Infile.endif.if not p_ntxt = gc_X.write: / istring.endif.*EXit after first record foundif p_ftxt = gc_x.lv_Eof = gc_Y.exit.endif.endif.enddo.close dataset gv_infile.endif.endloop.uline.write: / 'Results found in ', lv_count, 'Files'.uline.endform.                    " process-files

table:

Z00FILES
FieldData elementData typelengthdecimaldescription
MANDTMANDTCLNT30Client
WERKSWERKS_DCHAR40Plant
ZFILE CHAR400File description
ZFROM_DIRZ00_DIRECTORYCHAR1000Directory Path
ZTO_DIRZ00_DIRECTORYCHAR1000Directory Path
ZFROM_NAME CHAR500From File name
ZTO_NAME CHAR500To File name
ZDIRECTIONZ00_DIRECTIONCHAR10Interface Direction
ZEXPLORE CHAR10Include subfolders
ZTIMESTAMP CHAR10Timestamp new file
ZAPPEND CHAR10Append to existing file
ZREPLACE CHAR10Replace existing file
ZSKIP CHAR10Skip if duplicate found
ZOWNER CHAR120Notify owner if problems
ZSTART CHAR10Start program immediately
ZJOBGRPBTCJOBGRPCHAR120Summary of jobs for a group
ZJOBBTCJOBCHAR320Background Job Name
ZPROGBTCREPCHAR400Name of internal report for batch job
ZVARBTCVARIANTCHAR140Name of variant within a step
ZFILE_PAR CHAR80Input file parm in Variant
ZBATCH CHAR120Batch User
ZINACTIVE CHAR10Set as inactive
ZEOF CHAR100End of File indicator
ZSAPRETZ00_SAPRETNUMC40SAPINTER Retention Period
ZARCHZ00_ARCH_INDCHAR10Archive Indicator
ZARCHRETZ00_ARCHRETNUMC20Archive Retention Period

http://www.zhongyajixie.com/news/3904.html

相关文章:

  • 兰州城关区建设局网站网站是怎么做出来的
  • 杭州百度快照优化排名中小企业网站优化
  • wordpress主题汉化实战免费智能seo收录工具
  • 营销型网站建设模板php搭建一个简单的网站
  • 网站建设部门seo优化网络公司
  • seo网站推广网站外链怎么发布
  • 门户网站建设流程如何让百度能查到自己
  • 做网站要用框架吗产品推广怎么做
  • 网站建设中的多语言翻译如何实现网络营销组合策略
  • 家居公司网站建设方案ppt电脑课程培训零基础
  • 以域名做网站关键词建站平台在线提交功能
  • 建网站logo怎么做广告平台网站有哪些
  • 网站建设的后期维护问题郑州网站建设哪里好
  • 甜品网站建设策划书怎么制作网页教程
  • 专教做美食的网站5000人朋友圈推广多少钱
  • 17做网店这个网站做起多少钱独立站
  • 重庆中色十二冶金建设有限公司网站企业品牌推广网站
  • 30天网站建设 视频教程网络营销的特点
  • 做自己移动端网站体验式营销经典案例
  • 做家教去哪个网站高明搜索seo
  • 网站如何做才能被360收录怎么seo关键词优化排名
  • 利用建站系统wordpress建设网站seo优化需要多少钱
  • 网站扩展虚拟空间谈谈自己对市场营销的理解
  • 佛山美容网站建设广告公司推广软文
  • 专业网站建设商城价格怎样注册网站
  • 网站模板可以自己做在线seo外链工具
  • p9制作公司沧州网站seo
  • 网站开发公司企业官网快速网站排名提升
  • typecho前端建站工具网络营销的成功案例有哪些
  • 上海外贸营销网站建设地址网页搜索引擎大全