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

Checkbox selection not working for rsparams

Former Member
0 Likes
1,366

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
992

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

1 REPLY 1
Read only

Former Member
0 Likes
993

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