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: 

Calling a Program in Another Server

Former Member
0 Kudos

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.

7 REPLIES 7

Former Member
0 Kudos

Hi

Strange! I know it's possible to do a submit into RFC function module: which is your issue?

Max

0 Kudos

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.

0 Kudos

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,

0 Kudos

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

0 Kudos

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.

0 Kudos

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.

0 Kudos

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