SAP ALV報表導出本地文件報錯:GETWA_NOT_ASSIGNED 解決辦法


SAP 報表導出本地文件時報錯:

報錯文檔如下:

Runtime Errors GETWA_NOT_ASSIGNED
Date and Time 2020-10-15 14:59:42

Short text
Field symbol has not yet been assigned.

發生了什么?
Error in the ABAP Application Program

The current ABAP program "SAPLKKBL" had to be terminated because it has
come across a statement that unfortunately cannot be executed.
Note down which actions and inputs caused the error.

To process the problem further, contact you SAP system
administrator.

Using Transaction ST22 for ABAP Dump Analysis, you can look
at and manage termination messages, and you can also
keep them for a long time.

錯誤分析
You attempted to access an unassigned field symbol
(data segment 136).

This error may occur if
- You address a typed field symbol before it has been set with
ASSIGN
- You address a field symbol that pointed to the line of an
internal table that was deleted
- You address a field symbol that was previously reset using
UNASSIGN or that pointed to a local field that no
longer exists
- You address a global function interface, although the
respective function module is not active - that is, is
not in the list of active calls. The list of active calls
can be taken from this short dump.

經查:有兩個原因

1. ALV顯示超過了99列,不被支持。
2. ALV字段名錯誤,定義輸出ALV的字段名跟內表定義的字段名不一致。(Fieldcat-fieldname 賦值的時候是小寫字母)

我這里的情況是第一種,使用部門導出的是xls格式的Excel文件

 

 然后我用 MHTML 格式導出,發現可以,一百多列也可以導出

問題解決,升級office,導出時選擇 Excel(MHTML格式)即可!可以另存為.xlsx格式!。 

我的Office版本是:MS Office 2016專業版

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM