2023 Jul 10 3:53 PM
Hi all,
when I upload electronic bank statement I want to see statsitcs. Statistics gets printed in RFEBBU00, PERFORM druck_statistik CHANGING gt_statis.
Is it possible to add company code to the statistics as additional column?
When we upload several company codes with one file and get one statistics it's difficult to recognize the company code only by having bank account number.
Best regards
Alicja
2023 Sep 12 12:47 PM
Hi alicja_z,
There is no standard configuration option to add a company code to the statistics summary. Also, there is no standard (i.e. dedicated) enhancement option (e.g. BADI, user exit) to do that. You can only try to do that via implicit enhancement.
Subroutine druck_statistik is calling itself another subroutine statistik to print the summary for upload of bank statements. Summary details are stored in the table of type FAGL_ACC_S_RFEBBU00_ALV_STATIS. As you can see, we do not have a company code in this structure. The structure can be enhanced with additional fields. So you'd have to add a new field for company code via append structure and add an implicit enhancement at the end of subroutine statistik. In the implicit enhancement you can add the logic to fill the custom field for company code.
Regards,
Bohdan