Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

statement not highlighted new ABAP editor

former_member202077
Participant
0 Likes
629

Hello,

I have 3 statements in new ABAP editor

  FIELD-SYMBOLS: <fs_xvbap> TYPE vbapvb.

  FIELD-SYMBOLS: <fs_xvbap> TYPE ANY TABLE.

  FIELD-SYMBOLS: <fs_xvbap> TYPE STANDARD TABLE of vbapvb.

Pls. let me know Why am not getting eclipse blue color on the 3rd/last statement on our SAP ECC 6.0 720 GUI as shown above?

Thank you

1 ACCEPTED SOLUTION
Read only

amy_king
Active Contributor
0 Likes
528

Hi,

If you use the ABAP Editor's check tool (Ctrl+F2) to check your syntax, it will indicate two problems:

  1. You have assigned all three field symbols the same name.
  2. The compiler won't accept TYPE STANDARD TABLE OF struc.
    • Use instead one of the following:
      • FIELD-SYMBOLS <fs> TYPE table_type.
      • FIELD-SYMBOLS <fs> TYPE STANDARD TABLE.

Cheers,

Amy

Hello,

I have 3 statements in new ABAP editor

  FIELD-SYMBOLS: <fs_xvbap> TYPE vbapvb.

  FIELD-SYMBOLS: <fs_xvbap> TYPE ANY TABLE.

  FIELD-SYMBOLS: <fs_xvbap> TYPE STANDARD TABLE of vbapvb.

Pls. let me know Why am not getting eclipse blue color on the 3rd/last statement on our SAP ECC 6.0 720 GUI as shown above?

Thank you

2 REPLIES 2
Read only

amy_king
Active Contributor
0 Likes
529

Hi,

If you use the ABAP Editor's check tool (Ctrl+F2) to check your syntax, it will indicate two problems:

  1. You have assigned all three field symbols the same name.
  2. The compiler won't accept TYPE STANDARD TABLE OF struc.
    • Use instead one of the following:
      • FIELD-SYMBOLS <fs> TYPE table_type.
      • FIELD-SYMBOLS <fs> TYPE STANDARD TABLE.

Cheers,

Amy

Read only

0 Likes
528

Thank you Amy.

1) Actually, just for example i gave these 3 statements, Sorry for confusion, actually, in my prog. i gave 3 different names for the 3 differnt FSs

2) Not sure, why am not getting syntax error on the 3rd statement bcz i put it on z_my_test_report and did CNTRL+F2 then no syntax error! hence i confused/posted question

Sure, i will follow your suggestion of

  • FIELD-SYMBOLS <fs> TYPE STANDARD TABLE.