05-30-2008 2:08 PM
Hi Experts,
I got a requirement to fetch the data from another server (like BIW, CRM, etc.,), So here i am using some RFC Call in Function Module, But, My problem is:
I am not able to use SUBMIT in the Function Module, So, How can i fetch that data.
Please help me.
Thanks in advance.
Sandya.
05-30-2008 2:12 PM
Hi
Strange! I know it's possible to do a submit into RFC function module: which is your issue?
Max
05-30-2008 2:13 PM
Hi,
First establish a RFC connection b/w your server and another server. (Your basis consultents will help u to do so).
then pass that RFC name to the FM , and do a SUBMIT inside this FM.
Regards,
Raghav.
05-30-2008 2:22 PM
Hi Max,
Thanks for immediate response,
In my function module i am using the following code:
SUBMIT RSTRFCM1
EXPORTING LIST TO MEMORY
AND RETURN .
after that i am getting SY-SUBRC is 4.
Same code when iam ussing in report i am getting exact output.
Thanks,
05-30-2008 2:28 PM
Hi
U should consider the RFC fm (so the report RSTRFCM1) has to exist in the system called, so u are sure the report RSTRFCM1 is in the called system?
Max
05-30-2008 2:29 PM
You can use the submit inside RFC, but there are some restrictions to it.
In my function module i am using the following code:
SUBMIT RSTRFCM1
EXPORTING LIST TO MEMORY
AND RETURN .
after that i am getting SY-SUBRC is 4.
When you use submit it give the output then it needs to be captured, but using RFC it is not possible.
If your submit program is a Custom program then use import and export options and pass the table to the RFC function.
Use the table data and create your own report in the calling system.
You can get the data from one system to another , but not the Output or Report.
05-30-2008 3:03 PM
Hi,
I want to call the standard program and that out put i want to store in the memory, than i will capture using other Function Modules.
This scenario is working, If i write report program, But, Some the programss are in Remote systems... for this reason i am creating RFC Function. But, It is giving error at SUBMIT.
and I checked in th FM documentations, at there i found We should not use SUBMIT and Call Transcations in Function Module's.
So How can i get the data.
Thanks for your response.
05-30-2008 3:06 PM
Hi
Try to check the abap code the fm RFC_ABAP_INSTALL_AND_RUN
That fms create a report in the called system and submits it and returns the output: so except the first part it's not interesting for you, the second one is just what you need.
Max