Adobe form copies

Hi experts,
  I'm facing a problem.
On dynpro abap  screen we input the copies no. on screen, and press "print" button to preint PDF forms ( not Interactive form, just static PDF form ).  And every copyies has different title.
Is it possible ? Or is it better way to  write smarforms ?
Tks.
Eric

SMARTFORMS has a special COPIES window which you can use to print specific things for a specific copy count in your print job.  I have not found a similar approach for Adobe.
We have temporarily solved this problem by calling the form X number of times and passing two additional importing parameters which tell the interface which copy we're currently printing and our total number of copies.  In this way we can simulate a COPYCOUNT in Adobe.  The problem is that this takes a little more system time as we need to call the form for each time we want a different copy.
If you're interested, this is the approach we take:
DO l_copies TIMES.
  l_doc_count = sy-index.
  TRY.
      CALL FUNCTION l_fm_name
        EXPORTING
          /1bcdwb/docparams  = l_docparams
          i_copies           = l_copies
          i_doc_count        = l_doc_count
        IMPORTING
          /1bcdwb/formoutput = l_formoutput
        EXCEPTIONS
          usage_error        = 1
          system_error       = 2
          internal_error     = 3.
    CATCH cx_root INTO l_fmerr.
      l_errmsg = l_fmerr->get_text( ).
  ENDTRY.
ENDDO.
l_copies is type i and is set to the number of copies we want.  l_doc_count is set to the loop iteration and passed into the Adobe form.  Inside the Adobe form we can then evalute the count and branch accordingly.  The TRY...CATCH is just to ensure that we trap for any errors and handle aborts gracefully.  l_fmerr is TYPE REF TO cx_root and l_errmsg is type STRING (this allows us to display the appropriate error message if the form call aborts).

Similar Messages

  • Multiple copies in Adobe form with different header text

    Hi All,
    I have created Adobe form for Invoice and now my requirement is when we create an invoice it should generate 4 copies with different texts like original copy, duplicate copy and triplicate copy.
    I know its possible in samrtforms using the copy window and maintaing text there.Is it possible in adobe form , if yes how can we achieve this.
    Regards
    Lalit

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • Adobe form with 2 copies, different headers

    Hi gurus,
    I've created a form that needs to be printed in two copies. I want the header data (a simple text field) to be different each time. I wanted to see if this is possible with the following restrictions:
    The printing program cannot be changed (so no calling of the adobe form FM twice)
    Accomplish this without having to create a second master page (a copy of the first)
    I was wondering if this can be done thru scripting, or that there's a variable that may tell how many copies have already been printed so an Alternative can be used...
    Cheers,
    Marc

    Hello Marc,
         Yes, you can do it. The below method will not call the adobe form FM twice and you don't even need to create a new master page.
    If the value of header field in Master page changes each time, You need to JavaScript for this.
    So you will be having some dynamic data in design view based on which the header will be changing. So fill the value of header in the design view. And write the JavasScript code on the Header Text field of Master page in Ready Layout event as below.
    var currpage = xfa.layout.page(this);
    var fields = 0;
    fields = xfa.layout.pageContent(currpage-1, "field", 0);
    for ( i=0; i<= fields.length-1; i++ )
              if ( fields.item(i).name == "HEADER" )
                        this.rawValue = fields.item(i).rawValue;
    Here HEADER is the field in the design view which contains the value of Header. So whenever the same master page is triggered each time, the Header in the Master page is filled using this HEADER field from design view.

  • Adobe form -- multiple copies issue

    Hi experts,
    using VF03, when i print adobe form with multiple copies automaitically spool is generated with 2 copies.
    but my problem is in the first copy price value at the bottom of the page is displayed, but the same price value in the second spool is displayed as ZERO.
    my adobe form has a custom driver program.
    how to go ahead with this issue.
    Regards,
    Jayant.

    sounds like the custom driver program is processing the form twice with data clear values occurring between the two executions.  Are you sure the program sends once with a copy counter set to 2?

  • Problem while generating copies in Adobe Forms

    Hi Experts,
          I'm trying to print two copies of my adobe form, I have changed the copies values from Output Options Pop up and printed the form. But i didn't get two copies of it instead I got only one copy. And I have checked SPAD configuration also, the document gets printed according to copy counter specified from the form but in case of adobe it is not. We tried with smartforms, it is working fine. Please see the following screenshots.
    1. Entered the number of copies as 2.
    2. After clicking on print button, I got the following ouput.
    SPAD Configuration:
    Please provide your valuable inputs.

       Copies are not supported in adobe form. There are certain things which are different between the forms. SAP note 1009567 explains it clearly.  Alternative solution to get multiple copies has been explained in the thread  Multiple copies in Adobe form with different header text.
    So,i'm closing this thread.

  • Can I control the print copies with Adobe forms in WD

    Hi Friends,
    I had one pages in my adobe form designed in SFP transaction.
    And I  had created a Interactive Forms include that  in WDA.
    My requirement is.   >>>
    I want to control the printing of the pages according to my requirement.
    How can I do when I push the print button in the printing from ?
    Please help me,
    Thanks in advance... Q_Q
    Edited by: DDT CHOU on Jun 4, 2010 3:44 AM

    Can you explain how you achieved it with Java, please?
    Best regards

  • Best practice in working with Adobe forms in multiple languages

    We have to provide access to some Adobe Interactive Forms in both English and French, some of them from Web Dynpro application(s), some of them as callable objects from Guided Procedures.
    1- We know for sure that we can have two copies of each form, one in English and one in French but that implies duplicating the FormCalc and Javascript code behind. 
    2- Another way if to modify in javascript all labels, captions using some javascript i.e. If lang = "E" then "My label" else "Mon étiquette" . It would work but it is not very efficient.
    Is someone here has experience with this type of situation and would be willing to share his experience with me?
    Thanks in advance,

    Hi Benoit,
    For Adobe Forms in multiple language you can use include text solution also . Within this solution you need to add a language parameter in your interface and then retrieve the include text in the language value ( not current language ) . Personnaly i used a lot this solution with Smartforms text .
    Also i used dictionnary text for text linked with data dictionnary element . For this there is standard function module in SAP .
    Anothers way is in the SFP editor you can translate your form as in SAPSCRIPT .
    Hope this help you
    Regard.
    PS : if necessary i can send you a sample form with smartform/Dictionnary text solution.

  • Pageselect in Adobe Forms

    Hi all,
    is there any possibillity to select pages to be printed?
    For example,
    "-5" print all pages up to 5 (included)
    "4" just print page 4
    "2-5" print pages 2,3,4,5.
    "-2, 4-6" print pages 1,2,4,5,6
    This is possible with smartforms using parameter TDPAGESLCT. But I couldn't find this parameter for Adobe Forms.
    Has anybody a solution for that or am I only be able to print the whole form?
    The user has to be able to select the pages to be printed (like number of copies.).
    Thanks

    Hi,
    Try to use the firstPage and lastPage properties in javascript:
    var pp = this.getPrintParams();
    pp.firstPage = 0;
    pp.lastPage = 9;
    this.print(pp);
    Based on above code, you can develop some workaround for achieving your requirement.
    Hope this helps.
    Thanks,
    Radhika

  • Adobe Form unable to Save work

    Hi All,
    I'm creating a Adobe Form via NWDS. under the View -> Layout -> InteractiveForms-> Edit(right click), I've created some input fields and display fields. Then save all MetaData, Rebuild project.
    After that when I'm trying to edit the Form again via Layout -> Interactive Form -> Edit(right click). The form turn out to be empty again. It seems like nothing is being save
    Anyone know what happen and how to solve it ? Thanks.

    >
    CWM wrote:
    > Hi All,
    >
    > I'm creating a Adobe Form via NWDS. under the View -> Layout -> InteractiveForms-> Edit(right click), I've created some input fields and display fields. Then save all MetaData, Rebuild project.
    >
    > After that when I'm trying to edit the Form again via Layout -> Interactive Form -> Edit(right click). The form turn out to be empty again. It seems like nothing is being save
    >
    > Anyone know what happen and how to solve it ? Thanks.
    Hi
    If you want to edit the form from within WD, make sure that a white window pops up, telling you that DTR has realized that someone is editing the file. Otherwise nothing will ever be saved. You must be connected to NWDI for this to work.
    Another solution is the following:
    1. Go to the place where your xdp-File lies (eg: C:\..\.dtc\0\DCs\sap.com\<Project name>\_comp\src\configuration\Components\<componentname>/<filename>.xdp
    2. Copy the file to some other place (remove write protection)
    3. Doubleclick the file - Adobe Lifecycle Designer opens
    4. After editing, save the file, set the write protection again and copy the file back to its place under your project directory
    5. In DTR-view of Developer Studio add the file manually to an activity (click through the inactive tree structure and right click on the file-> DTR->edit)
    That way you can savely edit the file (make lots of security copies) and  you don't have to use the plug in editor from WD.
    kind regards
    Bettina
    Please reward points if this helpful

  • Adobe Form via RFC - spool order

    Hello experts.
    When I'm calling an Adobe Form via RFC I'm not getting the spool order in the target system. The Form is issued with:
      fp_outputparams-device  = 'PRINTER'.
      fp_outputparams-NODIALOG = 'X'.
      fp_outputparams-DEST = '5175'.
      fp_outputparams-REQNEW = 'X'.
      fp_outputparams-REQIMM = 'X'.
      fp_outputparams-COPIES = '001'.
    If I call the Form function within the target system, the spool order is created.
    I'm doing something wrong? Or the spool order could not be created via RFC function call?
    Thank you a lot!

    There are no exceptions regarding the RFC call. I'm starting to believe  that with this approach, I won't get a spool request. Hopefully that isn't a problem for my company.
    I'll leave the question unanswered in case anyone comes up with a well-funded answer.
    Regards,
    Andrés Sarcevic.

  • How could Adobe Form handle multiple Include Text

    Hi all,
    In abap program, I have declared a global structure *t166k and pass it to adobe form. However, the the passing parameter *t166k need to based on the looping xt166k as shown below. If this is the case, how could I handle such multiple include text?
    Thanks in advance.
        loop at xt166k where tdid ne 'F17'.
          move xt166k to t166k.
          case t166k-tdobject.
            when 'EKKO'.
              t166k-txnam(10)   = ekko-ebeln.
            when 'LFA1'.
              t166k-txnam(10)   = ekko-lifnr.
            when 'LFM1'.
              t166k-txnam(10)   = ekko-lifnr.
              t166k-txnam+10(4) = ekko-ekorg.
          endcase.
          perform get_header_text.
        endloop.
    form get_header_text.
      if t166u-druvo = '1'.
        *t166k = t166k.
    endform.                    " GET_HEADER_TEXT
    In Adobe Form
    General     
    Name     GV_HEADER_TEXT
    Description     Header Text
    Status     Inactive
    Text     
    Text Type     Include Text
    Include Text     
    Text Name     T166K-TXNAM
    Text Object     T166K-TDOBJECT
    Text ID     T166K-TDID
    Text Language     FORM_LANGU

    Are you using a custom driver program?
    If yes, then loop the function module with the number of copies you have.
    the copy name should be a variable which should be passed to the form in the loop change the value of the copy control accordingly.
    Please let me know, if you see any issues.
    Thanks,
    Rakesh

  • Configuring ISR Scenario SRK1 (Create Cost Center Request) with Adobe forms

    Hello,
    I am trying to configure the ISR scenario SRK1 (Create Cost Center Request) with Adobe Interactive Forms.
    However when I am trying to generate the form, it is giving an error TR015(Object can only be created in SAP package)
    Apparently by default it tries to create form Adobe form ISR_FORM_SRK1.
    Even if I change that name to ZISR_FORM_SRK1, it tries to create interface ISR_IF_SRK1 which is in SAP's namespace and I cannot generate the form. I cannot seem to be able to force SAP to use a different Interface name. The field for the interface is greyed out and is not picked up
    Am I missing any step or is there any fix to this problem?
    regards,
    Atul Kulkarni

    Hi,
    From the config it picks the formscenario(SRK1) and prefixes the same for adobe form.
    I think the best option would be to copy the Stnadard form scenario to ZSRK1 and proceed. This copy can be done from the config 'Manage Form Scenarios' under this select the option 'Copy form scenario'. This copies the entire config from SRK1 to ZSRK1.
    Regards
    Srikanth KV

  • What is the relation between adobe forms and web dynpro

    hi
    what is the relation between adobe forms and web dynpro

    Hi Jyothsna,
    Adobe forms are advanced to smartforms and scripts.
    Adobe forms are much easier than smartforms they are online forms.
    they can be developed online.
    Adobe forms : This is another SAP tool designed to create your own forms. The transaction for this is SFP.
    How to use them: You can create a sales order form in adobe form and send to the sales reps. Sales reps can fill this form when they are not connected to internet / SAP system. Once they connect to SAP just send an e-mail to a specific user id in outlook. You got to customize and code how do you want to process once you receive this form. This enables you to create orders even when you are not connected to the system. Hence no data loss. This is not how i used though :-). This is just my idea.
    What is the difference between Adobe forms and smart forms / scripts.
    Smart forms / scripts are used to show the data in SAP. Most likely you will use these to print / display some kind of reciepts / forms. Many companies must be using this for hard copies / ALE / EDI or to transfer data from SAP to others.
    Adobe forms are used to post data into SAP from SAP too.  So this has an additional feature compared to smartforms.
    Please check this link
    http://www.erpgenie.com/index.php?option=com_content&task=view&id=600&Itemid=77
    Web dynpro in one of the component in NETWEAVER.
    Web Dynpro is the SAP NetWeaver programming model for user interfaces and provides support when developing the Web representation of business applications. The Web Dynpro model is based on the Model View Controller paradigm, and has the following features that build on the classic dynpro model:
    ·        Clear separation of business logic and display logic
    ·        Uniform metamodel for all types of user interfaces
    ·        Execution on a number of client platforms.
    ·        Extensive platform independence of interfaces
    please check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/a5/1a1e3e7181b60ae10000000a114084/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm
    Best regards,
    raam

  • Get number of pages of adobe form before printing

    Dear Experts,
    I want to get number of pages adobe form will print before printing the form.
    Please suggest.

    Hello Sagar,
         Without executing the generated Function Module, it is not possible to get the page count of a form in driver program because the generated FM itself is responsible to execute the whole layout and determine the number of pages in the PDF output. The below screenshot shows the number of pages in the structure /1BCDWB/FORMOUTPUT of generated FM after the generated FM is executed successfully.
    I really don't know why you need the number of pages before calling the generated FM. But if you still need it, then you might need to call the whole FM cycle twice( FP_JOB_OPEN , Generated FM, and FP_JOB_CLOSE ).
    1) First time while calling the FM FP_JOB_OPEN, you need to modify the contents of SFPOUTPUTPARAMS structure. Send the blank values in fields GETPDF, REQNEW and REQIMM, and send the "X" in fields NOPREVIEW, NOPRINT and NOARCHIVE and 000 in field COPIES.
    The reason for doing this is, we do not want actual PDF output. We only want to determine the number of pages.
    2) Now execute the generated FM . You will get the number of pages in the structure /1BCDWB/FORMOUTPUT-PAGES as shown in screenshot above.
    3) Now call the FM FP_JOB_CLOSE as usual.
    4) Again call the FM FP_JOB_OPEN. This time you again need to modify the contents of SFPOUTPUTPARAMS structure reversely. Send the "X" in fields GETPDF, REQNEW and REQIMM, and send the blank values in fields NOPREVIEW, NOPRINT and NOARCHIVE and 001 in field COPIES.
    This time we need the actual PDF output.
    5) Now do the required processing with previously fetched number of pages before calling the generated FM.
    6) Now call the FM FP_JOB_CLOSE as usual.

  • Sapscript  to adobe forms

    Hi Gurus,
        Is it possible to directly convert  sapscript to adobe form[PDF] .
    Right answer will be awarded with points

    Hi
    See this sample code
    which converts the script to PDF format
    REPORT zzz_jaytest .
    Types Declaration
    TYPES : BEGIN OF ty_pa0001,
    pernr TYPE pa0001-pernr,
    bukrs TYPE pa0001-bukrs,
    werks TYPE pa0001-werks,
    END OF ty_pa0001.
    Internal Table Declaration
    DATA : i_pa0001 TYPE STANDARD TABLE OF ty_pa0001, "For pa0001 Details
    i_otf TYPE STANDARD TABLE OF itcoo, "For OTF data
    i_content_txt TYPE soli_tab, "Content
    i_content_bin TYPE solix_tab, "Content
    i_objhead TYPE soli_tab,
    Work Area Declaration
    w_pa0001 TYPE ty_pa0001, "For pa0001 Details
    w_res TYPE itcpp, "SAPscript output
    "parameters
    w_otf TYPE itcoo, "For OTF
    w_pdf TYPE solisti1, "For PDF
    w_transfer_bin TYPE sx_boolean, "Content
    w_options TYPE itcpo, "SAPscript output
    "interface
    Variable Declaration
    v_len_in TYPE so_obj_len,
    v_size TYPE i.
    Constants Declaration
    CONSTANTS : c_x TYPE c VALUE 'X', "X
    c_locl(4) TYPE c VALUE 'LOCL', "Local Printer
    c_otf TYPE sx_format VALUE 'OTF', "OTF
    c_pdf TYPE sx_format VALUE 'PDF', "PDF
    c_printer TYPE sx_devtype VALUE 'PRINTER', "PRINTER
    c_bin TYPE char10 VALUE 'BIN', "BIN
    c_name TYPE string VALUE 'C:\ZZZ_JAYTEST.PDF',"Downloading
    "File Name
    c_form(11) TYPE c VALUE 'ZZZ_JAYTEST'. "Form Name
    START-OF-SELECTION.
    Selecting the records from pa0001
    SELECT pernr bukrs werks FROM pa0001
    INTO TABLE i_pa0001 UP TO 10 ROWS.
    Setting the options
    w_options-tdcopies = 1 ."Number of copies
    w_options-tdnoprev = c_x."No print preview
    w_options-tdgetotf = c_x."Return of OTF table
    w_options-tddest = c_locl."Spool: Output device
    Opening the form
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    form = c_form
    device = c_printer
    language = sy-langu
    OPTIONS = w_options
    IMPORTING
    RESULT = w_res.
    LOOP AT i_pa0001 INTO w_pa0001.
    Writting into the form
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'MAIN'
    window = 'MAIN'.
    ENDLOOP.
    Closing the form
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
    RESULT = w_res
    TABLES
    otfdata = i_otf
    EXCEPTIONS
    unopened = 1
    bad_pageformat_for_print = 2
    send_error = 3
    spool_error = 4
    codepage = 5
    OTHERS = 6.
    IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    ENDIF.
    Converting OTF data to single line
    LOOP AT i_otf INTO w_otf.
    CONCATENATE w_otf-tdprintcom w_otf-tdprintpar
    INTO w_pdf.
    APPEND w_pdf TO i_content_txt.
    ENDLOOP.
    Converting to PDF Format
    CALL FUNCTION 'SX_OBJECT_CONVERT_OTF_PDF'
    EXPORTING
    format_src = c_otf
    format_dst = c_pdf
    devtype = c_printer
    CHANGING
    transfer_bin = w_transfer_bin
    content_txt = i_content_txt
    content_bin = i_content_bin
    objhead = i_objhead
    len = v_len_in
    EXCEPTIONS
    err_conv_failed = 1
    OTHERS = 2.
    v_size = v_len_in.
    Downloading the PDF File
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_size
    filename = c_name
    filetype = c_bin
    TABLES
    data_tab = i_content_bin.
    If you r using this function module check it once....
    call function 'CONVERT_OTF'
    EXPORTING
    format = 'PDF'
    max_linewidth = 132
    IMPORTING
    bin_filesize = v_len_in
    TABLES
    otf = i_otf
    lines = i_tline
    EXCEPTIONS
    err_max_linewidth = 1
    err_format = 2
    err_conv_not_possible = 3
    others = 4.
    Fehlerhandling
    if sy-subrc <> 0.
    endif.
    or u can use the standard program RSTXPDFT4 to download the script into PDF format onto a particular location
    follow this link for sample program.
    http://searchsap.techtarget.com/tip/0,289483,sid21_gci1121833,00.html
    Reward if useful
    Anji

Maybe you are looking for

  • Burning DVD's in Premiere Elements

    Is it possible, or necessary to make DVD's in different formats eg .wmv in Premiere Elements?

  • Hard inquiry question

    So i applied for a Cap One Quicksilver card. I have two secured cards and needed to add a third unsecured one. My scores are in the 640s and was surprised when they approved me with a 3K limit. I lost about 8 points due to the hard inquiry though   I

  • Mail Not Remembering Window Position of Previous Session

    Mail has started forgetting how its main window was sized when previously using the application. When I open Mail, the window dimensions are like those for a small screen - not as previously sized. Is this a known problem (could not find with discuss

  • How may i know wich data are deleted from my sql database.

    Im using sql server 2005 someone deleted some transaction from my database.In my database audit is not enable. How may i know wich data is deleted? plz help me.

  • Accessing Package variables

    Hi friends.. I have to access the value of a variable which is declared public in the package in a select statement i tried this way select package_name.variable_name from dual; which is not working. I had a alternate solution..Declare a function in