we have following scenario: A sales order should be sent as IDOC in XML-Format via Internet Mail.
As we don't have complex scenarios there is no XI/PI involved so far.
The IDOC is created as message in the order and the file is saved as XML on the server. Everything is fine so far.
But I'm stuck here. In WE21 i can enter a RFC-destination and a command file to trigger the output. I guess thats the correct way to define a RFC-call to send the file.
Are there already function modules or classes to perform that? How do i set up the RFC-destination?