01-21-2015 5:46 AM
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
01-21-2015 7:12 AM
Hi,
May be REUSE_ALV_GRID_Display_LVC not Released.
Instead Use REUSE_ALV_GRID_Display.
Regards:
Soumendra
01-21-2015 7:13 AM
Hi Kiran,
Can you provide your code snippet for better understanding??
Thanks & Regards
Richa
01-22-2015 4:13 AM
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
SPRAS | 1 Types | SPRAS |
LANGU | 1 Types | SPTXT |
VIM_MARKED | 1 Types | char |
06-17-2016 5:17 PM
Did you ever resolve this problem? I'm having the same issue. Thanks.
06-18-2016 12:26 PM
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.