on 12-16-2009 2:00 AM
Hi,
I m creating a TCP/IP RFC destination in R/3 system for my RFC to File scenario.
Step 1:
For this a Registered server program is created in Jco RFc Destinations with,
Program Id : pgm1
Gateway host : PI's host
Gateway service : PI's service
application server host: ECC's host
system numer : ECC's number
client : ECC's client
logon user : ECC user
password : pwd
Step 2:
In SM59, TCP/IP connection the following parameters are given:
Program ID : pgm1
Gateway host : PI's host -
> is this correct
Gateway service : PI's service -
> is this correct
Step 3:
So i am calling the RFC in ABAP program (R/3 system) like:
CALL FUNCTION 'Z_HR_OUTBOUND_DATA2'
IN BACKGROUND TASK DESTINATION 'Z_HR_OUTBOUND_DATA2'
Step 4:
In PI side,
for RFC sender I am passing :
Application server : PI server
Application server service: PI host
program ID: pgm1 which was created in the previos step
For RFC Metadata Repository Parameter, i am passing all the values related to R/3
Please let me know whether the steps and values i given is correct.
B'cos even if i give ECC's information in Gateway host and Gateway service the scenario works fine and if i PI's info then also it works fine.
so i am confused as which is the correct method. pls clarify
Hi,
Please follow the below instuction for creating RFC dest.
Note: As soon as you create Sender RFC communication channel, save and activate it. Immediately now create a RFC destination in R/3 System of type TCP/IP with server registered program as mentioned in this communication channel against Program ID.
Remember first activate then create RFC destination in R/3 system
Do not register this program id in visual admin
Thanks,
Venky
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Th details to be maintained are of the ECC system.
REgards,
Abhishek.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Once you create the RFC destination in the R/3 then the gateway will register the progId and finds the client to whom it needs to be sent to...
As PI will also registers the same progId with all the needed details of R/3 it will get registered in the gateway program too
for this go to SMGW and check the registered progIds..based on which data will be transferred...
search in SAP Help for more details
HTH
Rajesh
Hi,
It should be of ECC's gateway details.
Since you are going to use Sender RFC CC in PI, so definetly you will mention this RFC destination in your CC. So now when your PI will ececute the Sender RFC CC then it must connect to your ÉCC system and that is the reason if your RFC Destination doesn't contain the details of ECC then how it will connect to it.
I hope it helps to understand the concept.
Regards,
Sarvesh
Hi Sarvesh,
Thanks for the reply.
Correct me if I am wrong. The dest.that we give in RFC is for letting it know where it has to reach after execution.
in my case the RFC resides in ECC and if i am pointing again ECC as the destination, then how it is reaching PI?
Also
The RFC will be called by a ABAP program and we are going to schedule this ABAP program.
So when the ABAP program gets executed how does it call PI. Whats the triggering point to PI from ECC... i mean how does it link to PI.
Please explain
Ok I will try to explain....
Assumptions: R3_TO_XI is the name of RFC which I created in ECC of type T.
While creating the RFC in ECC we mention a unique name which is called Progaram ID. Now the same program id we mention in our sender RFC CC.
So now when an ABAP Progarm (where you will call this RFC with it's destination) is scheduled/triggered with the code as mentioned below then since the DESTINATION ('R3_TO_XI') mentioned here contain the same program id which we have mentioned in our sender CC, invokes the adapter in PI and soon after that all pipeline steps get executed in XI.
CALL FUNCTION 'ZBAPI_COMPANY_GETDETAIL'
IN BACKGROUND TASK
DESTINATION 'R3_TO_XI'
TABLES
comp_detail = company_detail.
COMMIT WORK.
Regards,
Sarvesh
Hi Sarvesh,
Thanks for your clear explanation.
So you mean to say the Program Id plays the major role in triggering PI from ECC. (And as mentioned I have ECC's Gateway details in RFc dest).
Say, if i am giving the same program id to multiple program id, then will it work or the program id should be unique for each CC in different scenarios?
But I tried giving PI's details in gateway parameters and it still worked. This is incorrect, right?
Is the gateway parameters not related to the destination system?
Please clarify.
Say, if i am giving the same program id to multiple program id, then will it work or the program id should be unique
for each CC in different scenarios?
The same programID can be used in different CCs.....when the sending system is the same.
However when you are creating multiple RFC destinations (for multiple ecc systems) then in that case the programID should be unique to each of the RFC destinations....same programID should not be used in more than one RFC destination.
Regards,
Abhishek.
> So you mean to say the Program Id plays the major role in triggering PI from ECC. (And as mentioned I have ECC's Gateway details in RFc dest).
Yes.
> Say, if i am giving the same program id to multiple program id, then will it work or the program id should be unique for each CC in different scenarios?
I think Abhishek has already given a good explaination for this. So need to repeat it.
>
> But I tried giving PI's details in gateway parameters and it still worked. This is incorrect, right?
You must have executed the RFC in ECC, if yest then it will work. But if you triggered end-to-end scenario then it is strange for me.
> Is the gateway parameters not related to the destination system?
refer the above ans.
> Say if I am using the same RFC dest in 4 RFC's so whenever the RFC is called by the ABAP program will it trigger all the CC's in PI which uses this RFc dest?
If you create 4 ABAP program and then call your RFC's then answer is "Yes". Otherwise jsut by calling one particualr RFC with same RFC Destination from one ABAP program will not automatically trigger all 4 scenarios in XI. Just think your Receiver Determination will have different Outbound Interface (RFC).
>
> Say if I am using the same RFC dest in 4 RFC's so whenever the RFC is called by the ABAP program will it trigger all the CC's in PI which uses this RFc dest?
We do not relate the RFC destination with the actual RFC.
This is when your Sender Agreement (in which you configured the sender RFC/ MI comes into picture)....it is the sender agreement which will decide which RFC message should be processed by which channel.
When you say that your channel goes into error (due to some bad strcuture) it is actually your agreement that has thrown the error..... I hope that i am not misleading you here!
Regards,
Abhishek.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.