2018 Aug 06 11:11 AM
My below code runs in foreground, but gives a dump in background.
SUBMIT rpuaud00 WITH lo_blg = 'X'
WITH r_tclasa = 'X'
WITH SELECTION-TABLE it_selection
AND RETURN.
TRY.
cl_salv_bs_runtime_info=>get_data_ref( IMPORTING r_data = lr_pay_data ).
ASSIGN lr_pay_data->* TO <lt_pay_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
LOOP AT <lt_pay_data> ASSIGNING <lt_test>.
MOVE-CORRESPONDING <lt_test> TO wa_list .
APPEND wa_list TO it_list
ENDLOOP.
-----------------------------
Runtime Errors GETWA_NOT_ASSIGNED
Field symbol has not yet been assigned.
You attempted to access an unassigned field symbol (data segment "-1").
-------------------
Kindly advise.
2018 Aug 06 12:33 PM
Please in future use the "code" button when posting code. If copy pasting from an editor, using right-click paste as plain text.
I've done it for you this time. See how it makes your question more readable?
2018 Aug 06 12:34 PM
2018 Aug 07 3:14 AM
Hi Matthew
Yup it is initial.
The cl_salv_bs_runtime_info is not fetching values when run in background mode.
2018 Aug 07 6:33 AM
ALVs are used to communicate with users.
In background mode there are no users for a direct communication.
I think the system does not provide support for the (CONTROL?-)framework in background task..
Regards,
Hubert
2018 Aug 07 7:05 AM
2018 Aug 07 7:11 AM
2018 Aug 07 8:05 AM
2018 Aug 07 7:52 AM
I think the ' SUBMIT rpuaud00 ' itself is not working in the background