Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Dec 10, 2013 at 08:47 AM

    at the end, add this statement.

    leave to list-processing.

    WHEN 'SAVE'.

    .........

    write :/ .......

    ENDIF.

    ENDLOOP.

    leave to list-processing.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.