Name of the PDF got as correspondence - LSO 600

Hi Kris,
When the employee or manager receives the correspondence PDF, it always has the name  as 'No-title'. Any idea where i have to change the correct title.
Regards,
Sharadha

Please note that Badi LSO_CORRESPONDENCE43 does NOT work when attempting to change the email subject line.
Please read OSS note 1581012.  This will allow you to change the label of the PDF attachments.  You will need to create a user exit for the application form collection.  I will provide you an example of how to accomplish this:
   FORM USER_EXIT_ZLSO_SET_TITLE.
*& please use macro
*  mac_cancel sy-msgty sy-msgno sy-msgid sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
*&  to raise errors
*** LEAVE THIS EMPTY _ JUST A PLACEHOLDER  ***
ENDFORM.    "USER_EXIT_ZLSO_SET_TITLE
*& User Exit USER_EXIT_SET_TITLE
*& for collections in transaction EFRM for those labelled ZLSO_PWB_COL*
*** Warning:  This is used with all Appl Form user exits but cannot be made
*     as an INCLUDE module
*     Use of INCLUDE module does not get generated as part of appl form code
*& you may interpret and change control variable "c"
*&**available macros
* mac_deactivate <name> <identification>.     "switches node off
*                                             "<identification> only relevant
*                                             "for application forms
* mac_activate <name> <identification>.       "switch node on, that has been
*                                             "switched off before with
*                                             "mac_deacticate
*  As per OSS note 1581012 - this replaces need for Badi
*  LSO_CORRESPONDENCE43 which does not work when appl form is a collection
FORM USER_EXIT_SET_TITLE using
      iv_name
      iv_id
      cv_title.
  TABLES: T77FLT.
  DATA: lr_reader  TYPE REF TO if_lso_crp_render_reader.
  DATA: lr_data    TYPE REF TO data.
  DATA: ls_fkk_key TYPE lso_crp_fkk_key.
  DATA: l_lfcod    TYPE t77flt-lfcod.
  DATA: l_action   TYPE CHAR_60.
  DATA: BEGIN OF ls_data,
    kdscr             TYPE lsoppvar-kdscr,       "Course Descr.
    PARTACTYTXT       TYPE lsoppvar-partactytxt, "Action Type
    partcanctxt       TYPE lsoppvar-partcanctxt, "Cancel Reason
    PARTPARTIC        TYPE lsoppvar-PARTPARTIC,  "participation
    dobyp             TYPE ppvar-kotyp,          "course type
    dobjd             TYPE ppvar-kobjd,          "course type id
    dstxt             TYPE ppvar-kstxt,          "course type text
    kobyp             TYPE ppvar-kotyp,
    kobjd             TYPE ppvar-kobjd,          "course
    kbgda             TYPE ppvar-kbgda,          "begin date
    kndda             TYPE ppvar-endda,          "end date
    kbtim             TYPE ppvar-kbtim,          "begin time first day
    ketim             TYPE ppvar-ketim,          "end time last day
    kstxt             TYPE ppvar-kstxt,          "training text
  END OF ls_data.
  FIELD-SYMBOLS: <fs_range1> LIKE LINE OF xt_ranges.
  FIELD-SYMBOLS: <fs_range2> LIKE LINE OF xt_ranges1.
  FIELD-SYMBOLS: <fs_objstat> LIKE LINE OF g_tab_objstat.
  READ TABLE xt_ranges  ASSIGNING <fs_range1> INDEX 1.
  CHECK sy-subrc IS INITIAL.
  READ TABLE xt_ranges1 ASSIGNING <fs_range2> INDEX 1.
  CHECK sy-subrc IS INITIAL.
  ls_fkk_key-cotyp = <fs_range1>-low.
  ls_fkk_key-cokey = <fs_range2>-low.
*  Only when we are at the same level where the email title is built
*  Do not want to affect the other attachments in this appl form
*  This g_tab_objstat table contains all the attachments.  For PDF attachments,
*    formclass is the name of application class of the PDF
  LOOP AT g_tab_objstat ASSIGNING <fs_objstat>
    WHERE formclass IS INITIAL.
    IF sy-tabix = 1.
      CHECK <fs_objstat>-name  EQ iv_name.
      EXIT.
    ELSE.
      RETURN.
    ENDIF.
  ENDLOOP.
  TRY.
      lr_reader = cl_lso_crp_render_reader=>get( fkk_key = ls_fkk_key ).
  ENDTRY.
* Extract values needed for building email subject line
  TRY.
      GET REFERENCE OF ls_data INTO lr_data.
      CALL METHOD lr_reader->read_value
        CHANGING
          value = lr_data.
    CATCH cx_root.
      EXIT.
  ENDTRY.
   * This table contains the text for the field PARTACTYTXT
  SELECT SINGLE * FROM T77FLT INTO T77FLT
       WHERE LFCODT = ls_data-PARTACTYTXT.
* * * blah blah ***
* enter your code here
ENDFORM.

Similar Messages

  • Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper)

    Does anyone know how to use pages so you can export pdfs from the internet and automatically drag words from the document into the file name of the pdf (i.e., author, title of a scientific paper). For example, if I am downloading a paper by smith called "Surgery" that was published in 2002, it will automatically set the file name in the download to smith- surgery 2002. I have heard pages is smart enough to do this.
    thank you

    Pages can export only its own documents. They may be exported as PDF, MS Word, RTF or Text files.
    Pages can import (ie. Open a file as, or Insert a file into, a Pages document) documents in several formats, but won't rename the document as you describe. Documents that can be Opened (eg. Text, AppleWorks 6 WP, MS Word files) are converted to Pages documents, and retain their original names, with .pages replacing the original file extension. Files that can be Inserted (generally .jpg, .pdf and other image files) become part of the existing Pages file and lose their names.
    It may be possible, using AppleScript, to extract the text you want and to Save a Pages file using that text as the filename, but that would depend in part on being able to identify which text is wanted and which is not.
    How will the script determine where the author's name begins and where it ends?
    How will the script recognize the beginning and of the title, an decide how much of the title to use in the filename?
    How will the script recognize the year of publication?
    For papers published in a specific journal, with a strict format for placing each of these pieces on information, or containing the needed information as searchable meta data in the file, this might be possible. But it would require knowledge of the structure of these files, and would probably handle only papers published in a specific journal or set of journals.
    Outside my field of knowledge, but there are some talented scripters around here who might want to take a closer look.
    Best of luck.
    Regards,
    Barry

  • Anyone know how to change the name of the PDF after it's submitted via the "submit e-mail" button?

    Forgive me if I'm posting in the wrong section -
    I'm using Live Cycle v8.0 and I would like to know if I can change the name of the PDF that is being submitted via emai?
    For example -
    When I submit the form now it is named (12345abcd12345.pdf) and I would like it to read something like (memberapp.pdf)
    Any tips?

    I figured it out...thanks to anyone who may have been helping.

  • How to use a value int the DAT file as name of the PDF file

    I need to use a value present in my DAT file as name of the PDF File.
    I am using the ,u argument in the Print Agent and I know this causes the pdf document to get a generic filename.
    Please help me.
    Thanks

    See my response to this same question you posed in the Output Designer forum.
    http://www.adobeforums.com/webx/.59b585c2/0

  • Displaying Report name in the PDF File.

    HI,
    I want to print the report in the PDF format.
    I executed one report and i am trying to print that report in PDF format.
    But in that PDF format it is not showing any report name.
    Can any body suggest me how can i get the report name in the PDF file.
    Thanks in Advance.
    BR
    Rajesh

    hi suri,
    chk this link..
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6dd54713-0c01-0010-8691-a3576b9a95d9
    go thru these threads for more details..
    Reg converting the BW report in PDF format
    PDF Report
    assign pts if helpful..

  • How do I change the names of the pdf's in my Nexus 7 downloads?

    How di I change the names of the pdf's in my Nexus & downloads?

    Adobe Reader is a standalone application on Android and it doesn't have a browser plug-in. So you can't open a PDF directly in Adobe Reader without downloading it first.
    Thanks
    Adobe Reader Team

  • String gets added to the name of the PDF while sending email

    Hi,
    I am generating a PDF from a smartform. When i click on the email button on the PDF, it opens outlook with the PDF in the attachment. But i can see some string gets added to the begining of the name of PDF for example if i have named the PDF as 18000012 then while sending email from PDF i can see the name as XXXXX1800012.pdf as the attachment. Is there any way by which i can remove that string.
    Thanks,
    Sonal

    You can use text variables in the report description

  • Change the name of the pdfs generated during Bursting

    Hi experts,
    Good morning.
    I need a help on report bursting. I am bursting a report with desination as Email. Everything works fine. I need to change the name of the attachement(pdf) is it possible.
    Is there any setting where I set the report name as I wish. For example ' Statement <<Customer ID>>.pdf, where Customer ID will be from my XML data.
    Now, the report name are like xmlp1234545_IA900A_11.pdf etc.,
    Thanks in Advance
    Thank & Regards
    Ramesh

    Hi Vetsrini,
    Thanks for your reply.
    I am using Email as a channel for bursting. There is no parameter for output filename while you use EMAIL.
    Is my understanding correct?
    Query used
    select distinct
    MEM_NUM KEY,
    'New Template' TEMPLATE,
    'RTF' TEMPLATE_FORMAT,
    'en-US' LOCALE,
    'PDF' OUTPUT_FORMAT,
    'EMAIL' DEL_CHANNEL,
    '[email protected]' PARAMETER1,
    '' PARAMETER2,
    '[email protected]'PARAMETER3,
    'Welcome Kit' PARAMETER4,
    'Hi Please find attached your Letter.' PARAMETER5,
    'true' PARAMETER6,
    '[email protected]' PARAMETER7
    from S_LOY_MEMBER
    Thanks & Regards
    Ramesh
    Edited by: user6714549 on May 19, 2009 9:52 PM

  • How to chante the PDF File Name in Broadcasting

    Hi Team,
         Could you help me?, I am in a project where the customer need  the Following requirement with the PDF File Name in the Broadcasting:
    I am configuring one distribution Job in Broadcasting configuration Tab this Job need send a report via E-Mail in  PDF Format, but the customer requirement is that the file name is sent with the description name and not with the technical name from report.
    Then, some of you know "How change the name to the PDF File that is sent in the Distribution Jobs, I need the Description name, because actually the E-mail send the PDF File with the Technical Name, and the user does not want in that way".
    Thank you very much.
    Leslie Denise.

    Hi,
        Thank you for your answer, but that parameter i added in the content of the email. But I need change the name from the file not to add the description in the subject or in the content.
    And if there are somebody to know if is possible to change the name from the PDF File I will apreciate your comments and answers.
    But Thank you so much for your answer voodi.
    Regards
    Leslie Denise.

  • Is it possible to create a footer showing the file name in a PDF doc?

    Hi, I am hoping to find a way to either create a footer that will show the name of the pdf file I am creating or otherwise emboss it onto the PDF so I know what I am looking at when I print.  I have a large number of documents and it will be difficult to keep track otherwise.  Any thoughts or suggestions would be greatly appreciated.  Thanks for your time/help.
    - Meg

    Here's an old thread that shows one way to do this: http://forums.adobe.com/thread/302996

  • Java.lang.NullPointerException: When Get the PDF File Name

    Hi,
    i try to follow the blog on <b>Handling FileUpload and FileDownload in NetWeaver Developer Studio(NWDS) 2004S</b> on /people/rekha.malavathu2/blog/2006/12/12/handling-fileupload-and-filedownload-in-netweaver-developer-studionwds-2004s
    as i create a fileupload and i wish to get the file name and the pdf, then i to run and deploy it but i get <b>java.lang.NullPointerException</b>
    the code are as below when i click on send email button
    IPrivateEmail.IFileUploadNodeNode node = wdContext.nodeFileUploadNode();
    IPrivateEmail.IFileUploadNodeElement fileUploadEle = node.createFileUploadNodeElement();
         try{
         IWDResource resource = WDResourceFactory.createResource(wdContext.currentContextElement().getFileUploadUI().read(true), wdContext.currentContextElement().getFileUploadUI().getResourceName(), WDWebResourceType.PDF, true);
         fileUploadEle.setFileUploadAttr(resource);
         fileUploadEle.setFileUploadName(wdContext.currentContextElement().getFileUploadUI().getResourceName());
         node.addElement(fileUploadEle);
         }catch(Exception e){
         wdComponentAPI.getMessageManager().reportSuccess("ERROR"+e.getMessage());
    but i wonder which part of the code i did wrongly.. as i wish to insert into my send email code
    Properties props = new Properties();
              String host = "SMTP HOST";
              props.put("mail.smtp.host", host);
              Session session = Session.getInstance(props, null);
              MimeMessage message = new MimeMessage(session);
              Address toAddress = new InternetAddress();
              Address fromAddress = new InternetAddress();
              Address ccAddress = new InternetAddress();
              Address bccAddress = new InternetAddress();
              try
                   MimeMultipart multipart = new MimeMultipart();
                   BodyPart messageBodyPart = new MimeBodyPart();
                   if (! wdContext.currentEmailElement().getFrom().equals(""))
                        fromAddress = new InternetAddress(wdContext.currentEmailElement().getFrom());               
                        message.setFrom(fromAddress);
                   if (! wdContext.currentEmailElement().getTo().equals(""))
                        toAddress = new InternetAddress(wdContext.currentEmailElement().getTo());
                        message.setRecipient(Message.RecipientType.TO, toAddress);
                   if (! wdContext.currentEmailElement().getCc().equals(""))
                        ccAddress = new InternetAddress(wdContext.currentEmailElement().getCc());
                        message.setRecipient(Message.RecipientType.CC, ccAddress);
                   if (! wdContext.currentEmailElement().getBcc().equals(""))
                        bccAddress = new InternetAddress(wdContext.currentEmailElement().getBcc());
                        message.setRecipient(Message.RecipientType.BCC, bccAddress);
                   if (! wdContext.currentEmailElement().getSubject().equals(""))
                        message.setSubject(wdContext.currentEmailElement().getSubject());
                   if (! wdContext.currentEmailElement().getBody().equals(""))
                        messageBodyPart.setText(wdContext.currentEmailElement().getBody());
                   multipart.addBodyPart(messageBodyPart);
                   messageBodyPart = new MimeBodyPart();
                   String filename = IWDResource.getResourceName();
                   DataSource source = new FileDataSource(filename);
                   messageBodyPart.setDataHandler(new DataHandler(source));
                   messageBodyPart.setFileName(source.getName());                    
                   messageBodyPart.setHeader("Content-Type","application/pdf");
                   multipart.addBodyPart(messageBodyPart);
                   message.setContent(multipart);
                   Transport.send(message);
              catch (AddressException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (SendFailedException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
              catch (MessagingException e)
                   wdComponentAPI.getMessageManager().reportWarning(e.getLocalizedMessage());
                   e.printStackTrace();
    so i wonder could anyone help me out.. as i need to get the pdf filename order to put into the variable call <b>filename</b> at the send mail code.
    below is the error message
    java.lang.NullPointerException
         at com.sap.example.uploademail.Email.wdDoInit(Email.java:124)
         at com.sap.example.uploademail.wdp.InternalEmail.wdDoInit(InternalEmail.java:146)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:445)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:709)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:579)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:295)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.show(ApplicationWindow.java:183)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.open(ApplicationWindow.java:178)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:364)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:759)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:712)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:261)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:46)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    facing same issue.
    jdev 10.1.3.3.0, on expanding the database connection, I get a null pointer exception.
    On the testing the connection it says 'success' though.
    any inputs ?

  • Controlling the name of a PDF split

    I need to keep a consitant number of digits in the name of the PDF.  When I split a document, it increments.  How can I make the names be either 3 or 4 digits consistantly.
    Need:
    PDF_0001.pdf (page 1)
    PDF_0002.pdf (page 2)
    PDF_0003.pdf (page 3)
    PDF_0010.pdf (page 10)
    PDF_0011.pdf (page11)
    PDF_0100.pdf (page 100)
    PDF_1000.pdf (page 1000)
    Thanks!

    This can only be done if you split the file using a script. You can't change the default naming convention of Acrobat.

  • Programmat​icly name the PDF from report generator

    Hi,
    I'm currently developing an application that contains report generation.
    Using report generation pallet I was able to make PDFs but the problem is that a dialog box appears asking me to give a name to the PDF.
    Since the application will be running all the year generating weekly reports I need to make automatis naming for the PDFs because I don't have all the Time operator to name the file.
    Thanks in advance
    Tareq Al-Arja

    I'm assuming that the method you are using to create PDF reports is to "print" them to a PDF writer. In this case, it is an issue that resides outside of LabVIEW. LabVIEW simply sends the document to the PDF "printer" and it is actually the PDF Writer that is querying you for the name. Since most printers don't require you to name files that you print, LabVIEW does not provide any way of sending this information programmatically.
    If automation of those PDF names is imperative, you might be able to build PDF documents through ActiveX with Adobe and programmatically provide PDF names that way, but from my experience, Adobe does a pretty poor job of documenting their ActiveX functions. However, it may be something worth exploring if the issue is important to you.
    Kind Regards,
    E. Sulzer
    Applications Engineer
    National Instruments

  • Naming of the PDF attachment when mailing from Bursting engine

    Hi,
    We have a xml publisher report for which we have implemented Bursting Engine to archive the and burst the PDF output.
    We have a requirement now to send the PDF output as attachment to external email ids(to suppliers).I am trying to test using e the below control file to send the PDFs as attachments but the name of the PDF attachment in the mail is numeric '3','6','9' etc...
    I would like to know how do we name the PDF output attachment of the bursting engine.
    -------------------------Burst Control File------------------------------------------
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi" type="bursting">
    <xapi:globalData location="stream">
    </xapi:globalData >
    <xapi:request select="/XXX_XMLPUB_ARINV/LIST_G_INVOICES/G_INVOICES">
    <xapi:delivery>
    <xapi:email server="127.0.0.1"
    port="25"
    from="[email protected]"
    reply-to="[email protected]"
    >
    <xapi:message id="123"
    to="${PURCHASE_ORDER_NUM}"
    bcc=""[email protected]""
    attachment="true"
    subject="${TRX_NUMBER}"
    >
    <html><body>test</body></html>
    </xapi:message>
    </xapi:email>
    </xapi:delivery>
    <xapi:document output-type="pdf" delivery="123">
    <xapi:template type="rtf" location="${XMLPUB_RTF_TEMPLATE}" filter=".//G_INVOICES[PRINTING_COUNT='0']">
    </xapi:template>
    </xapi:document>
    </xapi:request>
    </xapi:requestset>
    Thanks,
    Krishnan
    Edited by: Krishnan-Apps on Dec 23, 2009 2:30 AM

    Hi,
    I seriously doubt your control file is a working one. Can you upload your working/correctly formatted file?
    Or check this working sample below. Hope this helps.
    <?xml version="1.0" encoding="UTF-8"?>
    <xapi:requestset xmlns:xapi="http://xmlns.oracle.com/oxp/xapi">
    <xapi:request select="/">
         <xapi:delivery>
           <xapi:email server="xxmail.mail.com" port="25" from="[email protected]" reply-to ="[email protected]">
             <xapi:message id="${TRX_NUMBER}" to="[email protected]" cc="" bcc=""
              attachment="true" content-type="text/html" subject="${TRX_TYPE_NAME} Number ${TRX_NUMBER}">
           </xapi:message>
           </xapi:email>
         </xapi:delivery>
         <xapi:document output="Invoice_Number_${TRX_NUMBER}" output-type="pdf" delivery="${TRX_NUMBER}">
           <xapi:template type="rtf" location="xdo://AR.XXRAXINV_SEL.en.US/?getSource=true" filter="">
           </xapi:template>
         </xapi:document>
    </xapi:request>
    </xapi:requestset>regards,
    Rownald

  • Output file name in Adobe PDF printer

    I am a new user trying to use the Adobe PDF printer to print a large number (34,000+) of single sheet reports from an application that is using ASP web pages with long trash names. The pdf printer tries to name them all 1.pdf. Is there any setting to have it increment the file name so that i do not have to name each of these documents? As you can imagine this would take slightly more time than would be convenient, not to mention the assossiated hand cramps

    I am sad to report that apparently Adobe does not do a very good job with the PDF printer. I have just spent over an hour with support to get the answer we can not help you. I guess I will have to spend $50 for NovaPDF to handle my problem. It's a shame when a superior overall product like Acrobat is not able to keep up with the knockoffs on the small things.

Maybe you are looking for