2012 May 28 6:25 AM
Hi,
Can any body suggest me , Is there any STANDARD function module which calls a report(may be a standard report) and get the
output of the report in Function module itself , as i am working on a third party system the FM should be RFC enabled.
waiting for your valuable suggestions.
Regards
sam
2012 May 30 7:10 AM
Thanks for all your helpful answers.
i am using the standard function module INST_EXECUTE_REPORT
Regards
SAM
2012 May 28 6:32 AM
Hi,
You can refer to the below link :
http://scn.sap.com/thread/996766
or you can also try the below:
SUBMIT... AND RETURN
EXPORTING LIST TO MEMORY.
Hope it serves useful to you.
2012 May 28 6:35 AM
Hi,
Inside the FM
You write call Transaction report name
or
Use statement SUBMIT report_name AND RETURN.
Karthik.R
2012 May 28 6:35 AM
Hi Sam,
I dont think we have any such FM... and even if it's there, I m sure, it will not gather the output details and send those as a export from FM.
For your need, you will actually need to develop a Custom FM and put your report's Logic inside the same. Even submitting the Report inside FM will not serve your purpose..
- Harshad
2012 May 28 6:58 AM
Hi.
Try this FM.
1.SUBST_START_REPORT_IN_BATCH
For execute the report in background.
2.RFC_READ_TABLE
For get query of table TBTCP
3.BAPI_XBP_JOB_SPOOLLIST_READ
For get the list(Return)
Regards.
2012 May 28 7:21 AM
Hi,
Please try this below RFC FM
CC_CALL_TRANSACTION_NEW_TASK
Import
Provide Transaction - SE38
Tables Parameter
PARAMTAB-PARAMID - RID.
PARAMTAB-PARTEXT - Your Report Name (ZXX)
Regards,
Shankar Darbha
2012 May 28 7:36 AM
as far as i can understand your problem. u want to fetch data from some standard report and then display that data in ur zreport.
if my guess is true.
then here is your answer.
as such there is no standard FM exits ,(( let me know if u came to know any )).
u need to create enhancement point or source code enhancement in that standard report.
first insert SUBMIT statement in UR Program.
Example:
like this i have created in MB5B standard report.
Enhancement implmentation zenhance_mb5b.
Free memory id 'ABC'.
Export i_tab to memory id 'ABC'.
end enhancement.
and then import same data table to ur data table.
SUBMIT RM07MLBD WITH SELECTION-TABLE SEL_TABAND RETURN
EXPORTING LIST TO MEMORY.
*G_T_TOTALS_FLAT is an internal output table
IMPORT G_T_TOTALS_FLAT FROM MEMORY ID 'ABC'.
finally G_T_TOTALS_FLAT this internal table will container all data fetched from mb5b.
Revert back if u feel any confusion.
2012 May 30 7:10 AM
Thanks for all your helpful answers.
i am using the standard function module INST_EXECUTE_REPORT
Regards
SAM
2020 Apr 01 7:17 AM
I am trying to execute a program RKAEP000 with P_TCODE = KSB1.
I am not able to pass the range KOSTL-LOW and KOSTL-HIGH in params.
But If the value is assigned to KOSTL than it works but this is a single value.
I can pass multiple KOSTL param and assign unique values but I need to pass a range so it possible or am I doing wrong?
2020 Apr 01 11:52 AM
I think there is no standard FM , you have to create a custom FM and assign it to the report.