Dynamic pdf filename creation from form data content

Hello Community!
Can someone give me step by step solution to dinamicaly take an invoice number (example field) and include it in the filename.PDF output?
Thanks

I do this a differnt way that you might find helpful. A prerequisite is that you can pass the invoice number as a variable in the jobline. The jobline would then look something like this:
^JOB INVOICE -fINVOICE -advDOC12345
Then I set up job INVOICE to call transition file INVOICE.tdf with this content:
O ' N 1 N N Y Y O
S * CARD '^JOB' 1 1 1 10
S * LINE '' 1 1 1 10
E DESIGN CARD '-f' 1 1 1 2 80 0 0 ' '
E ID CARD '-advDOC' 1 1 1 7 80 0 0 ' '
E LINE LINE '' 1 1 1 1 100 0 0 ''
#startscript CARD
^JOB @DESIGN.B -z..\pdf\@[email protected] ..\pdf\@[email protected] -afxon
^FORM @DESIGN.M
#endscript
#startscript LINE
@LINE[1,--]
#endscript
You will now have:
^JOB INVOICEB -z..\pdf\INVOICE-12345 ..\pdf\INVOICE-12345

Similar Messages

  • Tamper proof or noneditable PDF file creation from smartforms.

    Experts,
    We have requirement to create PDF file from smartforms that should be tamper proof.
    As we know there any many PDF to word convertors tools are in market.
    So PDF file should not be copied and not converted in word (should be tamper proof and non-editable).
    So do we have solution with in SAP only to achieve above requirement ?
    Please take your time answering, I'm not the kind of person that demands an answer really quickly, because that would be a bit rude.
    Message was edited by: Matthew Billingham - "hurry up" text replaced.

    Dear Jelena,
    True PDF is non-editable, but we can copy PDF content or even we can use tool to convert into word/docx format. for basically we are using information.
    Orignal source will never change.
    Let me explain you example.
    Let say i have converted invoice (smartform) into PDF and send to X person.
    Now X person can convert PDF into word format.
    X person did some changes in word and converted back to PDF (miss use of orignal data/PDF file).
    So requirement is that X person should not copy PDF content (Ctrl + C) and X person should be restrcited from converting to word.
    Acrobat/Adobe has this feature but this is external (need to use some third pary tool)
    Can this requirement accomplished within SAP only or include some Adobe package (class & method in SAP ).

  • Create text file from form data

    I need to create a form using dreamweaver and coldfusion. We
    do not have coldfusion server. just Dreamweaver 8. Until we decide
    what application server we will use, I need to create a text file
    each time a user submits data from a form and put the data into a
    text file. What would be the best way to handle this?

    if you do not have an application server like CF or PHP or
    ASP (or
    other) to process your form submissions, you should look for
    a perl/cgi
    script that can do it for you. i remember from awhile ago a
    script
    called bnbform from bignosebird.com ... it is used for
    emailing form
    submissions to a designated email address, but if i remember
    correctly
    it also stored form data in a text file....
    Azadi

  • Getting when importing Dynamic PDF into Webdynpro Interactive form

    Hi Gurus,
    I have created a PDF(It has  text box with multiline) in Adobe livecycle Designer and saved as Dynamic PDF, then I imported into Webdynpro interactive form.If I
    import only first page of the form and run WD application, i am getting
    the output, Still text with expand is not working.
    But If I try to import the form with 4 pages and run the WD
    application, it is throwing the following error
    "The following error text was processed in the system SM1 : WebDynpro
    Exception: SOAP Framework error: SOAP Runtime Exception:
    CSoapExceptionFault : SOAP fault found in SOAP document /Transaction
    system failure in method
    rpData./<ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException
    xmlns:ns1="http://sap-j2ee-engine/client-runtime-error">Transaction
    (100,102).
    Please help me on this.
    Thanks,
    John

    Hello,
    I closed this thread. As you opened two.
    Best regards,
    Dezso

  • PDF- Filename automated from labelscript (after data merge)

    Hello,
    first of all I'm quite new in javascripting... but some simular scripts I have found on the internet could provide a solution for my problem.
    What I've done is the following:  I've used Data Merge and created a 200-paged file with 1 label on each page. Each label has a labelnumber.
    What I could do is export the file - split it up in 200 different pages - rename each file to the specific labelname. Seems a lot of work and this job I need to repeat about once a month.
    I looked for a solution and came to these discussion: http://forums.adobe.com/thread/289666http://      http://forums.adobe.com/message/3178412#3178412
    What I want to create is a script that I can run every month after I have updated my 200 labels and overrides all the pdf-files of the old labels.
    With the different scripts I have found I constructed the code below.
    The script works, it prints to multiple pdf's which have the correct labelnames, export is according to the requested presets,  but the CONTENT of each label is the content of the FIRST label (first page).
    I have tried a lot of thing (trail&error) but as I said, I'm quite new to this matter...
    So.... I can use some help or advice on this one.
    Thanks in advance,
    Dheart
    function getLABEL_A(page) {
              for (var  currentTextFrameIndex=0;currentTextFrameIndex<page.textFrames.length; ++currentTextFrameIndex) { // Iterates over frames
                   if (page.textFrames[currentTextFrameIndex].label=="LABEL_A") // if label is LABEL_A..
                        return page.textFrames[currentTextFrameIndex].contents; // ..returns text frame contents
              return null; // if not found, returns null
    var LABEL_A;
         var pagesList=app.activeDocument.pages;
         for (var currentPageIndex=0;currentPageIndex<pagesList.length;++currentPageIndex) { // Iterates over pages list
              currentPage=pagesList[currentPageIndex];
              LABEL_A=getLABEL_A(currentPage);
              if (LABEL_A!=null) { // If we have a LABEL_A - PDF file name-
                    var export_preset = app.pdfExportPresets.item("[Smallest File Size]");
                   app.activeDocument.exportFile(ExportFormat.pdfType,"F:/.../"+LABEL_A+".PDF",false,export_ preset); //.. and save the file
              } else {
                   alert("Page number "+currentPageIndex+" NO LABEL_A");
                   alert(LABEL_A);

    Thx for the reply, indeed this is a solution for consecutive numbering, however, the numbering is following another 'system' and in this case the numbering is given randomly.
    Anyway, trying a lot of things,  gave me a working script!!!
    The script exports a multipaged indesign file to single-paged pdf files. The namegiving of the pdf-files is automated and follows a labelscript (textlabel) on each page.
    function getLABEL(page) {
              for (var  currentTextFrameIndex=0;currentTextFrameIndex<page.textFrames.length; ++currentTextFrameIndex) { // Iterates over frames
                   if (page.textFrames[currentTextFrameIndex].label=="LABEL") // if label is LABEL..
                        return page.textFrames[currentTextFrameIndex].contents; // ..returns text frame contents
              return null; // if not found, returns null
    var LABEL;
         var currentPage;
         var pagesList=app.activeDocument.pages;
         for (var currentPageIndex=0;currentPageIndex<pagesList.length;++currentPageIndex) { // Iterates over pages list
              currentPage=pagesList[currentPageIndex];
              LABEL=getLABEL(currentPage);
              if (LABEL!=null) { // If we have a LABEL PDF -file name-
                  app.pdfExportPreferences.pageRange=String(currentPageIndex+1); // set up the export range..
                    var export_preset = app.pdfExportPresets.item("[High Quality Print]");
                     app.activeDocument.exportFile(ExportFormat.pdfType,"F:// fill in destination"+LABEL+".PDF",false,export_preset); //.. and save the file
              } else {
                   alert("Page number "+currentPageIndex+" without LABEL box");
                   alert(LABEL);

  • Interactive PDF button to export form data to separate PDF

    Hi,
    I'm creating a 10 page interactive PDF. One page of the PDF is a questionnaire which i've made using form fields.
    I basically want the user to answer the questions in the form fields and then click a button on the page that will save that page (with the inputted data) to a separate one page PDF that they can save on their desktop for future reference.
    Is this possible? My thinking is that it would be with javascript? Does anyone have an experience or thoughts on this.
    My user base will just have Acrobat reader, but I have Acrobat pro to set up the interactive PDF along with indesign CC.
    Thanks for your help
    Ian

    Not possible in Reader. You'll need to provide them with that one-page
    questionnaire as a separate file. Reader can't extract pages from a a PDF
    and create a new file.

  • Syncing PDF documents, created from Forms

    Hi,
    I've created a number of forms, filled them in, and need to sync them from my MacBook Pro to my iPad. I have tried this, using iTunes. I have also tried uploading the documents to Dropbox and retrieving them with the iPad. In both cases, when I open the documents on the iPad, the form field labels are there but none of the filled-in data is. I expect I'm doing something incredibly dumb but I can't see what it is. Could anyone please help with this? I need the data to be available on the iPad for tomorrow morning.
    Thanks,
    Shantam.
    MacBook Pro
    OS X  10.9.2
    Acrobat Pro 10.0.07

    You probably need to use of the the free/cheap PDF apps. I like GoodReader, but there are many others mentioned in other posts in Apple Discussions. Once you install one, you can use "File Sharing" - scroll down on the Apps tab during a sync. Or, email yourself a PDF file and view it in Mail.

  • DYNAMIC INTERNAL TABLE CREATION BASED ON THE CONTENT OF ANOTHER INTERNAL TA

    Hi All
    I need to create an internal table at runtime.
    I have a selection screen parameter which is specific to country, Which can take values below
    eg:- IT_AREA for Italy(IT)
    FR_AREA for France(FR)
    IE_AREA for Ireland(IE).....And similary for other countries
    Based on the Above parameter, I need to create Internal Table as below
    DATA: itab TYPE italy_data Occurs 0.
    If I declare as above, Then itab has fields from italy_data. And this internal table i will be sending it to Function Module to get data into it.
    My Requirement is to Create the Internal table itab during runtime for tables italy_data OR france_data OR ireland_data based on selection screen parameter. Tables on Country may have different number of fields in it.
    Can anyone help me on this??

    Hi,
    Here is a sample code to create a dynamic internal table.
    REPORT ytrab03.
    TABLES: mara, makt.
    TYPE-POOLS: slis.
    DATA: it_fcat TYPE slis_t_fieldcat_alv,
    is_fcat LIKE LINE OF it_fcat,
    ls_layout TYPE slis_layout_alv.
    DATA: it_fieldcat TYPE lvc_t_fcat,
    is_fieldcat LIKE LINE OF it_fieldcat.
    DATA: new_table TYPE REF TO data,
    new_line TYPE REF TO data,
    ob_cont_alv TYPE REF TO cl_gui_custom_container,
    ob_alv TYPE REF TO cl_gui_alv_grid,
    vg_campos(255) TYPE c,
    i_campos LIKE TABLE OF vg_campos,
    vg_campo(30) TYPE c,
    vg_tables(60) TYPE c.
    DATA: e_params LIKE zutsvga_alv_01.
    FIELD-SYMBOLS: <l_table> TYPE table,
    <l_line> TYPE ANY,
    <l_field> TYPE ANY.
    PARAMETERS: p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
    is_fcat-fieldname = 'COL01'.
    is_fcat-ref_fieldname = 'MATNR'.
    is_fcat-ref_tabname = 'MARA'.
    APPEND is_fcat TO it_fcat.
    is_fcat-fieldname = 'COL02'.
    is_fcat-ref_fieldname = 'MAKTX'.
    is_fcat-ref_tabname = 'MAKT'.
    APPEND is_fcat TO it_fcat.
    LOOP AT it_fcat INTO is_fcat.
    is_fieldcat-fieldname = is_fcat-fieldname.
    is_fieldcat-ref_field = is_fcat-ref_fieldname.
    is_fieldcat-ref_table = is_fcat-ref_tabname.
    APPEND is_fieldcat TO it_fieldcat.
    CONCATENATE is_fieldcat-ref_table is_fieldcat-ref_field
    INTO vg_campos SEPARATED BY '~'.
    APPEND vg_campos TO i_campos.
    ENDLOOP.
    *... Create the dynamic internal table
    CALL METHOD cl_alv_table_create=>create_dynamic_table
    EXPORTING
    it_fieldcatalog = it_fieldcat
    IMPORTING
    ep_table = new_table.
    *... Create a new line
    ASSIGN new_table->* TO <l_table>.
    CREATE DATA new_line LIKE LINE OF <l_table>.
    ASSIGN new_line->* TO <l_line>.
    SELECT (i_campos) FROM mara INNER JOIN makt
    ON mara~matnr = makt~matnr
    UP TO p_max ROWS
    INTO TABLE <l_table>.
    LOOP AT <l_table> INTO <l_line>.
    LOOP AT it_fcat INTO is_fcat.
    ASSIGN COMPONENT is_fcat-fieldname
    OF STRUCTURE <l_line> TO <l_field>.
    IF sy-tabix = 1.
    WRITE: /2 <l_field>.
    ELSE.
    WRITE: <l_field>.
    ENDIF.
    ENDLOOP.
    ENDLOOP.
    Regards,
    Karuna.

  • ODSI csv file creation from a data service that read data from many tables.

    Hi,
    We have few dataservices running in our enviroment. Now we have a requirement to save the data as CSV files on demand. My question, can we do this using ODSI 10gR3?
    I know we can read the csv file and create a physical data service. We have a compleded a use case that data comes in CSV file and saved to Oracle table when required.
    Now how to do the reverse is my question. I am not findind any help in documents for this. I have opend a case with Oracle support for this, looks like they are not understading and taking it as a issue in ODSI 10gR3.
    Please help.
    Thanks in advance.
    Rahul

    we have a requirement to save the data as CSV files on demand. My question, can we do this using ODSI 10gR3? Yes. But you have to write the java code to do it. Create a class with a static method that takes two arguments - an array of XmlObject (or of the specific type that extends XmlObject that is created by compiling the schema) and a filename - and writes the values of the children of the array elements into your CSV file.
    Put that class in a jar and put the jar in DSP-INF/lib, then create a physical datasource -> Java from that method, make sure you specify that resulting datasource procedure is a libraryProcedure.
    So you'll have to do a little homework on ODSI Java Functions with XmlObject arguments.
    - Mike

  • PDF file creation from spool

    Hi
    I amtrying to create  a spool request for the PDF file.
    Ihave Xstring type data in my program, which is input for PDF file.
    by using  RSPO_OPEN, RSPO_WRITE,RSPO_CLOSE function modules.. it is creating  a spool  with RAW data type.
    but I have to create SPOOL with PDF format.
    Can soemone help to generate PDF file from XML or RAW data format to PDF?

    I have a requirement to create a PDF file from the attachments on any business object (such as PO, Sales Order etc). In short, I need to create a PDF file out of fnd_lobs.file_data
    Any roadmap with example ?? Anybody ??Please see these docs.
    How to Load Attachments Via API into Service Requests? [ID 394811.1]
    Attaching A File To An Object via A Public API [ID 281130.1]
    Upload Image over 32k into PER_IMAGES from FND_LOBS as Blobs. [ID 462967.1]
    Thanks,
    Hussein

  • APEX + BI Publisher: dynamic pdf filename.

    Hello gurus,
    i'm deploying my first apex application and I need to know if is possible to decide witch name will have the pdf output file.
    What I need is that the filename respect a particular syntax:
    :USER_NAME_:DATE_:ID
    I cannot find any customizable parameters in (report queries / report layouts ).
    Is it possible?
    Thank you very much in advance.
    Regards.
    Simon

    Simon,
    In the Print Attributes tab of your Report Region you can specify a filename. If you leave this blank it is the name of your region. Maybe you can enter there: &USER.
    For the Date : If &USER. works, you should fill a hidden field with the date you want to use for your report and use a reference to that field as a Filename (like &DATE_FIELD. ).
    The solution above doesn't seem to work. Even if you use &USER. in the region title (that is shown on the page), the PDF page is created with &USER..PDF as the name....sorry!
    HTH
    Regards
    Roel
    Edited by: Roel on Oct 16, 2008 12:31 PM

  • PDF File Creation from FND_LOBS - Any Clues !!!

    Hi All,
    This is interesting !!!
    I have a requirement to create a PDF file from the attachments on any business object (such as PO, Sales Order etc). In short, I need to create a PDF file out of fnd_lobs.file_data
    Any roadmap with example ?? Anybody ??
    Thanks,
    Neil

    I have a requirement to create a PDF file from the attachments on any business object (such as PO, Sales Order etc). In short, I need to create a PDF file out of fnd_lobs.file_data
    Any roadmap with example ?? Anybody ??Please see these docs.
    How to Load Attachments Via API into Service Requests? [ID 394811.1]
    Attaching A File To An Object via A Public API [ID 281130.1]
    Upload Image over 32k into PER_IMAGES from FND_LOBS as Blobs. [ID 462967.1]
    Thanks,
    Hussein

  • Dynamic Drop Down creation using simple data types

    Hi all,
    I have got a requirement in which i have to create an iView which is going to have 6 drop down values and with in that 1 value is going to have sub values which needs to get displayed in the similar drop down fashion.
    I have created a simple data type having enumeration of the 6 values and linked the same to iView with drop down by key which is working successfully. And for the purpose of sub values i have created a similar simple data type with two values and linked the same with a value attribute.
    Well, can any one tell me the further process to proceed ?
    Thanks in advance ...
    Vipin

    Vipin,
    There are quite some steps to achieve what you need. Since you have both your DropDownByKey elements defined and bound to context elements, it may make sense to keep the Second DropDownByKey element invisible and make it visible only when user selects a specified key from first DropDownByKey. To achieve this, follow these steps.
    1. Create an action with a parameter "key" of type string.
    2. Bind this action with onSelect event of your First DropDownByKey UI Element.
    3. Do mapping of parameter "key" in your wdDoModifyView with following code.
      if (firstTime)
             final IWDDropDownByKey dk = (IWDDropDownByKey)view.getElement("DropDownByKey1");
               // Replace DropDownByKey1 with id of your DropDownByKey Element.
             dk.mappingOfOnSelect().addSourceMapping("key", "key");
    4. Create a context attribute of type WDVisibility say "DDVisible" and bind to "visible" property of your second DropDownByKey.
    5. Set DDVisible to NONE in wdInit().
    wdContext.currentContextElement().setDDVisible(WDVisibility.NONE); 
    6. In onSelect action write this code to make second visible
    if(key.equalsIgnoreCase("Two")){
         //Replace "Two" with your required value.
             wdContext.currentContextElement().setDDVisible(WDVisibility.VISIBLE);
           else{
                wdContext.currentContextElement().setDDVisible(WDVisibility.NONE); 
    This should give the desired results.
    Hope this helps.
    Vishwas.

  • App Server 10g2 - PDF Reports called from Forms go to a background window

    Hi all
    We have Application Server 10g2 in use, mainly for legacy forms and reports. We also have the Secure Java Web.Show_Document bean (frmrwinteg.jar) installed. Since the application of the October 2008 CPU when a form calls a PDF report, it will pop in the background and leave the Internet Explorer window with the form at the front. We have not changed any configuration settings which could affect this.
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer? We'd appreciate any tips on this. Thanks.

    Well I am not sure if this is the original question. Here is what SebastienL mentioned originally:
    Is there a way to go back to the old behaviour, that of having the report appear in the foreground instead of behind internet explorer?He also mentioned this:
    Before, the PDF window would open in front of IE, like any new window should. Now it opens in the background and IE stays in front.And it seems to be happening not just for him but for all users (on multiple client machines) as he mentioned this:
    This occured overnight after a CPU patch to everyone who uses the system.If I am interpreting it correctly (and I don't claim to be correct in my interpretation), the issue is not about having to open PDF in the same IE window as the Forms. I am guessing SebastienL is looking to have PDF document appear in foreground (on top of Forms IE window) vs. it showing up in background (behind the Forms IE window).
    Did I get it right SebastienL?
    It does sound very much client configuration issue but I doubt (if my above assumptions are correct). Let me dig around and see if I can find something.
    Thanks
    Shail

  • Name several links from form data

    have a swf page of 10 thumbnails. From a html form on another
    page I want to generate a list of the thumbnails' url and the url
    of the movie that plays when each thumbnail is clicked. I can make
    the form create a text file like:
    1. bob.jpg , bob.flv
    2. mel.jpg , mel.flv
    etc.
    How can I make my thumbnail page select these values for each
    thumbnail when the page is generated?
    any help is greatly appreciated!
    ff

    If I understand what you're asking, you'll want to reformat
    your .txt file a bit (just slightly!) and use LoadVars to obtain
    those values.
    1. bob.jpg, bob.flv -- now, if your pattern will be like
    this, you can simplify the process. (ie- no 1.bob.jpg wayne.flv)
    flash sees text file variables like this:
    &variableONE=VALUEone&variableTWO=VALUEtwo&
    the "&" symbol tells flash there is a new variable
    coming. Then you're just assigning values to variables. Looking at
    your example, you could do it one of two ways....
    &image1=bob.jpg&link1=bob.flv
    or
    &person1=bob
    //doing it this way would force you to keep your files a
    little more organized, but it would probably pay off.
    check out
    THIS. Its a simple
    tutorial that will show you how to import values into flash, and
    how to properly use them. If its too confusing, I can keep
    exlplaining here. :)

Maybe you are looking for

  • How can I use Yosemite for iCloud backup if it doesn't exist?

    There was an update to iCloud.  Now my documents on my MBP don't sync with my iPad correctly.  The computer tells me I need to update to OS X Yosemite.  How can I do that when Yosemite isn't scheduled to come out till the end of October?

  • Different creation dates on different computers

    I downloaded the same photos from the same camera on the same day to my home and office computers, both into iPhoto. At home, the creation date is correct, but at work the date is wrong in every way including the year. I checked the system time and d

  • Hanging Sessions in SAP ITSmobile/Standalone SAP ITS Gateway

    Hi, We have recently implemented SAP ITSmobile/Standalone SAP ITS gateway 6.20 (6200.1035.9507.7, build 1121051 - Single host) connected to LXE RDT device for warehouse operation. In warehouse forklift operators quite often lose connection to Wireles

  • G5 with dark display

    Hello I use a PowerMac G5 PPC 2x2GHz with OSX 10.3.8. The Mac works as fileserver and is always connected with Apple Remote Desktop. Now, I like to make an upgrade to OSX 10.5 or 10.4. For that, I must use a Monitor. But if I connect a Monitor, I did

  • Does anyone find the password reset frustrating?

    Does anyone find that the constant update to the security password is not only a hassle but also has a negative impact on its customers. Today I lost my phone, so I went to icloud on my computer, and it said I needed to reset my password. I couldn't