本來程式這樣寫~在OPEN_FORM後才接著定義SCRIPT要用的ITAB或相關變數
call function 'OPEN_FORM'
exporting
form = 'ZSCRIPT01'
language = sy-langu
device = 'PRINTER'
exceptions
canceled = 1
device = 2
DATA: z900 LIKE sp_konv OCCURS 0 WITH HEADER LINE.
*================================================
LOOP AT Z900.
CALL FUNCTION 'WRITE_FORM'
EXPORTING
WINDOW = 'MAIN'
element = 'ITEM_LINE_Z900'.
ENDLOOP.
*====================================================
結果報表怎輸出那個ITAB或變數都是空白的....................
後來測的半天
我把
DATA: z900 LIKE sp_konv OCCURS 0 WITH HEADER LINE.
往前移到
call function 'OPEN_FORM'
之前
就能正常輸出資料的
- Jul 21 Tue 2009 11:19
SAP的ABAP的SCRIPT報表變數或ITAB輸出都是空白的問題
全站熱搜
留言列表
發表留言