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: 

REUSE_ALV_GRID_DISPLAY_LVC layout not displaying

RachamallaKiran
Participant
0 Kudos

i have calling  REUSE_ALV_GRID_DISPLAY_LVC in my program
it is working properly in one system

when that is transported into other system(higher Version) now it is getting the popup but not displaying the layout as shown in the below image

no layout i can see though i can see everything passing correctly in debugger i mean layout and fcat

may i know the reason

5 REPLIES 5

former_member183607
Contributor
0 Kudos

Hi,

    May be REUSE_ALV_GRID_Display_LVC not Released.

      Instead Use REUSE_ALV_GRID_Display.

Regards:

Soumendra

Former Member
0 Kudos

Hi Kiran,

Can you provide your code snippet for better understanding??

Thanks & Regards

Richa

0 Kudos

DATA: gt_actmp_lang          TYPEZt_b0lang.

DATA :lt_fcat   TYPE lvc_t_fcat,

        ls_layout TYPE lvc_s_layo.

   FIELD-SYMBOLS:<lwa_fcat> TYPE lvc_s_fcat.

   CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'

     EXPORTING

       i_structure_name       = 'ZS_B0LANG'

     CHANGING

       ct_fieldcat            = lt_fcat

     EXCEPTIONS

       inconsistent_interface = 1

       program_error          = 2

       OTHERS                 = 3.

   LOOP AT lt_fcat ASSIGNING <lwa_fcat>.

     IF <lwa_fcat>-fieldname EQ 'VIM_MARKED'.

       <lwa_fcat>-checkbox = <lwa_fcat>-hotspot = abap_true.

       <lwa_fcat>-col_pos = 1.

       <lwa_fcat>-edit = abap_true.

       <lwa_fcat>-coltext = text-051.

       <lwa_fcat>-outputlen = 15.

*      IF <gv_document_mode> EQ /vta/if_bcon=>mc_mode-display.

*        <lwa_fcat>-no_out  = abap_true.

*      ENDIF.

     ENDIF.

     IF <lwa_fcat>-fieldname EQ 'SPRAS'.

       <lwa_fcat>-outputlen = 15.

       <lwa_fcat>-col_pos = 2.

       <lwa_fcat>-hotspot = abap_true.

     ENDIF.

     IF <lwa_fcat>-fieldname EQ 'LANGU'.

       <lwa_fcat>-col_pos = 3.

       <lwa_fcat>-reptext = text-052."Description

     ENDIF.

   ENDLOOP.

APPEND INITIAL LINE TO gt_actmp_lang ASSIGNING FIELD-SYMBOL(<lwa_lang>).

<lwa_lang>-LANGU = 'enhds'.

<lwa_lang>-SPRAS = sy-langu.

   ls_layout-smalltitle = abap_true.

   ls_layout-no_rowmark = abap_true.

   CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY_LVC'

     EXPORTING

       i_bypassing_buffer       = abap_true

       i_callback_program       = 'Z10102_TEST1'

*      i_callback_pf_status_set = 'SET_STATUS_LANG'

       i_callback_user_command  = 'LANG_USER_COMMAND'

       i_grid_title             = text-001

       is_layout_lvc            = ls_layout

       it_fieldcat_lvc          = lt_fcat

       i_screen_start_column    = 5

       i_screen_start_line      = 5

       i_screen_end_column      = 60

       i_screen_end_line        = 15

     TABLES

       t_outtab                 = gt_actmp_lang

     EXCEPTIONS

       program_error            = 1

       OTHERS                   = 2.

   IF sy-subrc <> 0 .

   ENDIF.

   form SET_STATUS_LANG.

     SET PF-STATUS 'S130'.

   ENDFORM.

FORM lang_user_command USING lv_ucomm     TYPE sy-ucomm

                              ls_selfield  TYPE slis_selfield.

   DATA : lv_tabix        TYPE sy-tabix,

          lv_answer.

     SET SCREEN 0.

     LEAVE SCREEN.

ENDFORM.                    "lang_user_command




and the structure


SPRAS1 TypesSPRAS
LANGU1 TypesSPTXT
VIM_MARKED1 Typeschar








Former Member
0 Kudos

Did you ever resolve this problem? I'm having the same issue. Thanks.

0 Kudos

Hai Johann,

     No i haven't found solution to that , i created a popup and went on general grid logic leaving the sap function module.

Regards,

kiran rachamalla.