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: 

Layout Not getting saved in View V_LTDX

arpita_churi3
Active Participant
0 Kudos

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

1 REPLY 1

raymond_giuseppi
Active Contributor
0 Kudos

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)