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: 

how to call the standard report RFDOPR10 2 times into the custom report

Former Member
0 Kudos
379

Hi,

i have one unique requirement.

The required Logic-

i need to call the RFDOPR10 with first key date and then the output results has to be stored in One internal Table.

again,i need to call the RFDOPR10 with Second Key date and then the output results has to be stored in 2nd internal Table.

then i need to proceed with the next logic written in custom report.

kindly can u help me,to solve this one?

Regards,

Manjunath

Edited by: Manjunath bannur on Dec 6, 2011 2:01 PM

Edited by: Manjunath bannur on Dec 6, 2011 2:02 PM

6 REPLIES 6

antony_paul2
Active Participant
0 Kudos
207

You will not be able to store the output of this report to an internal table.

You should check for some other solutions like copying it to Z report and add your custom logic in it.

raymond_giuseppi
Active Contributor
0 Kudos
207

You could try to call twice LDB_PROCESS.on DDF logical database simulating the selections of RFDOPR10.

- SAP documentation [Calling a Logical Database Using a Function Module|http://help.sap.com/saphelp_nw70/helpdata/en/64/237f8cd43711d1950b0000e8353423/frameset.htm]

- Search tool at sdn [LDB_PROCESS|http://www.sdn.sap.com/irj/scn/advancedsearch?query=ldb_process]

Regards,

Raymond

Former Member
0 Kudos
207

If you need the result report to be stored in an internal table, you could try to do it like this:


DATA: t_list TYPE abaplist OCCURS 0.
DATA: BEGIN OF t_txt_list occurs 0,
        txt(256),
      END OF t_txt_list.

SUBMIT rfdopr10 
                "Your options here
                AND RETURN
                EXPORTING LIST TO MEMORY.

CALL FUNCTION 'LIST_FROM_MEMORY'
  TABLES
    listobject       = t_list
  EXCEPTIONS
    NOT_FOUND        = 1
    OTHERS           = 2.

CALL FUNCTION 'LIST_TO_ASCI'
  TABLES
    LISTASCI                 = t_txt_list
    LISTOBJECT               = t_list
 EXCEPTIONS
   EMPTY_LIST               = 1
   LIST_INDEX_INVALID       = 2
   OTHERS                   = 3.

"T_TXT_LIST has the result report in txt format

I hope it helps you.

Regards

deepak_dhamat
Active Contributor
0 Kudos
207

hi manjunath ,

YOu can do this 100 % ... do little search on SDN it is there .

regards

Deepak.

Former Member
0 Kudos
207

manjunath,

only thing what you need is SUBMIT RFDOPR10 and send the output to memory. do this twice and read the data from memory from twice...

and how to do it: please search a bit in SDN. there are a lot of post around it

0 Kudos
207

hi,

this issue got solved.

i have copied the standard report into Z report.

after this i will be sending the data to memory .then same internal table ,will be accessed in my zreport.

using import command.

thanks a lot..for helping me..

Regards,

Manjunath