How to pre-populate the sender's mail and attach a pdf report.

I mean....supppose i want to prepopulate the senders email field in a email dialogue box and the have an option to attach a report to the mail...so that a mail can be sent to the senders mail id as well as the recepients id.

Actually .....how should i do this in Flex......i mean the process...and that too...how to retrieve the email of the person who has logged in??

Similar Messages

  • How to Pre-Populate the user information during Assign Task operation

    Hi ,
    I have a requrirement to Pre-Populate the form fields (Name, Email, Phone etc...) when a task is assigned to a user. The users are dynamically assiged, so I am using the Find User and the Assign Task services to locate and assign the task to the user. Since I have a User variable that is a result from the Find User operation, I was hoping to retrieve the user information with the attributes of the User type.
    I tried to use the Set Value service to set the form field (Email) with the email attribute of the User object type i.e.
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   ->  /process_data/facilityAuthority/object/@email
    However I get the following error when I try to do this - com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.
    Is it possible to retrieve the user information from the User object? If so how do I get the values for the User attributes (Name, Email & Phone etc...) so that I can populate them in the form?
    Thanks,
    Samanthapudi

    Hi Han Dao,
    If you are facing an exception of the form "com.adobe.idp.dsc.util.InvalidCoercionException: Cannot coerce object: [B@335d of type: [B to type: interface org.w3c.dom.Document.", It is because the system is trying to cast a Byte Stream into w3c Document and failing. To resolve this we can explicitly cast this byte stream to appropriate data type (String in previous example). To do so we can use a SetValue operation.
    As an example
    Setting
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> /process_data/facilityAuthority/object/@email
    results in the exception
    so we can modify it to
    /process_data/MyForm/object/data/xdp/datasets/data/Form/User/Email   -> string(/process_data/facilityAuthority/object/@email)
    Please let me know if this does not resolve your issue.
    Thanks

  • Use action to send e-mail and attach e-mail to docflow

    Hello guys,
    I am having troubles achieving the following:
    My task is to create an action for a specific transaction type and send out an e-mail (I already finished this part). The e-mail should be available in the transaction history of the transaction.
    I created an action profile and an action for leads and used the method call to be able to use BAdI EXEC_METHODCALL_PPF. Based on implementation CRM_COMPL_MAIL I was able to send out my e-mail with a custom mail form.
    Now the question is how can I put this e-mail to the doc flow of the business transaction (lead)?
    Does somebody have an idea how to achieve that?
    Best regards
    Sascha

    Hello,
    in the meantime I achieved the following:
    - Implemented custom method for action
    - method is triggered when a new lead is saved
    - custom method determines a mail form and creates an e-mail with function modules CRM_ERMS_MAIL_COMPOSE  and CRM_ERMS_MAIL_SEND
    - create an custom activity with a Z process type for e-mail
    - attach the activity to the lead to make it available in the transaction history
    Now I am having troubles with putting the content of the created e-mail to the activity. Can somebody help me here? I am trying to achieve that by using BOL programming and putting the content to BTHeaderTextSet and BTTextHAll of the BTOrder that I created for the activity.
    Best regards
    Sascha

  • How do you change the dpi in Illustrator and save as pdf?

    I've created a file in Illustrator cs4 that I need to change the 350 dpi of and to save as a pdf before having it sent out to be printed. I've found ways to change the ppi...but will that do the same thing as changing the dpi? Any advice would be much appreciated!

    This might explain it
    http://forums.adobe.com/thread/370714
    The device has the dpi not the file itself the file has a ppi resolution the screens are prepared in lpi.
    The above explains it the highest resolution I have ever been asked for was 350 ppi for offset printing 300ppi is normal.
    In other word you do not control the dpi as Steve mentions.

  • Interactive Forms, send e-mail and attach the PDF document

    Hi all, 
    I've the form and I don't know if I can send an email, trough a button (Jscript or Formcalc), with in attachment my filled form in PDF format (further the XML Data)?   
    I don't now also if with Jscript, i can invoke the print and set automatically the print device that I want use to print.
    Thanks in advance,
    Antonello Didonna

    Hi Michal,
    Ok for the email...
    now I'm looking for something to attach a file at the mail.
    For printing, I've found this older code to set the printer:
    var pp = this.getPrintParams();
    pp.interactive = pp.constants.interactionLevel.automatic;
    pp.printerName = "hp officejet d series";
    this.print(pp);
    This code seems that is supported on Abode 6 or later.
    You know another method to set the printer?
    The target is print the PDF at file.
    I've seen also that there's also this method but I don't understand how I can use it!
    FilePrintSilent
    Prints all pages in a document, without displaying a print dialog box to the user. For PostScript printing, only Level 1 operators are used, only ASCII data is generated, and the documentu2019s pages are not shrunk to fit into the imageable area of the printed page.
    FilePrintSilent is also supported in Adobe Reader.
    Syntax
    [FilePrintSilent(char* fullPath)]
    Parameters
    fullPath
    The full path of the file to be printed.
    FilePrintSilent [here|http://livedocs.adobe.com/acrobat_sdk/9/Acrobat9_HTMLHelp/wwhelp/wwhimpl/js/html/wwhelp.htm?&accessible=true].
    Thanks so much,
    Antonello Didonna

  • How does cyrus flag the state of  mail and can we preserve this ?

    When I restore an e-mail account the user gets his mail as unread
    What i am saying here is
    We use imap accounts and I had to restore the mail from a backup, all the users got there mail back, but all as unread including the folders they created.
    it would be handy to know

    There is no reliable way of preserving the read/unread states when restoring.

  • How do you improve the speed of processing and printing of PDF from CAD in indesign?

    I work for an engineering consultancy company and for a long while I have suffered with using PDFs files generated from AutoCAD when placed within an InDesign report. There are three issues that arise:
    The files take a long time to process when preparing the InDesign report. (This is mainly in high quality preview mode)
    The files take a long time to export to PDF
    (The most annoying one) The files take a long time to process and print when sent from the PDF to the colour laser printer. So much so, a single page from InDesign that contains a PDF generated from CAD can take up to 15 mins to print.
    I have tried converting the PDFs to jpegs prior to insertion into the InDesign document, but the quality and colour is dramatically reduced thus them useless. Is there any pre processing on the PDFs generated from CAD that I can do to reduce the impact that it has within InDesign and in the post processing?
    We also get missing font warnings that arise from the inserted PDFs from CAD that may or may not be an issue. Your advice here would also be appreciated.
    I would be the first to admit that I am not the most advanced user of InDesign though I am sure that my workflow could be improved to alleviate the situation.
    Your assistance would be appreciated!

    Thanks for your quick response.
    I have tried both options you have recommended, but unfortunately the file size doesn't seem to be the issue. Most of our CAD files (except for when they contain raster backgrounds) are around 0.5-2Mb which isn't massive compared to some jpegs. The PDF optimization process does make a small difference to the file size but only in the region of perhaps 5% reduction.
    If it helps the most awkward file I am using at the moment has this audit result, pre-optimization. This is typical of the CAD files produced by AutoCAD. As you can see the content streams take up the highest percentage that doesn't reduce that much even when the optimizer has all options engaged.
    What do you think?

  • Send mail by attaching a pdf fetching data from tables.

    Dear Team,
    I have a requirement to send a mail by attaching a pdf.
    Step1 : Getting the data fron tables based on some logic into internal tables. [DONE]
    Step2 : Using this internal and making a pdf  [At present I am making an excel sheet, But client requires non editable well formatted pdf]
    Step3 : Attach this PDF and send it as a mail. [At present I am sending the attched excel but want to send pdf]
    Sample code used is
    **  Body of the mail
    WA_TEXT-LINE = 'Note : This is an autogenerated mail. Please do not reply to this mail.'.
          APPEND WA_TEXT TO TEXT.
          CLEAR WA_TEXT.
    *     create document from internal table with text
          DOCUMENT = CL_DOCUMENT_BCS=>CREATE_DOCUMENT(
                          I_TYPE    = 'RAW'
                          I_TEXT    = TEXT
                          I_LENGTH  = '12'
                          I_SUBJECT = I_SUBJECT1 ).
    **  Excel Attachemnt
    ***  Preparing the xcel
    CONCATENATE 'SNO' 'Request' 'Data1' INTO WA_TEXT-LINE SEPARATED BY CON_TAB.
                CONCATENATE CON_CRET WA_TEXT-LINE  INTO WA_TEXT-LINE.
                APPEND WA_TEXT TO TEXT.
                CLEAR WA_TEXT.
    CONCATENATE WA_SNO WA_REQUEST WA_DATA1 INTO WA_TEXT-LINE SEPARATED BY CON_TAB.
                  CONCATENATE CON_CRET WA_TEXT-LINE  INTO WA_TEXT.
                  APPEND WA_TEXT TO TEXT.
                  CLEAR : WA_TEXT, TEMP_TYPE .
    *** Attaching the excel
    DATA : COUNTER TYPE I.
          DESCRIBE TABLE TEXT LINES COUNTER.
          LOOP AT TEXT INTO WA_TEXT.
            SIZE =  255 + STRLEN( WA_TEXT-LINE ) + SIZE .
          ENDLOOP.
          CALL METHOD DOCUMENT->ADD_ATTACHMENT
            EXPORTING
              I_ATTACHMENT_TYPE    = 'XLS'
              I_ATTACHMENT_SUBJECT = I_SUBJECT
              I_ATTACHMENT_SIZE    = SIZE
              I_ATT_CONTENT_TEXT   = TEXT.
    ** Semding Mail
       CALL METHOD SEND_REQUEST->SET_DOCUMENT( DOCUMENT ).
    IF REQUESTER_MAIL IS NOT INITIAL.
    *       create recipient for cc
            RECIPIENT = CL_CAM_ADDRESS_BCS=>CREATE_INTERNET_ADDRESS(
              I_ADDRESS_STRING = REQUESTER_MAIL ).
    *       add recipient with its respective attributes to send request
            CALL METHOD SEND_REQUEST->ADD_RECIPIENT
              EXPORTING
                I_RECIPIENT = RECIPIENT
                I_COPY      = 'X'
                I_EXPRESS   = 'X'.
          ENDIF.
    SEND_REQUEST->SET_SEND_IMMEDIATELY('X').
    *     ---------- send document ---------------------------------------
          CALL METHOD SEND_REQUEST->SEND(
            EXPORTING
              I_WITH_ERROR_SCREEN = 'X'
            RECEIVING
              RESULT              = SENT_TO_ALL ).
          IF SENT_TO_ALL = 'X'.
            WRITE TEXT-003.
          ENDIF.
          COMMIT WORK.
    Please help me in this regard.
    Thanks in advance.
    Sai

    Hi,
    You can convert the data into spool and then pdf,
    please go through this link in this data from an internal
    table of an script or an smartform is converted into spool
    and then sended into mail,
    https://wiki.sdn.sap.com/wiki/display/sandbox/ConversionofSpoolRequestDataintoPDFandExcelFormatandSenditintoMail
    Hope it helps
    Regards
    Mansi

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

  • How do I populate the address book when trying to send a photo(s) by email?

    How do I populate the address book when trying to send a photo(s) by email?

    Click the Edit Contacts button, the silhouette, in the email attachments panel to bring up the contact book and enter the addresses there. In the contact book, click the new contact button to start entering the information.

  • Mail locked up because of sending problem.  How do I stop the send function?

    Mail locked up because of sending problem.  How do I stop the send function?

    Didn't help.  Wound up talking to A Support & deleting the cache in my Library Mail file then restarting.  Thanks anyway.

  • HT201342 Is there any way to find a log of the send e-mail from ICloud.. to analyse how many email has been send and deleted within a day from send items

    Is there any way to find a log of the send e-mail from ICloud.. to analyse how many email has been send and deleted within a day from send items

    Thx Winston,
    I can count the send item. But let me try to explain why did I ask this question.
    I had a trouble in sending e-mails from icloud on 22/2 and when I saw in my send item there were no emails.
    But the mesgs to whom I emailed received and out of which only few of them didn't got the email. So I wanted to know the log abt the outflow of the mesg with subject and the receipants email id and the list with attachment or not.
    How and where will I get the information apart from send item and draft mesg and the outflow undelivered?
    Regards
    Sarfaraz

  • HT1529 how can I open the outbox for mail? That is, mail that i have finished and pressed 'send' but has not appeared in the 'sent' folder

    how can I open the outbox for mail? That is, mail that i have finished and pressed 'send' but has not appeared in the 'sent' folder

    The reason it will not be in the sent folder is, it failed to send.
    If it failed to send, then you will see the Outbox icon. 'Pending' would be a more descriptive name.
    When it eventually sends, the Outbox will not show in the Mail app interface.
    Until it is sent it will stay stuck in the Outbox.
    If it refuses to send, you can manually delete it in Finder, at the location ~/Library/Mail/Mailboxes/Outbox.mbox
    Close Mail first, before you search for that email using the Finder.
    Mail version 4.6. Mac OS version 10.6.8

  • How can I disable the Send to Email button?

    Hi all,
    While creating a basic user ID in BOBJ 4.1 we found that even though we disable their Send Email rights in the BI Launchpad, they are still able to send emails from within the Analysis for OLAP tool.
    The reason why this is a problem is it asks users for a "From" email address, where they can put any email address from within the corporate network, which can result in the following scenario, where anyone can impersonate anyone else in the company.
    Does anyone know how we can restrict the Send Button, or at least remove the "From" field so users can only send emails from their own email address? In Webi, there is a specific right for this called "Desktop Interface - Send By Mail" but there is nothing like this as far as I can tell in any of the Analysis-related security items.
    Any help would be greatly appreciated!
    Thanks,
    John Cintolo

    What would be the point? Any user can download the file from the web: right click then save as. If you want users not to be able to open a pdf file after they view it one time, then Adobe has a DRM solution that can do this. It does cost a bit of change though.

  • How can scripts and  smart forms send to mail and pdf?

    HI i want to know how script and smartforms will send to mail and pdf formates>?

    Dear Anees ,
                       Pleas pass on the parameter in itcpo - (getotf  ) structure while calling OPEN_FORM as 'X' .
    I have answered it in detail in your earlier post .
    also giving below sample program for sending SAPSCRIPT as PDFattachment in email  :
    REPORT zsapscript_pdf_via_mail MESSAGE-ID zvele LINE-SIZE 68
    NO STANDARD PAGE HEADING.
    TABLES: itcpo.
    Open your usual sapscript specifying that the output will be OTF
    itcpo-tdgetotf = 'X'.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    device = 'PRINTER'
    dialog = ''
    form = '............'
    language = sy-langu
    options = itcpo
    EXCEPTIONS
    canceled = 1
    device = 2
    form = 3
    options = 4
    unclosed = 5
    OTHERS = 6.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    window = '............'
    element = '............'
    EXCEPTIONS
    window = 1
    element = 2.
    DATA: BEGIN OF t_otfdata OCCURS 0.
    INCLUDE STRUCTURE itcoo.
    DATA: END OF t_otfdata.
    Closing the Sapscript, we save data (OTF) in a table
    CALL FUNCTION 'CLOSE_FORM'
    TABLES
    otfdata = t_otfdata
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    OTHERS = 5.
    DATA: len_in LIKE sood-objlen,
    len_out LIKE sood-objlen.
    DATA: BEGIN OF t_pdfdata OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_pdfdata.
    DATA: BEGIN OF t_otfdata2 OCCURS 0.
    INCLUDE STRUCTURE solisti1.
    DATA: END OF t_otfdata2.
    Move OTF data to another table with lenght 255
    LOOP AT t_otfdata.
    CONCATENATE t_otfdata-tdprintcom t_otfdata-tdprintpar INTO t_otfdata2.
    APPEND t_otfdata2.
    ENDLOOP.
    Convert OTF format to PDF
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = 'OTF'
    format_dst = 'PDF'
    devtype = 'PRINTER'
    FUNCPARA =
    len_in = len_in
    IMPORTING
    len_out = len_out
    TABLES
    content_in = t_otfdata2
    content_out = t_pdfdata
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    Download on local directory
    *CALL FUNCTION 'WS_DOWNLOAD'
    EXPORTING
    BIN_FILESIZE = len_out
    FILENAME = 'c:\test.pdf'
    FILETYPE = 'BIN'
    TABLES
    data_tab = t_pdfdata.
    Mail settings
    DATA: objpack LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
    DATA: objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE.
    DATA: objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE.
    DATA: reclist LIKE somlreci1 OCCURS 5 WITH HEADER LINe.
    DATA: doc_chng LIKE sodocchgi1.
    DATA righe_attachment TYPE i.
    DATA righe_testo TYPE i.
    DATA z_email(80) TYPE c.
    Receivers parameters
    SELECT-OPTIONS: s_email FOR z_email LOWER CASE NO INTERVALS.
    PARAMETERS rec_type LIKE reclist-rec_type
    DEFAULT 'U'. " type of sending address
    CLEAR: reclist, reclist[],
    objhead, objhead[],
    objtxt, objtxt[],
    objbin, objbin[],
    objpack, objpack[].
    Attachment filling
    LOOP AT t_pdfdata.
    objbin-line = t_pdfdata.
    APPEND objbin.
    ENDLOOP.
    DESCRIBE TABLE objbin LINES righe_attachment.
    Text filling
    objtxt = 'Testo della Mail - Riga 1'.APPEND objtxt.
    objtxt = 'Testo della Mail - Riga 2'.APPEND objtxt.
    objtxt = 'Testo della Mail - Riga n'.APPEND objtxt.
    DESCRIBE TABLE objtxt LINES righe_testo.
    Other filling
    doc_chng-obj_name = 'URGENT'.
    doc_chng-expiry_dat = sy-datum + 10.
    doc_chng-obj_descr = 'Prova invio Mail con PDF'.
    doc_chng-sensitivty = 'O'.
    doc_chng-doc_size = righe_testo * 255.
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = righe_testo.
    objpack-doc_type = 'RAW'.
    APPEND objpack.
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 1.
    objpack-body_start = 1.
    objpack-body_num = righe_attachment.
    objpack-doc_type = 'PDF'.
    objpack-obj_name = 'TEST'.
    objpack-obj_descr = 'File.pdf'.
    objpack-doc_size = righe_attachment * 255.
    APPEND objpack.
    Receivers filling
    LOOP AT s_email WHERE sign = 'I'
    AND option = 'EQ'
    AND NOT ( low IS initial ).
    CLEAR reclist.
    IF sy-tabix > 1.
    reclist-copy = 'X'.
    ENDIF.
    reclist-receiver = s_email-low.
    IF rec_type IS INITIAL.
    reclist-rec_type = 'U'. " Internet e-mail
    ELSE.
    reclist-rec_type = rec_type.
    ENDIF.
    reclist-notif_del = 'X'. " request delivery notification
    reclist-notif_ndel = 'X'. " request not delivered notification
    APPEND reclist.
    ENDLOOP.
    Mail Send
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = doc_chng
    put_in_outbox = 'X'
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    OBJECT_PARA =
    OBJECT_PARB =
    receivers = reclist
    CONTENTS_HEX =
    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

Maybe you are looking for

  • How to activate Windows 8.1 on a Windows 2008 R2 KMS server when I don't have Windows 2012 R2 kms host key

    I only have windows 8.1 kms host key but I can't add a client OS kms key to Windows 2008 R2 kms server. And I don't have Windows 2012 R2 license either. Is there any way I can activate Windows 8.1 using my existing kms server? Thanks.

  • IPad apps statistics

    Dear all, I am an ICT teaching and new for iPad apps. I am introducing my students to use iPad but I have the following unsolved questions. I think they are interesting for my students: - How to track latest Apple app statistics by country? - How to

  • SET TITLE BAR

    Hello Experts. i m facing probel in simple report to set a title bar i have 2 t-codes for a report(<b>zinv01</b> and <b>zinv02</b>) if user go by zinv01 report title should be <b>'abc ltd'</b> and if user go by zinv02 report title should be <b>'xyz l

  • Java won't work on firefox

    I cannot download java. Why? I have windows 98 OS. In tools I have enable java checked so that is not the problem. It works when I use internet explorer so why can't I use it or download it with firefox? Also I don't have java listed in the add\remov

  • "Unexpected Error" on 80gb iPod Classic

    Up until today, I try to sync the device the "syncing" icon on the iPod is replaced by the "connected" icon and iTunes stops syncing, later displaying an "Unexpected Error" message. After trying multiple times to restore the device iTunes will now sy