‎2011 Nov 17 5:46 AM
hello,
i am getting a dump while executing a custom program in background. I use "Reuse_alv_grid_display" and everything works fine in foreground . While executing the program in background, i get dump - GETWA_NOT_ASSIGNED. To the best of my knowledge, the dump is occuring because of some blank field catalog values. The fields in field cataog and table are different. Example. there are 20 fields in field catalog and 25 fields in the internal table structure. I am assuimg that this to be the reason for the dump. My concern is, if that is the reason for the dump then why is it not occuring in foreground and only in background.
Can someone help pls?
Thanks,
Prem
‎2011 Nov 17 6:47 AM
Hi ,
Please check with all FIeld name provided in fieldcat is correct (spelling) and in CAPITAL letters .
regards
Deepak.
‎2011 Nov 17 6:11 AM
Hi,
Please provide more details, Your itab structure and the layout properties used and how you call the ALV.
Kesav
‎2011 Nov 17 6:31 AM
Hi,
Please find below the layout properties
u_lf_layout-box_fieldname = 'SELK'.
u_lf_layout-zebra = ' '.
u_lf_layout-zebra = ' '.
u_lf_layout-get_selinfos = 'X'.
u_lf_layout-f2code = 'BEAN' .
u_lf_layout-confirmation_prompt = 'X'.
u_lf_layout-key_hotspot = 'X'.
u_lf_layout-info_fieldname = 'COL'.
This is not OOPS alv . I am using REUSE_ALV_GRID_DISPLAY to display the output. I am filling the field catalog and then passing the internal table (T_DATA)to this FM. The no. of fields is higher in the internal table when compared to the list of fields in field catalog but in foreground i do not receive this dump.Do you want me to share all the field details as well?
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = 'X'
i_callback_program = 'Z_SD_SALESDISP'
i_callback_user_command = 'USER_COMMAND'
i_background_id = 'ALV_BACKGROUND'
is_layout = l_layout
it_fieldcat = l_fieldcat
i_save = 'A'
is_variant = is_variant
TABLES
t_outtab = t_data
EXCEPTIONS
program_error = 1
OTHERS = 2.
Thanks,
Prem
‎2011 Nov 17 6:50 AM
I think its because of this u_lf_layout-box_fieldname = 'SELK'.
Check if its executed in background using sy-batch then don't pass anything to this field and also remove that field from your field catalouge.
I also dont see the repid passed to the function.
Kesav
‎2011 Nov 17 7:28 AM
Hi,
what did you write code for 'ALV_BACKGROUND' in your program.
check it or provide ur code. we will get some idea.
Ram.
‎2011 Nov 17 9:46 AM
Hi,
All the field names are in caps. If they are not,won't it cause a dump in foreground as well? It works fine in foreground.
I commented the line u_lf_layout-box_fieldname = 'SELK'. I still get the dump in background.
There is no code logic written for 'ALV_BACKGROUND'. This program is actually created by someone else and it has come to me for bug correction.
Thanks,
Prem
‎2011 Nov 17 9:56 AM
Could you provide the final itab declarations, layout population , so that i can compare it with a sample program
Also in background its only display nothing else works. so you can simply call it like
if sy-batch = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_buffer_active = 'X'
i_callback_program = 'Z_SD_SALESDISP'
it_fieldcat = l_fieldcat "Populate the fieldcat with only the fields to be displayes avoiding the checkboxes
TABLES
t_outtab = it_back_data " A new internal table without the checkbox field
EXCEPTIONS
program_error = 1
OTHERS = 2.
else.
"Your previous function call
endif.
Kesav
‎2011 Nov 17 6:47 AM
Hi ,
Please check with all FIeld name provided in fieldcat is correct (spelling) and in CAPITAL letters .
regards
Deepak.
‎2021 Apr 20 4:57 AM
‎2011 Nov 17 12:58 PM
Hi ,
You can't use ALV grid in background run.For background use ALV list display.
you can make a decision using sy-batch in your program.
thanks,
Alok
‎2011 Dec 20 5:09 AM
It works. The issue was due to incorrect field name in field catalog. Thanks all.