Hello All,
I am facing an issue with an ALV list.
We actually have an existing program that makes use of an ALV list to display some set of fields.
We use the following FM,
-
' CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = 'ZWOXA013'
i_callback_pf_status_set = 'PF-STATUS'
i_callback_user_command = 'USER_COMMAND_ALV'
is_layout = gs_layout
it_fieldcat = gt_fieldcat
it_sort = it_sort
it_events = gt_events
TABLES
t_outtab = sum_itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
'
where the gt_fieldcat is as below,
DEFINE catalog.
pos = pos + 1.
clear ls_fieldcat.
ls_fieldcat-col_pos = pos.
ls_fieldcat-key = &1.
ls_fieldcat-fieldname = &2.
ls_fieldcat-ref_tabname = &3.
ls_fieldcat-ref_fieldname = &4.
ls_fieldcat-reptext_ddic = &5.
ls_fieldcat-do_sum = &6.
ls_fieldcat-qfieldname = &7.
ls_fieldcat-no_out = &8.
ls_fieldcat-emphasize = &9.
append ls_fieldcat to rt_fieldcat.
END-OF-DEFINITION.
catalog:
'X' 'VBELN' '' '' 'Delivery' '' '' '' '',
'' 'KUNNR' '' '' 'Cust Code' '' '' 'X' '',
'' 'NAME_WE' '' '' 'Ship-to-Party' '' '' '' '',
'' 'CARTONS' '' '' 'Cartons' 'X' '' '' '',
'' 'ITEMS' '' '' 'Items' 'X' '' '' '',
'' 'QTY' '' '' 'Total Qty' 'X' '' '' '',
'' 'AMOUNT' '' '' 'Amount' 'X' '' '' '',
'' 'SHIP_MODE' '' '' 'S/M' '' '' '' ''.
-
here in this program when we run it the list is displayed and in list if we doble click on
the first field 'VBELN',it navigates to the other alv display which has another set of fields.
NOw the problem is when i am trying to copy this program in a new one
i just add one more field in the first alv list display as follows,
'' 'LFDAT' '' '' 'Del. date' '' '' '' ''.
When i try to run the new program and try to double click on the 'VBELN' field,it does not navigate to the
another alv display as the original program.
When i debugged the original program i see that on duoble click of the 'VBELN' the program navigates to the
at user-command of the program 'SAPLKKBL' ->INCLUDE LKKBLF00 '.
where as my new program do not navigate to the at user-command of the 'SAPLKKBL' program.
Please note that the old program and the new program are exactly same in terms of code
except the extra field in the first alv 'LFDAT' in the field catelog.
I am unable to figure out why the program behaves in this manner.
Is there any setting missing or could there be any thing missing in the
PF-STATUS?
Please suggest me.
Edited by: swati baporikar on Jul 7, 2009 6:42 AM