on 08-27-2011 12:33 PM
Hi,
The attachment name should be of the SAP OSS note "1496201".
The note has:
"Accordingly to the new standards defined by the Brazilian authorities (SEFAZ) the XML file names must be generated as follows:
NF-e:
Cancellation:
Skipping:
The current solution is almost on the same lines
I have explored SDN & got the link
/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution but not sure.
Please suggest how do I approach to implement the note "1496201" in my solution.
Regards,
Farooq
You should already have the the access key in subject from the UDF on pg13. Just change the last line to "return subject" from "return xml" then concat it with -nfe.xml
Regards
Asif K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
when you have the required access-key in the XML, then you can do it similar as in Michal's blog.
If you just want to send the attachmanet without email body, you need not create a new attachment, you can just set the file name with this line:
payload.setContentType("application/xml;name=\"" + fileName + "\"");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.