[置顶] SAP ABAP一个可以直接把内表转换成xml文件的函数

项目中很经常需要把sap的内表内容放入xml文件然后传输给其他系统,因此写了一个函数,可以把内表直接放入xml文件中,比使用CALL  TRANSFORMATION 要方便的多。 REPORT  ZTEST_XML001.

DATABEGIN OF ITAB_MATNR OCCURS 0 ,
  MATNR LIKE MARA-MATNR ,
  MAKTX LIKE MAKT-MAKTX ,
END OF ITAB_MATNR .
DATABEGIN OF WA_CLASS  ,
  CLASS TYPE CHAR10,"部门
  KSCHL TYPE CHAR10,"DESC
END OF WA_CLASS,

ITAB_CLASS LIKE STANDARD TABLE OF WA_CLASS.
DATABEGIN OF WA_1,
  MATNR LIKE MARA-MATNR ,
  MAKTX LIKE MAKT-MAKTX ,
  CLASS1 LIKE ITAB_CLASS,
  CLASS2 LIKE ITAB_CLASS,
END OF WA_1,
IT_1 LIKE STANDARD TABLE OF WA_1,
IT_2 TYPE LVC_T_FCAT .

DATA:  BEGIN OF IT_XML OCCURS 0,
  LINE(100TYPE C,
END OF IT_XML.
DATA: W_XML TYPE STRING,
      W_LEN TYPE I,
      W_FNAME TYPE STRING.


START-OF-SELECTION.

  PERFORM GETDATA.
  PERFORM PRM_FIELDCAT_INIT  USING IT_2[].
  CALL FUNCTION 'ZGET_TAB_XML'
    EXPORTING
      ROOTNAME = 'ROOTNAME'
      ITEMNAME = 'ITEMNAME'
      ENCODING = 'gb2312'
    IMPORTING
      STR_XML  = W_XML
      XML_SIZE = W_LEN
    TABLES
      IN_TAB   = IT_1.

  CALL FUNCTION 'SCMS_STRING_TO_FTEXT'
    EXPORTING
      TEXT      = W_XML
    IMPORTING
      LENGTH    = W_LEN
    TABLES
      FTEXT_TAB = IT_XML.

  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME   = 'c:/xmlcall.xml'
      FILETYPE   = 'BIN'
    IMPORTING
      FILELENGTH = W_LEN
    TABLES
      DATA_TAB   = IT_XML.

*&---------------------------------------------------------------------*
*&      Form  GETDATA
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
FORM GETDATA.
  SELECT MATNR MAKTX FROM MAKT
  INTO TABLE ITAB_MATNR
  UP TO 4 ROWS
  WHERE SPRAS = '1' .
  "演示空数据
  WA_CLASS-CLASS = 'class1'.
  WA_CLASS-KSCHL = 'KSCHL1'.
  APPEND WA_CLASS TO ITAB_CLASS.
  WA_CLASS-CLASS = 'class2'.
  WA_CLASS-KSCHL = 'KSCHL2'.
  APPEND WA_CLASS TO ITAB_CLASS.
  LOOP AT ITAB_MATNR.
    WA_1-MATNR = ITAB_MATNR-MATNR.
    WA_1-MAKTX = ITAB_MATNR-MAKTX.
    WA_1-CLASS1 = ITAB_CLASS.
    WA_1-CLASS2 = ITAB_CLASS.
    APPEND WA_1 TO IT_1.
  ENDLOOP.
ENDFORM.                    "GETDATA
*&---------------------------------------------------------------------*
*&      Form  PRM_FIELDCAT_INIT
*&---------------------------------------------------------------------*
*       text
*----------------------------------------------------------------------*
*      -->IT_ER_FIELDCAT  text
*----------------------------------------------------------------------*
FORM PRM_FIELDCAT_INIT  USING IT_ER_FIELDCAT TYPE LVC_T_FCAT.
  DATA: IT_AFIELDCAT TYPE LVC_S_FCAT,
        POS TYPE I.
  CLEAR POS.
  DEFINE D_GET_FIELD.
    POS = POS + 1.
    CLEAR IT_AFIELDCAT.
    IT_AFIELDCAT-COL_POS  = POS.
    IT_AFIELDCAT-FIELDNAME  = &1.
    IT_AFIELDCAT-COLTEXT = &2.
    IT_AFIELDCAT-OUTPUTLEN  = &3."输出长度
    APPEND IT_AFIELDCAT TO IT_ER_FIELDCAT.
  END-OF-DEFINITION.
  D_GET_FIELD :
  'W_BUDAT'  '记帐日期' 10,
  'W_BLDAT'   '凭证日期' 10,
  'W_CPUDT'   '输入日期' 10,
  'W_CPUTM'   '输入时间' 10,
  'W_USNAM'   '凭证过帐用户帐号' 15,
  'W_CNAME_TEXT'  '凭证过帐用户名' 15,
  'W_PPNAME'   '制证人帐号' 15,
  'W_NAME_TEXT'  '制证人用户名' 15,
  'W_XBLNR'   '附件张数' 10,
  'W_STBLG'   '冲销凭证号' 10.


ENDFORM.    

 

 IT_1生成的xml文件为:

 

<? xml version="1.0" encoding="utf-16" ?>
- < ROOTNAME >
- < ITEMNAME >
  < MATNR > 000000000000000001 </ MATNR >
  < MAKTX > ztest </ MAKTX >
- < CLASS1 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS1 >
- < CLASS2 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS2 >
  </ ITEMNAME >
- < ITEMNAME >
  < MATNR > 000000000000000002 </ MATNR >
  < MAKTX > testfeng </ MAKTX >
- < CLASS1 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS1 >
- < CLASS2 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS2 >
  </ ITEMNAME >
- < ITEMNAME >
  < MATNR > 000000000000000003 </ MATNR >
  < MAKTX > test </ MAKTX >
- < CLASS1 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS1 >
- < CLASS2 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS2 >
  </ ITEMNAME >
- < ITEMNAME >
  < MATNR > 000000000000000012 </ MATNR >
  < MAKTX > q </ MAKTX >
- < CLASS1 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS1 >
- < CLASS2 >
  < CLASS > class1 </ CLASS >
  < KSCHL > KSCHL1 </ KSCHL >
  < CLASS > class2 </ CLASS >
  < KSCHL > KSCHL2 </ KSCHL >
  </ CLASS2 >
  </ ITEMNAME >
  </ ROOTNAME >
 IT_2生成的xml文件为:
  <? xml version="1.0" encoding="utf-16" ?>
- < ROOTNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 1 </ COL_POS >
  < FIELDNAME > W_BUDAT </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 记帐日期 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 2 </ COL_POS >
  < FIELDNAME > W_BLDAT </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 凭证日期 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 3 </ COL_POS >
  < FIELDNAME > W_CPUDT </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 输入日期 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 4 </ COL_POS >
  < FIELDNAME > W_CPUTM </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 输入时间 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 5 </ COL_POS >
  < FIELDNAME > W_USNAM </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000015 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 凭证过帐用户帐号 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 6 </ COL_POS >
  < FIELDNAME > W_CNAME_TEXT </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000015 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 凭证过帐用户名 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 7 </ COL_POS >
  < FIELDNAME > W_PPNAME </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000015 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 制证人帐号 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 8 </ COL_POS >
  < FIELDNAME > W_NAME_TEXT </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000015 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 制证人用户名 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 9 </ COL_POS >
  < FIELDNAME > W_XBLNR </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 附件张数 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNAME >
- < ITEMNAME >
  < ROW_POS > 0 </ ROW_POS >
  < COL_POS > 10 </ COL_POS >
  < FIELDNAME > W_STBLG </ FIELDNAME >
  < TABNAME />
  < CURRENCY />
  < CFIELDNAME />
  < QUANTITY />
  < QFIELDNAME />
  < IFIELDNAME />
  < ROUND > 0 </ ROUND >
  < EXPONENT />
  < KEY />
  < KEY_SEL />
  < ICON />
  < SYMBOL />
  < CHECKBOX />
  < JUST />
  < LZERO />
  < NO_SIGN />
  < NO_ZERO />
  < NO_CONVEXT />
  < EDIT_MASK />
  < EMPHASIZE />
  < FIX_COLUMN />
  < DO_SUM />
  < NO_SUM />
  < NO_OUT />
  < TECH />
  < OUTPUTLEN > 000010 </ OUTPUTLEN >
  < CONVEXIT />
  < SELTEXT />
  < TOOLTIP />
  < ROLLNAME />
  < DATATYPE />
  < INTTYPE />
  < INTLEN > 000000 </ INTLEN >
  < LOWERCASE />
  < REPTEXT />
  < HIER_LEVEL > 0 </ HIER_LEVEL >
  < REPREP />
  < DOMNAME />
  < SP_GROUP />
  < HOTSPOT />
  < DFIELDNAME />
  < COL_ID > 0 </ COL_ID >
  < F4AVAILABL />
  < AUTO_VALUE />
  < CHECKTABLE />
  < VALEXI />
  < WEB_FIELD />
  < HREF_HNDL > 0 </ HREF_HNDL >
  < STYLE > 00000000 </ STYLE >
  < STYLE2 > 00000000 </ STYLE2 >
  < STYLE3 > 00000000 </ STYLE3 >
  < STYLE4 > 00000000 </ STYLE4 >
  < DRDN_HNDL > 0 </ DRDN_HNDL >
  < DRDN_FIELD />
  < NO_MERGING />
  < H_FTYPE />
  < COL_OPT />
  < NO_INIT_CH />
  < DRDN_ALIAS />
  < REF_FIELD />
  < REF_TABLE />
  < TXT_FIELD />
  < ROUNDFIELD />
  < DECIMALS_O />
  < DECMLFIELD />
  < DD_OUTLEN > 000000 </ DD_OUTLEN >
  < DECIMALS > 000000 </ DECIMALS >
  < COLTEXT > 冲销凭证号 </ COLTEXT >
  < SCRTEXT_L />
  < SCRTEXT_M />
  < SCRTEXT_S />
  < COLDDICTXT />
  < SELDDICTXT />
  < TIPDDICTXT />
  < EDIT />
  < TECH_COL > 0 </ TECH_COL >
  < TECH_FORM > 0 </ TECH_FORM >
  < TECH_COMP />
  < HIER_CPOS > 0 </ HIER_CPOS >
  < H_COL_KEY />
  < H_SELECT />
  < DD_ROLL />
  < DRAGDROPID > 0 </ DRAGDROPID >
  < MAC />
  < INDX_FIELD > 0 </ INDX_FIELD >
  < INDX_CFIEL > 0 </ INDX_CFIEL >
  < INDX_QFIEL > 0 </ INDX_QFIEL >
  < INDX_IFIEL > 0 </ INDX_IFIEL >
  < INDX_ROUND > 0 </ INDX_ROUND >
  < INDX_DECML > 0 </ INDX_DECML >
  < GET_STYLE />
  < MARK />
  </ ITEMNA
  </ ROOTNAME >

你可能感兴趣的:(xml,table,SAP,Class,encoding)