05-08-2013 3:53 PM
Hi all,
I am attempting to transmit ORDERS iDocs in XML format through an RFC connection to a java application. This is what I have attempted so far...
I have tested the RFC connectivity with the 'STFC_CONNECTION' function module as it was executed successfully.
I have also maintained the 'Outbound: Trigger' tab in the port definition with the RFC destination I created, but this is where my confusion sets in...
I am unsure of how the 'directory' and 'command file' integrate into this functionality and how or what I need to leverage this to execute the RFC call to my java application, passing the XML formatted iDoc message.
I have experimented with the 'rfcexec' script file in the port definition, but I am being returned an error when executing the outbound ORDERS iDoc. (listed below)
Message no. E0133
Port name: ZVIC
Name of logical destination: VIC
Error message from RFC_REMOTE_EXEC-Ruf:
'RFC_REMOTE_EXEC' could not be found in the server repository.
I have exhausted all of my available resources to help me through this issue and now I am hoping some of the experts within this community can assist me.
I am also open to different methods of transmitting this iDoc messages through an RFC call. (different port types, ect.)
Thanks in advance,
~D
05-13-2013 1:36 PM
Dakota Nordgren wrote:
Hi all,
I am attempting to transmit ORDERS iDocs in XML format through an RFC connection to a java application. This is what I have attempted so far...
- Created an RFC destination to my java application
- Created an XML file port
- Created a partner profile (logical system) and maintained the outbound parameter for the ORDERS message type
- Assigned the XML file port to the outbound parameter
- Created the ALE distribution model for this communication channel
I have tested the RFC connectivity with the 'STFC_CONNECTION' function module as it was executed successfully.
I have also maintained the 'Outbound: Trigger' tab in the port definition with the RFC destination I created, but this is where my confusion sets in...
I am unsure of how the 'directory' and 'command file' integrate into this functionality and how or what I need to leverage this to execute the RFC call to my java application, passing the XML formatted iDoc message.
I have experimented with the 'rfcexec' script file in the port definition, but I am being returned an error when executing the outbound ORDERS iDoc. (listed below)
Error for Remote Function Call with port 'ZVIC '
Message no. E0133
Diagnosis
Port name: ZVIC
Name of logical destination: VIC
Error message from RFC_REMOTE_EXEC-Ruf:
'RFC_REMOTE_EXEC' could not be found in the server repository.
I have exhausted all of my available resources to help me through this issue and now I am hoping some of the experts within this community can assist me.
I am also open to different methods of transmitting this iDoc messages through an RFC call. (different port types, ect.)
Thanks in advance,
~D
Hi Dakota!
I think the said script file is not found in the logical directory that you have mentioned.
BR,
Yaseen
05-13-2013 5:00 PM
Hello Dakota,
Have you tried using XML HTTP port?, it is much easier to use compared to using XML file ports.
You could try this; All you need is a HTTP(S) RFC destinaton ( which is your Java server ) and a URL which can accept HTTP(S) requests. The XML data will be in the Body of the HTTP request.
You then map this HTTP(S) RFC destination to the XML HTTP port in WE21.
Hope this helps.
Thanks,
Venkat.