Skip to Content
0
Former Member
Dec 10, 2013 at 08:39 AM

unable to display classical report when save button is pressed in oops alv

22 Views

Hi All,

I have developed the report using oops alv, in the output screen added save button and check button as well, when user select check box for particular row and then press save button classical report should be shown, that is write statement report, but can;t able to show , break point is going by write statement but report is not getting displayed,'

please see the below code.

WHEN 'SAVE'.

CALL METHOD go_grid->check_changed_data

IMPORTING

e_valid = lv_valid.

IF lv_valid EQ 'X'.

*** Get the filtered out values from ALV (line indexes)

CALL METHOD go_grid->get_filtered_entries

IMPORTING

et_filtered_entries = lt_filtered_entries.

LOOP AT it_detail856 INTO wa_detail856 .

WRITE wa_detail856-lifnr TO wa_output_detail-vendor_number.

WRITE wa_detail856-stceg TO wa_output_detail-vendor_tax_number.

WRITE wa_detail856-name1 TO wa_output_detail-vendor_name .

WRITE wa_detail856-street TO wa_output_detail-vendor_street.

WRITE wa_detail856-city1 TO wa_output_detail-vendor_city .

WRITE wa_detail856-augdt TO wa_output_detail-augdt .

WRITE wa_detail856-dmbtr TO wa_output_detail-gross_payment

CURRENCY wa_loccur.

WRITE wa_detail856-wt_qsshh TO wa_output_detail-wht_base

CURRENCY wa_loccur.

WRITE wa_detail856-wt_qbshh TO wa_output_detail-wht

CURRENCY wa_loccur.

WRITE wa_detail856-netamt TO wa_output_detail-netamt

CURRENCY wa_loccur.

WRITE wa_detail856-augbl TO wa_output_detail-augbl.

WRITE wa_detail856-whtrt TO wa_output_detail-wht_rate .

WRITE wa_detail856-vatpd TO wa_output_detail-total_vat .

WRITE wa_detail856-belnr TO wa_output_detail-belnr.

WRITE wa_detail856-land1 TO wa_output_detail-land1.

APPEND wa_output_detail TO it_output_detail.

ENDLOOP.

IF repchk1 = 'X'.

LOOP AT it_output_detail INTO wa_output_detail.

lw_index = sy-tabix.

IF lw_index <= 6.

WRITE:/ wa_output_detail-vendor_number ,

wa_output_detail-vendor_tax_number,

wa_output_detail-vendor_name ,

wa_output_detail-vendor_street .

ENDIF.

IF lw_index > 6.

WRITE:/2 wa_output_detail-vendor_number ,

18 wa_output_detail-vendor_tax_number,

59 wa_output_detail-vendor_name ,

82 wa_output_detail-vendor_street ,

104 wa_output_detail-vendor_city ,

118 wa_output_detail-augdt ,

129 wa_output_detail-gross_payment ,

146 wa_output_detail-wht_base ,

163 wa_output_detail-wht ,

180 wa_output_detail-netamt ,

197 wa_output_detail-augbl ,

208 wa_output_detail-wht_rate ,

213 wa_output_detail-total_vat ,

222 wa_output_detail-belnr,

233 wa_output_detail-land1.

*------ WRITE VERTICAL LINES

PERFORM write_vertical_line.

ULINE.

ENDIF.

ENDLOOP.

i have commented the code

* LOOP AT gt_detail856 INTO gs_detail856 WHERE checkbox = 'X'.

* lv_tabix = sy-tabix.

* READ TABLE lt_filtered_entries FROM lv_tabix TRANSPORTING NO FIELDS.

* IF sy-subrc IS INITIAL.

* write: 'hello'.

* ENDIF.

* ENDLOOP.

* ENDIF.


please help me this....can we dsiplay classcal report when i press save button in interactive oops alv..?

Thanks in advance..

regards,

Ram