08-07-2020 2:22 AM
When I click total amount . The error is following.
08-11-2020 1:57 PM
My colleague tells me that there is issue about function(The program is changed for standard program.Perhaps the function is old).And I choose the other way for it.
08-07-2020 2:59 AM
Source code extract is following.
is_subtottxt_info = ls_subtot_info
ip_subtot_line = lr_data
changing
c_subtottxt = l_subtottxt.
ls_lvc_data-value = l_subtottxt.
append ls_lvc_data to ct_lvc_data.
endif.
************************************
* Column per Fieldcat Entry
************************************
ls_lvc_data-value = space.
clear ls_lvc_data-style.
loop at it_fcat_local assigning <ls_fcat>
where tech ne 'X' and no_out ne 'X'.
if l_invisible eq 'X'.
clear l_invisible.
if <ls_fcat>-do_sum is initial.
continue.
else.
clear ls_lvc_data-col_pos.
endif.
endif.
add 1 to ls_lvc_data-col_pos.
assign component <ls_fcat>-fieldname
of structure <ls_data> to <l_field_value>.
if sy-subrc ne 0.
message x000(0k).
endif.
*... work on average
if <ls_fcat>-do_sum eq 'C'.
* Initialize average result and entries
<l_field_value> = 0.
clear l_entries.
* retrive unit from fieldcatalog
assign space to <l_unit>.
if not <ls_fcat>-cfieldname is initial.
assign component <ls_fcat>-cfieldname
of structure <ls_data> to <l_unit>.
endif.
if not <ls_fcat>-qfieldname is initial.
assign component <ls_fcat>-qfieldname
of structure <ls_data> to <l_unit>.
endif.
08-07-2020 8:52 AM
Please use the COMMENT button for comments, questions, adding details, replying to OP comment, etc., ANSWER is only to propose a solution, dixit SAP text at the right of the answer area.
Please attach the short dump as a file.
The code you show is standard code for ALV. It has no bug, but there's a bug with your own program, it has transferred wrong values to the ALV. As usual, probably you passed the field names in lower case instead of upper case.
08-07-2020 4:50 AM
Can you show the dump analysis from ST22 (instead of the dump information right when the error occured)?
08-11-2020 1:57 PM
My colleague tells me that there is issue about function(The program is changed for standard program.Perhaps the function is old).And I choose the other way for it.