2013 Apr 04 12:30 PM
Hi experts
Im trying to submit a standart report with the class cl_salv_bs_runtime_info.
First I call the method set like this:
cl_salv_bs_runtime_info=>set(
EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
then I submit the report and then call the method data_ref like this:
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <lt_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
The ALV output in the standard report is generated with
The output in ALV is created:
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = repid
i_structure_name = 'Struc_name'
is_layout = layout
it_fieldcat = fieldcat
i_default = 'X'
i_save = 'X'
is_variant = variant
it_events = events
TABLES
t_outtab = output_tab
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Now I have the data I need from output_tab in<lt_data> which is wonderful, but now my problem:
The standard report has header data which is created by the form top-of-page which i cant retrieve:
TOP-OF-PAGE.
SKIP.
WRITE: / _output_header-name1,
/ _output_header-name2,
/ _output_header-strasse,
/ _output_header-ort,
/ _output_header-zusatz.
SKIP TO LINE 10.
_output_header-seite = sy-pagno.
WRITE: / _output_header-unummer NO-GAP, _output_header-seite.
SKIP.
WRITE: / _output_header-kontaktp NO-GAP.
SKIP 2.
WRITE: / _output_header-telefon NO-GAP, _output_header-ugroesse NO-GAP
, _output_header-barbzeit NO-GAP,
p_verf.
Is there a possibility to catch this header data with the class cl_salv_bs_runtime_info?
Many many thanks to you all and regards
Marco
Hi experts
Im trying to submit a standart report with the class cl_salv_bs_runtime_info.
First I call the method set like this:
cl_salv_bs_runtime_info=>set(
EXPORTING display = abap_false
metadata = abap_false
data = abap_true ).
then I submit the report and then call the method data_ref like this:
TRY.
cl_salv_bs_runtime_info=>get_data_ref(
IMPORTING r_data = lf_ref ).
ASSIGN lf_ref->* TO <lt_data>.
CATCH cx_salv_bs_sc_runtime_info.
MESSAGE `Unable to retrieve ALV data` TYPE 'E'.
ENDTRY.
The ALV output in the standard report is generated with
The output in ALV is created:
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = repid
i_structure_name = 'Struc_name'
is_layout = layout
it_fieldcat = fieldcat
i_default = 'X'
i_save = 'X'
is_variant = variant
it_events = events
TABLES
t_outtab = output_tab
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Now I have the data I need from output_tab in<lt_data> which is wonderful, but now my problem:
The standard report has header data which is created by the form top-of-page which i cant retrieve:
TOP-OF-PAGE.
SKIP.
WRITE: / _output_header-name1,
/ _output_header-name2,
/ _output_header-strasse,
/ _output_header-ort,
/ _output_header-zusatz.
SKIP TO LINE 10.
_output_header-seite = sy-pagno.
WRITE: / _output_header-unummer NO-GAP, _output_header-seite.
SKIP.
WRITE: / _output_header-kontaktp NO-GAP.
SKIP 2.
WRITE: / _output_header-telefon NO-GAP, _output_header-ugroesse NO-GAP
, _output_header-barbzeit NO-GAP,
p_verf.
Is there a possibility to catch this header data with the class cl_salv_bs_runtime_info?
Many many thanks to you all and regards
Marco
2013 Apr 04 1:58 PM
2013 Apr 04 2:03 PM
2013 Apr 19 3:12 PM
2013 Apr 19 3:37 PM
Hi Marco,
I dont think you can gain access to the header information using this class.
Still you can have a look at the below link.
Regards,
Santanu Mohapatra.
2013 Apr 22 8:21 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |