Printing data on preprinted form

Post Author: Saras
CA Forum: General
Hi all,
I have a customer who would like to print their Payment Voucher, Remittance Advice and Computer Check on a preprinted form (So the form would have 3 sections of fixed size and position). The Payment Voucher & Remittance Advice has space for a limited number of records. Any overflow of records should print on the next page. I am using a subreport to come out with the Payment Voucher details. The Remittance Advice is in the body and the Computer Check is on the page footer.
The problem is trying to fix the position of the above 2 sections so that the computer check will print with the correct alignment everytime regardless of number fo records in the above 2 sections.
How do I do this?

Post Author: V361
CA Forum: General
You can try this.
Is there a way to limit how many records appear in each group?
For example, how do you limit a group to have only 3 records appear in the Details section, regardless of the number of records there are in the group?
Resolution
Use the following method:
1. Insert a section below on the Details section so that there is a Details A and Details B.
2. Create the following formulas:
@Formula1
WhilePrintingRecords;
NumberVar Number := 0;
@Formula2
WhilePrintingRecords;
NumberVar Number;
Number := Number + 1;
3. Place @Formula1 in the Group Header. Format the formula to Suppress.
4. Place @Formula2 in Details A. Format the SECTION (not the formula) to Suppress.
5. Format the Details B section to conditionally Suppress by selecting the X+2 button INSTEAD of the selecting the Suppress box. This launches the conditional formatting Formula Editor.
6. Enter this formula:
{@formula2} > 3
When you preview the report you will only see 3 records per group.

Similar Messages

  • How do you print data from a form?

    From the interactive report, there's a built in function to print to variious formats (e.g., PDF, CSV, etc).
    As long as the columns do not exceed the width of a page, it's okay.
    But what I want to do is when a user clicks on 'edit' from the interactive report and displays the data entry screen, I want to be able to have a 'Print' button to print the data from a form.
    Don't want to manually modify the URL to change a parameter to print.
    Really appreciate any help I can get on this matter!!!

    I want to be able to have a 'Print' button to print the data from a form.Create a Print button in the form page with an <tt>onclick</tt> attribute that calls the method<tt>print()</tt> method:
    onclick="window.print();"
    Don't want to manually modify the URL to change a parameter to print. Sounds like you want to be able to control which page elements are printed and how they are formatted?
    This is quite straightforward using a print media style sheet.
    You'll need to identify CSS selectors (usually IDs and classes) from the page HTML for the components and regions that are not to be printed: a web inspector such as that found in Safari, or the Firefox+Firebug combo is useful for this. It's also a good idea to give all of your regions a unique static region ID to assist with this identification. Using this information, you can construct the style sheet to exclude all of the unwanted content using <tt>display: none</tt> rules.
    In a simplified example, say you identify that there are 4 regions on the page, and you only want to print region 3. You would add the following style sheet to the page HTML Header:
    <style type="text/css" media="print">
    #region-1, #region-2, #region-4 {
      display: none;
    </style>+{message:id=2475831}+ is a solution to a similar problem, and see this article for more enhancements that can be included in your print style sheet.
    Really appreciate any help I can get on this matter!!!You'll get effective help more quickly if you include the following information upfront when posting a question. This enables others to understand, replicate and determine the most appropriate fix without wasting time asking all kinds of supplementary questions:
    - APEX version
    - DB version and edition
    - Web server architecture (EPG, OHS or APEX listener)
    - Browser(s)/version(s) used
    - Theme used
    - Templates used
    - Region/Report/Process type
    And please update your forum profile with a better handle than "846623".

  • Problem printing date on the form

    Hello friends ,
    I am doing form for the HR . Is there any special formatting needed to print the date on the form . I am doing this .
    &t_payment-paydate& in the main window of the form .
    t_payment is the table and paydate the date of payment . But instead of printing 1/22/2006 . It is printing 3//20/07/2 some junk value . Is it the format related problem ?
    Any suggestions . You help would be greatly appreciated .
    Regards & Thanks ,
    Hari

    HI,
    You can do like this.
    You make the following changes in the program
    1. Define a character type field
         data: v_payment_date(10) type c.
    2.  Assign the date value to the character field
          write t_payment-paydate to v_payment_date.
    You make the following changes in your sapscript text element.
        instead of using field t_payment-paydate use v_payment_date.
    Thanks
    Ramakrishna

  • Cannot view or print data in fillable form fields

    I created a fillable form and users complete the form and email back to me.  For some, but not all, users, when I get their form, the data in the fields is not visible unless I click on field.  At first I thought they emailed me a blank form, but when I click on the field the data they entered is visible. Data doesn't print either.
    Can I fix the form once they send it to me or do I need to adjust the original fillable pdf? Thanks in advance.

    Most likely it's due to corruption caused by the Preview application on the Mac when it saves PDF forms. For more information and something you can do about a corrupted form, see: http://kb2.adobe.com/community/publishing/885/cpsid_88564.html

  • Printing data in Smart form side by side.

    Hi Abap Guru's,
                          I have data in internal table. i dont know how many records are there in it. I need to print the data, side by side in smart form.
    For example:
    Mr James was a member of the above-mentioned plan. you and <b>your children, Tom , jane , Harry and Michael,</b> are entitled to receive pension.
    > children must be printed side by side in smart form.
    Thank you in advance,
    -Anil

    Hi anil,
    In case you are having problems in finding the no of records in the internal table use the following command.
    DESCRIBE TABLE itab LINES w_lines.
    w_lines gives u the no of records.
    For further help u need to tell the structure of the internal table.
    Hope it is helpfull to u.

  • Print on preprinted forms

    Hi guys,
    Here is my question. How can I print on a preprinted form? Either with a Adobe software or with any third party software. Something like capturing the form's fields and create a blank form, fill the fields out and put the preprinted form in the printer to print out the data entered. Hope I am clear.
    Another question. I scanned a job application form and put fields. When I tried to print the form, it came out all black. Just to let you know, there is no problem problem with the printer, because I printed out other forms and they came out just fine, but only one form comes out black. I did not make any changes in the printer's settings.
    Thanks for your help.

    Hi Goerge,
    Sorry for the delay. Here is a picture of the form I was talking about.
    https://www.pinterest.com/pin/514888169874006798/
    Actually the fields on the forms are all filled up, but nothing shows, only the check boxes. By the way, this is a print out. All other forms I print come just fine, only this one comes out this way.
    Thanks for your help.

  • Vertical Ruler and Preprinted Forms

    I am creating a Bill of Lading in CR2008 which must be printed on a preprinted form on a dot matrix printer. 
    There are boxes which have to have information in them.  I can measure on the form from the top and left where the data needs to go, but when looking at Crystal, it is hard to tell how the vertical ruler works.
    In the Report Header, I have a 1 showing, then there is another 1 in the Page Header, another 1 in the Details. 
    How can you accurately measure from the top edge of the page down using the vertical ruler?  Am I making this too complicated?
    Thanks,
    Gilley Estes
    Welton USA

    Pretty much what he said.  I just did an invoice and packlist on dot matrix printer with pre-printed forms.  You have to determine whether the printer is doing 8 lpi or 6 lpi and 10, 12 or 15 cpi.  Adjusting all of your sections to be a multiple of .125" or .167" will let you back in to the vertical positioning.  Make sure you use a mono spaced font available on the printer (usually Courier New) and font size 8 for 15cpi, 10 for 12 cpi or 12 for 10 cpi.  You can then figure your horizontal positions based on that.
    It will take some tweaking after you layout your first pass.

  • Group by colum wise data in adobe form

    Hi,
      I have a requirement to print data in adobe form thru webdynpro for abap.
    example; i have a table data getting from webdynpro like below.
    date               empno   activity.
    11-11-2008     p101       x1.
    11-11-2008     p101       x2.
    11-11-2008     p102       z1.
    12-11-2008     p110       z2
    12-11-2008     p111       z3
    above table data i need to print in adobe form like this.
    date :  11-11-2008
    empno       activity
    p101           x1.
    p101           x2.
    p102           z1.
    date : 12-11-2008
    empno        activity
    p110             z2
    p111             z3
    please tell me how can make this
    Thanks
    Murali Papana
    Edited by: murali papana on Nov 14, 2008 1:47 AM

    Hi,
    After creating new data connection in the Lifecycle designer, all the attributes in the web service will appear in the 'Data View'.
    Drag and drop a DropDownList from the library palette
    Add the static values and texts to it
    Select the UI element (DropDownList) within the form designer.
    Goto Object palette --> Binding
    select Import/Export Bindings (Execute):
    Select data connection and give the binding attribute.
    Thanks & Regards,
    Sanoosh

  • How to print the data on the form (smartform)...

    Hi,
    i got a requirement that i have to create a selection screen and from that i process the data according to the inputs in the selection screen, and after i collect the entire data in an internal table, now i want that data to be displayed in the form ,
    what is the process for this, can anybody explain me in detail.
    Regards,
    Ram

    Hi!
    To create new smartform
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.html
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    call function FM_NAME
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS =
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS =
    USER_SETTINGS = 'X'
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    TABLES
    GS_MKPF = INT_MKPF
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Or an another one:
    just check it step by step with lots of screen shots.
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Reward all helpfull answers
    Regards
    Tamá

  • How to Print data from variable or  in header of the table in smart forms

    Hi all.
    i have to print mondy tuseday etc in the header of the table . the actual data is printed ok  in the main area from itab where as i m unable to print data in header from that itab.
    i have tried from one variable as well . as i export that value to the smart form andthen try to print but i won't be able to do that
    Regards
    Ammad

    please post the question clearly.

  • Fill data into a form programmatically and print the form afterwards

    Folks,
    until recently a lab assistant took measurements and filled the data into a paper form (see attached pdf). Now we are building a test stand that does the measurement semiautomatically. The software of the test stand will be programmed in LabVIEW, of course. The test stand shall generate a printed protocol very similar to the attached pdf in future as well.
    What's the best way to fill the acquired data into the form and to print the form afterwards? The form can be read by our code in either pdf or html. There is no Microsoft Office installed on the computer.
    Modifying the html code? Converting the pdf to a picture and fill the data into the picture? Any hint will be highly appreciated.
    Thanks,
    Peter
    Attachments:
    Form.pdf ‏121 KB

    Hmmm... must have misunderstood what you were saying.
    XSL is a language that allows you to generate an HTML document. The XSL basically defines the style, and the XML specifies the data. HTML is the combination. You can find out more here.
    Unfortunately, since you don't have Office, you won't be able to use the ActiveX interface to control Word, so that's out.
    With the template in HTML format you could use the DOM for an HTML file to set the value of the HTML elements. The easiest way to do this is to use IE (I'm assuming you're on Windows here) to open the HTML template and then you can use the DOM from there. As for how feasible this is, it would depend on your HTML format. Can you post the template in HTML format?
    With the template in PDF format I know that some PDF files that are forms can be generated in such a way that they still act like forms when you open them in, say, Acrobat Reader. Acrobat has an ActiveX interface so you should be able to programmatically do this, but I can't say for sure. You can check the Adobe site for more info. You just need to make sure it doesn't require the full version of Acrobat.

  • Can not print turbo tax pdf form prints but no data

    can not print turbo tax pdf form prints but no data

    Thanks much for your help
    Works great
    Ward Johnson

  • How to refresh the data in Adobe forms

    Hi,
    I have created an Adobe form through SFP transaction and a print program which passes data to the form through an internal table. The probelm is, first time the data is getting printed perfectly as per the internal table, but next time when I again run the program for new set of data, the form doesn't display the current data. It still has previous data in it, though the internal table contains the correct data. Can any one tell me why this is happening? Is there any way to refresh the adobe form data?
    Thanks in advance,
    Kiran

    Hi,
    Your Try and check this statement program level...
    FREE <itab>
    Regards,
    Ansari.

  • How to make the print command wait until form is rendered.

    This is an ongoing issue that so far I haven't been able to figure out how to fix, so I'm hoping that someone will have a good idea or work around. I'm working in LiveCycle Designer ES v8. using JavaScript.
    I have to include a feature that allows the user the choice to print out a dynamic form to fill out by hand. So I've created a button that asks if this is what they want to do, if they answer "Yes", then several things are scripted to happen. All data is reset, some subforms and pages are made visible, while other subforms are hidden, and text fields are expanded. This causes the form to expand from one page to 15 pages. Then it prints using this command:
              xfa.host.print(1,   
    "0", (xfa.host.numPages -1).toString(), 0, 1, 0, 0, 0);
    The problem is that when the print dialogue box appears, the Print Range is always set to less than the total number of pages. It looks like that the print commands fires before the form has completed rendering. This isn't a big deal since the user can click to set the Print Range to "All" which will print all 15 pages. The problem is that most people don't read the dialogue box. They click "okay" and end up with their form cut off.  Then I get phone calls that my form doesn't work.
    Is there anyway to delay the print command until everything has finished rendering? Or set the Print Range to always go to "All"?
    Thanks in advance for your help with this.

    It sounds like you'd be fine if you just separated the print function from your "Yes" button. It will require a 2nd button click from the user but that would be the only inconvenience.

  • How to Print Vertically in Smart Forms

    I need to print data in vertical format into columns in smart forms. Can any one give me the solution.

    Hi Sreedhar,
    In Smartforms, if you need to print vertical text, only possible way (That i know) is, Create a Bitmap image of the text and rotate the same to 90 deg and then use that image in your smartform....
    If you can use adobe forms, you can rotate the text to any angle that you want....this is one of the main advantage of adobe forms.
    Best Regards,
    Ram.

Maybe you are looking for

  • SAPSCRIPT problem in printing on Dot Matrix Printer

    Hi! I have a SAPSCRIPT Form with page format INCH12. The SAPSCRIPT output is displayed properly in print preview. But when it is sent for printing on the Dot matrix printer the first three lines of the second page are printed on the first page at the

  • Creating OM Infotypes

    I am trying to create a new custom OM Infotype, the T77* entries are not creating automatically as they should. Also screens 2000 and 3000 are not creating, could this be stopping the table entries from creating? Any help would be appreciated.

  • Why is there no podcast playlist option? I want to control the order podcasts are played.

    Yes, you can go over to the Music Playlist and add podcast to it, but the Music Playlist features are not best suited for podcasts. I want to list to news podcasts in date time sequence. Typically, I only want to listen to them once. I'm trying to us

  • MacBook Pro shuts off

    Hi everyone, i have a MacBook Pro 15" 2.53 ghz mid 2009 with mavericks. For the past year or so I had the service battery icon which I ignored due to busy schedule and being mostly connected to a power line. Since yesterday it started shutting down b

  • Problems with MessageFormat + ChoiceFormat

    All, First, this isn't strictly an i18n question, but it deals with various Format implementations which I understand are commonly used in this arena, thus my question is posted here. I have an application that uses MessageFormat as a template to an