Application Development 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: 

problem in alv grid

Former Member
0 Kudos

Dear abapes,

I have some problem in alv grid.

I am posting my code.

DATA: BEGIN OF ITAB,

CARRID LIKE SFLIGHT-CARRID,

CONNID LIKE SFLIGHT-CONNID,

FLDATE LIKE SFLIGHT-FLDATE,

END OF ITAB.

DATA: ALV_ITAB TYPE TABLE OF ITAB,

WA_ALV_ITAB LIKE LINE OF ALV_ITAB.

SELECT * INTO CORRESPONDING FIELDS OF TABLE ALV_ITAB FROM SFLIGHT.

while selecting no datas are being fetched rather it is showing 2 columns one are showing.

one is keypart and other one is funpart.

Kindly tell me the reason.

Thanks

Ansuman

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Try this :

TYPES: BEGIN OF itab,

carrid LIKE sflight-carrid,

connid LIKE sflight-connid,

fldate LIKE sflight-fldate,

END OF itab.

DATA: alv_itab TYPE STANDARD TABLE OF itab,

wa_alv_itab LIKE LINE OF alv_itab.

SELECT * INTO CORRESPONDING FIELDS OF TABLE alv_itab FROM sflight.

Reward if helpful.

Regards,

Avishek.

1 REPLY 1

Former Member
0 Kudos

Hi,

Try this :

TYPES: BEGIN OF itab,

carrid LIKE sflight-carrid,

connid LIKE sflight-connid,

fldate LIKE sflight-fldate,

END OF itab.

DATA: alv_itab TYPE STANDARD TABLE OF itab,

wa_alv_itab LIKE LINE OF alv_itab.

SELECT * INTO CORRESPONDING FIELDS OF TABLE alv_itab FROM sflight.

Reward if helpful.

Regards,

Avishek.