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

How to add variant to alv grid?

Hi,

I am trying to add variant to alv grid -

DATA : i_variant TYPE disvariant.

i_variant-report = sy-repid.

CALL METHOD grid_alv->set_table_for_first_display

EXPORTING

is_layout = gs_layout

is_variant = i_variant

i_save = 'A'

CHANGING

it_fieldcatalog = i_gt_fieldcat[]

it_outtab = it_alvfinal[]

it_sort = gt_sort[].

This is not letting me add variant to the alv grid. Please guide - what I am missing?

Thanks,

Sheel

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:50 PM

    Hi,

    it should work fine..what is the error you are getting..

    I am able to save the layout and change the layout..

    Thanks

    Naren

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 23, 2008 at 10:54 PM

    Hi,

    try setting i_default = space.

    Regards,

    Subramanian

    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.