To debug a popup, create a text file on your local computer with following code, Place file on your desktop. To debug a popup drag and drop this file over the popup.
Code:
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
Code:
[FUNCTION]
Command=/H
Title=Debugger
Type=SystemCommand
In se80 function group:
data : gv_mat_DESC type string.
# Add one column in layout.:column Name gv_mat_DESC
# In PBO
inside loop add one module .: module get_desc.
module GET_DESC output.
IF zct_stage_prod-BY_PROD is not initial.
select single maktx into gv_mat_DESC
from makt client specified
where mandt = sy-mandt
and matnr = zct_stage_prod-BY_PROD.
ENDIF.
endmodule. " GET_DESC OUTPUT
module zhide_fields output.
data : ls_line like line of tctrl_ztps_rept_hdr-cols.
loop at tctrl_ztps_rept_hdr-cols into ls_line.
case sy-tabix.
when '8'.
ls_line-invisible = 1.
modify tctrl_ztps_rept_hdr-cols from ls_line.
when '9'.
ls_line-invisible = 1.
modify tctrl_ztps_rept_hdr-cols from ls_line.
when '10'.
ls_line-invisible = 1.
modify tctrl_ztps_rept_hdr-cols from ls_line.
endcase.
endloop.
endmodule.
CALL METHOD cl_gui_cfw=>set_new_ok_code
EXPORTING
new_code = 'REFRESH'
Data ref1 type ref to cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = ref1.
call method ref1->check_changed_data.