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 ';'.

  • 相关阅读:
    hdu 1429 胜利大逃亡(续)(BFS+位压缩)
    hdu 2955 Robberies
    POJ—Building a Space Station
    POJ-1287 Networking
    POJ-1251 Jungle Roads
    BFS ZOJ problem-1671 Waking Ant
    POJ-1308 Is It A Tree?
    poj 1611The Suspects
    POJ Wireless Network
    POJ 2524 Ubiquitous Religions
  • 原文地址:https://www.cnblogs.com/zuoting-haoxue/p/12605292.html
Copyright © 2011-2022 走看看