Dynamic display of text in footer window (script)

Hi
i need to capture the text from the billing document& display it in footer dynamically. how to do this.
For capturing text at footer level..eg..’ product sold for the month Oct 07”
Use header text ‘ 0001’ at Billing document.
correct answers will be rewarded with full points.
Thanks in advance.
sirish.

Goto VF02---->goto Header---->select Header text
and pass this value to FM <b>read_text</b>
Check this sample pogram.
Display long text in SAPScript
Regards,
Maha

Similar Messages

  • Displaying bottom text of main window in box?

    Hi all ,
    I am working with a sap script, where i need to display standard text in box at end of the main window.
    The problem is i am unable  to set the dynamic position of the box at bottom of the main window .
    please help me to fix this problem?
    Thanks,
    Vamshi.
    Edited by: VAMSHI KRISHNA on Oct 29, 2008 12:04 AM

    Hi Gustavo,
    Thanks for your reply.
    But here my requirement is the text should be displayed immediately after the data in main window is printed . If i used the bottom window , then it will display exactly in that position despite of the main window data.
    So Is there any way to display text in box dynamically, after main window data is completed?
    Thanks,
    Vamshi.

  • How many different ways of dynamically displaying a text?

    Hi folks,
    I've been assigned to work on the following:
    The SapScript form on which I am supposed to work, currently has hard coded text with some variables such as name of the customer, order number, special info, etc, coming from the driver program.
    I must change the form such that depending on the company code there would be a different logo, different header, different footer, different body of text, some with extra paragraphs added, removed, etc... The general layout of the form remains the same throughout.
    So in other words, this SapScript form must be dynamic enough to be able to accommodate all these demand.
    The customer would ultimately like to update a table or tables and the text in the SapScript form is changed accordingly and without any programming effort.
    Different copies of the same form is not an option because company codes come and go and change rather frequently.
    So, how would you go about it?
    Your help is greatly appreciated.
    Edited by: Goharjou ardavan on Jun 17, 2008 8:11 PM

    Hi,
    It's a very good practice to have only one SAP script. However ideally you do not have to touch the pgm if say a new company is added.
    This can be achieved as below:
    DATA: w_VAR1(30),
         w_i(1).
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
                device = 'PRINTER'
                form   = 'ZKIL'.
        w_i = '1'.
        Concatenate   'AMEND_HEADING' w_i into w_var1.
        CALL FUNCTION 'WRITE_FORM'
             EXPORTING
                  element = w_VAR1
                  window  = 'MAIN'.
      CALL FUNCTION 'CLOSE_FORM'
           EXPORTING
                device = 'PRINTER'
                form   = 'ZKIL'.
    In the above pgm there are 2 text elements defined in SAP script ZKIL viz. AMEND_HEADING1 & AMEND_HEADING2. In the driver pgm get the company code & put in w_i which should be defined as CHAR 4. so that all your text element name should be derived by Concatenating 'Text element name' & w_i  & then use that variable in FM WRITE_FORM so that even if tomorrow a new company is added only a corresponding text elements need to be added in SAP SCRIPT & no changes are required in the pgm.
    I hope this helps,
    Regards
    Raju Chitale

  • Displaying Japanese text in Bex window

    Hi,
    In one of my reports, the text is in Japanese language and is shown as ######### in BEX window. Is there a setting, whereby I can display the Japanese fonts in BEX window ?
    Would appreciate your help with points.
    Thanks,
    Abhishek

    Hi
    Have you mapped 0LANGUAGE in transfer rules and loaded Japanese fonts in BW
    For that , you have to maintain language dependent text settings for the related master data
    If you done this, any text can appear in BEx window
    Read this
    Regarding Language Dependent Text
    multipule language
    You can search more such threads in the forum to get a better picture to solve your problem easily
    Regards
    N Ganesh

  • Can you display some text after you have checked a yes or no box?

    Can you display some text after you have checked a yes or no box?
    Ex:
    Yes (Please contact Bob x3-1234) only want it to appear when you check box)
    No

    Sure. If you use a field (button, text field) to display the text, the Mouse Up script of the Yes check box could be:
    getField("button1").display = event.target.value === "Yes" ? display.visible : display.hidden;
    Change "button1" to the actual name of the field and "Yes" is the export value of the Yes check box. You can use whatever you want, and you'll probably want to make the button read-only as well.

  • SCRIPT - How to print the text at the center of the footer window.

    In my SAP script,
    I have some text in my footer window ( which was set using tabs ).
    I need to print the footer text as centered.

    Hi sam,
    In paragraph format press standard button (default it will be coming when u go to paragraph format )
    <b>space before</b> - 0.50cm   give according to u r requirement
    space after
    <b>left margin</b>   - 0.5 cm  give according to u r requirement
    right margin
    ( or )
    directly u can give
    <b>alignment - CENTER</b>

  • In SAP Script how to hard code my Company address in footer window

    Hi All ,
    In SAP Script how to hard code my Company address in footer window .
    Ex : in YB_F140_ACC_STAT this script i want to keep my company address, i want to hard coad , i dont want to use any field from table.
    Please give me step by step.
    Thanks
    Sridhar

    Hi,
    You can make use of standard text...
    create a standard text in SO10 with your company address
    and in the footer window of your script.. use include text and provide the name of the standard text you created in SO10.
    In the text editor... goto insert > text> standard
    You get popup give the name of the text name id and language
    regards
    padma

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

  • SAP Script: Include text in MAIN window prints outside MAIN window margins

    Hi,
    We're facing a peculiar issue. We call a text element in the MAIN window of an SAP Script form using FM WRITE_FORM.
    The element has 2 includes.
    The problem is that when the content of any of the 2 includes is large enough, the include text prints overflows outside the MAIN window margins on the first page and into the area of the footer window of the same page. It does not automatically flow to the next page MAIN window.
    We have checked that the MAIN window and FOOTER window margins do not overlap. Infact they are quite far from each other.
    We have tried stuff like using a forced PROTECT, change the para format etc, but nothing solves the problem.
    Does anyone have any idea?

    You do not need to use the subroutine READ_ORDER_TEXT to get another text name because you already have it: TMP_TXNAM2 .
    Pass this value back to your SAPscript, and it is okay.
    Or you can even check the text object is empty or not, if no text is found, print 2 empty lines:
    still use your subroutine to read the text, if no line is found, set TMP_TXNAM2  to empty, otherwise, no change,
    In SAPscript, check the value is empty or not, then print 2 empty line or the text object...

  • Calling a footer window in script

    Hi,
    I want to display some set of records in the footer window.
    in my footer window iam calling a subroutine program.in that subroutine program iam populating data to an internal table. I want to pass  this internal table data to the footer window by using write_form FM.
    can we do that.
    bcz the script has a diiferent driver program. All the data comes from this main driver program.
    while calculating some totals in the subroutine program iam populating data to an internal table which exist in this subroutine program. I want to pass this data to the footer window. can we do that by using write_form FM. Can anyone help me on this.
    Thanks,
    Rose.

    Hi,
    If you are using a subroutine to call a different program why are you using the FM write_form? this would not work.
    You can use the subroutine to call your new program or make changes in the original driver program by using the FM.
    Thanks,
    Dishant

  • Smartform utilisation of the footer window space dynamically

    Hi All
             I have created a smart form with a main window and footer window below the main window, in all pages where the table data is printing over the main window ,the space is left for the footer window since the footer window data will be printed only after completion of main window only. Now in all the pages space is left below the page... How to utilize the space dynamically for footer window only after completion of main window.
      If main window data is there then footer window space should be utilized by main window in all pages. and if main window data is completed then only the footer window space should be considered and printing the footer text.
    How to achieve this....... please guide me
    Regards,
    Lokesh.

    Hi Lokesh,
    just place your this template after all of your data in main window (as shown after the table in screenshot below), i.e. after your table and make its usual flow , as shown in below screenshot, whenever your all data get printed then the text in these smartform will get printed.
    i.e, put your this template as last element in your smartform, and let it be printed as usual
    If you are not able to do it like as shown above, then go to the template and Double Click it, then Go to its Conditions Tab, and Check the "only before end of Main window."
    Let me revert , if still your problem persist.

  • I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I a

    I have just intalled PSElements 12 on a new PC with windows 8.1. It installed ok but when I open it up it displays different than on my windows 7 PC. The buttons and text are tiny and almosy impossible to see even when I drag it to full screen. How do I adjust it to look normal?

    Hi Paul ,
    It could be a compatibility issue as well as Acrobat 8 is an older version.
    Do you get any error message while registering for the product?
    Try repairing it and once and also check for updates as well.
    Is it happening with all the word files or any specific one'?
    Regards
    Sukrit Dhingra
    Acrobat 8 and Windows 7 Don't Work

  • I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    I get a dialogue box asking "What should Firefox do with this file" Options open with or save file. My wife selected save file and now it only opens note pad and displays the text of the file to be saved. OK in windows Internet Explorer.

    P.S. Site is http://www.coldwatercreek.com

  • Problems with displaying Asian languages dynamically in a text box

    I have a text box that I am adding to the stage dynamically. The text box is a movieclip in the library. However, when it is added to the stage the message is not displayed. I have no problems with English or Spanish but for Chinese, Korean, and Japenese the message is not displayed. Here is the code in Chinese (when a certain condition is met:
    function whiteFlashCompleteF():void{
       ssMessageF("截图已添加至您的图片库");
    function ssMessageF(s:String):void{
        ssMessage.alpha = 0;
        addChild(ssMessage);
        ssMessage.x=stage.stageWidth/2;
        ssMessage.y=stage.stageHeight/2;
        ssMessage.tf.text = s;
        TweenLite.to(ssMessage,1,{alpha:1});
        TweenLite.to(ssMessage,1,{alpha:0, onComplete:ssMessageCompleteF, delay:3, overwrite:false});
    Do anyone have any ideas on how I can get the text to display?

    any text that is rendered in a dynamic textbox during runtime,
    has to consist of characters of a font you have properly embeded,
    (which might not be the case for this chinese message)

  • Hi gurus in scripts i want to display more then one main window on the page

    hi gurus in scripts i want to display more then one main window on the page how it is to follow any body explain to me plz.

    Hi all,
        I am printing check printing from F110 with Z-form and it has been assigne to FBZP also..
        My client need to print the check information twise that means main window data two times.
        like this: 
           First main window.  :      invice#       amt            amt
                                               9002          4000          4000
                                               9005          5000          4000
    Al so they want like to print same in down part of the main window.
           First main window.  :      invice#       amt            amt
                                               9002          4000          4000
                                               9005          5000          4000
    For this i  have created instance main window of main window like MAIN    01,  but it is not displaying the data in instnce window data
    in the instance main window. 
    Question: Could you please let me know abt the same or good solution. How to cal main window instance , i tried with  
    /:   NEW-WINDOW      in instance main window part but it also appering in main windoe also.
    could you please let me know how to call instance main window or any other solution to get teh data like my example above.
    thx

Maybe you are looking for

  • Syncing with Windows XP and iTunes 9.1 slow,stalled, hanging

    I am attempting to sync my iPad with a Windows XP - based laptop having the latest and greatest iTunes. This process is barely moving. The device was left overnight and it is still attempting to sync. I am afraid to interrupt the process but I can't

  • Oracle Validated Configuration RPM

    Hello, I am going to install Oracle DB Standart edition on Unbreakable linux. I did update according to the http://download.oracle.com/docs/cd/E11882_01/install.112/e16763/install_overview.htm#CHDFJDFF (chapter 1.3.5) after that should be created Ora

  • Lightroom 2.2 edit in Photoshop CS4 command

    Hello. I've tried to search for this topic in the frequently asked question, however I do not quite know how to enter it in the search field. I have a MacBook Pro 17" and have PSCS4 and LR 2.2. Earlier I was opening an Olympus RAW file using the "Edi

  • Want to Calendar as in Visual Basic we can have

    Hi, On forms i want a calendar which should be invoked on field as we can do in Visual Basic to let the user having more pleasant and easy way to select the dates... A sample code will be very helpful. Many thanks! null

  • Does OC4J has a JDBC realm ? can some one clearify ?

    Hi Thank you for reading my post does Oracle application server 10.1.3.1.0 (the new developer preview version) has JDBC realm ? where i can find it? thanks