zoukankan      html  css  js  c++  java
  • ',' 导致excel 分列显示

    当excel 附件的某一列内容有‘,’ 时,会导致文件一列分成多列。此时,可处理将',' 替换成 ‘;’

    DATA:BEGIN OF string OCCURS 0,
       str(2TYPE c,
      END OF string.
    DATA:str1 TYPE string.

          SELECT SINGLE * FROM 【table】 WHERE keyno = itab2-field.
          SPLIT table-field AT ',' INTO TABLE string.            "table-field 内容有‘,’
          LOOP AT string.
            CONCATENATE str1 string-str INTO str1 SEPARATED BY ','.
          ENDLOOP.
          itab1-waf_id = str1.
          SHIFT itab1-waf_id LEFT DELETING LEADING ','.
          CLEAR str1.
          REPLACE all OCCURRENCES OF ',' in itab1-waf_id with ';'.

  • 相关阅读:
    爬虫学习笔记(二)http请求详解
    学习自动化的正确姿势
    binascii模块
    python一些内置函数及方法
    C小点,随便记记
    C:<conio.h>
    C,动态数组
    php intval()函数漏洞,is_numeric() 漏洞,绕过回文判断
    Mp3stego使用,附题,实验吧misc-Canon
    原生js实现Ajax
  • 原文地址:https://www.cnblogs.com/zuoting-haoxue/p/12605292.html
Copyright © 2011-2022 走看看