2011 Dec 06 1:00 PM
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
2011 Dec 06 2:36 PM
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.
2011 Dec 06 2:56 PM
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
2011 Dec 06 3:25 PM
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
2011 Dec 07 6:35 AM
hi manjunath ,
YOu can do this 100 % ... do little search on SDN it is there .
regards
Deepak.
2011 Dec 07 8:15 AM
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
2011 Dec 20 10:01 AM
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