How to send the entire binary file as Content in mail adapter
Hi,
I have the below scenario:
A binary file is there on the XI server and this is more than 1 lines.
This file needs to be sent across to certain email addresses via the XI interface.
I have made the design and config and now get the the mail but so far not been able to get the file contents.
The requiremnet is to send the entire file contents in the mail so that they appear in the body of the received mail.
How do i do it?
Can you please advice.
Regards,
Archana
Hi,
I am giving below the incoming mesasge details and the outgoing Mail message details.
Sender File Adapter:
Mesasge Content/Payload:
<?xml version="1.0" encoding="utf-8" ?>
- <ns:MT_Ack_Mail_In xmlns:ns="Urn:Serco-com:interface:Banking:HSBC:FileTransfer">
- <Content>
- <Mail>
<Details>UNBUNOA:3HEXAGON-ABCABC10268002081201:2152+692125127893</Details>
</Mail>
- <Mail>
<Details>UNH1CONTRL:2:2:UN:APACS</Details>
</Mail>
- <Mail>
<Details>UCI1000246720ABC10268002HEXAGON-ABC4+C09</Details>
</Mail>
- <Mail>
<Details>UNT31</Details>
</Mail>
- <Mail>
<Details>UNZ1692125127893</Details>
</Mail>
</Content>
</ns:MT_Ack_Mail_In>
Receiver Mail Adapter:
Message Content/Payload:
<?xml version="1.0" encoding="UTF-8" ?>
- <ns1:Mail xmlns:ns1="http://sap.com/xi/XI/Mail/30">
<Subject>ME-Acknowledgement</Subject>
<From>email of from</From>
<To>my email</To>
</ns1:Mail>
I need to map the contents of the incoming payload Contents/Mail/Details (all the 5 instance) to outgoing Missing Content (after To field).
If it can be in Mail body, then it would be best else please suggest what other option can I use?
Also, If i want the file name to be in the subject of the mail, is that possible to be picked up in the configuration?
Please help.
Regards,
Archana
Similar Messages
-
How to read the entire CSV file content
Hi All,
I am using JDBC adapter and i need to send the entire CSV file to the Blob datatype filed.
How to achive this?
Thanks
Mahi.Hi Mahi
So you want to send the content of the entire CSV file to a particular field in data base?
You can write a java mapping to read the content of the CSV file and then populate the same under the field of the data base.
If you need help on java mapping then please provide the sample CSV file and the target JDBC structure. -
How to send the payload to a jsp using receiver Http adapter?
Hi experts,
I have this scenario from Legacy to XI to external app server.I have a test jsp to execute that functionality .Its a jsp which has 1 textarea named "test" and when I click on the submit buton I get a response back.This way I am able to test this independently.Now from XI when I am executing my scenario I am getting status code '1250' and message as ' http request(test) is null'.Now in the scenario in http adapter I just provide the target host : ip of server ,
service number : port no ,
path: the container or the request handler. But this scenario fails and gives me the above erroneous response.Now Basically I am not able to get how to send the value to the textarea "test"? please provide help as soon as possible.Do we have to put the name of the jsp in the "path" in http adapter and use prolog as test=.I tried this but it doesnt work.
Is there any way to check the URL that it forms after appending the querystring in the url ...?
So please provide help on this or suggest a solution to [email protected] as soon as possible.....
Thanx in advance.
Akshatahey Shekhar,
thanx for that prompt reply but I have configured the communication channel in the same manner as suggested by u.
actually I have this jsp page http://xx.xx.xx.xx:8080/abcdef/try/efg.jsp where there is a textarea "test" which has to be filled and there is a submit button.When I test this http client i.e the above jsp page independently then it goes to handler
http://xx.xx.xx.xx:8080/abcdef/trial/ And it gives a proper response message after clicking on the submit button.
now I want to carry out the same using receiver http adapter. I need to pass the value for this inputfield names "test" on that jsp . so right now I have configyured the adapter as
addressing type: url
target host : xx.xx.xx.xx
service no:8080
path : here I have given the path of handler i.e /abcdef/trial I tried giving the jsp page also but logically I guess it should be the handler.
content type: text/xml; charset=iso-8859-1
xml code: UTF-8
Mask special characters (URL escaping) checked.
now since the name of the inputfield is "test" in the prolog I gave test=
But it doesnt work I get this error "http request parameter [test] is null" in the response message which I guess suggests that it is not able to send the value for the field"test" to that handler.Please suggest how to send this and tell me if there are any other configurations that I have to do in the receiver communication channel.
Thanx ,
Akshata -
How to send the Checked-in file to the user in workflow as an attachment.
Hi All ,
I am using UCM 11g and i need to send email to the workflow users with the checked-in file as an attachment.Can anyone guide me how to customize or configure it in UCM 11g.
Thanks !!!Hello,
this is not a standard behaviour and I am not sure if I would even recommend you to go this way. Why?
a) content items in workflows are usually still to be reviewed - if you send it as an attachment to an email, the user may forward it and you will by-pass all the security that UCM provides
b) you will mess up version controls (which attachment is the correct one, if someone checks in a new version?)
c) you will pass the content through the email server - this is something customers usually want to get rid of
d) why can't you use just the standard workflow review functionality? - that is, instead of the file you send a link to the file, which usually displays its web-viewable rendition (but you can change it to the link to native files, if you want to) This is also a one-click solution (well, users may have to authenticate for UCM, if you have no single sign-on), and it is completely under control.
However, if you stick to email attachments, you will have to go with a custom component. There is a sample AcmeEmail, which can serve as a basis for email functions, so you will need to combine it with workflows. But like I wrote - better try to persuade your customer to go with the standard.
Jiri -
How to send the PAYE EDI files - P45(1) P45(3) P46 to HMRC
Hi,
How do we send the EDI files like P45(1), P45(3), P46 etc.. to HMRC.
Oracle Payroll generates the files, but doesn't support transmission to HMRC.
Can these files be directly uploaded on the HMRC website ?
Are there any recommended third-party softwares for the same ?
Appreciate any inputs.
Thanks,
VigneswarThanks Avinash.
I see some Third-party softwares here :
http://www.hmrc.gov.uk/ebu/edi/edi-software.htm#P37_1596
Are there any free ones ?
Any idea how much does the licensing for EigarPay cost ?
Thanks,
Vigneswar -
How to send the entire process payload as an attachment in the Email
Hi All,
I have a requirement in my present project. If is there is any exception while executing the process, we have to send the Error Email notification to the end user with entire process payload as an attachment. we are using the SOA Suite 11.1.1.6 and can any one help me out in this?
Thanks,
HariHari,
There is tab called Attachments in Email activity where in you can attach the payload from your BPEL variables.
Thanks
Veer -
How to send the invoice through more than one E-mail Ids?
Hi Experts,
I need to send invoice to two email ids. I made a set up in vv31 by setting the transmission medium 7 but
it doesn't work.
The customer is asking that when i do invoice it should go to two email address.
Which output type i should take?
Kindly help me regarding this.
Thanks
RaghuHi,
In VV31
In communication maintain recipients as your 2 Emil id's and recipient type
If you have customized output then take that if Not then use standard RD00
Kapil -
I need to update the subject in the mail while choosing option i.e. "Send a copy of the entire PDF file as an attachment"?
How I can add my own subject in the mail while attaching pdf file, currently it shows as "do" subject name which is default every time?the normal FILE FTP adapter will do or do we have to use any special Adapter
File adapter with a bit of modification will do. See this
XI: Read data from PDF file in Sender Adapter
Once ur pdf is converted to xml, u can use the java or xsl mapping to map the comlpete xml structure into one field
The specified item was not found.
Regards,
Prateek -
How to create xml file from Oracle and sending the same xml file to an url
How to create xml file from Oracle and sending the same xml file to an url
SQL/XML (XMLElement, XMLForest, XMLAgg, etc) and UTL_HTTP.
Whether that works for you with the version of Oracle you have, your requirements, and needs is another story. A little detail goes a long way. -
How to send the dynamically generated XML file to other site for further processing?
I have a question regarding exchanging data between two systems
using XSQL servlet. The situation is descrbed as the follows:
Assume that we have a simple XSQL page named "emp.xsql"
<?xml version="1.0"?>
<?-- XSQL page file "emp.xsql" -->
<xsql:query xmlns:xsql="urn:oracle-xsql" connection="demo" >
SELECT * FROM EMP
</xsql:query>
and we can access it through the HTTP request likes
http://web_server_name/xsql/emp.xsql.
Usually we will the returned dynamic XML file and show it on the
screen. Now the problem is that we don't want to show the
generated XML file on the calling screen. Instead, we want to
send the generated XML file to other website for further
processing, say, using JSP or ASP likes
http://other_web_server_name/XMLProcessing.jsp?.....
How can it be implemented using XSQL servlet?
Any hint and outline of the solution is appreciated.
ThanksIke,
Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
Please help me.
Thank you for your posting.
Padma. -
How to send the report output to the application server in a excel file
Hello,
how to send the report output to the application server in a excel file.
and the report runs in background.
Thanks in advance.
SundeepDear Sundeep.
I'm providing you with the following piece of code ... Its working fine for me ... hopefully it suits your requirement ...
D A T A D E C L A R A T I O N *
TYPES: BEGIN OF TY_EXCEL,
CELL_01(80) TYPE C,
CELL_02(80) TYPE C,
CELL_03(80) TYPE C,
CELL_04(80) TYPE C,
CELL_05(80) TYPE C,
CELL_06(80) TYPE C,
CELL_07(80) TYPE C,
CELL_08(80) TYPE C,
CELL_09(80) TYPE C,
CELL_10(80) TYPE C,
END OF TY_EXCEL.
DATA: IT_EXCEL TYPE STANDARD TABLE OF TY_EXCEL,
WA_EXCEL TYPE TY_EXCEL..
E V E N T : S T A R T - O F - S E L E C T I O N *
START-OF-SELECTION.
Here you populate the Internal Table.
Display - Top of the Page.
PERFORM DISPLAY_TOP_OF_PAGE.
E V E N T : E N D - O F - S E L E C T I O N *
END-OF-SELECTION.
SET PF-STATUS 'GUI_STATUS'.
E V E N T : A T U S E R - C O M M AN D *
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXPORT'.
Exporting the report data to Excel.
PERFORM EXPORT_TO_EXCEL.
ENDCASE.
*& Form DISPLAY_TOP_OF_PAGE
text
--> p1 text
<-- p2 text
FORM DISPLAY_TOP_OF_PAGE .
SKIP.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'O R I C A'
CENTERED COLOR 1,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE,
/05 SY-VLINE,
06(127) 'Shift Asset Depreciation - Period/Year-wise Report.'
CENTERED COLOR 4 INTENSIFIED OFF,
132 SY-VLINE.
WRITE: /05(128) SY-ULINE.
E X C E L O P E R A T I O N
CLEAR: IT_EXCEL[],
WA_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
WA_EXCEL-cell_02 = ' XYZ Ltd. '.
APPEND WA_EXCEL TO IT_EXCEL.
CLEAR: WA_EXCEL.
WA_EXCEL-cell_02 = 'Shift Asset Depreciation - Period/Year-wise Report.'.
APPEND WA_EXCEL TO IT_EXCEL.
PERFORM APPEND_BLANK_LINE USING 1.
ENDFORM. " DISPLAY_TOP_OF_PAGE
*& Form APPEND_BLANK_LINE
text
-->P_1 text
FORM APPEND_BLANK_LINE USING P_LINE TYPE I.
DO P_LINE TIMES.
CLEAR: WA_EXCEL.
APPEND WA_EXCEL TO IT_EXCEL.
enddo.
ENDFORM.
*& Form EXPORT_TO_EXCEL
text
--> p1 text
<-- p2 text
FORM EXPORT_TO_EXCEL .
DATA: L_FILE_NAME(60) TYPE C.
Create a file name
CONCATENATE 'C:\' 'Shift_Depn_' SY-DATUM6(2) '.' SY-DATUM4(2)
'.' SY-DATUM+0(4) INTO L_FILE_NAME.
Pass the internal table (it_excel which is already populated )
to the function module for excel download.
CALL FUNCTION 'WS_EXCEL'
exporting
filename = L_FILE_NAME
tables
data = IT_EXCEL
exceptions
unknown_error = 1
others = 2.
if sy-subrc <> 0.
message e001(ymm) with 'Error in exporting to Excel.'.
endif.
ENDFORM. " EXPORT_TO_EXCEL
*~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
When you click the button - Export to Excel ( GUI-Status) you'll be able to export the content of the Internal Table to an Excel file .......
Regards,
Abir
Don't forget to award Points * -
How to send the PDF file to FAX will the nast table updates
Hi all,
How to send the PDF file to FAX. Will the nast table updates ( which fields updates ).
Need is once fax is send for that delivery, again it should not fax again. Will the nast table helps to check the sent fax.
Please give me sutable suggessions....Have you checked Forums » Community Discussions » Code Snippets
I believe there were some examples on converting/sending PDF.
Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it. -
How to send the pdf file....
How to send the pdf file which is an outpu of smart form to sap users.
How to delete the pdf file as soon as it was sent.Have you checked Forums » Community Discussions » Code Snippets
I believe there were some examples on converting/sending PDF.
Or check FM 'SO_DOCUMENT_SEND_API1' and documentation for it. -
How to send the file contents in the application server to ftp server
Hi,
how to send the file contents in the application server to ftp server.
regards,
sreeTest SAP FTP functions
DATA: BEGIN OF MTAB_DATA OCCURS 0,
LINE(132) TYPE C,
END OF MTAB_DATA.
DATA: MC_PASSWORD(20) TYPE C,
MI_KEY TYPE I VALUE 26101957,
MI_PWD_LEN TYPE I,
MI_HANDLE TYPE I.
START-OF-SELECTION.
MC_PASSWORD = 'password'.
DESCRIBE FIELD MC_PASSWORD LENGTH MI_PWD_LEN.
*-- FTP_CONNECT requires an encrypted password to work
CALL 'AB_RFC_X_SCRAMBLE_STRING'
ID 'SOURCE' FIELD MC_PASSWORD ID 'KEY' FIELD MI_KEY
ID 'SCR' FIELD 'X' ID 'DESTINATION' FIELD MC_PASSWORD
ID 'DSTLEN' FIELD MI_PWD_LEN.
CALL FUNCTION 'FTP_CONNECT'
EXPORTING
USER = 'userid'
PASSWORD = MC_PASSWORD
HOST = 'servername'
RFC_DESTINATION = 'SAPFTP'
IMPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
NOT_CONNECTED = 1
OTHERS = 2.
CHECK SY-SUBRC = 0.
CALL FUNCTION 'FTP_COMMAND'
EXPORTING
HANDLE = MI_HANDLE
COMMAND = 'dir'
TABLES
DATA = MTAB_DATA
EXCEPTIONS
TCPIP_ERROR = 1
COMMAND_ERROR = 2
DATA_ERROR = 3
OTHERS = 4.
IF SY-SUBRC = 0.
LOOP AT MTAB_DATA.
WRITE: / MTAB_DATA.
ENDLOOP.
ELSE.
do some error checking.
ENDIF.
CALL FUNCTION 'FTP_DISCONNECT'
EXPORTING
HANDLE = MI_HANDLE
EXCEPTIONS
OTHERS = 1.
Execute external commands (FTP Scripts)
The following code shows the syntax of the FM 'SXPG_COMMAND_EXECUTE'. You pass it the external command created within transaction SM69 and it will execute it.
DATA: ld_comline
LIKE sxpgcolist-name,
ld_param LIKE sxpgcolist-parameters,
ld_status LIKE extcmdexex-status,
ld_output LIKE btcxpm OCCURS 0 WITH HEADER LINE,
ld_subrc LIKE sy-subrc.
REFRESH ld_output.
MOVE 'FTP_DATA_IN' to ld_comline. "Maintained using trans SM69
Execute external command, contained in 'ld_comline'
CALL FUNCTION 'SXPG_COMMAND_EXECUTE'
EXPORTING
commandname = ld_comline
additional_parameters = ld_param "Params passed to script
operatingsystem
= 'UNIX'
IMPORTING
status = ld_status
TABLES
exec_protocol = ld_output
EXCEPTIONS
no_permission
= 1
command_not_found
= 2
parameters_too_long
= 3
security_risk
= 4
wrong_check_call_interface = 5
program_start_error = 6
program_termination_error = 7
x_error = 8
parameter_expected = 9
too_many_parameters = 10
illegal_command = 11
wrong_asynchronous_parameters = 12
cant_enq_tbtco_entry
= 13
jobcount_generation_error
= 14
OTHERS
= 15.
IF sy-subrc NE 0.
ENDIF. -
My email won't send as when it was set up an extra letter was accidentally inserted in the address. I need to know how to remove the entire email address and start a fresh.
Launch Mail.app, select Mail > Preferences... > Accounts and select the account you need to edit in the left column.
The receiving information will be displayed for the selected Account, with a pop-up selector for the Outgoing Mail Server (SMTP) toward the bottom. That selector shows which mail server will be used with this account; to send mail.
Click and hold on that selector, and scroll down (holding the mouse or trackpad clicked) to Edit Mail Server List... and you'll get a sheet dropping down with the mail servers listed.
Select the problematic mail server, and edit it using the Account Information and Advanced items on that sheet.
Maybe you are looking for
-
'Accept IDOC' from external system
Hi Experts, I am new to IDOCS. I have to update one already written function module to accept IDOC in SAP from external system. In the function module I see some IMPORT parameters like 'input_method' and 'mass_processing' and EXPORT parameters like
-
Why are my stills blurry?
Please help wise ones. I have a problem in my timeline, after I render my project (1 hour long), a lot of stills blurred or jumped, I have to find the original still, copy & then do a paste attributes to the ones that are in the timeline. Not all sti
-
I want to boot windows 8.1 x64
i want to boot windows 8.1 x64,using usb,i made usb bootable by using Windows 7 USB DVD Download Tool,but it failed to make it bootable ,giving error of bootsect.i put bootsect.exe in Windows 7 USB DVD Download Tool folder..than usb was bootable but
-
I am configuring the GoldenGate Plugin for OEM. There is a step to create the wallet. The documentation is not clear about the role of the password supplied. If I run the JAGENT as oracle user, should it match the password for the oracle user, or is
-
Open Source this Project!
That is a sweet application. It's got a ton of really cool features that I know I'd love to use. Open Source it, or at least make the code available so we can take a look at how you did some of those things. Or at least publish some of the things you