Skip to Content
avatar image
Former Member

how to do rfc from Report Program?

how to do rfc from Report Program?

I only know how to make a function module to rfc.

PLease guide me . Thanks!

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • Best Answer
    avatar image
    Former Member
    Apr 21, 2006 at 06:10 AM

    Hi !

    Only function modules can be called by RFC.

    What you can do is to capsule the Report in a function module.

    That means: create a rfc callable function and do a

    "SUBMIT" to your report within that function module.

    Regards

    Rainer

    Some forum points would be fine if that helped you a bit...

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2006 at 06:07 AM

    Hi,

    Hope you want a syntax to call this RFC funciton module.

    It is -

    Call Funciton 'FUNC' Destination l_dest.

    Where 'l_dest' is destination where you want to call tis RFC function module.

    Regds,

    Akshay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2006 at 06:18 AM

    Hi,

    Here an example to call RFC Function from Report:

    DATA: INFO LIKE RFCSI, "Importing parameter

    MSG_TEXT(80) TYPE C. "Message text

    ...

    • Synchronous call to function module RFC_SYSTEM_INFO

    CALL FUNCTION 'RFC_SYSTEM_INFO'

    DESTINATION 'NONE'

    IMPORTING

    RFCSI_EXPORT = INFO

    EXCEPTIONS

    COMMUNICATION_FAILURE = 1 MESSAGE MSG_TEXT

    SYSTEM_FAILURE = 2 MESSAGE MSG_TEXT.

    IF SY-SUBRC NE 0.

    WRITE: MSG_TEXT.

    ELSE.

    WRITE: 'O.K.'.

    ENDIF.

    ...

    Regards,

    JR

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 21, 2006 at 07:48 AM

    Hello,

    Create a FM in se37, and in <b>attributes select Remote Enabled module.</b>

    Call function from Report with destination.

    Regards,

    Naimesh

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2006 at 08:04 AM

    Hai follow the bellow steps

    Sending system side(SEND--800)

    -


    Create function module by using Tcode SE37 or SE80

    goto attributes select remote function

    activate

    Receiving system side(RECE--000)

    -


    goto Tcode SM59

    here select the R/3 Connections-->click on Create Button

    give RFC Desstination : TESTRFC

    Connection Type : 3 for Connecting two systems

    Description : Some meaningful Description

    Press enter

    give Target system Name : SEND

    Language : EN

    Client : 800

    user Name : sapuser

    Password : xxxxxx

    save this connections & click on test connections(f8)

    & Remote logon(f7)---> it will open a session

    with client 800 that is your sending system

    then only your RFC is correct

    create a report in SE38 Tcode

    data : c1 type i.

    data : itab like mara occurs 0 with header line.

    call function 'ZRFCFM' destination 'TESTRFC' --->Function Module 'ZRFCFM' your just create at Sending system

    exporting

    importing

    exceptions.

    Thanks & regards

    Sreenivasulu P

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2006 at 08:11 AM

    Hi,

    Requesting you to close the post if answers have helped you in finding solution.

    Regds,

    Akshay

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 21, 2006 at 06:06 AM

    Do you want to call RFC from report program or make report program as RFC?

    You cannot create report program as RFC callable. You need to convert report program into FM.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 21, 2006 at 07:48 AM

    Sorry, ignore this message

    Add comment
    10|10000 characters needed characters exceeded