Include text to be printed in the middle of main window

hi Gurus,
In SAP script - i have used include text ( which is a picture ) which i need to bring it nearly to the center of the main window. ie.,
/: INCLUDE IMAGE1 OBJECT TEXT ID ST PARAGRAPH P1
paragraph p1, i have made the alignment as centered.
and i have changed it to
/: include zhex-macro-image1 object text id st ----> also didnt work 
posnr         matnr         then this image should come.
but still the image is coming in the begining of the new line.  i want it to be continued with the previous line.
please guide me.
thanks.
Sakthi.

>
sakthi sri wrote:
> hi Prakash,
>
> i already did what u said. but the problem is that image should come only for that material. if suppose that material is going to come as the last material then how that image will come in the last. it always comes in the same window only what we difined. thats why i am trying to push it in the main window itself.
>
> did u got my problem?
As i understand the image is to be shown conditionally.
Try:
{code]
/: IF posnr = 'the position you want' AND matnr = 'matrn you want'
/: INCLUDE IMAGE1 OBJECT TEXT ID ST PARAGRAPH P1
/: ENDIF
{code}

Similar Messages

  • I´ve made four Columns with text and an Image over the middle of two columns. How do I put a text u

    I´ve made four Columns with text and an Image over the middle of two columns. How do I put a text under the Image that spans over the Columns?

    Did you mean that?
    or
    Did you mean that?
    Let me know.

  • Hi my Canon ix6550 has started to stop printing in the middle of a job, what can I do?

    Hi my Canon ix6550 has started to stop printing in the middle of a job, what can I do? If I turn off the printer and turn it on again it will print but then it will do it again. Help please.

    I have tried re-installing the software and have unplugged and replugged the USB cable but to no avail. It keeps stopping after printing a couple pages. Is there no one from Cannon who can help me??

  • SAP Script: Printing the signature on main window at the end

    Hi,
    I am working on a SAP Script (Benefits enrollment form HR_BEN_ENRO).  I copied the HR_BEN_ENRO into ZHR_BEN_ENRO and making the necessary changes without modifying the driver program.
    The problem I am facing is as follows:
    In the main window there are so many Text elements.  At the end of the main window, after the last text element, I have put some text using Include statement.  The last text element is getting triggered for some employees and hence the text underneeth that is printing, but for some employees the last element is not triggering and hence nothing is printing underneeth that.
    Is there any solution to print the this text at the end of main window after printing all the remaining information.
    I also tried using BOTTOM & ENDBOTTOM. But in this case I don't know how to check that I am in last page of the main window.  I tried the following way:
    /: BOTTOM
    /: IF &PAGE& = SAPSCRIPT-FORMPAGES&
    SIGNATURE:__________   Date:__________
    /: ENDIF
    /: ENDBOTTOM
    In this case the value I am getting for &SAPSCRIPT-FORMPAGES& is 0 (zero).
    Any solution..please.
    Appreciate.

    How to link the ZHR_BEN_ENROL instead of HR_BEN_ENRO?
    I mean when I execute the TCODE: HRBEN0001 and select particular employee and click on Print form under Offer Selection area. Then standard program calls HR_BEN_ENRO. How to replace it with Zform?
    Thanks in advance.
    Regards,
    Krishna

  • SAPSCript how to print  a comment at the end of main window on first page?

    In SAP Scripts, How do I print a comment at the end of the first page (I have several pages of data) in the main window?
    - Ven

    hi
    good
    yes we can put condition.....to display the footer window get printed after all data in main window gets over.........................assingn u r footer window to next page [ i.e u r second page] ...and write the condition
    In such senario no need to use a window for footer.
    In the Script form:
    -> In the Main Window itself after all the main data create an Element.
    -> Use BOTTOM and END-BOTTOM; write your footer information between them.
    In your Driver Program:
    -> After printing all the data (means after passing to form and before closing the form) call one WRITE-FORM with the footer element.
    I'm sure it will work.
    f u r not interested to change the print program. Then simply insert simple code in the footer wondow.
    now insert this code in ur footer window
    IF &TTXSY-PAGE& = &SAPSCRIPT-FORMPAGES&.
    *all code in footer goes here.
    ENDIF.
    &TTXSY-PAGE& holds the page number of current page.
    &SAPSCRIPT-FORMPAGES& holds total form pages.
    This will work.
    write this code then the footer will be printed in last page itself
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    You need to create an element in the MAIN window. You can do it in two ways:
    1. In SE71, you can create:
    /:E FOOTER
    /:BOTTOM
    Text
    /:ENDBOTTOM
    In the print program, just call this element.
    2. In you print program, populate parameter type = BOTTOM in FM, WRITE_FORM.
    Ex.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    element = 'FOOTER'
    type = 'MAIN'
    window = 'BOTTOM'
    EXCEPTIONS....
    However, if you issue new page having new header data. Thus, new item data. And if it will exceed more than 1 page, the footer will still appear. To solve this, you need to create a new element in MAIN. Ex. INIT_FOOTER. It just contains the following:
    /:E INIT_FOOTER
    /:BOTTOM
    /:ENDBOTTOM
    Call this after passing all item data.
    reward point if helpful.
    thanks
    mrutyun^

  • Need to print horizontal line at the end of main window in each page.

    Hi,
    I am printing a smartform with main window having 10 lines in footer. The problem I am facing is when the content extends upto two or more pages, I am not getting the horizontal line at the base of main window. For last page it is fine as it contains footer.
    Please suggest how to proceed.
    Thanks,
    RKU

    Hi,
    If you don't have any frame set on your main window:
    Go to output options and mark frames, and then go to details and uncheck checkboxes for above, laft and right, leving only below marked.
    This will give you a line in the bottom of you main window.
    If you dont' want to do this on the main window, can you create a new window placed at the bottom of the page and use this framing technic on that window. But in that case don't forget to mark the "always draw box and shading" checkbox. as this window contains no values, the will not get printed unless  you mark this checkbox.
    Regards
    Åsa Thenstedt

  • Footer of the Table in Main Window in Smartforms

    Hi,
    I have a smartform. In that I have declared a main window. And I want the Footer to appear on each page. So, I have checked both the check boxes in the Footer Event of the Table in Main Window.
    1. At page Break
    2. At end of table.
    But it is comming only on the first and last page.
    If I check only 1, it is printing on the first page only.
    If I check only 2. it is printing on the last page only.
    I want it to be printed on all the pages.
    Help needed.
    Thanks in advance.
    Ishaq.

    Hi
    Instead of using the Main window for footer
    Why can't you declare a separate constant window separately apart from MAIN window and use for the footer to print in all pages.
    create another window and write all your data in that and see
    Since MAIN window overflows as the data grows constantly it is coming only on the first and last pages.
    So to appear that on each page a fresh window is useful
    Reward points for useful Answers
    Regards
    Anji

  • What is the use of MAIN WINDOW in SCRIPTS

    what is the use of MAIN WINDOW in SCRIPTS, y we con't create a script w/o main window.
    Title was edited by:
            Alvaro Tejada Galindo

    Hi
    See this
    What are the different types of windows in SAP Scripts?
    Windows are defined in the Layout sets which define the position and the text to displayed.
    The different types of windows are:
    MAIN - Main Window
    The main window is a continous window which can extend over several pages. If the text in the main window fills up a page, a new page is created.
    Only one main window can be defined in the SAP Script whereas upto 100 instances of main window can be created in a page.
    VAR - Variable Window
    This window can have the variable contents displayed on them. The contents of the window cannot exceed the window size. The content can be formatted for each page.
    CONST - Constant Window
    The constant window can have a fixed content and is formatted only once.
    Main Windows (MAIN)
    Each form must have one window of type MAIN. Such a window is called the main window of the form. For SAPscript forms, the main window has a central meaning:
    • It controls the page break.
    • It contains the text body that may cover several pages.
    • It allows to fix text elements at the upper and lower margins of the allocated page window (for example, for column headings).
    As soon as a window of type MAIN is full, SAPscript automatically triggers a page break and continues to output the remaining text in the main window of the subsequent page. Page windows of type MAIN have the same width throughout the form. The SAPscript composer thus avoids reformatting of the text after each page break.
    Variable Windows (VAR)
    The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    Constant Windows (CONST)
    Starting with Release 4.0, the system internally processes windows of type CONST similar to windows of type VAR. Therefore, if you create a new window, always use type VAR.
    <b><REMOVED BY MODERATOR></b>
    Anji
    Message was edited by:
            Alvaro Tejada Galindo

  • What exactly is the diff between main window and variable window

    what exactly is the diff between main window and variable window in SAP script?

    hi,
    MAIN WINDOW :- In a main window you display text and data, which can cover several pages (flow text). As soon as a main window is completely filled with text and data, the system continues displaying the text in the main window of the next page. It automatically triggers the page break.
    You can define only have one window in a form as main window.
    The main window must have the same width on each page, but can differ in height.
    A page without main window must not call itself as next page, since this would trigger an endless loop. In such a case, the system automatically terminates after three pages.
    VARIABLE WINDOW :- The contents of variable windows is processed again for each page, on which the window appears. The system outputs only as much text as fits into the window. Text exceeding the window size is truncated; the system does not trigger a page break. Unlike constant windows, the page windows declared as variable windows may have different sizes on different form pages.
    As far as the processing of the window contents is concerned, the system currently treats constant and variable windows alike. The only difference is that constant windows have the same size throughout the form.
    hope this will be useful.
    If useful then reward points.
    with regards,
    Syed

  • How to display the same content in the two different main windows?

    Hi experts,
    How to display the same content in the two different main windows?
    Thanks in advance.
    sarath

    Hi
    Sorry but you can't have two main windows in sapscripts.
    Regards
    Gregory

  • Strange characters and symobls print in the middle of a print job. Help.

    In the middle of a print job, whether one page or several, it starts printing strange characters and symbols until the end of the job.  It will do this in the middle of the page, or after printing one line of English and the rest of the page in gibberish.
    It usually does this while printing off bank statements from the internet or a pdf file pulled from the internet.  I don't think it has ever printed any of my documents.
    However, it has done this while printing a bill received as an attachment to an email from a friend.
    The next print job will usually be back to "normal".  But one day, it did this many times during the day.  Frustrating!
    Appreciate any help.

    I had this happen to me with a PDF file once.  I called Support at HP, 
    and they told me it was because I had labeled the PDF as "text" when
    it actually has (technically) "pictures" in it -- the printer didn't know how
    to print those "pictures" (symbols?) as "text," so it came out as gibberish.
    Perhaps there's a teckie here who can tell you more eloquently.  [And
    what to do about it!]
    HTH!

  • Why does my cursor not automatically select the entire word when I try to select text by starting/ending in the middle of a word?

    In any other browser I've used (or word processor, for that matter) when I select text using my mouse cursor, if I start and/or end in the middle of a word, it automatically selects the whole word when I'm selecting more than one word. But for some reason this is not happening in Firefox. If I try to select say 3 words, and I start in the middle of the first word and end in the middle of the last word, it will only select those parts, not all 3 words entirely.

    Firefox allows to select part of a word. You can select a word with a double click and use Shift + left click to set the end of the selection, so you need to click at the end of the last word instead of in it.

  • How to Print an Icon (ICON_CHECKED) in the Smartform's Main Window's Table

    Hi Smartform Gurus ...
    I'm encountering a problem in Smartform. I'm creating a smartform for QM Module & I have to show the ACCEPTER & REJECTED Lots in that . At the Place of ACCEPTED, I want to show TICK MARK ICON (ICON_CHECKED in the table ICON) & at the place of REJECTED, I want to show CROSS ICON (ICON_INCOMPLETE in the table ICON) ... in SMARTFORM -> MAIN WINDOW -> TABLE ->MAIN AREA.
    My mail id is : [email protected]
    Please help asap.
    Regards,
    Mohit Grover.

    I am not talking about only these two icons, i.e. CHECKED & UNCHECKED. I am asking generally about how to print any icon in smartform's table, as I want to print some more icons & I don't want to upload graphics first, through SE78 & then shows those as graphics instead of ICONS, because by using this practice, it'll not be used as a general purpose form that can be used with any client/customer.
    Please help.
    Regards,
    Mohit Grover.

  • Before I had Mavericks I was able to print over the network to a Windows PC. Now I receive the message, "connection refused." Any ideas?

    Before I upgraded to Mavericks, I was able to print over the network to a printer attached to a Windows PC. Now, I receive the message, "connection refused." any ideas as to why this may be and what I can do about it would be appreciated.

    I had reconfigured all of the settings the same as in the previous OS X. The only thing I can think of that may be causing this is that the printer is an older Canon Pixma iP4300 and the Canon site doesn't have a driver for the new OS X. The Canon site said that the new OS X may supply the driver. Is there any one with the same experience as mine?

  • Porblem in displaying the data in main window and footer in sapscript

    Hi Friends,
    I have created a 2 pages with a main window and 6 footer windows for purchase requistion printout. My requirement is footer windows should only be displayed at the last page. If i bring the footer window at the last page there is blank space in all pages after the main window since the main window size is smaill, if i increase the main window size it is overlaping footer windows at the last  page.
       I want the main window shouldbe big and footer should be displayed at the last page.
       please hellp me to solve this.
    Thanks
    Gayathri S

    If you want to position footer texts right after the last line of the MAIN data (thus, anywhere in the page), you define them as text nodes inside the MAIN window, and you use a template node if you wan't to position them precisely.
    If you want to position footer texts relatively to the page edges (and not relatively to the MAIN), do like this (as my previous answer is wrong):
    - define your footer windows in the same page of the MAIN, select condition "Only after main window" (so that the windows will be printed on the page of the last line of the MAIN data.
    - If the footer windows span over the MAIN window (because you want to maximize MAIN window height on all pages except last where you put the footer, as it was the case for Gayathri), you must add a template node inside the MAIN window, as the last element. Its height must be equal to the part of MAIN that is overriden by the footer windows, so that a new page is triggered automatically if there is no sufficient space and the footer windows will be printed on next page, and if there is enough space, the footer windows will be printed at the bottom of current page.

Maybe you are looking for

  • Bad Query Performance in Oracle Text

    Hello everyone, I have the following problem: I have a table, TABLE_A from now on, a table of more or less 1,000.000 rows, with a CONTEXT index, using FILE_DATASTORE, CTXSYS.DEFAULT_STORAGE, CTXSYS.NULL_FILTER, CTXSYS.BASIC_LEXER and querying the ind

  • IPod touch 2gen - Sound issue

    Recently my iPod doesn't send any sound to the left headphone unless I press and hold the headphone jack in place. When i say press, i have to apply quite a bit of pressure. When i let go it stops sending sound to the left headphone again. It's not t

  • E business suite installation problem.

    i have downloaded e business suite R12(32 bit) from oracle site. after downloading i extract ebs software to a folder. then i run perl script adilkhan\startCD\Disk1\rapidwiz\adautostg.pl Starting AutoStaging at Sat Oct 22 11:11:20 2011 Using adautost

  • I cannot access the Camera RAW dialogue box in PSE8 in windows 7. Is it possible?

    I cannot  access the Camera Raw Dialogue Box in PSE8 in windows 7.  Is it possible?

  • Installed fonts not showing in Pages

    I have fonts installed on my computer that are not showing up in Pages. Does anyone know why this happens and how to fix it. I use Fontcase to manage my fonts.