Not printing line in report if the field is empty

How can I avoid printing a blank line in my report if the field is blank. eg in an address you do not want blank lines.
Thank you
Michael

You need to configure the elasticty of the field and the repeating frame.
Set both to variable and the field should "collapse" if it is blank and the repeating frame will do so as well

Similar Messages

  • PLD Do Not Print Line if field== 'N'

    This may have been asked before but I can't find an answer. New to SAP & PLD.
    Working with PLD, I have a UDF field in table 'A/R Invoice - Rows' to indicate whether a line should be printed or not, 'U_PrintLine'. I am trying to get this within the Invoice form to be something like this:
    If F_300 == 'N' Then
    Do Not Print Line
    Else Print Line
    EndIf
    What is the easiest way of incorporating this with a 'Repetitive Area' of a PLD form?
    Thanks,

    I now realize that you want to suppress the whole line of data instead of a LINE. That would be more difficult.
    Basically, you may link all fields in the line with a conditional formula F_300 == F_301.
    Here F_300 is your UDF and F_301 = 'N'. The formula should be in another field say F_302.

  • ALV report using the field catalog

    which is the quickest way to generate an ALV report using the field catalog merge.  without needing to build the field catalog manually .
    is it easier to create a structure and passe it in the field catalog merge .  if yes can i have an example plzzzz

    hI
    Supports the creation of the field catalog for the ALV function modules
    based either on a structure or table defined in the ABAP Data
    Dictionary, or a program-internal table.
    The program-internal table must either be in a TOP Include or its
    Include must be specified explicitly in the interface.
    The variant based on a program-internal table should only be used for
    rapid prototyping since the following restrictions apply:
    o Performance is affected since the code of the table definition must
    always be read and interpreted at runtime.
    o Dictionary references are only considered if the keywords LIKE or
    INCLUDE STRUCTURE (not TYPE) are used.
    If the field catalog contains more than 90 fields, the first 90 fields
    are output in the list by default whereas the remaining fields are only
    available in the field selection.
    If the field catalog is passed with values, they are merged with the
    'automatically' found information.
    Below is an example ABAP program which will populate a simple internal table(it_ekpo) with data and
    display it using the basic ALV grid functionality(including column total). The example details the main
    sections of coding required to implement the ALV grid functionality:
                             Data declaration
                             Data retrieval
                             Build fieldcatalog
                             Build layout setup
    *& Report  ZDEMO_ALVGRID                                               *
    *& Example of a simple ALV Grid Report                                 *
    *& The basic requirement for this demo is to display a number of       *
    *& fields from the EKKO table.                                         *
    REPORT  zdemo_alvgrid                 .
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid.
    *Start-of-selection.
    START-OF-SELECTION.
    perform data_retrieval.
    perform build_fieldcatalog.
    perform build_layout.
    perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
    *       Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    * There are a number of ways to create a fieldcat.
    * For the purpose of this example i will build the fieldcatalog manualy
    * by populating the internal table fields individually and then
    * appending the rows. This method can be the most time consuming but can
    * also allow you  more control of the final product.
    * Beware though, you need to ensure that all fields required are
    * populated. When using some of functionality available via ALV, such as
    * total. You may need to provide more information than if you were
    * simply displaying the result
    *               I.e. Field type may be required in-order for
    *                    the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    *  fieldcatalog-do_sum      = 'X'.
    *  fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.        "Display column total
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
    *       Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
    *  gd_layout-totals_only        = 'X'.
    *  gd_layout-f2code            = 'DISP'.  "Sets fcode for when double
    *                                         "click(press f2)
    *  gd_layout-zebra             = 'X'.
    *  gd_layout-group_change_edit = 'X'.
    *  gd_layout-header_text       = 'helllllo'.
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
    *       Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
    *            i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
    *            i_callback_user_command = 'USER_COMMAND'
    *            i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
    *            it_special_groups       = gd_tabgroup
    *            IT_EVENTS                = GT_XEVENTS
                i_save                  = 'X'
    *            is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
    *       Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
    select ebeln ebelp statu aedat matnr menge meins netpr peinh
    up to 10 rows
      from ekpo
      into table it_ekko.
    endform.                    " DATA_RETRIEVAL

  • How to print out multilingual reports from the main report using Xliff temp

    Hi all,
    How to print out multilingual reports from the main report using Xliff temp?
    When I want main report call subtemplate and finish xliff tranlation
    <?for-each@section:INVOICE?><?end for-each?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if trx_number = 142 call Finnish translation and if trx_number =144,
    call English translation.
    <?for-each@section:INVOICE?><?end for-each?>
    <?if:TRX_NUMBER=’142’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    <?if: TRX_NUMBER=’144’?>
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    <?start:body?><?call:Header?><?call:Line?><?call:Weights?><?call:Banks?><?end body?><?call:Footer?>
    <?end if?>
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Does anybody know what could be wrong?
    BR
    Kari

    Thanks Amit,
    I have two layout, main-layout and sub-layout
    Main layout call subtemplate
    I have registered layout and xliff-file
    Main template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_MAIN.rtf      English
    SUB template
    Localized Templates
    File Name           Language Territory
    XXNS_INVOICE_SUB.rtf      English
    Translatable Template
    File Name           Language      Territory
    XXNS_INVOICE_SUB.rtf      English      United States
    Available Translations
    Language Territory Progress
    English Finland Complete
    If main report call subtemplate and finish xliff tranlation
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    Prints out fine with Finnish translation
    But if I want in main program to check what language is used e.g.
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.FI/?>
    .....end if;
    if....
    <?import:xdo://XXIH.XXNR_XXINVPRINT_SUB.en.US/?>
    .....end if;
    Prints out always in English and never the Finnish translation.
    Program goes fine to if branch but does not print out Finnish
    Do you it's set up problem or program problem
    BR
    Kari

  • Help!  PDFs are not printing because adobe reporting that postscript conversion needed?

    Help!  PDFs are not printing because adobe reporting that postscript conversion needed?  Can someone help me?  Please?

    Please give us the complete error message, every word. This is not a familiar symptom.
    Also: What software and version are you printing from? What system do you have?

  • HT3771 I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    I Have a Kyocera FS-C2026MFP printer/scanner. How can I only pint the document in Black. I cannot work out how to not print in colour to save the inks!!

    Welcome to Apple Support Communities. We're users here and do not speak for "Apple Inc." or "Kyocera Inc."
    http://usa.kyoceradocumentsolutions.com/americas/jsp/upload/resource/25359/0/Mac Driver3SoftwareGuide1.1.pdf
    On the printer driver documentation, Page 5, in the Imaging setting, although the options are not specifically shown, there should be an option on that screen of the print driver to click and select "B/W" or 'black and white' or 'grayscale' or 'monochrome' as Print Mode rather than the "Full Color" option shown in the illustration below.
    You access these settings once you have selected 'Print' from an app.
    If necessary, you might need to click on the 'Down arrow' button next to the printer name (OS X 10.6), or 'Show Details' button at the bottom of the print dialog box (OS X 10.8) to see additional settings.

  • My printer will not print in black ,i replaced the ink and now it will not print in black ink

    my printer will not print in black ,i replaced the ink and now it will not print in black ink

    Please read this post then provide some details.  What printer model? What operating system? Are there any error messages on the printer or computer screen?
    Is your printer still in warranty? You can check with HP's warranty tool here.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I'm not able it to type into the field for the serial number.

    I have a Mac Book. I purchased a download card from Fry's. After pressing "accept" for the terms on my computer I'm not able it to type into the field for the serial number. What's wrong?

    Are you sure it's a serial number and not a redemption code? A PSE serial number is 24 digits beginning with 1057. If you have a redemption code, here's what you need to do:
    http://helpx.adobe.com/x-productkb/policy-pricing/serial-number-retrieval-process-faq.html

  • How to make a subform not print if the fields are empty

    I'm once again working on that kind of client form where our agents fill in a bunch of fields on our forms and I only want those fields that are pertinent to that client to print out and I've grouped the fields that go together into separate subforms.
    There are date fields and currency fields that relayout to floating fields in hidden blocks of text that appear when the last text field is exited, ie:
    Subform1  "On 5/14/12 your application was approved. We will pay $100 to your account"
    Subform2  "On 5/14/12 we received your application. We will need further information before you claim for $250 can be approved" etc. Obviously, both of these subforms cannot appear on the letter.
    Jono gave me a great solution for not printing checkboxes that are not checked with a preprint script which worked perfectly and I tried to adapt that to the subforms but alas my skills are lacking. I tried just putting it in each fill in field but then the blocks of text still remained.
    So basically I don't want the subforms that have empty fields to print.
    I'd appreciate any help that can be offered.

    Hi,
    I think that the logic/script should be placed in the area where the user either approves or rejects the claim. This would avoid a prePrint script to check if fields are empty or not.
    If you are stuck with checking if fields are empty on prePrint, then you would just need to check the relevant fields one at a time or use a loop.
    Hope that helps,
    Niall

  • Print a PDF report having a field(column table) with a HTML code

    hello every one,
    I have a table where a column(varchar2) have HTML code inside it.
    Because all my reports are in PDF format, how can I print this column, when I print in PDF I see all HTML tag and it isn't formatted.
    Have Anyone same problem, could I convert in PDf before I print it?
    Thanks in advance for help

    You need to set "Contains HTML tags" to YES, so that the HTML code is formated in the report.
    It is a property of the field.

  • Have Photosmart Premium All-in-one, model c309a. Will not print a test page as the default printer.

    Have gone through all diagnostics offered online by HP, but to no avail.  Am hooked up wirelessly and all connections say OK.  The print queue just keeps building up until i clear it.  Have checked ink cartridges, power reset procedure and also the Embedded Web server, print driver and port,verified that is not paused or offline, restarted the print spooler, checked the software program and removed and reinstalled the HP software.  It just will not print.  Will copy but not print.  Help!!

    I have exactly the same problem here.
    The printer is connected wirelessly to my router, which is connected with cable to my WinXP computer.
    I can see the web server, all pages report everything is normal and ready. 
    I can ping from my computer to the printer.
    I had no success getting the HP software on the CD to install, but the ~ 200 MB download version installed at least. However when the software probes to see what printers are available, it just doesn't see the printer (even though I can access its web server).
    I finally got my wife's computer (Win 7 64 bit) to connect, but don't know exactly what I did to make that happen.
    I noted that HP has a new version of firmware for the printer, so that will be tomorrow's project.

  • Images not printing correctly when report is exported

    I work as part of a company that uses Crystal Reports to allow our clients to be able to print reports from our software. We are currently using Crystal Reports 10.
    We have a report set up with 4 images on the page that are loaded from a database. The images are set up to be a set size on the report and not to autosize. They are stored as jpg files.
    The actual images are larger than their counterparts on the form. In the particular case that this issue was seen one of the images was 1600 x 1200.
    The problem is that when the report is displayed in the print priview screen and printed to a printer it appears fine, however, if the report is exported, the report seems to get cropped instead of shrunk, so the report only ends up displaying the top left corner of each image rather than the whole image. I have seen this for both a PDF and and a Word Document export.
    Is this a know issue? How can this be fixed?
    The ability to export the reports rather than print them is an important feature of our product and is regularly used by our clients.
    Any assistance that you may be able to provide on this issue would be greatly appreciated.
    Also do any of the Crystal Reports developers visit these forums to assist with the issue, or is it mainly a community only forum? Just wondering.

    This is being seen when running the report from within our application. The report itself has been created and designed from within CR Designer v10. The actual report that the images are on is a on a subreport. The reason for this is that the main report needs to show a different number of images, either 1, 2, 4 or 6, depending on how many images are linked to the data in the database.
    We are using the CR SDK designed for use with Borland Delphi 7.

  • Photosmart 7525 will not print in color, except from the printer.

    This printer refuses to print in color from my computer.  Since I bought it to print photos, this is distressing.  I followed all suggestions posted for this problem.  (I had tried them all before.)  It WILL print a copy in color from the printer itself.  That is the only way.  I use Adobe Photoshop and it won't print in color from there, Word, or the internet. Checked printer preferences; grayscale not on.  Printer full of ink.  Paper and quality OK.  Please instruct me on how to print color photos from a color printer!

    Hey ,  Welcome to the HP Support Forum.  I understand you're unable to print in colour via PC with your HP Photosmart 7525 e-All-in-One Printer.  I'd like to work with you on this.  I have some suggestions that might restore this functionality for you.   From what you're reporting, with the printer printing in colour from standalone it sounds like the main issue is software related.  Accordingly, I recommend you try the following steps:  Clear Temp Files: Press Windows Key + RIn the Run dialogue box type %temp% and select OKIn the Temp folder select all items and delete them.  The Temp folder contains temporary internet files. No actual files or folders on your computer will be affected by deleting the Temp files. On Windows Vista, 7 and 8 if a Temp file is still be used  you can simply 'skip' the used item and everything else will delete successfully. Once the Temp files are deleted close the Temp folderRight click on the Recycling Bin on your desktop and select Empty Recycling BinNext, I recommend running Microsoft Fix it (it's designed for Windows 7 but I have found that it works with 8 and 8.1). Click here  to install.  I've had a lot of luck detecting and automatically solving common printer software setup issues with this utility.  If Fix it doesn't find a fix, or it prompts to uninstall the printer driver click here to reinstall your printer.  Please let me know the result of your troubleshooting by responding to this post.  If I have helped you resolve the issue and you liked this post, feel free to give me virtual props by clicking on the 'Thumbs Up' icon below and clicking to accept this solution. Thank you for posting in the HP Support Forum.  Have a great day!

  • How do you print comments that extend beyond the field?

    I have created a form in LiveCycle Designer 8.0.  It contains a text field that allows recipients to write "beyond the size of the field" if they desire.  When we recieve the completed form, of course, we can view the extended comments by clicking on the + sign.  But, when we print the form the comments are cut off at the end of the box.  How can we print the entire comment directly from the PDF without having to cut and paste into another document?  Thanks.

    One easy way to resolve this is to change your form to a dynamic form and make that field expandable. To do this, save the file as "Adobe Dynamic XML Form". You will need to change the layout of your form to make it Flowed vs. positioned but before you do that, you will want to prepare the form for this.
    Flowed forms layout the fields for you and place each field below the last so you can't control the layout. Positioned layout allows you to put the objects wherever you want with the caveat that you can't expand fields.
    What you want to do, is highlight all fields that are positioned and wrap them into a subform. Leave the field you want to expand out of this subform. Then, on the page in Hierarchy view, select the page and the object view and choose Subform "Flowed". Now, on the object that you want to expand with text entry, do the following: on object view, check "allow multiple lines" and "allow page breaks within content"; under layout under height check "expand to fit". Click save and preview. Make sure to change preview settings to Preview Type: Interactive; Preview Adobe XML Form as: Dynamic XML Form.
    I will try and attach an example.
    Mallard27

  • Not Saving data in some of the fields

    I am using Oracle Database 10g Express Edition Release 10.2.0.1.0 -
    Application Express 2.1.0.00.39.
    The form fields have Source Used: Always, replacing any existing value in session state.
    Source Type: Database Column
    I modified my form, I changed a form field from a Select List with Submit to a Text_Field(Always submit page when Enter pressed) this is when the problem started. I noticed that the data was not getting saved in the form or table.
    The session variables are not populated. It has a status of R.
    A while back, I discovered that the order of your form field and the display typeaffects the population of the field.
    If you have basic Select List with Submit text_field,Select List, etc. you are ok, but if you use Text_Field(Always submit page when Enter pressed) , then radiogroups, checkboxes , text_field, select list, etc. the fields will not get populated.
    What can I do to get a text_field to default to "No Witness' or accept the inputted value?
    I can get it to accept the Default, but if you modify it, then it does not save the changes.

    Hello,
    If you want the item to reflect the changes you made to its value, after submit, you need to use the “Only When …” option in the Item’s Source Used field. Otherwise, you need to retrieve the value from the database, using ARF. In all other cases it will be set to the default value (as the Source Used imply).
    Regards,
    Arie.

Maybe you are looking for

  • Error code 36 when copying files to external hard drive!

    I keep getting this error when I try to copy files to my external hard drives. It is the same error no matter what drive I use. It says it cannot perform the operation because the data cannot be written - like there is a permissions problem, but I ch

  • PDF Email attachment

    Hi, I am wanting to create an interactive PDF that our clients can receive via email then simply save the changes when closing and return to us via reply or forward of the email. The form that I have currently created makes you save it somewhere on y

  • DATAEXPORT file  in custom defined Order?

    Hi , I had a requirement to export Lev0 (Dynamic Calc) data from BSO application. I am able to do the export by using "DATAEXPORT" function, but the export file contain the default order as per dimensions design from outline. I am pretty sure that i

  • CS3 PRINTING VERY DARK COLOR PRINTS ISSUE

    Hi, This is the situation: I work on an Eizo CG241W calibrated monitor, and Epson 9880, 9800 and 4800 printers profiled with i1 PRO and EYE-One Match Software. But recently we made a move from Windows to Mac, and since then the color prints are being

  • To download a file using Ftp.

    I am making a web application using struts framework . now on one jsp page i'll have to give the list of files on the ftp server and link to download those files using ftp from the ftp server. I have made functions using jakarta commons.net library b