How to suppress blank lines in smartforms

Hi all,
     How can we suppress blank lines in smartforms?
In my scenario I am having customer address details in main window.
i.e. Name
     Street
      P O Box
      P O Box Location
      Post Code
      Telephone
      Fax.
Suppose if there is no value for P O Box Location the address is getting displayed as
      Name
     Street
      P O Box
                      -> Leaving blank space
      Post Code
      Telephone
      Fax.
But I want it as
     Name
     Street
      P O Box
      Post Code
      Telephone
      Fax.
i.e The blank line should not be displayed.
Kindly let me know how to do this.
Regards,
Neethupriya.

Hi Neethu,
Are you using ADDRESS option in smartforms or code to get address from customer master?
If you are using code, you can give condition like P O Box Location <> SPACE in condition tab.
Pranav

Similar Messages

  • How to suppress blank line in top and end of portlet

    I created one small report (portlet) however when i execute this one; i remarked there is one blank line in the top
    and another one at the end of the report. How can i eliminate these lines. I need this space to be able to see
    a lot of information in the same page.
    I use portal 3.0.9.2

    After developping a lot of portlet and read a lot of TAR on metalink and a lot of message on OTN i discovered the solution.
    Wnen you create one report with the wizard there is no way to erase the first line ( header ) in the result.
    Second for the last line of the results ( blank line ) ; the problem is with netsacpe 4.75 ( no problem with internet explorer )
    with Netscape you will see one blank line and not with internet explorer ( confirm with Oracle support )
    Anyway in the place of developping one report with the wizard ; you can copy and paste your sql statement of your report
    inside one dynamic page and control all you want.
    I will give you one example than i created; i hope it will help other persons like me
    ( we need to read a lot of thing to do something really simple with portal )
    <HTML>
    <HEAD>
    <style type="text/css">
    <!--
    .TabFontText {
    font-family: Arial, Helvetica;
    font-size: 9pt;
    -->
    </style>
    </HEAD>
    <BODY>
    <ORACLE>
    begin
    htp.p('<table cellspacing=0>');
    for c in ( select '<a TARGET="_blank" HREF="http://'||ssdw_portal.pkg_globl.
    fnc_get_server_port||'/pls/portal30/docs/FOLDER/SSDW_AIDE/'||replace(item.name,
    ' ','+')||'">'||item.display_name||'</a>' filename , to_char(item.updatedate,'dd/mm/yyyy hh24:mi') last_updated
    FROM portal30.wwsbr_all_items item ,
    portal30.wwsbr_all_folders folder
    WHERE folder.name = 'SSDW_AIDE'
    and folder.caid = item.caid
    and folder.id = item.folder_id
    and item.language = 'us'
    and item.name like 'GUIDE%ANG%'
    order by item.name ) loop
    htp.p('<tr>');
    htp.p('<td bgcolor=#CCCCCC width=325>');
    htp.p('<font class="TabFontText" >');
    htp.p(c.filename);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('<td bgcolor=#CCCCCC width=125>');
    htp.p('<font class="TabFontText">');
    htp.p(c.last_updated);
    htp.p('</td>');
    htp.p('</font>');
    htp.p('</tr>');
    end loop;
    htp.p('</table>');
    end;
    </ORACLE>
    </BODY>
    </HTML>
    Marc Fortin
    [email protected]

  • How to supress blank lines in smartforms...

    Hello Experts,
    I am showing the address of the customer in my form but I noticed that when a variable doesn't have a
    value, it still shows as a blank line. For example:
    Customer 123
                        <--- I want to remove this line
    San Francisco, California.
    How can we do this guys?
    Thank you and take care!

    Hi Viraylab,
    There are two ways by which you might clear this issue.
    1. If you have created a template for the same and under that, if you have created separate rows for each field/group of fields, then you need to remove those rows, as the blank row will be displayed as it is.
    2. You can directly write the code for the condense using the statement CONDENSE wa_field.
    Regards,
    -Syed.
    Edited by: wahid hussain syed on Dec 16, 2008 11:17 AM

  • How to avoid blank lines in smartforms?

    Hi all,
    I am using an INCLUDE TEXT in a smartform. The problem is it is priniting with the blank lines entered in the standard text.
    I couldn't find any option for avoiding these blank lines using the respective smartstyles.
    Is there any option to avoid the blank lines ? Please help me.
    Thanks,
    Aravind

    Hi,
    well if the blank lines are present in the include text.
    then you have to modify the standard text.
    in the smartform the text is printed as it is.
    you need to make changes to the standard text.

  • How to draw horizontal line in smartform after end of the all line items

    Hi Friends,
    I am working on the smartform. I have created TABLE node in Main window.
    i want to draw a horizontal line after end of the main window table node. i mean after printing all the line items of the table, I need to print one horizontal line.
    Could you please help me how to resolve this issue.
    FYI: I tried with the below two options. But no use.
    1. desinged footer area in the table node of the main window.
    2. tried with uline and system symbols.
    please correct me if i am wrong. please explain in detail how to draw horizontal line after end of the main window table.
    this is very urgent.
    Thanks in advance
    Regards
    Raghu

    Hello Valter Oliveira,
    Thanks for your answer. But I need some more detail about blank line text. i.e thrid point.
    Could you please tell me how to insert blank line text.
    1 - in your table, create a line type with only one column, with the same width of the table
    2 - in table painter, create a line under the line type
    3 - insert a blank line text in the footer section with the line type you have created.

  • How to suppress blank pages in 11i from printer output

    Hi All,
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....
    Regards,

    Please post the details of the application release, database version and OS.
    We were working on Oracle Reports and registering in 11i thr concurrent program and while running thr concurrent request we are getting blank pages from printer output, please let me know how to suppress blank pages as i need to get printouts without any white pages.
    Say for example if we run concurrent request and o/p is 10 pages which consists of 3 blank pages so finally we need to get printer o/p with 7 pages which are having data as i need to stop printing which are having white pages.
    Please help as this a critical scenario.....Does this happen to all concurrent requests?
    Is the issue with all printers or specific ones only?
    What if you use the lp command from the OS to print the concurrent requests output files, do you still get blank pages?
    Do you use PASTA?
    Please see these docs/links.
    How To Investigate Printing Issues and Work Towards its Resolution? [ID 297522.1]
    Oracle Applications Postscript Printing [ID 99495.1]
    Only First Line Of Concurent Output Prints And Then Blank Lines/Pages [ID 452906.1]
    Apps Reports Generate and/or Print With Incorrect Page Break Points [ID 359716.1]
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page+AND+Print&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    https://forums.oracle.com/forums/search.jspa?threadID=&q=Blank+AND+Page&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • How to print horizantal lines in smartforms?

    hi friends,
                       how to print horizantal lines in smartforms.
    waiting for ur valuble replies.
    Thanks,
    Kiran

    HI,
    If u use templates or table,then use borders to print the horizontal lines.
    Eg : Create template-->Table painter->click select pattern button->Display framed pattern->select 3rd one.it will display only horizantal lines.
    if want to print horizantal line under the text, then create one paragraph or character formate with Underline in smartstyles.Use that paragraph or character to u r text element

  • Suppress Blank Lines in RTF Template

    We are using <?if:count(current-group()[FIELD=$VARIABLE])?> in order to restrict data in a pivot table cell.
    The pivot table cell uses @cell:top XML level to produce fixed number of columns.
    There are two for-each-groups in the cell under the @cell tag.
    Using <?if:count(current-group()[FIELD=$VARIABLE])?> works fine to restrict data but there are many extra blank lines creating bad formatting. This is because the two for-each-groups under the @cell tag. Those groups get the correct data but since @cell is at the top node of the XML the for-each-groups are repeating too many times and creating the blank lines.
    Is there a way to suppress blank lines in an RTF template?

    I've already tried that and the results are the same. The blank spaces still exist. I even tried using that right after the for-each-groups that are under the @cell tag. No difference.
    Can I please send you the RTF template and XML? And two PDF files, one that shows the empty line spaces and one that shows correct formatting (without fixed number of columns).
    Thank you very much.

  • How to protect the lines in smartforms

    hi gurus
    i want to know how to protect the line in smartforms..
    regards
    baskar

    Check this link.
    http://www.saptechies.com/smartforms-protect-lines-in-main-window/
    if you are using tables, there are two options for protection against line break: – You can protect a line type against page break. – You can protect several table lines against page break for output in the main area.
    Protection against page break for line types – Double-click on your table node and choose the Table tab page. – Switch to the detail view by choosing the Details pushbutton. – Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.
    Protection against page break for several table lines – Expand the main area of your table node in the navigation tree. – Insert a file node for the table lines to be protected in the main area. – If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file. – Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page
    Regards,
    Maha

  • How to get 2nd line in smartforms using template

    how to get 2nd line in smartforms main window using template. i have also defined loop .

    if possible can you try with the TABLES..
    Put one TABLE in your MAIN window
    create table lines as per your requirment...consider all lines like 6 for header, 1 for main, 1 for total
    Now, you will find three section under the tables: header, main, footer...
    in header section, create a table line, assign one of the proper lines from the line types.. repeat for your all lines.
    in main section, you can access your data form the loop.
    the footer secion will be called, just after the main will be finished.
    Regards,
    Naimesh Patel

  • How to insert blank lines in the ALV output.

    Hi Friends,
    Could any body help me out How to insert blank lines in the ALV output.?? Any Code pls...
    Thank you,
    Vikram.C

    hi vikram
    do like this
    In the fieldcatalog table all the fields should be in editable mode
    ie lw_fcat-edit = 'X'.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
    i_callback_program = sy-repid
    i_callback_pf_status_set = 'SET_PF_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = lv_layout
    it_fieldcat = lt_fcat[]
    i_save = 'A'
    is_variant = lv_variant
    TABLES
    t_outtab = lt_license[]
    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_data
    *& Form user_command
    FORM user_command USING r_ucomm TYPE sy-ucomm
    rs_selfield TYPE slis_selfield.
    CASE r_ucomm.
    WHEN 'ADD'. "
    data: lv_ind type i.
    data: lv_line type i.
    describe table lt_license lines lv_line.
    loop at lt_license into lw_license.
    lv_ind = sy-tabix.
    if lv_ind = lv_line.
    append initial line to lt_license.
    endif.
    endloop.
    ENDCASE.
    ENDFORM. "user_command
    reward points if useful
    Rohan

  • How to create blank line in alv output

    Hi all,
    Iam getting alv output with currency values like below
    text1    20.0  10.0  30.0
    text2    25.0  11.0  30.0
    text3    27.0  19.0  30.0
    text1    24.0  18.0  30.0
    text2    27.0  16.0  30.0
    text3    29.0  15.0  30.0
    text1    23.0  17.0  30.0
    text2    22.0  13.0  30.0
    text3    21.0  14.0  30.0
    and so on...
    My requirement is to create blank line after text3. Since its currency field even i claer work area iam able to get 0.0.
    If i use no-zero in field catalog i will be able to get blank values for all 0.0, but thats not required.
    Can u help me out how to crate blank line after one set of values(text1, text2, text3) in alv display
    Thanks

    Hi,
    If i use no-zero, then all 0.0 will be replaced by blank, but that is not required.
    I want only blank line to be displayed after set of line items.
    Skip doesn't help in alv. Secondly if i append blank work area i will be getting 0.0 as it is a currency field.

  • How to remove blank lines in the end of list .

    hi,
    in a complex report ,when there are only 20 pages,and linecount is 65(2) ,in the last page only 27 lines are filled and data is completed.then blank lines are printing from 27th line to 63 line.then end of page is triggering.
    so plz help me how to remove the blank lines here and immediately print the endof page.

    Hi,
    will this work for you.
    SET BLANK LINES OFF.
    These statements allow you to specify whether you want to output blank lines or not. Use SET BLANK LINES ON to output blank lines or SET BLANK LINES OFF to suppress them.
    Regards
    Viswanath Babu

  • How to draw a line in smartforms!

    Hello ABAPers,
    In smartform, I am having a table. Every 3 rows I want to draw a line. How can I do that in Smartforms?
    Thanks,

    hi Naren,
    Check these links out
    drawing line in smartforms
    Re: Smartforms - Line Height
    Re: smartforms blank line
    Regards,
    Santosh

  • How to suppress some lines from printing

    Dear all
    I have a problem of suppressing some lines in a character mode report depending on some condition. E.g. say I have 5 lines per record to be printed. Say Name, Add1, Add2, Add3, City. Now depending on a condition, I don't want to print Add2, instead Add3 and City should move upward one line resulting only 4 lines in the report. Like wise there may be only two lines in the report, Name and City only.
    How to accomplish this task? Thanks in advance.

    Easy in to do it in the query:
    select rtrim(decode(adr1,null,null,adr1||chr(10))||
                 decode(adr2,null,null,adr2||chr(10))||
                 decode(city,null,null,city||chr(10))||
                 country,
           chr(10))
    from address                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

Maybe you are looking for