SMART Forms , paragraph format.

Dear Expert,
First of all, please refer to this. [here|http://wkokwei.googlepages.com/paragraph.jpg]
I am trying to eliminate blank lines of the Text in the smart forms.
example:
&text1&
&text2&
&text3&
&text4&
Those text are variable, if it have no value, i dont want to print the empty line.
"IF - ELSE " statements doesnt work.
say if text1 is "AAA", text2 is " ", text3 is "CCC", text4 is "DDD".
It will print as:
AAA
CCC
DDD
instead of:
AAA
CCC
DDD
and i found there is a setting in the paragraph format (refer to the link above),
"No blank lines" option.
Where to change this? I have tried to look into SMARTSTYES, didnt find it.
gosh.... smartform is ******* smart..... this is making me crazy .....

Hi,
If you don't have too many texts, you can create one text element for each and print it only if your variable if filled, that is &text1& is not initial in the condition tab.
This way you'll get no blank lines and don't have to bother with styles.
Regards,
S

Similar Messages

  • Smart form Date formate

    Hi All,
          I am new to smartforms.I want to position the  date on page top corner of the left side of the form such as day month year(Tuesday,january 01,2008).how to get this formate in smart form?
    Thanks & Reagrds
    HB

    Hi,
    Check this  it may be useful to u
    Formatting Date Fields: SET DATE MASK
    To define the formatting of date fields, use the SET DATE MASK control command. Executing this command causes all subsequent date fields to be printed using the specified format.
    Syntax:
    /: SET DATE MASK = 'date_mask'
    In the date mask, you can use the following codes:
    DD: day (two digits)
    DDD: day name - abbreviated
    DDDD: day name - written out in full
    MM: month (two digits)
    MMM: month name - abbreviated
    MMMM: month name - written out in full
    YY: year (two digits)
    YYYY: year (four digits)
    LD: day (formatted as for the L option)
    LM: month (formatted as for the L option)
    LY: year (formatted as for the L option)
    All other characters found in a date mask are interpreted as simple text and are copied straight into the output.
    Assuming the current system date is March 1st, 1997.
    /: SET DATE MASK = 'Foster City, MM/DD/YY'
    &DATE& -> Foster City, 03/01/97
    /: SET DATE MASK = 'MMMM DD, YYYY'
    &DATE& -> March 01, 1997
    The date mask may be reset to the default setting by using an empty string:
    /: SET DATE MASK = ' '
    The abbreviated and full forms of the names of the days and months are stored in the language dependent TTDTG table under the following keys:
    %%SAPSCRIPT_DDD_dd: abbreviated day name
    %%SAPSCRIPT_DDDD_dd: full form of day name
    %%SAPSCRIPT_MMM_mm: abbreviated month name
    %%SAPSCRIPT_MMMM_mm: full form of month name
    dd: day number 01 = Monday,..., 07 = Sunday
    mm: month number 01 = January,..., 12 = December
    Regards

  • Smart Form - Paragraph Protection

    Hi,
    I have a requirement in the SmartForm where the required output is to printed as follows.
    itab1-line1
    itab1-line1
    itab2-line1
    itab2-line2
    itab2-line3
    itab1-line2
    itab1-line2
    itab2-line4
    itab2-line5
    itab2-line6
    itab1-line3
    itab1-line3
    itab2-line7
    itab2-line8
    itab2-line9
    My Logic is as follows.
    Loop at itab1 to wa_tab1   --> in the form
    write the itab1-line1  - Header 1st Line
                 itab1-line1 - Header 2nd Line
    Loop at itab2 to wa_itab2   ---> in the form
    write the itab2-line1  - Item 1st Line
                 itab2-line2 - Item 2nd Line
    Can you please suggest me how to protect the Paragraph in this Scenario?
    Thanks,
    Kannan.

    Hi,
    Try to use page protection in the Folder. 
    Create a Folder in the Main Area of the table and check the Page Protection Option.  Include all your Line types (Row types) in this folder.
    It will avoid page break and display the records in a set.
    Reward if useful........

  • Understanding Margins in Smart Forms/Page Formats

    Okay I have completed all my forms by rendering out all the data and now need to adjust the style to my liking.  One issue that I am having is understanding the margins of a smartform and how they are defined?  From what I have researched, the page formats are defined in T-code SPAD where the width and height of the page is set.  However, I don't understand where the margins are determined.
    I have placed a window that contains a table at x-position 0 with the width of the window and table the full page width (DINA4 = 210mm).  In print preview, the document renders out fine with the table row stretching from end to end, but when I actually print it there is a 7mm left margin and a 10mm right margin, which cuts off the end of my table row.
    So my question is, where are these margins set?  Or is this because I have not/did not configure my printer settings correctly to communicate with the printer correctly?  Once again I would like to reiterate that my print preview works correctly but the print output does not.

    Okay from what you just said, translated to simple terms is pretty much: You cannot set the margins of the ACTUAL printout.
    Here are my current settings:
    Page format = LETTER
    Left margin of all windows = 0.0
    Window width = 21.00cm
    device type = LX4039 (Lexmark Optra T616)
    On the print preview The tables are left justified with no left margin, and there is a right margin that appears to be 8mm wide.  This is great if it actually printed this.
    When I actually print it though, I get this output:
    Left margin of all windows = 7mm
    Right margin of all windows = 5mm
    All windows that were on the right side of my document are cut off early and the tables only have a width of about 20.7cm.
    I could shrink my tables to make them fit but then they will not look centered, and I am trying to make every aspect of this form as professional as possible since our customers will see them.  Can anyone fix or acknowledge that there is no setting I can alter to fix this?

  • Smart form page format.

    Daer All,
    A very good  morning to all of you......
    I want to know that If I have dot matrix printer. Then which page format do i need to select to print data in smartforms. As I need in urgent. Plz give me the answer.
    Thanks & regards.....

    Hi
    We use DINA4 page format for most of the times.
    check with that format and see.I think page format doesn't have much effect on the printer.
    Check the print out on 2 to 3 printers and see.
    Reward points if useful
    Regards
    Anji

  • With in smart forms   i need time format like 12:26:37

    hi,
    in smart forms time format is coming to one variable time in this format 122637, but i need this format  12:26:37
    plz tell me the answer.
    thanks.

    Hi
    Check this:
    REPORT  ztest_time_conv.
    DATA: hour(2) TYPE n,
          min(2) TYPE n,
          sec(2) TYPE n,
          tim TYPE i.
    DATA: time TYPE p DECIMALS 2.
    DATA: timeformat TYPE sy-uzeit.
    time = '1.38'.
    tim = time * 3600.
    hour = tim DIV 3600.
    tim = tim MOD 3600.
    min = tim DIV 60.
    sec = tim MOD 60.
    CONCATENATE hour min sec INTO timeformat.
    WRITE timeformat.
    BREAK-POINT.
    PS:Code given by Vijay Babu Dudla in other thread..in ABAP general..when I pasted the link,it did not work..so I am giving it here like this.
    Regards,
    VIshwa.
    Edited by: Vishwa Sri Hari on Nov 5, 2008 1:01 PM

  • Default paragraph format in SMART FORMS

    Hi all!
    Can we mention  default paragraph format for SMART FORMS? How can we do that?
    Please suggest.

    Goto FORM attributes of your smartform and insert your smart style in output options tab.. before inserting your smartstyle you should create a smart style and create a paragraph format in your smartstyle in header data of smartstyle it ask for standard paragraph(i.e default paragraph)...
    Close rge thread once your question is answered.
    Regards,
    SaiRam

  • Undeline text in Smart forms character/paragraph format

    hi!!!
    i have a problem in printing a Undelined text in Smart forms bec. when i print it, only the words is underlined and the spaces between the words dont have underline.
    can anybody help me?
    thanks in advance!!!
    james

    Hi Mohamed,
    SmartForms and WebDynpro are two different technologies
    - You can not do PrintPreview in WebDynpro.
    What You could do is to store Your text using SAVE_TEXT and use text module in SmartForms,
    but You can't use printer, but i.e. store PDF on the server or send PDF using mail.
    Regards,
    Przemysław

  • How to create the Paragraph styles in Smart Forms

    Dear Techie's,
    Please let me know, How to create the own Paragraph styles in Smart Forms i.e to make the line or a particular font in BOLD.
    Please put the light ASAP.
    Regards,
    Maddu.

    hi
    good
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form. 
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    thanks
    mrutyun^

  • Paragraph format used in Form, but not defined in Para formats of the form.

    Hi friends,
                      I was trying to edit a form window, which has paragraph formats of the name HN HT etc being widely used .
    But when i check the paragraph format defenitions for this particular form , i dont see these being defined there.
    I doubt its because of the same reason, when i try to change the editor to PC editor , the message comes "cant open PC editor,
    Format HT not found" ( when i remove all HT from the ediotr , it shows that HN not found).
    please help me on this .
    Thanks ,
    Shyam.
    Moderator Message: Duplicate post locked
    Edited by: Suhas Saha on Sep 6, 2011 12:48 PM

    Hi shyamkumarc,
    you need to declare the smart style than only you will get all the paragraph formats which are there in the smart style
    Thanks
    Surendra

  • Text formatting in FSCM correspondance using smart-forms

    Hi Experts,
    We are using FSCM correspondance functionality with smart-forms in our project. As per requirement, we need to have some text in italics and bold. We have used paragraph format/ character format in smart-form to get the same. When we trigger correspondance, print preview looks fine. But, when we receive actual mail with attachment as .PDF of the smart-form, we are not able to get characters in italics. Bold is working for us but, not with font ARIAL. Our requirement is to use ARIAL font only.
    If someone has already worked on similar requirement, please share your experience with me. Or please provide some pointers to look for. Any input will be highly appreciable. Thank you in advance.
    Gouri.

    I'm not sure if SmartForms support the Arial font. You can look for notes on this. Helvetica is almost the same and is supported. So this is what I generally use.
    Rob

  • Service cannot be reached while sending a smart form in html format

    Hello,
    I'm trying to send a smart form as email in html format and I'm getting the following error message at the beginning of the message:
    Service cannot be reached
    What has happened?
    URL http://localhost/SAP/BC/BSP/SAP/SMART_FORMS/DEFAULT.CSS call was terminated because the corresponding service is not available.
    Note
    The termination occurred in system XD1 with error code 403 and for the reason Forbidden.
    The selected virtual host was 0 .
    What can I do?
    Please select a valid URL.
    If you do not yet have a user ID, contact your system administrator.
    Error code:ICF-NF-http-c:100-u:MYUSER-l:D-i:my_test_system:0-s:403-r:Forbidden
    HTTP 403 - Forbidden
    Your SAP Internet Communication Framework Team
    .SYSTEM div#B.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.SYSTEM div#L.par{ font-family : "Courier New" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.SYSTEM a.SYSTEM span#H.char{ font-weight : bold ;}.SYSTEM span#I.char{ font-style : italic ;}.SYSTEM span#U.char{ text-decoration : underline ;}#PAGE1-001.page@media screen {#MAIN.win{ overflow : auto ;}}@media print {#MAIN.win{ overflow : hidden ;}}#PAGE1-001.page #MAIN.win.AGGR-BILL div#B.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : justify ; clear : both ;}.AGGR-BILL div#F.par{ font-family : "Arial" ; font-size : 8pt ; font-weight : normal ; line-height : 3.39mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#L.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : left ; clear : both ;}.AGGR-BILL div#R.par{ font-family : "Arial" ; font-size : 12pt ; font-weight : normal ; line-height : 4.23mm ; text-decoration : none ; text-align : right ; clear : both ;}.AGGR-BILL a.AGGR-BILL span#H.char{ font-family : "Arial" ; font-size : 12pt ; font-weight : bold ;}.AGGR-BILL span#I.char{ font-family : "Arial" ; font-size : 12pt ; font-style : italic ;}.AGGR-BILL span#K.char{ font-family : "Arial" ; font-size : 8pt ;}.AGGR-BILL span#M.char{ font-family : "Arial" ; font-size : 10pt ;}.AGGR-BILL span#U.char{ font-family : "Arial" ; font-size : 12pt ; text-decoration : underline ;} div#PROJEKTE.tab@media screen { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media print { div#PROJEKTE.tab table.tr{ border-collapse : collapse ;}}@media screen { div#PROJEKTE.tab table.tr{ margin-top : -1px ;}}@media print { div#PROJEKTE.tab table.tr{ margin-top : 0px ;}} div#PROJEKTE.tab table.tr div#PROJEKTE.tab .topline{ border-top : 1pt solid black ;} div#PROJEKTE.tab .bottomline{ border-bottom : 1pt solid black ;} div#PROJEKTE.tab .leftline{ border-left : 1pt solid black ;} div#PROJEKTE.tab .rightline{ border-right : 1pt solid black ;}#PROJEKTE.tab #sf--LTYPE1.tr td#C1
    and here comes the email's body: bla,bla,bla... bla.
    Do you have any idea how can I solve the problem with the css file? Any suggestion is welcome!
    Regards,
    Jaime

    I just solved the problem by activating the service  /SAP/BC/BSP/SAP/smart_forms/ through the transaction SICF. So I close the thread!
    Jaime

  • To convert Smart Form output to PDF format and send it via email.

    Hi Friends,
    Could any one please tell me, how to convert the Smart Forms output to PDF format and send it via email to customer. If any one have the code, kindly mail me to [email protected]
    Thanks & Regards,
    John

    Refer the links -
    how to convert smartform into pdf and send through mail
    Smartform as PDF attachment to a mail.
    smartform pdf and mail
    smartform to pdf to mail
    Regrads,
    Amit
    Reward all helpful replies.

  • How to print form into pdf format using smart forms in abap

    please let me know how to print form into pdf format using smart forms in abap.
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

    Hi ,
    refer this link
    <removed by moderator>
    Regards,
    Dhina..
    Moderator message: please do not reply to questions that violate forum rules.
    Edited by: Thomas Zloch on Mar 25, 2011 2:04 PM

  • How to convert Smart Form into PDF format and return the result in BAPI?

    I want to convert a Smart Form into PDF format and return the result in BAPI.
    can anyone tell me how it can be done with related example
    regards
    pranay

    hi,
    smart form to pdf--
    All you have to do is call your SF to get OTF and then concert it to PDF. Works like charm:
    DATA: p_output_options TYPE ssfcompop,
    p_control_parameters TYPE ssfctrlop.
    p_control_parameters-no_dialog = 'X'.
    p_control_parameters-getotf = 'X'.
    CALL FUNCTION v_func_name "call your smartform
    EXPORTING
    output_options = p_output_options
    control_parameters = p_control_parameters
    IMPORTING
    job_output_info = s_job_output_info.
    call function 'CONVERT_OTF_2_PDF'
    tables
    otf = s_job_output_info-otfdata
    lines = t_pdf
    and if u need more u can check below links also
    Check the below links..
    Re: Smartforms to PDF
    Re: smartform (otf) as pdf and sending as email-attachment
    VISIT THIS LINK
    Re: Smartforms to PDF
    PLZ REWARD POINTS IF IT HELPS YOU
    rgds
    anver

Maybe you are looking for

  • Goods receipt without QM

    Dear Gurus Can we make GR witout QC? If yes then how ? Thanks & Regards Note : Please use appropriate subject line to get more responses.Subject is discussed in lot of threads,Please search forum before posting. Edited by: Jeyakanthan A on Nov 7, 201

  • Problems with mp4

    I convert movie file (es. .avi, .mpg) in mp4 standard for ipod but quicktime does not recognize the files and I can not add the mp4 files lo itunes and then to the ipod. How do you add movie files to ipod?

  • CL_BSP_BEE_TABLE

    Hi Experts, What is the Use of class <b>CL_BSP_BEE_TABLE</b> and Interface  <b>IF_BSP_BEE.</b> Give me any documents are links or Short definitions. Thanks in Advance, Points Assured.

  • Mail opens - no message viewer - no access to subfolders

    I have spent some hours searching the forum for a fix to no avail. Mail was working fine when I shut down last night. My daughter started it up this morning and Safari crashed a couple of times and apparently a window came up that told her to restart

  • Setting up repositories error: BODI-310190

    Hi! Trying to set up a development server for data integrator, preferably with separate repositories per user and one central repository. I have done as the DI Core Tutorial suggests, but I can not associate the job server with the central repository