Sending a document as an mail attachment with approve and reject button
Hi all,
i have an infopath form where a user fills the form and on submit the form is saving as an document in the document library,
now my question is, how can i get this document as an mail attachment with approve and reject option.
Hello,
You need to hide them on form load for user. Add one more hidden control in form and keep control value blank initially. Now add rule on button submit to set the control value to some other so you can hide/show the button.
Now add rule on approve and reject buttons that, if field1 is blank then hide this control.
http://office.microsoft.com/en-in/infopath-help/add-formatting-rules-HA101783371.aspx
Hemendra:Yesterday is just a memory,Tomorrow we may never see
Please remember to mark the replies as answers if they help and unmark them if they provide no help
Similar Messages
-
Any software can see the e-mail attachment with *.doc and also *.tif
Seem Iphone itself cannot open *.doc, *.tif, need to download software from Applie store, but cannot find, anyone can help
The iphone supports viewing attachments in .doc & .tiff. However, if these attachments were mailed to you and the email was formatted in RTF they most likely won't display. Tell the sender to use plain text formatting & the attachments should display properly.
-
Sending XI-Content as Mail Attachement with specific Filename
Hi,
I want to send the Message-Content as a mail attachment with a specific Filename (e.g. 2005-08-31.csv). The content is a CSV File, not a XML
In the scenario an IDOC is sent to the XI mapped in a CSV-File (via Java-Mapping) and should be send as a Mail Attachment.
Is this possible and how?
Thank you for your help
ThomasHi Thomas,
You can influence the filename with the ModuleTransformBean. You need at least SP9 for this feature.
In the Mail Receiver Channel got to tab "Module"
As first module (before the mail module) enter:
localejbs/AF_Modules/MessageTransformBean as Local Enterprise Bean with any key
For this module key you can use in the module configuration following entries:
Transform.ContentDisposition inline|attachment;filename=<filename>
Transform.ContentDescription <Filename>
Transform.ContentType <MimeType>/<SubType>;name="<filename>"
If you want to send an attachment, use:
Transform.ContentDisposition attachment;filename="MyFile.csv"
Transform.ContentDescription MyFile
Transform.ContentType text/plain;name="MyFile.csv"
If you use the Mail Package, you can set the file name that way:
<ns:Mail xmlns:ns="http://sap.com/xi/XI/Mail/30">
<Subject>Hello</Subject>
<From>[email protected]</From>
<To>[email protected]</To>
<Content_Type>text/plain;name="MyFile.csv"</Content_Type>
<Content>Here comes the CSV Data</Content>
</ns:Mail>
Hope that helps,
Stefan -
Whenever I send a email from iPad mail app with an attachment from pages or numbers, the receiver is getting only attachment in the email. They are getting the email content. How to troubleshoot this issue.
Someone is probably sending spam with your address forged on the To: line. Could be one of your old contacts with a Windows machine has a virus that's doing it. It's also possible your e-mail account has been hacked, though I'd think such a hacker would be a bit more purposeful.
For more information, see:
http://www.reedcorner.net/guides/macvirus/is_it_malware.php#spam
* Disclaimer: links to my pages may give me compensation, and should not be taken as endorsement of my services by Apple. -
Unable ot send completed PDF questionaire as mail attachment. What now?
With all the wealth of data you provide...
My gues is that the file was not properly enabled to be answered by mail. Unless you can use Acrobat for this, one of your best bets is to contsct the author of the file and ask for a properly enabled copy. -
Mail attachment with UDF in SAP PI 7.1
Hello,
I need to reproduce this solution in PI 7.1
/people/samuel.chandrasekaran2/blog/2008/10/06/xi-mail-adapter-dynamically-building-attachment-and-message-body-content-using-a-simple-udf
It is about adding lines of a message as an attachment to a mail.
The UDF works for all elements except the lines for the attachment itself.
In order to build the content of the attachment (for this particular requirement) they are using a global variable declared and initialized in the global sections.
But the button for the Java Section to use an imported archive is no longer available in PI.....
So how to solve that issue?
I tried to use a graphical variable instead of a global variable but I have no idea how to add the n lines
from the source message as one import object into the UDF via that graphical variable.
Your ideas are very appreciated!
Best Regards
DirkHi,
yes, it is a little bit different. This is the issue.....
But I am not sure if your links will help:
1) /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable
is about a different solution. I do not need to count the number of lines of the source message.
And the second variable is about concat line by line from unbound node to unbound node.
My issue is:
Souce:
Message line (0...unbound) ! ! ! ! ! ! ! !
. ResultLine (1..1)
Mapping:
=> ResultLine1
ResultLine2
ResultLine........ => into UDF to an element (1..1) in one mapping operation.
So that all "ResultLine"s are included.
The result is explained in the given link for Mail attachment with UDF.
So I am not sure how to use this thread for my issue.
In the comments of that blog Christoph Gerber writes that the new variable feature can only handle single values.
So it is not suitable for my purposes as I have a list of values here that needs to be moved into the target message field.
2) http://wiki.sdn.sap.com/wiki/display/Java/UsingEditJavaSectioninMessageMapping
shows where to find the button "Java section" which is not available here in 7.1
3) /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
too is about the nice little button for Java Section that is no longer existing on PI 7.1 screen for mappings.
So my issue is: How to replace the Java section function with global variables in PI 7.1?
Best regards
Dirk -
I'm picking up all of the data script related to the sending / receipt of an e-mail along with the e-mail itself and can't find a way of not showing the text. Obviusly only a command but can't find it! Help!
Shift-Command-H is the key-combo to switch 'Long Header'/'Standard Header' .
Long way: Top Menu -> View -> E-Mail
Stefan -
Creating a dialog box with OK and Cancel buttons without OADialogPage
Hi Experts,
i want to create a dialog box for Delete Confirmation means after clicking on delete it should pop up a small dialog box with OK/Cancel buttons
and need code for the same to handle the buttons.
i have created with OADialogPage but its showing in a complete page but i want to show those buttons in a small box.
Plz help.
THANKS IN ADVANCE.
Thanks
Raja.Hi,
I have not tried using javascript in destination URI as suggested by Mukul.
I have tried the below code for opening a page as dialog box.
You can try it for your requirement by creating a dialog page of your own, say XXDialogPage (with OK and Cancel button)
StringBuffer l_buffer = new StringBuffer();
l_buffer.append("javascript:mywin = openWindow(top, '");
String url = "/OA_HTML/OA.jsp?page=/xx/oracle/apps/fnd/dialog/webui/OADialogPG";
OAUrl popupUrl = new OAUrl(url, OAWebBeanConstants.ADD_BREAD_CRUMB_SAVE );
String strUrl = popupUrl.createURL(pageContext);
l_buffer.append(strUrl.toString());
l_buffer.append("', 'lovWindow', {width:500, height:500},false,'dialog',null);");
pageContext.putJavaScriptFunction("SomeName",l_buffer.toString());
In dialog page's controller, you can forward it to the page onc ethe user selects OK or Cancel.
Pass the selected value back to the main page and further you can use it for deleting.
Regards. -
I can not see my screen, but I can listen to notifications, listen to music with headphones, and my button locked not responds
I believe the keys on an imac are F11 and F12, for dark / bright respectively.
Try that, I think it'll work.
If not, then try out all the "F" keys, one of them will work.
Ben -
How to display warning message box with yes and no buttons
Hi,
I am writing the code to delete emp details from database.
I want to display warning message with yes and no buttons after clicking the delete button in the same page, if yes is clicked, i want to invoke delete() method in AM.
Is it possible, if yes pls suggest me how to do it.
Thanks
Message was edited by:
user536125This is being discussed in
warning message(dialog page) to be displayed in the same page
Thanks
Tapash -
Send an SAP object (BUS****) as attachment with SAP Mail
Hi all,
I'd like to send a internal SAP(express)-mail
with a purchase order as business object (BO) attached. (here BO = BUS2012).
It's the same thing you can do with generic object services, GOS, to send a SAP business object as mail notification
attachment.
Can I use the function 'SO_DOCUMENT_SEND_API1' or
do I have to use the BCS-functions?
All the reports BCS_EXAMPLE* don't send a
business object.
Thanks in advance,
MarkusHi Markus,
Seems as if FM 'SO_DYNP_DOCUMENT_TRANSFER_API1' may popup a window. Below is a working program. Have fun!!
Cheers,
Ramki.
REPORT zramki_send_mail_bor .
*& Report ZRAMKI_SEND_MAIL_BOR
*& Send document with BOR Object as attachment
DATA: docdata LIKE sodocchgi1,
objpack LIKE sopcklsti1 OCCURS 10 WITH HEADER LINE,
objhead LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
objhex LIKE solix OCCURS 10 WITH HEADER LINE,
reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
DATA: tab_lines TYPE i,
doc_size TYPE i,
objdes(100).
* For the BOR attachment
CONSTANTS:
c_object_describe LIKE swotobjid-describe VALUE '*<OBJECT>*'.
DATA:
l_object TYPE swotobjid,
l_objheader LIKE soxobj.
PARAMETERS:
p_objtyp TYPE swo_objtyp OBLIGATORY,
p_objkey TYPE swo_typeid OBLIGATORY.
* Create Message Body
* Main Text
objtxt = 'Test Document.'.
APPEND objtxt.
objtxt = 'You will find a BOR object attachment in message.'.
APPEND objtxt.
objtxt = 'Have a nice day.'.
APPEND objtxt.
* Title and Description
DESCRIBE TABLE objtxt LINES tab_lines.
READ TABLE objtxt INDEX tab_lines.
docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
docdata-obj_name = 'BOR Object'.
Concatenate p_objtyp '-' p_objkey into objdes.
Concatenate 'BOR Object' objdes 'as Attachment'
into docdata-obj_descr separated by space.
condense docdata-obj_descr.
* Write Packing List (Main)
CLEAR objpack-transf_bin.
objpack-head_start = 0.
objpack-head_num = 0.
objpack-body_start = 1.
objpack-body_num = tab_lines.
objpack-doc_type = 'RAW'.
APPEND objpack.
* Create OBJ attachment
l_object-describe = c_object_describe.
l_object-objtype = p_objtyp.
l_object-objkey = p_objkey.
CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'
IMPORTING
own_logical_system = l_object-logsys
EXCEPTIONS
own_logical_system_not_defined = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE e398(00) WITH 'No Log Sys Found'.
ENDIF.
MOVE-CORRESPONDING l_object TO l_objheader.
APPEND l_objheader TO objhead.
* Write Packing List (Attachment)
CLEAR objpack.
objpack-head_start = 1.
objpack-head_num = 1.
objpack-body_start = 0.
objpack-body_num = 0.
objpack-doc_type = 'OBJ'.
objpack-obj_name = p_objtyp.
objpack-obj_descr = Objdes.
APPEND objpack.
* Create receiver list
reclist-receiver = sy-uname.
reclist-rec_type = 'B'.
APPEND reclist.
* Send Message
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = docdata
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = objpack
object_header = objhead
contents_bin = objbin
contents_txt = objtxt
receivers = reclist
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
IF sy-subrc <> 0.
MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
WITH docdata-obj_name.
ENDIF.
WRITE: / 'End of Program'. -
Sending km document as an email attachment
Hi all,
I am trying to send a KM document as email attachment with the following peice of code. But I am getting FileNotFoundExceptio. Can anyone guide me as to where its going wrong. Any help will be appreciated.
String filePath = "";
ResourceContext ctx = new ResourceContext(getEP5User());
RID rid = RID.getRID("/documents/LRForms/0000000054.pdf");
IResource pdfResource =ResourceFactory.getInstance().getResource(rid, ctx);
filePath =
"irj\servlet\prt\portal\prtroot\com.sap.km.cm.docs\"
+ pdfResource.getRID().toString();
Properties props = new Properties();
props.put("mail.smtp.host", host);
Session session = Session.getInstance(props, null);
MimeMessage message = new MimeMessage(session);
Address toAddress;
Address fromAddress;
Address ccAddress;
Address bccAddress = new InternetAddress();
MimeMultipart multipart = new MimeMultipart();
BodyPart messageBodyPart = new MimeBodyPart();
fromAddress = new InternetAddress("[email protected]");
message.setFrom(fromAddress);
toAddress = new InternetAddress("[email protected]");
message.setRecipient(Message.RecipientType.TO, toAddress);
message.setSubject("Subject");
messageBodyPart.setText("Please find attached the details.");
multipart.addBodyPart(messageBodyPart);
messageBodyPart = new MimeBodyPart();
DataSource source = new FileDataSource(filePath);
messageBodyPart.setDataHandler(new DataHandler(source));
messageBodyPart.setFileName(source.getName());
messageBodyPart.setHeader("Content-Type", "application/pdf");
multipart.addBodyPart(messageBodyPart);
message.setContent(multipart);
Transport.send(message);
On executing this code I am getting following exception.
MessagingException javax.mail.SendFailedException: Sending failed; nested exception is: javax.mail.MessagingException: IOException while sending message; nested exception is: java.io.FileNotFoundException
Thanks and regards,
JaydeepHi,
Did you check permissions/security zone settings on the folder/file?
Can you access the file directly from the browser?
Regards,
Omri -
HT4061 How do you send pages Document as an pdf attachment
When emailing pages document from pages on iPad. Sometimes it sends as a small PDF square.
Sometimes sends the entire document with any comments I made about the document.
When you send the document with afew lines of comment they go through as part of the document.
I have done it both ways and don't know the procedure. I just seem to luck out sometimes.
Any comments
PaulStart Pages and when in the view of the document thumbnails tap Edit.
Tap the document you want to send as a PDF to select it.
Then tap the Share icon, the icon of the curved arrow coming out of a rectangle.
Select Mail
Tap PDF
This will convert the document to a PDF which is attached to an email. If the original Pages document is a one page document the PDF will show all text in the email. If the document has more that one page all you'll see is the PDF attachment icon.
Address the email.
Add any additional text you want.
Tap Send to send the email. -
Sapscript via mail: attachment with body
Hi all
I need your opinion in order to solve the problem in object
I've an old bill message to be sent via mail, so I've set the customizing by NACE and now it works fine
The problme is the sapscript is attached to e-mail as pdf but any text is inserted to body mail:
any text can't be inserted: I saw the note 753622 (Sending of body text and PDF attachment with medium 5), it speaks clearly, it's not possible to add a text.
So the only solutions seem to be:
- to try to change the form function in order to add a text as note [like here|Setting Mail Subject and Body;
- Send the mail by your self (getting OTF data)
How have you solve it?
Thanks
MaxHi Max,
If I need any sort of email body for an output-based email, I always implement a custom processing routine with mode '5' or mode '8' and leverage existing data retrieval calls where possible. As you've seen, SAP's output processing options are very limited and clumsy for email processing. A more professional HTML email body is the way to go - your best option is to handle it yourself.
Brad -
How to keep same sender file name for receiver mail attachement
Hi,
i am working with File to Mail scanario. There i want to pick a flat file from native file system and then send it as email attachment. Now i am able to send the file but the flat is getting converted as an xml file. is there any method to keep the same sender file name and type for receiver mail attachment. i am not using any mail package. i am using XI payload and keep attachments.
Thanks in advance.
-SivaHi,
Yes,With out using the mail package u can send the Mail Attachments to the receiver side,
In that case no need of Integration Repository objects.
Chck this links.
/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure
/people/community.user/blog/2006/09/07/email-reporting
/people/community.user/blog/2006/09/08/email-report-as-attachment-excelword
/people/michal.krawczyk2/blog/2005/03/07/mail-adapter-xi--how-to-implement-dynamic-mail-address
/people/michal.krawczyk2/blog/2005/11/23/xi-html-e-mails-from-the-receiver-mail-adapter
If u dont get ur requirement then let me know ur Mail id i will send u a Doc.
Regards,
Phani
Reward points if Helpful
Maybe you are looking for
-
Video comparison between the 6270 and 6280
What is the maximum video resolution of the 6270? Does it have 640 x 460 resolution that the 6280 has? And for anyone who has handled both, is there much difference between the two for operating systems, camera quality, memory and the lot? Grateful i
-
Do apple stores stock the quad i5 in the uk?
sorry i didnt know where else to put this, ive just ordered an imac online 27" but realised theres at least a 2 week wait, i was wondering if anyone from the uk has bout the quad core i5 from a store, i asked the milton keynes store but they werent v
-
Suggetions required for migrating Oracle forms 4.5 to 10G
Hi, We are migrating an application, which is built using oracle forms 4.5 to oracle 10G forms. I have following queries: 1. We are trying to automate some steps in this process using following approach: a. Migrating forms 4.5 to 6i using command lin
-
Hi All, I had almost 80,000 records that to be send in a day from BW to Oracle by using proxy, so how can i set them in a Packet size? Where can i set the Packets? How much i can set as Max size of Packet? Points will be rewarded. Thanks in Advance,
-
BI Process chain monitoring from SOLMAN
Hi, We have configured CEN in our landscape and successfuly managed to get data from satellite systems and getting alerts according to our requirement. But for BI Process chain Monitor we are getting alerts of yellow MTE with text "Entire chain now h