on 03-07-2012 8:29 AM
Hello everyone,
In my SAP ECC system, I have created a new FM (remote enable) 'Z_TEST'.
In my SAP PI I have configurated like [http://wiki.sdn.sap.com/wiki/display/XI/RFCtoFILE|http://wiki.sdn.sap.com/wiki/display/XI/RFCtoFILE]
I have tested in PI and everything is OK.
In SAP ECC, when I'm calling the FM, I have a dump (when it's called in foreground task) or a message in SM58 (when it's called in background task).
The message is "JCO.Server could not find server function 'Z_TEST'.
Could you help me to find the problem.
I have check every thread in SDN with this error, but on my side every thing are correct.
Thanks and regards.
JC
Hi JC,
I believe you are calling this ZBAPI with "DESTINATION yourPIsystem" addition?
Also, did you import the ZBAPI into ESR in PI? It seems like you didn't, which is now the source of your problem.
Hope this helps,
Greg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear JC,
Now I am facing same problem as you mentioned. Please help me to solve the issue. I have created One RFC destination of type T in R3 and maintain program ID in that. I used R3 Gateway details in Destination. Apart from these I have created same Program ID in JCO RFC provider: JCO destinations of PI NWA. and maintained server and repository details of PI system. I have configured 5 scenarios with same Program ID ( sender side). while executing BAPI in R3 it is giving the same error that you got in sm58. I cant understand where is the mistake. Please share your ideas.
Regards,
Ashok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to create RFC sender CC in PI and activate it(without activation you will receive JCO Error). Name of PI CC is program ID used RFC Destination in Ecc.
Now try your rfcdest in Ecc and let us know
BR
M.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Some questions about this :
The configuration on the system has been made by other people.
1) The RFC Destination has to be configured in which system ?
- SAP ECC
- PI
- Both
2) What is the value for the Gateway Host in the RFC Destination
Thanks a lot
JC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Shabarish,
I have check the RFC Destination in ECC and the Gateway Host is the PI Server.
And I have also a RFC Destination defined in PI without Gateway Host.
Does I have to :
- delete the RFC Destination in PI server
- change the Gateway Host for the RFC Destination in ECC
If I put the ECC server in the Gateway Host for the RFC Destination on the ECC, I have the following error during the Connection Test "Error when opening an RFC connection (CPIC-CALL:.....
Error program <Destination_RFC>_<Sid> not registered
Thanks for your help.
JC
Dear JC,
>>> delete the RFC Destination in PI server
Yes, you can delete it (if it is not used anywhere else).
>>> change the Gateway Host for the RFC Destination in ECC
Yes, you normally use the ECC server as Gateway Host.
>>> I have the following error during the Connection Test
This is because you also have to adjust the sender RFC communication channel in PI. You have to use exactly the same values for Gateway Host, Port and Program Name there as you used in the RFC destination.
Hope this helps,
Greg
Hello Greg,
I'm totally lost, because I have configured the RFC Destination correctly following your answer and the differents thread on SDN or the link mentionned in my previous post.
And I have also configured correctly the CC but it does not work, I have always the same message in my ECC system
JCO.Server could not find server function
Regards
JC
Could you please clear the Cache in both integration Builder and Integration Directory.
Goto -> Environment -> Clear SLD cache.
and do the dummy edit on the RFC communication channel and execute the interface once.
if not working send me the error message trace log.
Edited by: Naresh Nelapatla on Mar 8, 2012 5:41 AM
Dear JC,
I have just found a similar problem in the thread below, that was solved by correcting the RFC Destination details:
So once again, check if your details are correct:
Gateway Host: host name or host IP address of the ECC system, that you can find in SAP Logon details under Application Server
Gateway Service: concatenation of "sapgw" and system Instance Number of the ECC system from SAP Logon, so if your Instance Number = 22 for instance, then use Gateway Service = sapgw22
Program ID: any unique name that you will also type in the sender RFC Communication Channel in PI. Make sure this value is unique (is only used by this particular RFC Destination and only one communication channel)
Hope this solves your problem finally,
Greg
Thanks Greg,
>I have just found a similar problem in the thread below, that was solved by correcting the RFC Destination details:
I had already read this thread, and I have made everything explain in this.
>So once again, check if your details are correct:
>Gateway Host: host name or host IP address of the ECC system, that you can find in SAP Logon details under Application Server
The Gateway Host is the one coming from the tcode SMGW in my ECC system (Goto --> Parameters >> gateway hostname value
>Gateway Service: concatenation of "sapgw" and system Instance Number of the ECC system from SAP Logon, so if your
>Instance Number = 22 for instance, then use Gateway Service = sapgw22
The Gateway Service is the one coming from the tcode SMGW in my ECC system (Goto --> Parameters >> gateway service value )
>Program ID: any unique name that you will also type in the sender RFC Communication Channel in PI. Make sure this value is >unique (is only used by this particular RFC Destination and only one communication channel)
I have used LCRSAPRFC_PID (created by BC team) and I have also tried with my own program id (I had created a specific RFC Destination for this one, and also configured the RFC JCO Provider)
But the error is always there
Regards
JC
Dear Grzegorz,
I am facing the same problem as JCO.server could not find the server function 'Z_MATERIAL_MASTER'.
AT ECC SIDE: I have created one type T destination in ECC and maintain program ID and used ECC gateway host and gateway service in that destination.
AT PI SIDE: I have created same program ID in the NWA of PI under JCO: RFC provider: JCO RFC destinations. Here I have given details as Server configuration: Gateway Host: PI host name and Gateway service: PI host service....... Repository configuration: Application server host: ECC host name, system number: ECC system number user, password, client are the ECC details.
After Executing BAPI in ECC, I got the above said error at SM58. What is the reason behind this? I am unable to find the cause. Please help me to come out this issue.
Thamks in advance
Regards,
Ashok.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.