Skip to Content

Layout Not getting saved in View V_LTDX

Hi All,

I have developed a report whose output is ALV grid.

The issue is , I have created one parameter for LAYOUT as P_LAY of type SLIS_VARI.

and written code under event , AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_LAY.

ls_variant-report = sy-repid.

CALL FUNCTION 'REUSE_ALV_VARIANT_F4'

EXPORTING

is_variant = ls_variant

i_save = g_save

IMPORTING

e_exit = gs_exit

es_variant = gs_variant

EXCEPTIONS

not_found = 2.


After execution of above function module , It is giving SY-SUBRC = 2 ( Layout Not Found).


Later i debugged the above function module and I have found out that

While saving layout for this report , It is not saving into table V_LTDX.


Thanks,

Arpita

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Aug 22, 2016 at 01:25 PM

    Check the parameters passed to ALV (FM or class) like structure DISVARIANT (report, handle and log_group fields) and SAVE options (A, X or U)

    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.