Smartforms: Window on Condition

HI Experts,
                In my PO under smartforms, I have table in main and couple of windows below that. I want to show the below window on particular condition. If the rows in table greater that 9, below window will show on next page else on first page. Should I have to write a condition ( True / false ) for that window. where should I have to write a condition. Plz describe me in brief. Thanks.
KHan.

Hi
Declare a global variable, say g_lines of type integer and describe the table lines into the variable in Initialization if you are importing the table from the print program or after the table is populated.
You need to creat 2 windows, one in the first page and other in the second page.
For the window in first page, give the condition if g_lines < 9 and in second page give the condition as g_lines > 9.
When table lines are less than 9, the first page condition will be and will be displayed and second page window will be false and will be hidden and vice-versa when the lines greater than 9.
Regards
Navneet

Similar Messages

  • If Condition in Smartform - window text- without program lines

    Hi,
       I have faced one problem in smartforms. In smartforms i have a window (main.) It has five lines. For Fifth line only i need to check one condition. if it is true then print the Line otherwise i need one Blank line to print.
    How i write if condition in smartforms window - text. 
    Mahesh.

    Hi Mahesh,
    You need to create and alternative node and put your text into that.  An alternative will check a condition, and process one of two nodes depending if it is true or false.  Based on your condition, on true you can have your current text element and on false a text element containing a blank line.
    Regards,
    Nick

  • PDF-File in Smartform Window

    Hi Experts,
    is there any chance to include a pdf-file in a smartforms window? We don't want to attach a pdf-file as second page but need to show the content of a pdf-document in a window.
    Regards
    Nicola

    IMO, You have the option not to display the Smartform, but out of Smartform's OTF, you can convert it to PDF and display it in the custom screen...
    Hope this gives you an alternative.
    Thanks & regards,
    Hadiman

  • Smartform window borders not appearing in dot matrix printer Epson FX-1170

    Hi all. I have a smartform with boxes (made out of windows and its borders) and texts inside those boxes. In the print preview, it shows the window borders. However, when the actual printout comes, the window borders do not appear. I have tried to change the 'output options' of the windows - I tried using millimeters, centimeters, point, lines, as well as inches, for the unit and also tried changing the width, but it still doesn't appear. Has anyone encountered a similar problem with dot matrix printers? Please help.

    Hi,
      the dot-matrix printers cannot "draw" lines and pictures, so, it is not capable of drawing the vertical and horizontal lines you have defined in the smartform windows. I think that you need to write the horizontal lines using the '-' or '_' characters but I am not sure about the vertical ones. Of course, as you realize, this requires big development effort.
    Regards,
    George

  • Dynamic smartform window

    Can we define dynamic size  window in smartform
    window could be any window ( not only main window).

    Hi Savita,
    Welcome.
    It is not posiible to have dynamic updations on windows as the field to size them are strictly numerical and does not accept variables.
    But if you want you can have same windows in more than one page with different sizes. But for main window once the width is defined it will remain constant for all windows only you can alter the height.
    Regards,
    Amit

  • Smartform: windows in different pages having the same name

    Hi all gurus,
    first of all, please forgive me if I'm missing something, I'm quite new on the Smartform argument.
    Shortly; I have to modify some smartforms made by someone else in order to meet customer's desiderata.
    These smartforms are all different but share a common "structure", which is:
    2 pages definition, P_FIRST and P_FOLLOW, which have actually the same internal "structure": they have a LOGO window, then a TITLE window, then a MAIN window, then a FOOTER, and so on.
    In order to do my task, I added a new window in both P_FIRST and P_FOLLOW, let's call it CERTIFICATION_LOGO.
    Moreover, I inserted a new graphic element under the LOGO window.
    Modifying the smartforms, I noticed I have two different kind of behaviour:
    1) in almost all these SF, I add a window called CERTIFICATION_LOGO in P_FIRST, then I have to add a windows to P_FOLLOW which cannot have the same name ( e.g. I called it CERTIFICATION_LOGO_FOLLOW);
    2) in just one SF, when I add a window P_FIRST, then the exactly same window is added to P_FOLLOW. When I modify CERTIFICATION_LOGO window in P_FIRST, also CERTIFICATION_LOGO in P_FOLLOW is updated.
    I can't find a reason why such different behaviour. Actually I'm testing my solution and found that the only smartform that does not work is the only one which I have described with 2). So my guess is that there's some setting anywhere which leads to that different behaviour and this could be a cause of a raised exception... but maybe it's just a case, also because I found in debug that in this standard call in the form PROCESS_TEXT_WINDOW:
    perform xsf_window_open using docentry-tdwindow
                                    docentry-tdwtype.
    where docentry-tdwindow = 'LOGO' and tdwtype = 'T', the system exit the process at the first execution of:
    check xsfop-xsf = c_true.
      check not xsf_obj is initial.
    What does xsfop-xsf should mean? In my case xsfop-xsf = false and xsf_obj is initial... then the SF is not generated.
    What am I missing gurus?
    Thanks in advance,
    Matteo
    Edited by: Matteo Montalto on Aug 26, 2011 4:49 PM

    When you have common windows (LOGO on page first and logo on page next, etc.) you actually have one window definition.  What you put in the window is therefore always displayed for all pages.  In your case, instead of creating your new window and copying it into the follow page, you have two different windows, which now must be separately maintained, as to content, placement, borders, shading, conditions, etc.

  • Hide Window through Condition check

    Hello Masters,
    i am new to sap, i need some of your help, i am creating a smartform where i am using field Gross wt., here i need to place a condition that when my Gross Wt. becomes Zero '0' i need to hide my window , my window should get hidden. please tell me that how can i reach the solution .
    Regards
    Nishant Singh

    Hi Nishant,
    Try this logic!!!
    Double-click on the window which you want to hide if gross_wt is '0'. Now go to the conditions tab of the window and give ur condition as Gross_wt(or the variable which you have declared to determine gross wt) ne initial.
    Hope this will help you to get desired result & close the issue.
    BR,
    Vinit

  • Problem with smartform windows

    Hi guys,
    I'll be making a windows in smartforms which should not be torn in between pages... that is they should be together in just a page, window 1 could not be in page 1 and window 2 in page...
    If page 1 could not anymore accomodate the windows, they must be in page 2...
    what could be done for this? Thanks a lot!

    Hi
    ABAP Development
    Regards
    Pavan

  • Smartform:Window Tilte Texts r  junk values in PDF of my forms

    Dear all
    Smartform: i get header title & Window Tilte Texts r  not appearing, some  junk values does appear in PDF of my forms .
    Whr to check ?
    thnx
    Moni

    Hello,
    The reason why I proposed the reinstallation of Adobe Acrobat is due to the reason that the font which you used in SSF ( font size also matters ) may NOT be available in Adobe Acrobat.
    May be you can try out with some other font and try.
    Hope this helps you.
    Best Regards, Murugesh AS

  • Maximum width of a smartform window

    Hi all,
        I have created a smartform table with 36 fields. I tried to show all the fields within the 29 CM table width.     But its saying that 'MAIN WINDOW DOES NOT FIT INTO PAGE'.
    I used the Landscape format only. Even then, its not allowing me to extend the table width to 29. If i reduce this, the output does not looks good.
    So how to solve this pbm.
    How to extend it to 29.  Coudl anyone tell me..
    Regards,
    Shanthi

    Hi,
    in landscape format it allows us to extend the page upto 29.70 CM.
    So Click on Page and in Output options select the orientation as Landscape.
    To Extend this Click on Main winow>output Options>Width 29,70 CM
    Then Dbl Click on Table >Click On Table Tab>Click On Details-->Give the table width as 29.70 CM
    regards
    Sandipan
    Edited by: Sandipan Ghosh on Apr 8, 2008 4:04 PM

  • SmartForms - Window position variable during runtime?

    Hello,
    is it possible to create one window in smartforms and set
    during runtime the position variable?
    Otherwise i have to create around 70 little windows
    The backround is: i create during a loop for each dataset a 2D-Barcodes. In our SAP system we create 2D-Barcodes like that:
    - the Title of a window must start with LS_BARCODE....
    - then in Lasersoft (thats a "printing"-software between SAP and the printer) this software reads this title LS_BARCODE and creates an 2D Barcode with the datas in the textfield below the window.
    best regards,
    jasmin

    Hello Jasmin,
    Perhaps note 359009 will address your problem or provide you with a workaround, using the "late processing" type window.
    Kind Regards,
    Martin

  • How to reduce the length of  lines in Smartform windows

    Hi,
           In  smartform  Mainwindow or any window,  how to draw the vertical lines and horizontal lines and how to reduce the lengths...very urgent please explain.
    Thanks and Regards,
    surya

    Hi Surya,
    You should use templates for this purpose.
    and if you are in table then you can not use templates. Here you should go for the line type.
    and in either case there will be pattern tab in the right side bottom.
    if double click on the teplate it will get display.
    click on the select pattern and select the required format and give the line width
    ex 15 TW
    I think this will help you

  • Smartform window-issue

    Hi,
    I have to work with smartforms. So that I have a small issue.
    I need to design 2 pages with certain no of windows.Can anyone post when and why I have to assign page2 as next window to page1.
    Could anyone explain indetail about the significance of this.
    Thanks,
    G Kumari.

    Hi,
    Thank u very much for ur kind reply. But still I need some clarification.
    Suppose if there're 3 pages which're entirely different. So, Could u plz kindly  reply when I have to assign each page as next page to the previous pages. Also first page has large amount of data which may overflow.
    I am waiting for ur reply.
    Thanks,
    G Kumari.

  • Smartforms- Window with dotted lines

    Hi,
         I am working in smartforms andf I  wanted window with dotted lines....(in sap 4.6)
        Can anyone plz help me out..

    Hi,
      Refer
    https://forums.sdn.sap.com/click.jspa?searchID=6873872&messageID=1960171
    https://forums.sdn.sap.com/click.jspa?searchID=6873872&messageID=2775901
    Regards

  • How to print  the barcode in a smartform satisfying specific condition

    Hi
    I have a requirement where I need to print the barcode System Bar code = BC_93
    satisfying the following requirement:
    The Bar code is made up of the concatenation of “code1 ”, “dash character”
    and “ code2”. The two codes ( that is some field in a custom table) should be
    eight char long each (put leading zero if the length of the code is shorter).
    This barcode shall be printed always apart from:
    a) code1 material type is ZCPF
    b )Is a combi order, with no code2 stored in storage location “abc”
    please help with example . its very urgent , points will be rewarded.
    Thanks

    To Create a Bar code prefix:
    1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
    2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
    Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
    The place where you are using the field value use like this
    <C1> &itab-field& </C1>.
    You will get the field value in the form of barcode.
    Which barcode printer are you using ? Can you download this file and see.
    http://www.servopack.de/Files/HB/ZPLcommands.pdf.
    It will give an idea about barcode commands.
    Check this link:
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    Check this link:
    http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
    Hope this link ll be useful..
    http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
    go through these links and cose u r previous threads,
    http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
    smartform - barcode
    http://www.erpgenie.com/abap/smartforms.htm
    http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
    http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
    Detailed information about SAP Barcodes
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    Re: how to print barcode using smartform and sapscript...?

Maybe you are looking for

  • Why is firefox slow in loading?

    Have to wait 2 mins for firefox to open and when it finaly opens have to wait 10 mins for a link to open. Firefox is the only browser I have as I have deleted everything on my computer. Have also cleared my history etc and the problem still exsists

  • Smartform-Funny Problem

    Dear all, In an existing smartform I had to make the following changes:- 1:-Include the Sec Education Cess @ 1 %   and display its value 2:-For multiple line items the sales tax (@ some %)  value must be addition of both the line items sales tax valu

  • Forms6i Accessing HTTP Session Object in APache JServ

    I want to create an HTTP session object via a servlet in Apache JServ. This session object contains user profile data as well as session context information. The servlet will redirect the user to the forms6i listener servlet. Can the Forms servlet ac

  • Where is my first tab?

    Upon opening Firefox, there is only one "+" tab. When additional tabs are open, they display the full webpage title and can be switched between by clicking on the tab/title. The original page is no where in sight. When I close all the "viewable" tabs

  • Always got prompt message twice when launching Firefox, How do i fix it?

    I got this prompt message twice. "TypeError: Components.classes['@thunder.com/thundercomponent;1'] is undefined" == This happened == Every time Firefox opened == I updated Firefox to latest version.