ABAP:parameters的用法


parameters

1、基礎用法
parameters:p0(20) type c.
2、使用DEFAULT后綴為參數指定缺省值。
parameters:p1(20) type c default 'msj'.
3、使用obligatory后綴來標識參數為必輸項。指定了該參數后在輸入框會有必輸項的圖標出現, 必須輸入數據后才可繼續運行。
parameters:p2(20) type c obligatory.
4、使用lower case 后綴去掉大寫轉換
parameters:p3(20) type c lower case.
5、使用as checkbox后綴使參數以復選框的形式出現。使用復選框的參數一定為長度為1的字符串,其內容只能為’X’或‘’。
parameters:p4 as checkbox .
parameters:p5 as checkbox default 'X'.
6、使用radiobutton group g后綴使輸入參數以單選框的形式出現。使用單選框的參數一定為長度為1的字符串,其內容只能為’X’或‘’。
parameters:p6 radiobutton group 1.
parameters:p7 radiobutton group 1.
parameters:p8 radiobutton group 2.
parameters:p9 radiobutton group 2 default 'X'.
運行截圖:
 
7、為輸入參數指定標簽
8、分塊語句把參數分別划為各個塊里以使顯示條理化。
分塊語句的格式為:
selection-screen begin of block 塊名 with frame title [text-(titlename)]  ……  “參數
selection-screen end of block 塊名.
 

selection-screen begin of block block0 with frame title text-000.  

parameters:p10 radiobutton group 3 .  

parameters:p11 radiobutton group 3 .

selection-screen end of block block0.

 

selection-screen begin of block block1 with frame.  

parameters:p12 radiobutton group 4.  

parameters:p13 radiobutton group 4.

selection-screen end of block block1.

 


 

 


免責聲明!

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



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