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

need help on alv object model

Former Member
0 Likes
1,691

Hi ,

Is it pssbl to pass d internal table not type of d standard table to cl_salv_table=>factory( importing r_salv_table = gr_table

changing t_table = pekpo ).

I'm trying to dispaly feilds from an internal table using objects (alv).. getting an error msg iekpo not type-compatible with formal parameter "t_table".

part of d code...

DATA: BEGIN OF PEKPO OCCURS 0,

ebeln like ekpo-ebeln,

ebelp like ekpo-ebelp,

matnr like ekpo-matnr,

werks like ekpo-werks,

txz01 like ekpo-txz01,

END OF PEKPO.

cl_salv_table=>factory( importing r_salv_table = gr_table

changing t_table = pekpo ).

Hi ,

Is it pssbl to pass d internal table not type of d standard table to cl_salv_table=>factory( importing r_salv_table = gr_table

changing t_table = pekpo ).

I'm trying to dispaly feilds from an internal table using objects (alv).. getting an error msg iekpo not type-compatible with formal parameter "t_table".

part of d code...

DATA: BEGIN OF PEKPO OCCURS 0,

ebeln like ekpo-ebeln,

ebelp like ekpo-ebelp,

matnr like ekpo-matnr,

werks like ekpo-werks,

txz01 like ekpo-txz01,

END OF PEKPO.

cl_salv_table=>factory( importing r_salv_table = gr_table

changing t_table = pekpo ).

3 REPLIES 3
Read only

Former Member
877

Try this:

cl_salv_table=>factory( importing r_salv_table = gr_table

changing t_table = pekpo[] ).

You should avoid defining tables with "occurs". Your parameter is the header-line!

Read only

0 Likes
877

thank U soo much... it did solve my problem... if u could send me some material related to internal table declarations n its purpose i wuld really appreciate it...

thnx..

Read only

Former Member
0 Likes
877

thank U soo much... it did solve my problem... if u could send me some material related to internal table declarations n its purpose i wuld really appreciate it...

thnx..