cancel
Showing results for 
Search instead for 
Did you mean: 

Can we use same program ID for more than one RFC scenarios

former_member810660
Participant
0 Kudos
211

Hi experts,

I am working on a RFC to FILE scenario. I have created one TCP/IP connection in SM59 with a program ID. Can we use this program ID for more than one scenario. I have written code as below

data: iquote type standard table of ZIQMD initial size 0,
      IPRODUCT type standard table of ZPMS initial size 0,
      wa_quote type ZIQMD,
      wa_PRODUCT type ZPMS.

CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER'
  TABLES
    I_QUOTE       = iquote          .

CALL FUNCTION 'Z_CBT_RFC_QUOTEMASTER' in background task DESTINATION
'ID4'
  TABLES
    I_QUOTE       = iquote          .
*
  COMMIT WORK.


CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER'
  TABLES
    IPRODUCT       = IPRODUCT          .

CALL FUNCTION 'Z_CBT_RFC_PRODUCTMASTER' in background task DESTINATION
'ID4'

  TABLES
    IPRODUCT       = IPRODUCT          .

    COMMIT WORK.

when i am executing the code like this. i am able to send the data to 'Z_CBT_RFC_QUOTEMASTER' , but iam not getting data for 'Z_CBT_RFC_PRODUCTMASTER' interface. ID4 is the connection that i have created in SM59. with program ID as ABCD.

Can i use the same connection for all interfaces.Please help in this, if we can use same connection for all interfaces. then how to make changes in XI.

Thanks in advance.

Thanks & Regards,

Poorna.

Accepted Solutions (1)

Accepted Solutions (1)

bhavesh_kantilal
Active Contributor
0 Kudos

Poorna,

Actually am Confused as well. Will give this a shot and get back to u to confirm.

Regards

Bhavesh

bhavesh_kantilal
Active Contributor
0 Kudos

Just tried this and I can confirm that my earlier understanding was correct!

One of my colleagues confused me out and the conclusion is,

1. You need a separate TCP IP Connection for every interface with a Unique program ID.

Regards

Bhavesh

Answers (1)

Answers (1)

bhavesh_kantilal
Active Contributor
0 Kudos

><i>Can we use this program ID for more than one scenario</i>

No. For every interface you would need to create a new TCP IP Connection , a sender RFC adapter , and a sender agreement and and use a Unique Program Id..

Regards

Bhavesh