Skip to Content
avatar image
Former Member

background rfc

Hi All,

i'm processing a rfc fm in background processing through

CALL FUNCTION 'Y_WS3_ALIASTEST' IN BACKGROUND TASK AS SEPARATE UNIT

DESTINATION 'rfc_bacground'

but i'm not getting any result but i can view some information related to my rfc in sm58.

pls tell me how to getting result of this background rfc.

regards,

anuj

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 15, 2008 at 05:41 AM

    Hi,

    First find the definition of the source and destination server from sm59 and whether they are connected or not,

    then write the follwoing logic

    REPORT Z_CALL_FM.

    Variables used

    DATA: w_destination(10) TYPE c,

    confirming the RFC destination

    IF sy-sysid = 'RES'. "System id of R/3 (say)

    assigning destination to variable to be passed

    w_destination = 'DEMOCLNT100'. "Definition of destination server

    Calling the RFC enabled FM

    CALL FUNCTION 'Z_RM_CALL_RFC_FM'

    DESTINATION w_destination

    ENDIF.

    You can check the output in the FM of destination server.

    Regards ,

    Rohan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 05:53 AM

    Hello Anuj.

    In background operation the result cannot be viewed.

    But, it will have a spool request number and it can be entered in Transaction SP01.

    Within this transaction you will find the appropriate option or pushbutton to display the output related to that spool request.

    Hope that'll be fine.

    Good Luck & Regards.

    Harsh Dave

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 05:51 AM

    Thanx Rohan,

    my rfc destination is ok n i can check result in destinations server ,but how to check result in calling server?

    regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 06:07 AM

    Harsh ,

    can we generate a application to show data which is shown in sp01.

    if yes then how?

    regards,

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 07:02 AM

    if someone has some views then pls share with me.

    regards,

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      hi anuj

      goto sm37 and select ur job (using check box)

      and then put transaction jdbg and press enter

      debugger will start and after debugging standard code you will get to your program code and then find out wat is the output that is coming

      regards

      vivek

  • avatar image
    Former Member
    Sep 16, 2008 at 06:02 AM

    Thanx vivek but rfc in background(tRFC) doesn't created any log in sm37., if i wrong , pls correct me.

    regards,

    Anuj

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 23, 2008 at 07:10 AM

    thanx

    Add comment
    10|10000 characters needed characters exceeded