Application Development and Automation 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: 
Read only

Submit program through RFC

sreekanth_n2
Active Participant
0 Likes
4,591

Hi ,

The following is the requirement:

SYSTEM # 2:

Execute SM20:

Enter From/to->date/time ,Client, User and click on "Reread Audit Log" button, then it display ALV Report.

I want entries of this output.

I will call this report in SYSTEM #1 to get the entries of above output in SYSTEM # 2.

  Please help on how to get data of other system by submitting report through RFC.

Regards,

Sree

1 ACCEPTED SOLUTION
Read only

sreekanth_n2
Active Participant
0 Likes
2,498

solved through other means.

thanks to all

5 REPLIES 5
Read only

Former Member
0 Likes
2,498

You cant submit a report via RFC. You can only call RFC-enabled Function Modules via RFC. Check SAP documentation RFC - Connectivity - SAP Library

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,498

First, did you

  • Look for some RFC enabled FM to perform the submit or build your own FM to be able to send data back. (SE37, F4,  *SUBMIT* expand selection-screen and check RFC enabled FM)
  • Analyze how to extract ALV data (and prevent problem in RFC target without GUI connection) look for threads/documents on class  cl_salv_bs_runtime_info (star with method set parameters display false and data true)

What did you already try, look for?

Some hints for a dynamic tool, building a generic FM

  • To be able to execute the SUBMIT statement in target system, manage some input parameters  for assing parameters of the report similar to result of FM RS_REFRESH_FROM_SELECTOPTIONS and RS_REFRESH_FROM_DYNAMICAL_SEL.
  • To extract and return data from ALV, due to RFC limitations (*), you will be required to map data to a static format (like RFC_TABLES flat format)  for a really dynamic format you could also recover the field catalog of the ALV and pass it to build the internal tables in caller program.

Regards,

Raymond

(*) Look for RFC Restrictions in online help.

Read only

Former Member
0 Likes
2,498

Dear Sreekanth,

Please use the below syntax :

CALL FUNCTION func DESTINATION dest parameter_list.

dest =  u need to maintain in SM59 first.

Please make sure your FM exists in the System 2.

Regards,

Yance

Read only

Former Member
0 Likes
2,498

Hi Sreekanth,

You need to create an RFC enabled FM to submit the program and then read the ALV output into an internal table. You may use list to memory while performing the submit and then use FM LIST_FROM_MEMORY to read the ALV into an internal table. Now pass the same as output table parameter of the RFC enabled FM.

Regards,

Shayeree

Read only

sreekanth_n2
Active Participant
0 Likes
2,499

solved through other means.

thanks to all