Skip to Content
author's profile photo Former Member
Former Member

need help on alv object model

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 ).

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 09:14 AM

    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!

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 30, 2007 at 09:24 AM

    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..

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.