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

syntax error

Former Member
0 Likes
637

Hi all,

DATA : BEGIN OF is_result,

bname TYPE usr02-bname,

name_textc TYPE user_addr-name_textc,

agr_name TYPE agr_users-agr_name,

END OF is_result.

data : itab_result like standard table of is_result with default key.

data : wa_result like line of itab_result.

SELECT-OPTIONS : s_user FOR itab_result-bname MATCHCODE OBJECT user_comp.

with this code i am getting a syntax error as "ITAB_RESULT is a table without a header line and therefore no component called BNAME".

I dont want to declare any thing using header line , can any please let me know how to define..

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
594

declare your select option from wa_result as follows ...

SELECT-OPTIONS : s_user FOR wa_result-bname MATCHCODE OBJECT user_comp.

3 REPLIES 3
Read only

Former Member
0 Likes
595

declare your select option from wa_result as follows ...

SELECT-OPTIONS : s_user FOR wa_result-bname MATCHCODE OBJECT user_comp.

Read only

Former Member
0 Likes
594

HI

Create Work area using statment

Tables:usr02

then replace select-options with below statment

SELECT-OPTIONS : s_user FOR usr02-bname MATCHCODE OBJECT user_comp.

Regards,

Janakiram.

Read only

Former Member
0 Likes
594

solved thanks a lot.