2016 Sep 25 12:58 PM
Dear friends,
Below is part of the code to pull output from standard SLV report, which I am using. There are no short dump except the checkbox selection is not working.
Data:
lt_selscreen TYPE TABLE OF rsparams WITH HEADER LINE,
START-OF-SELECTION.
lt_selscreen-selname = 'P_ALLEI'.
lt_selscreen-kind = 'P'.
lt_selscreen-option = 'EQ'.
lt_selscreen-low = 'X'.
APPEND lt_selscreen.
but the output when using submit program, is returning all values
cl_salv_bs_runtime_info=>set(
EXPORTING
display = abap_false
metadata = abap_false
DATA = abap_true
).
SUBMIT SDBILLDL
WITH SELECTION-TABLE lt_selscreen
AND RETURN.
TRY.
" get data from SALV model
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING
r_data = obj_data
).
ASSIGN obj_data->* to <fs_data>.
CATCH cx_salv_bs_sc_runtime_info.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
lt_data[] = <fs_data>[].
Regards
Draksharam Mandavilli
2016 Sep 25 1:25 PM
Dear Friends,
It seems the program SDBILLDL has some default parameters ticked. In this case, 'delivery-related' is always ticked. So when I included the below code to include all the options, it is working.
Regards,
Kumar
Dear friends,
Below is part of the code to pull output from standard SLV report, which I am using. There are no short dump except the checkbox selection is not working.
Data:
lt_selscreen TYPE TABLE OF rsparams WITH HEADER LINE,
START-OF-SELECTION.
lt_selscreen-selname = 'P_ALLEI'.
lt_selscreen-kind = 'P'.
lt_selscreen-option = 'EQ'.
lt_selscreen-low = 'X'.
APPEND lt_selscreen.
but the output when using submit program, is returning all values
cl_salv_bs_runtime_info=>set(
EXPORTING
display = abap_false
metadata = abap_false
DATA = abap_true
).
SUBMIT SDBILLDL
WITH SELECTION-TABLE lt_selscreen
AND RETURN.
TRY.
" get data from SALV model
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING
r_data = obj_data
).
ASSIGN obj_data->* to <fs_data>.
CATCH cx_salv_bs_sc_runtime_info.
ENDTRY.
cl_salv_bs_runtime_info=>clear_all( ).
lt_data[] = <fs_data>[].
Regards
Draksharam Mandavilli
2016 Sep 25 1:25 PM
Dear Friends,
It seems the program SDBILLDL has some default parameters ticked. In this case, 'delivery-related' is always ticked. So when I included the below code to include all the options, it is working.
Regards,
Kumar