Application Development and Automation 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: 
Read only

Dump occuring in background

former_member182337
Participant
0 Likes
3,071

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

1 ACCEPTED SOLUTION
Read only

deepak_dhamat
Active Contributor
0 Likes
2,333

Hi ,

Please check with all FIeld name provided in fieldcat is correct (spelling) and in CAPITAL letters .

regards

Deepak.

10 REPLIES 10
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
2,333

Hi,

Please provide more details, Your itab structure and the layout properties used and how you call the ALV.

Kesav

Read only

0 Likes
2,333

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

Read only

0 Likes
2,333

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

Read only

0 Likes
2,333

Hi,

what did you write code for 'ALV_BACKGROUND' in your program.

check it or provide ur code. we will get some idea.

Ram.

Read only

0 Likes
2,333

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

Read only

0 Likes
2,333

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

Read only

deepak_dhamat
Active Contributor
0 Likes
2,334

Hi ,

Please check with all FIeld name provided in fieldcat is correct (spelling) and in CAPITAL letters .

regards

Deepak.

Read only

0 Likes
2,333

thank you sir. it's been solved

Read only

alok_patra
Product and Topic Expert
Product and Topic Expert
0 Likes
2,333

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

Read only

0 Likes
2,333

It works. The issue was due to incorrect field name in field catalog. Thanks all.