08-22-2016 12:01 PM
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
08-22-2016 2: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)