cancel
Showing results for 
Search instead for 
Did you mean: 

How to implement a RFC to XI to Mail scenario?

Former Member
0 Kudos

Hello All,

I need to implement a RFC to XI to Mail Scenario.

RFC should contain the content of the mail.

I need a Integration process which will read the RFC and transform it into a Mail

I have a Mail reciever adapter but how will the content that i have in RFC be send as the content in Mail? what is the Interface mapping required? Do i need to write a XSL to do the transformation and how?

I have already started implementing the scenario. but the mail i get has the content as a attachment and not as a text. i have written a xsl transformation in Interface Mapping that simply has

<?xml version="1.0" encoding="UTF-8"?>

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">

<xsl:template match="/">

<html>

<body>

<li>Hello from XI to meghana</li>

</body>

</html>

</xsl:template>

</xsl:stylesheet>

I get this message as a html in the attachment of the mail not as a content.

Could some 1 help me out??

Thanks

Meghana

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Any suggestions experts??

Have solved the problem of attachments. I am now able to get the message in the content of the mail.

But the main problem of reading the RFC in Integration Process and transformation still remains.

Could you please tell me how to read the RFC in the IP and give me the Interface Mapping transformation??

Thanks

Meghana

former_member181959
Contributor
0 Kudos

Hi,

For sending the data from RFC to Mail, you have to use a wrapper RFC.

You need to implement a wrapper RFC and then you can use the same for sending the data to mail.

create a RFC without source code and copy the export parameters of your RFC as import parameters. Load that new RFC to XI.

Then you can send the data to mail.

for more information please chekc the thread below,

Let me know if you have any issues.

Prasad Babu.

Former Member
0 Kudos

Hi,

I dont understand what u mean by a wrapper RFC .

IN my current program, I have the following

REPORT z_mail_send.

DATA: itab_mytable TYPE STANDARD TABLE OF zsosms2,

wa_zsosms2 TYPE zsosms2.

wa_zsosms2-content = 'Hello from XI-4-Meghana'.

INSERT into zsosms2 values wa_zsosms2.

SELECT *

INTO CORRESPONDING FIELDS OF TABLE itab_mytable

FROM zsosms2.

CALL FUNCTION 'ZSOSMS2'

DESTINATION 'XYZ'

EXPORTING

i_test = 'A'

TABLES

zsosms2 = itab_mytable.

How do I make a new RFC? and from where in this program should i call this RFC?

former_member181959
Contributor
0 Kudos

Hi,

Are you doing Sender RFC -


XI----


Recevier Mail scenario here?

If so, what the RFC ZSOSMS2 is doing here?

can u please explain?

Prasad Babu.

null

Former Member
0 Kudos

Yes, I am doing a Sender RFC to XI (Integration process) to Reciever Mail Scenario. The program that i have already given is used as a test program to add the values to the table.It calls the function module ZSOSMS2 which has the foll source code:

FUNCTION ZSOSMS2.

*"----


""Local Interface:

*" IMPORTING

*" VALUE(I_TEST) TYPE CHAR20 OPTIONAL

*" TABLES

*" ZSOSMS2 STRUCTURE ZSOSMS2

*" EXCEPTIONS

*" ERROR

*"----


ENDFUNCTION.

I have been able to read this RFC, have done a Message mapping which maps the CONTENT(present in ZSOSMS" table to some body attribute of the target Message Type attribute.

With this i have been able to read the content from the RFC and put it in as the content of my mail. But i am not sure if this is the best way.

If you are aware of any optimal way of doing it please let me know..

Thanks,

Meghana