Dynamic Windows with SMARTFORMS

Hi,
I have a smartforms form. I want the position and size of the windows dynamic. The only idea I have is to do it with if commands. Is there a better way ????
Thanks for help
sincerly
Arne

Hi Ame,
i dont think that windows can be dynamic. You can have the data inside the window dynamic. Incase you want the data inside the window to populate dynamically, you need to set the conditions accordingly. 
Regards,
Subodh

Similar Messages

  • How to create Dynamic Window in Smartforms

    Hi all,
    Could you please help me out on how to create Dynamic Window in smartforms excluding Main Window.
    Thanks in Advance.
    Vinay.

    hi,
    Hi,
    1.If you are creating the Different windows for the Countries,then In conditions tab of window specify the Condition i.e.
    company -code = '2201'.
    2.Then that window can trigger ofr that condition.
    3.Other wise, if you are using the different layouts ,then write the condition in Print program and call that form .
    reward me if helpful.

  • How to create dynamic window in smartform

    <i>HI Floks</i>
    my requirement is invoice smartform having few line items .i can print this line items with different categories with dynamically placed in smartfom. there how many items with in particular category print its self . how is it possible to printing .is it possible to print dynamic fields and window without changing driver program and structure .How to create dynamic window.
    any body knows reply me fast
    thanks in advance ,
    suresh

    Hi suresh,
        You can create all the windows, but if you go to specific window you will see different tabs like general attributes, output options and conditions. In that conditions tab, you can give condition. so based on that condition, that window will be printed.
    Dont forget to reward points if helpful.
    regards,
    Chandra.

  • How to create dynamic windows in smartforms

    Hi All,
    i am creating a smartform wherein i have to print different layout for different company codes,
    like if the company code belongs to an Indian company then i need to display cost center window. so can you please guide me through the procedure to create windows dynamically.
    thanks in advance
    pooja.

    U can create different layouts for different company codes.
    Declare a variable p_bukrs i.e. company code form interface.
    Made u r window as condition like in the condition tab.
    p_bukrs = '1000'.
    Then it will call corresponding to the company code.
    or
    u can create different forms for different company code and u can differentiate in the driver program.
    if p_bukrs = '1000'.
    call function ssf .
    if p_bukrs = '1500'.
    call
    endif.
    with regards,
    Kiran.G

  • SMARTFORM DYNAMIC WINDOW

    HI ALL,
    >>> Is it possible to create Dynamic window in SMARTFORM?
    >>> How it is possible? ( Window may be set as per TEXT size )
    Thanks With Regards

    22

  • Problem with Secondary window in smartforms

    Hi Experts,
    I have an issue with smartforms while looping internal table.
    Here is the scenario:
    I have two records in my internal table. For each record, I need to print two pages
    For example: In internal table records like..
    TEST1
    TEST2
    First for TEST1, it supposed to print two pages and then for TEST2, it supposed to print two pages from third page onwards.
    I have designed my smartform with two pages named as.. FIRST and SECOND
    In the FIRST page, I created one window type is MAIN window.
    In the MAIN window...Template1 has designed.
    At the end of Template, I used command option to go to SECOND page.
    In the SECOND page, I created one window type is Seconary window.
    In the Seconadry window...Template2 has designed.
    ==========
    With this design, smartform is working is displaying two pages irrespective of the internal table records.
    Option1:
    When I used LOOP in between MAIN Window and Template1. No output displayed.
    Option2:
    When I tried to change the Secondary window as MAIN window, only second record TEST2 is displaying.
    Option3:
    So, I removed LOOP and written some program lines based on iteration.
    For that, it supposed to go to FIRST page,as soon as SECOND page printing for the record TEST1.
    and then second record TEST2 starts from third page and should print two pages for second record TEST2 and so on.
    When I am trying to use command to go to FIRST page in the sceondary window of SECOND page, it's not allowing.
    I am getting error message like.."No new page allowed in secondary window".
    ====
    Could you please suggest solution for this..
    basically... If the internal table has two records, For each record, it should print two pages.
    Thanks in Advance
    Raghu

    I getting internal table from interface. It has two records.
    Basically.., If the internal table has more than one record, For each record, it should print two pages.

  • Table in main window with page break in smartforms

    I want to print data with heading and items in tabuler form (grid form) using table with PAGE PROTECTION in main window in smartform.
    if you would say staight way to use Table or Template under FOLDER with page protection, will not work.
    So, it is little bit tricky. So,if any body have a proper solution please help.
    Thanks and regards,
    Vijay Kr. Gupta

    Hello,
    Include the Text ELEMENT U have used to draw the table in the loop of the main window.
    Vasanth

  • 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

  • Problem with 2 tables nodes in MAIN window in smartforms...

    Hello Experts,
    I have created 2 table nodes in my MAIN window to display data coming from different internal tables.
    Now, the problem is that whenever the 1st table node page breaks, the 2nd table node gets affected
    and it also page breaks. What I want is that the 2nd table must finish displaying certain number of records
    before the page break of the 1st table node takes effect.
    For example, I want to display 10 records for both table nodes 1 and 2. So I created an event in
    table node 1 that if it is 10 records or more, then it will go to the next page. So in effect, my table
    2 node did not print any records at all in the 1st page and it only started printing its first record in page 2.
    How do I print 10 records also in table node 2 before it page breaks?

    Hi,
    It's simple,
    Pre- U should had declared a second page for the same window with header, main & footer.
    now
    First when u r looping the internal table provide no of rows eg Row 1 TO 10. in the Loop ( Data Tab)
    or
    when defing TEXT Go to PC Editor and mention all the fields Under  PROTECT -  ENDPROTECT.
    This would solve the issue.
    Thanks
    Ravi

  • 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

  • PO printing with SMARTFORM

    Hi,
    PO printing is done with Standard Tcode at present.
    Pls forward me Z_smartforms  for PO printing with future modifications or additions to that Zform available.
    I would like to print Many PO at one time

    Create Purchase Order Smartform
    Create a Smartform, copy the existing SAP provided purchase order Smartform to ZSFM_PURCHASEORDER for
    customizing as per business requirement.
    1. Form Settings under Global Settings node, set the parameters in Output Option:
    Page Format: Letter
    Character per Inch: 20
    Line per Inch: 6
    Style: ZSTM_SMB40_SF
    Output Format: Standard Output
    2.        Form Interface
    We can add parameters in the Import Parameters and tables in Tables tab of the form interface for the application
    data to be available for the Smartform to print.
    3. In Global definition we can define the all the global variables which can be used in Smartforms. Initialization
    can be used for initializing the variables and even for retrieving the data.
    Creating pages:
    Each form consists of one or more pages. The first page in the tree structure is the start page and the
    processing of the form starts with this page itself.
    1.        Open the context menu for existing page node and choose create page
    2.        Enter a unique name (FIRST) for the node and a description (Page)
    3.        Determine the format (1, 2, 3...)and the mode of the page counter (Increase counter) on the general
    attributes tab
    4.        Determine the print attributes (Portrait Format) of the page on the output options
    5.        Determine a background graphic for the entire page on the background tab (Not used in PO).
    Creating windows:
    The size and position of the window can be graphically set in the form painter. There are main windows and
    secondary windows. The difference between these two is that the output in a main window can cover several
    pages.
    1.        Open the context menu for an existing page node and choose window
    2.        Enter a name for the node (NAMEFORM) and a description (Title Window).
    3.        On the general attributes indicate type of window. NAMEFORM is secondary window.
    In similar fashion all the other windows are created and positioned as per the form design. Only one MAIN
    window is created, it is used for line items which can cover several pages.
    Positioning texts on the form
    The texts are displayed in the form using text nodes. The only exceptions are addresses.
    The predecessor node of the text node determines its use:
    Predecessor node        Used to
    Secondary window        Position text on one or more pages
    Main window        Display text in relation to other nodes in the main window, it may cover several pages
    Template         Displays texts for table cells of a static table
    Table        Display table contents
    There are three text types:
    1.        Text element : to enter new text in the PC editor
    2.        Text module : to include a text module
    3.        Include text : to include an existing SAPscript text
    Entering texts in PC editor: (TITLE)·     
      To create a text node call the context menu for that node in the tree structure that should receive the
    text, then choose->text
    ·        Enter a unique name (TITLE) for the node and the node description (TITLE)
    ·        On the general attributes tab choose text element as text type
    ·        In the text node box choose whether the text should be started with a new paragraph or only in a new
    line
    ·        Enter the text in the PC editor. Text could be a program element like &Title& or u2018Purchase Orderu2019. &Title&
    is a variable for which the value is assigned in Program line before the text.
    Including text modules: (TERMSCONDITION)
    Text module of the text node is used to refer to an existing text module in the system. The text modules can be
    used in two ways:
    ·        To create a text node, call the context menu for that node in the tree structure that shall contain the text
    and choose create->text under the window TERMSCONDITION.
    ·        Enter a unique name for the node (TERMSCONDITION) and a description (Terms and Condition)
    ·        On the general attributes tab select the text type text module
    ·        Enter the name of the text module in the text name field (&G_TERMS_TEXT&). &G_TERMS_TEXT& is
    used to determine the Text name dynamically in the program lines preceding the text module node.
    ·        Program Lines: GETTERMSCONDITION
    Concatenate 'ZTMM_PO_TERMS_' ZXEKKO-BUKRS
                                    INTO G_TERMS_TEXT.
    Including SAPscript texts:
    (HD_TXT_F01 u2013 Order Header Text)
    The text type include text node to refer to a SAPscript text, which already exists in the system. To identify the
    text the text name, object, id and the language is needed.
    ·        To create the text node, call the context menu for that node in the tree structure that shall receive the
    text and choose create -> text under the main window.
    ·        Enter a unique name (HD_TXT_F01) for the node and the node description (Order Header Text).
    ·        On the general attributes tab choose include text as text type
    ·        Text Name - &ZEKKO-EBELN&, Text Object u2013 EKKO, Text ID u2013 F01, Language - &SY-LANGU&. Also check
    mark u2013 No error if no text exists.
    Tip: Since the size of text is not known, its better to have the text in MAIN window, so that it can run to more
    than one page if required.
    Inserting addresses: (SENDER):
    Address node is used to insert an address into the form. This guarantees that the address is formatted
    according to the postal rules of the sender country.
    ·        To create an address node , call the context menu for that node in the tree structure that one wants to
    contain the text and choose create->Address
    ·        Enter a name for the node (COMPANY_CODE_ADDRESS)  and a description (Company Code Address)
    ·        Determine the address type (Organization Address) on the general attributes tab
    ·        For organizational addresses - specify the address number, for any other - specify the person number
    and the address number. In this case we get the company code address into variable &ADDNR&, so we need
    program lines (SENDER) preceding the address text.
    ·        In the box additional addresses, attributes to specify how to display the address are maintained.
    Printing graphics: (LOGO):
    Tcode SE78 is used to import graphics into the SAP system. The transaction imports the graphics and stores it
    in the BDS (business transaction server) and then it can be displayed in the form.
    ·        To create the graphic node , call the context menu for that node in the tree structure and choose create-
    >graphic
    ·        Enter a name (LOGO) for the node and the description (Logo Graphic)
    ·        On the general attributes determine whether a colored or a black and white
    ·        On General Attributes use the fields object - GRPAHIC, id u2013 BMAP and name - &G_LOGO& to identify the
    graphic. &G_LOGO& is variable and therefore we can print company code specific logo. Program line preceding
    the graphic is required.
    ·        Program line COMP_LOGO is used to assign the value to G_LOGO. Concatenate 'ZCOMPANY_LOGO_'
    ZXEKKO-BUKRS INTO G_LOGO. So, the name of graphic for example will be ZCOMPANY_LOGO_0202 for
    company code 0202.
    Displaying a static table (Window u2013 INFO, Template - TEM_INFO) 
    Use node type template to display a table whose layout and size is determined before the runtime of the print
    program.
    To create a template, define a table layout to determine the cell structure for each line. The cells are used to
    display the cell structure for each line. The cells are used to display the contents of the successor nodes of the
    template node. 
    ·        Create Template under the INFO window node. Create > Template.
    The template layout is used to determine the following,
    1.        The number of lines and cells
    2.        The height of each cell
    3.        The width of each cell
    4.        The alignment of the table in the window
    5.        Whether and where to display separator lines or frames
    Use the table control on the template tab to define the layout of the lines. Each line of the template must have
    a definition.
    Use the pattern box to select the desired table pattern.
    Displaying contents in cells: (TLE_CONTACT)
    The template node defines the table layout. The successor nodes of the template         determine the data to be
    displayed in the table cells.
    In General Attributes choose Text type u2013 Text Element. In editor, type u2018DTE         Contactu2019.
    In Output Options, define the output structure LINE u2013 5 and Column u2013 1.
    Similarly all other information for each cell can be filed using the text module and         address module.
    Displaying Dynamic Table (ITEM_TABLE)
    ·        Create TABLE under the MAIN window node. In DATA Tab, loop through the data internal table.
    L_XEKPO is the item table which has all the line item details.
    Define the line types based on the positioning of the text in main window. For         example: TABLE_HEADER1
    is used for positioning Header texts in the table.
    ·        Table is divided into three parts: Header, Main Area and Footer.
    ·        Header is used for printing the Header Title of the table and it at the start of the table on every page.
    ·         Main Area is used to print the line item details of the PO. Create a line (ITEM_DETAIL) of the line type
    TABLE_HEADER1. It will dynamically generate number cells based on the line type defined in the table layout.
    Name all the cells as per the usage. For each cell create the text node to display the information. For example:
    Cell VAL_MATERIAL, Text node MATNR is created which has text element - -matnr.
    ·        Footer is used for printing the information after Main Area data is printed. This can be used for Total
    printing or any other information which needs to be printed after all line items are printed. Create line
    TLE_CONTR_STP for Contractual Stipulation of the line type u2013 LINE which has only one column. Create the
    text element to print the information.
    Special Requirement: Printing the Acknowledgement text if the order value is greater then USD 50,000.00 on
    the second copy only.
    ·        This requirement needs the modification in the print program and the Smartform.
    ·        Modification in Print Program to trigger the second copy if the order value is greater then 50K. Its
    advisable to copy the standard print program to custom Z program (Z_SMB40_FM06P), and changes should
    be made to Z program. Number of copies is passed from NAST to ls_composer_param-tdcopies in Smartforms.
    The value ls_composer_param-tdcopies is modified in the print program to 2 if the order value is greater then
    50K.
    ·        The printing of Acknowledgement Text only on second copy is achieved using the COPIES WINDOW in
    Smartforms. Define Window ACKN_COPY of the type COPIES WINDOW and Output to u2013 Only Copies u2013 Copies
    Differ. Also set the condition in the Condition Tab of the window u2013 SFSY-JOBPAGES = 1, so that it only print
    on the first page of the copy.
    ·        If user selects to print 2 copies and the order value is more then 50k, program needs to print 2 sets
    meaning 4 copies. So number of copies is taken care of in Print program but again the printing of
    Acknowledgement Text should be only the Even number copy meaning Copy# 2 and 4. This achieved by using
    the program lines to determine the even copy.  SFSY-COPYCOUNT will tell us the current copy number being
    printed.

  • How to clear grey loading screen and animated gif (Dynamic Action with "Show Processing" on submit)

    APEX V4.2.3
    DB 11.2
    I have a classic report on page 1.  I have a region button called "Export" (defined by a submit dynamic action with "show processing=Yes") that submits the page and then via a branch directs me to page 2 which has a slightly different version of the report on page 1 (i.e. no breaks) which I want to capture as a CSV export.  Therefore I've set the report template on page 2 to " Export:CSV".
    Now when I click on the page 1 export button the grey screen and loading gif appears indicating that the report is executing and then as expected, page 2 doesn't appear but instead the standard open/save window's dialog box appears asking to open or save the generated CSV file.  All good..but the grey loading screen remains.  How do I clear this loading screen and get back to the context of page 1 ?
    thanks in advance
    PaulP

    Hi PPlatt,
    We would love to help but you left out one crucial part of the puzzle: namely how does your CSV report get exported. With the way it is setup (a redirect to another page), I'm going to assume you do that because you have some PL/SQL on that page that prints the CSV.
    Now there are two questions that are crucial here:
    - How do we stop the icon from bugging us on the screen
    - How do we communicate with the browser that it should no longer display the loading icon
    The first question is rather easy, two simply lines of codes can do that:
    $('#apex_wait_popup').hide();
    $('#apex_wait_overlay').hide();
    But when do we use this code? Quite simple when the document is downloaded. When is it downloaded? At the end of the PL/SQL code that prints the document to the browser.
    What you could do is at the end of that code give an application item a certain value. For example :AI_PRINTED := 'Y';
    Then all you need to do is let the browser ask for the value. You could do this by using JavaScript to continuously fire AJAX to the server using a JS timing event:
    http://www.w3schools.com/js/js_timing.asp
    Better would be a Server send event, but since you left out another crucial piece of information: your browser, I will not go deeper into this.
    Start this timing event when someone asks for the document, and end it as soon as the process returns that :AI_PRINTED equals 'Y'.
    Despite the lack of information, I hope I have given, or at least inspired you to get to the solution.
    Regards,
    Joni

  • Label printing on ZEBRA printer TLP2844 with smartform

    Hi Gurus,
    Requirement:
    Print label on Zebra printer with smartform
    1. i have created a smartform with desired layout
    2. and trying to print on Zebra printer
    Questions:
    1. smartform is not printing on zebra printer
    2. suggest me if there are any ways to print smartform on zebra printer
    3. does it requires any native programming language for printing labels on zebra printer
    Best Regards,
    Krishna

    hi Krishna,
    This printer does not support ZPL2 so I thnk you cnnot use the device types like LZEB2. It should work to print via windows and a device type like SAPWIN or SWINCF.
    Regards,
    Aidan

  • How to cross a window in smartforms

    How to cross a window in smartforms.

    I guess it is not possible to draw crossed lines inside window, but you can upload an image with cross line and display it inside the window basing on condition... it will give a look and feel of what you want.
    Close the thread if your question is answered.
    Regards,
    SaiRam

  • Reg- windows in smartforms

    Hi,
    1) What is the difference between the copy and final window in smartforms?
    2) What is the difference between at-selection screen output and initialization in reports?
    Points will be rewarded for correct answer.
    Regards
    sathish

    <i>Copies window:</i>
    You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
    <i>Final window:</i>
    You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
    Check this link:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/b1/243fe0beee11d4b633006094192fe3/frameset.htm
    <i>AT SELECTION-SCREEN OUTPUT</i>
    This is used to dynamically set the screen field attributes
    <i>initialization</i>
    this is used to set the default values to the scree fields.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • Use of local interface btw EAR

    hi, Can i use local interfaces to call session bean of EAR1 from EAR2. in my case EAR1 and EAR2 are deployed in the weblogic instance(same jvm). and parameters are being passed by value(because of 2 different classloaders). I tried doin this ... but

  • How to import and display an applet from JSP

    i m using netbeans 5.0 i have class named myapplet.class and jsp named myjsp.jsp now i want to access(import) this myapplet.class from jsp also i want to display this applet from this jsp i am able to do either thing but not both so please help me it

  • How can I add my converted flash file to my website?

    I have made a nice Keynote presentation with many transitions. I have now converted the presentation to a flash format to put on my website. Does anyone know how I can go about doing this? I am using Google's free page creator software and have not h

  • How do I uninstall an add on file from the Seamonkey browser?

    HOW DO I UNINSTALL AN ADD ON FILE FROM MY SEAMONKEY BROWSER? Mozilla needs to make their products more user friendly. There is a multitude of people out there who are "NOT" very computer literate. Older people like myself, for example, who are old s

  • Need Code For This Scenerio

    Good Evening, i am Srinivas V, My actual requirement is that in a JSP Page I had a Link when i click the link in the new page A Text Box to be there if the word pre defined entered the web page content to be viewed else nothing should be displayed .