SAP TableControl 控制单个单元格输入
生活随笔
收集整理的這篇文章主要介紹了
SAP TableControl 控制单个单元格输入
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
*&SPWIZARD:?OUTPUT?MODULE?FOR?TC?'ZCONTROL'.?DO?NOT?CHANGE?THIS?LINE!
*&SPWIZARD:?GET?LINES?OF?TABLECONTROL
MODULE? ZCONTROL_GET_LINES? OUTPUT ."ZCONTROL為table?control名稱
??G_ZCONTROL_LINES? =? SY - LOOPC .
?? DATA : L_LINE? TYPE? I .
??L_LINE? =? ZCONTROL - CURRENT_LINE .
??L_LINE? =? L_LINE? MOD? 2 .
?? LOOP? AT? SCREEN .
???? CHECK? SCREEN - NAME? EQ? 'MARA-ERSDA' ."MARA-ERSDA為對應屏幕字段
???? CASE? L_LINE .
?????? WHEN? 0 .
???????? SCREEN - INPUT? =? 1 .
???? ENDCASE .
???? MODIFY? SCREEN .
?? ENDLOOP .
ENDMODULE .???????????????????? "ZCONTROL_GET_LINES?OUTPUT
*&SPWIZARD:?GET?LINES?OF?TABLECONTROL
MODULE? ZCONTROL_GET_LINES? OUTPUT ."ZCONTROL為table?control名稱
??G_ZCONTROL_LINES? =? SY - LOOPC .
?? DATA : L_LINE? TYPE? I .
??L_LINE? =? ZCONTROL - CURRENT_LINE .
??L_LINE? =? L_LINE? MOD? 2 .
?? LOOP? AT? SCREEN .
???? CHECK? SCREEN - NAME? EQ? 'MARA-ERSDA' ."MARA-ERSDA為對應屏幕字段
???? CASE? L_LINE .
?????? WHEN? 0 .
???????? SCREEN - INPUT? =? 1 .
???? ENDCASE .
???? MODIFY? SCREEN .
?? ENDLOOP .
ENDMODULE .???????????????????? "ZCONTROL_GET_LINES?OUTPUT
總結
以上是生活随笔為你收集整理的SAP TableControl 控制单个单元格输入的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: SAP - 银企直联
- 下一篇: sap 提取字符串中汉字