ABAP选择屏幕问题。 ABAP编辑器

时间:2015-12-27 13:57:27

标签: abap

以下ABAP代码块出了什么问题? 编译程序确实会导致错误,但不会显示任何详细信息。 请建议更改代码,以便它可以正常工作

REPORT  ZSELECTIONSCREENCOMMENTS.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TIT1.
SELECTION-SCREEN BEGIN OF LINE.
SELECTION-SCREEN POSITION 20.
PARAMETERS: P_MATNR LIKE MARA-MATNR, P_ERSDA LIKE MARA-ERSDA, P_ERNAM LIKE MARA-ERNAM.
SELECTION-SCREEN COMMENT 1(12) COM1 FOR FIELD P_MATNR.
SELECTION-SCREEN COMMENT 1(12) COM2 FOR FIELD P_ERSDA.
SELECTION-SCREEN COMMENT 1(12) COM3 FOR FIELD P_ERNAM.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK B1.
LOAD-OF-PROGRAM.
TIT1 = 'Selection-Criteria'.
COM1 = 'Material No'.
COM2 = 'ERSDA'.
COM3 = 'ERNAM'.

1 个答案:

答案 0 :(得分:1)

您正尝试在一行(BEGIN OF LINE ... END OF LINE块中)的同一位置放置多个注释,并且您要在不指定位置的情况下向该单行添加多个参数。< / p>