Smartforms secondary window displayed in PDF?

hello every SDNer,
i have a question, who can help me ?
For 'Smartform', I will like certain secondary windows in the PDF file to appear but not  in other PDF files. How can I go about doing so? For example, SF_EXAMPLES_01, address secondary window appears   in this particular PDF file but not in the other PDF files . Is there any parameter it can be set as such?
thanks in advance
Yaning

Hi,
You can set a condition on the window.
This will make sure that window contents are displayed only when the condition is satisfied.
Regards,
Ravi
Note : Please mark the helpful answers

Similar Messages

  • In Smartform How to display footer & some secndry window after Main window?

    Hi,
    My requirement in Smartform is to display footer and and secondary window  after the Main window.
    also if item goes to 2nd & 3rd Page then also after main window footer and some secondary window should appear.
    Do i have to maintain footer and sec. window in Main Window itself
    Plz tell me in detail.
    Regards
    Vivek

    Hi Vivek,
    In smartform, specific legth is allocated to each window, that you create for a page.
    So, if you want to display secondary window on each page, create 1 secondary window with the required length and it will be displayed on each page.
    And you have written that you want to display the footer of main window also on all pages. It won't happen when you display your footer in main window. you will have to create a new window for your footer as well. Main window footer will always get displayed at the end of the main window.
    e.g. If your main window flows on second page, main window footer will be displayed on second page only.
    I hope this helps.
    Thanks,
    Archana

  • 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.

  • How to display a PDF document in popup window

    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

    Use should the ShowProperty servlet in a link or javascript, e.g.:
    <a href="/mywebapp/ShowProperty/path/to/pdf/node
    target="someOtherWindow">pdf</a>
    pdf
    Or, with dyamic node retrieveal (from search or contentSelector,
    assuming node is the pdf Node):
    <a href="/mywebapp/ShowProperty<cm:getProperty node='<%=node%>'
       name='cm_path' conversionType='url'/>
    target="someOtherWindow">pdf</a>
    <a href="javascript:window.open(
       '/mywebapp/ShowProperty<cm:getProperty node=<%=node%">"
    name="cm_path" conversionType="url"/>',
    'SomeOtherWindow',
    'height=400,width=400,scrollbars=auto,resizeable=yes');return false;">
    pdf</a>
    Greg
    Sanjay Datta wrote:
    Hi,
    I have a requirement where i need to display a PDF document to be obtained from a virtual repository and then display it on a popup window.
    Thanks
    DS
    PS: any code snippet or link explaining the above will be helpful

  • Trying to display a pdf inline, in a new window.

    Hello
    I have a servlet with the following html button.
    <FORM NAME=download ACTION=/servlet.ShowReportServlet METHOD=get>
    <INPUT TYPE='submit' VALUE='Display Report A' NAME='Report'>
    When this button is pressed, a pdf file is displayed via the following code
    // Store the uploaded file size
         int filesize = bis.available();
         // Set content type to application/pdf for Adobe Acrobat Reader
         response.setContentType("application/pdf");
         // Content-Disposition is a field to specify presentation of
         // entity or file name (incase Acrobat Reader plug-in not installed)
         response.setHeader(
              "Content-Disposition",
              "inline; filename=\"" + fileToUpload + "\"");
         // Do not cache the pdf file
         response.setHeader("Cache-Control", "no-cache");
         // Set the content length
         response.setContentLength(filesize);
         // Upload the file to the client
         ServletOutputStream sos = response.getOutputStream();
         int data;
         while ((data = bis.read()) != -1) {
              sos.write(data);
    My problem is that I can't work out how to display the pdf in a new browser window.
    Any help would be greatly appreciated.
    Thankyou.

    Thanks for pointing me in the right direction DrClap.
    We ended up with the following html (in an HttpServletResponse):
    <FORM NAME=download ACTION=/servlet.ShowReportServlet METHOD=get TARGET="ReportWindow">
    <INPUT TYPE='submit' VALUE='Display Report A' NAME='Report' OnClick="window.open('','ReportWindow','height=530,width=550,menubar=0,resizable=1,scrollbars=1, status=0,titlebar=0,toolbar=0,left=300,top=100')">

  • How to display interactive PDF  form in an external window?

    Hi Gurus,
    I have developped an application which involves interactive form . Now I want to display the pdf generated through the interactive form in an external window.
    Please guide me how to goahead.
    Thanks
    Nageswara.

    Hi Francois Gendebien ,
    Thanks for ur reply.
           But I have created Pdf in new window(by using window instance) but That window does not contain minimise and maximise and close button.
    Is there any suggessions to add these Options to created new window pdf form
    I am  strucking over here .
    Please help me out.
    Thanks
    Mandapati

  • Regarding dynamic height of secondary window in smartform.

    Hi,
    I have a secondary window just above the main window in my form.
    Depending upon the number of records the height of seconday window needs to be adjusted .i.e. it has to be dynamic.
    Only after the end of secondary window the main window should be printed.
    Appreciate any suggestion in this regard.
    Thanks.

    Hi,
    As you are already using smartforms for PO printout(instead of standard form MEDRUCK) , you should have already changed the standard driver program (SAPFM06P) in a zprogram or have done your own driver program which is calling the smartform. So its so simple that you branch your different smartform call in that zprogram. Check which driver program is currently in use in tcode NACE - > Application EF ->Output Type NEU and click processing routine.
    Another way is to have a  copy of the secondary window and adjust size and give conditions.
    Regards
    Karthik D

  • Loop secondary windows on smartforms

    Hi experts,
    I want to ask you about smartforms. I want to write data on smartforms using secondary windows which each of the secondary window contain of just one data per page. In one page, I have three secondary windows on one page.
    Can anyone help me...???
    I am newbie on ABAP.
    Thx for your reply and suggestions...

    Hi ,
    you can also do it by using template in main window, please create a main window, and within it create a text page, or else you can create a template with proper height and width, create its cells according to your use, and hide its borders with the following 4 tabs , then you are able to show your data freely
    in the main window too, because main window can be used to loop over a large amount of data.
    Please revert if still if you are not getting, you can use these 4 options to hide your template border, so that it will not visible as a closed one.

  • Smartforms - how to call 2nd secondary window page

    Hi
    How to call 2nd secondary window page from Ist Main window. The scenario is i have one main page. I have already called 2nd page thru command line and now want to call another page (i mean third page) from same main window. How do I do?
    Thanx and regards,
    Rajesh Vasudeva

    Hi Rajesh,
    Go for the below link>>>>>
    [http://help.sap.com/search/highlightContent.jsp]
    thnks.

  • How does SmartForms read secondary windows?

    Hi All,
    Please see the screenshot first.
    http://img693.imageshack.us/img693/2314/sflayoutreadwindowhow.jpg
    I have a SF with multiple secondary windows, and my main window is between them. 
    Does SF read them according to the arrangement in the tree node?
    Question: From top to bottom of tree node?
    I'm asking this because I have a program node inside my secondary windows where I need to add additional logic on the secondary windows.
    Thanks.

    No ,
    Command node  will be the last node in the main window , means after triggering all the nodes in the main window than it will trigger the command node (i.e  your next page will triger).
    Let me know if  any concerns ...

  • Smartform Main window and Footer Overlap Issue

    Hi,
    I have a problem in printing my invoice smartform.
    I have to print the footer at the bottom of the main window. If the line items flow to the next page the footer should be printed only on the last page.
    I have overlapped the main window and footer windows in first and next page so that the footer window space in the main window is not left empty when there are more than one pages
    The problem is sometimes the main window is overlapping into the footer window space.
    Can someone suggest a solution for this.
    Thanks,
    Viswas

    Hi,
    Solution: The issue faced after overlapping the main window with footer window can be achieved by creating a folder within the main window and using the events to check whether there is enough space to print the footer.
    Following are the steps.
    Step 1:  Create a Secondary window say “Footer” which would be the footer window. Overlap the main window on the footer window as shown below.   
    The footer window will be behind the main window
    Step 2:  Create a folder within the main window say “Check_Footer”.
    Go to Tab “Events”, select the checkbox “Footer with Height” and give the required height of the footer. Select the checkbox “at End of Table”. Specify the “Minimum height” as required.
    Now, go to “Conditions” tab and select the checkbox “Only before end of main window”.   
    This is basically done to check whether there is enough space to print the footer on that page. The Footer window would then print the output.
    Step 3: Go to the created “Footer” window .Under the Conditions tab, select the checkbox “Only after end of main window”. Create a  text/tamplate/window whatever you want to display at bottom or footer data.
    Step 4: Save & Activate the Smartform and check the output.
    regards
    Rohit

  • Displaying a PDF Returned from a Custom Service

    I have been given a PDF Fillable Form(XFA).  I have added a button so that when the user clicks the button it passes the form data as xml to a URL (my custom web service).  The custom web service takes the data, renders a totally separate PDF and returns it in the response.
    It all works fine, but the returned PDF opens in a separate window.  I would love to find a way to get the current window to "refresh" and show the newly composed PDF.
    Is there a way to do this?  I am using LiveCycle Designer, but my web service is a completely custom Java servlet.
    With Respect,
    mattie

    Firefox is downloading the pdf and opening it in Preview. Safari is displaying the pdf directly in the browser. As such, if Autosize was previously selected (which may be the default for Safari) it zooms in the pdf relative to the size of the new window (and the size of the new window is set by the size of the parent window). You can reset the view size of the pdf in Safari by secondary-clicking on the pdf (a two-finger tap if you have that option enabled on your MBP, or a ctrl-click) and selecting Actual Size. Once you select Actual Size (versus Autosize) that setting seems to be retained for subsequent pdfs. You can also select Open in Preview from the contextual menu, which will open it in Preview like Firefox does (but without downloading the file).
    Hope this helps...

  • Secondary Window looping and lineitems restricting

    Hi All,
    I have some requirement wherein i have to loop the secondary window in smartforms . This is Z smartforms and has standard driver program.
    The main requirement is suppose there are 10 line items , 8 line items should be displayed on Page 1 and the remaining 2line items should be displayed on next page.
    In my current scenario , i am getting same line items on the next page too.
    i tried out using the condition tab but it didnot worked out. If its a main window it goes directly to next page but donot know
    how it works out with secondary window .
    Has anyone come across similar requirement ? Any help would be appreciated ...
    Thanks
    SAM F.

    Hi Sam,
        Since you are using the Secondary window follow the below given method.
    1). In the first page add a LOOP logic to your window and start printing your data.
    2). Keep adding the counter for each and every record you process.
    2). once you have reached the number of data you need to print say 8 records add a command line to move the control to next page ( this can be done by using a condition inside the loop).
    3). In the next page you will have a similar window and in the that window also create a LOOP logic and the Row (belowinternal table field ) give the start row as the next row of the table. i.e., the row after the last row you have displayed in the first page. here you can give the To as (from + no. of rows you need to print in there) .
    Like wise you can keep printing the data you require in the secondary window of a smartform.
    Hope this helps.
    Regards,
    Praveenkumar T.

  • Secondary window trouble to print

    Hi Everyone!
    I have a smartform with one page. It has a main window and 3 secondary windows, all of them have tables in it.  When i send it to print, if the data on the main window doesnt display in the page it goes to the next page but it doesnt happen with the secondary windows...
    Please can you help me to display the information of the secondary windows on the next page on the same way that main window?
    Regards.
    Danyel
    Edited by: Danyel  Ramírez on Feb 25, 2009 9:52 PM

    Hi Danyel,
    Its the property of main window that lets the data flow to the next page when it exceeds the page, this is not available in case of secondary windows.
    try to include the data present in the secondary windows in main windows itself, may be in footer part of ur 1st table,
    кu03B1ятu03B9к

  • Secondary window to be printed on the last page the form

    Hello,
    Is there any way, by which we can show the defined secondary window on the last page of the form in smartform?
    Only 1 page is defined in the smartform for the layout.
    e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. then total (defined in the secondary window) of the line items must be displayed on the the last page of the form only in this case the last page is 2nd.
    Thanks and Regards,
    Paresh

    >
    paresh rane wrote:
    > e.g. If no. of line items exceeds more than the size defined for it in the main window, then a new page is taken to print rest of the line items. 
    > Paresh
    put a counter on which you are getting the line items.
    for the last page, the counter should be equal to the number of line items in the table .. right?
    so.. keep the number of records in another variable, lets say in the global initialization part.
    and for the secondary window condition tab
    keep
    counter = gv_number_of_lines
    only when this condition satisfies, the window will be triggered. and this condition will only be satisfied if all the items are covered => last page.

Maybe you are looking for