Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

SAP ABAP From report to other report

0 Kudos
715

have the following ALV report generated from the RFKSLD00 program:

I need to generate a report based on the above report like this one (as part of my work):

Any ideas how to do this? No need for a solution but at least some steps on how to achieve this

7 REPLIES 7

matt
Active Contributor
512

I'm pretty sure that the capturing of an ALV output has been covered here before. You could try searching. Never done it myself.

loyd_enochs3
Participant
0 Kudos
512

The as-is standard program has the data your to-be example describes. If the goal purely cosmetic, the user community needs training, not a program rewrite.

DoanManhQuynh
Active Contributor
0 Kudos
512

The final report is depend on what technical you would use: ALV, smartform, adobe form, excel... But first thing you have to export the output data of standard report by submit it in your own program.

0 Kudos
512

if you are expecting the results of standard program to be reformatted in your own format, kindly explore SUBMIT <reportname> EXPORT LIST TO MEMORY AND RETURN.

post this statement you need to use FM LIST_FROM_MEMORY and LIST_TO_ASCII. Kindly explore this keyword.

babu_gavi
Explorer
0 Kudos
512

Hi Muaz,

you can acheive above requirement through ALV

method 1. ole concept

method 2. by using class cl_gui_alv_grid.its having all the methods to acheive your format.

or use below xml interfaces IF_IXML_ELEMENT,if_ixml_attribute,if_ixml_ostream,if_ixml_stream_factory.

p244500
Active Contributor
0 Kudos
512

just to add sample program for the SAP OLE concept RSDEMO01

Sandra_Rossi
Active Contributor
0 Kudos
512

Your question "How to do that" is unclear, what is "that"? (getting the result of RFKSLD00, tracing lines, using a given technology, transferring the values into columns, etc.)

If it's about how to know to what month the totals of the ALV (first screenshot) correspond, then it's easy, 01 2003 means January, so put the Debit/Credit totals into January column. Run RFKSLD00 again for February, put the Debit/Credit totals into February column. And so on.