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

Similar Messages

  • 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

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

  • Calling PL/SQL procedures from a Windows CMD script

    Hello,
    I am writing a Windows CMD script. From this script I want to call procedures from a PL/SQL package which selects, inserts or deletes rows from the database.
    How do I go about logging into the database from the cmd script and calling PL/SQL procedures from there?
    Does anyone have any examples of such scripts? Thanks in advance.

    No, it is not a job that needs to be scheduled.
    The script will be used when needed to select info from a certain table and also to insert or delete certain info into/from this table (so, it is just simple sql statements which I have put into a package), but I'm sure how to log into the database and execute the procedures from this package in a cmd script.

  • Print Footer Window of PO Form at end of Last Page of PDF Forms(Adobe)

    Hi,
    I am trying to print PO form using PDF form which includes multiple line items. At the end of last page I am trying to print the footer window that contains Comments and Signature.
    Right now my Footer Window is being printed immediately after the end of line items.
    I have included the Comments text box and image inside a Sub Form.
    Please let me know how to print the Footer window at the end of the page instead of printing immediately after the line items.
    Thanks,
    Rekha

    Hi,
    Please take the footer subform from the tables section and position it on the page where u want to print and write the script so that it will print only on last page.
    Regards,
    sasi

  • Maintianing multiple line items in main window  in scripts

    Hi folks,
      i want to print multiple line items in main window of script for eg 50 line items then my main window should continue in second page also. how to maintain this.
    can u provide me sample code for this..
    Thx in advance,
    Neelima.N

    You have an internal table with 50 lines, is it correct?
    Let's say, there's a MATNR field in your internal table.
    First do, what I wrote in my previous comment.
    The create an element in yout main window, like this:
    /E LINE_ITEMS
    /  &GS_MAIN-MATNR&
    In your printer program you have to code the following:
    LOOP AT gt_main INTO gs_main.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    WINDOW = 'MAIN'
    ELEMENT = 'LINE_ITEMS'.
    ENDLOOP.
    This code will loop all 50 of your table entries.
    In the MAIN window will fit 30 entries.
    When the LOOP is reaching the 30th entry, SAP will automatically create a new page (because of the NEXT PAGE statement you set in the page settings in the SAPScript) and will continue the printing.
    Regards
    Tamá

  • Unable to print BSEG-SGTXT in Main window - SAP Script

    Hi
    I have an issue in Scripts.
    I want to print BSEG-SGTXT in my Main Window and below is my code but i am unable to print the text. while debugging, i am getting value in zsgtxt field, but i am unable to get/print in script.
    can any one help me why it's not printing? and plese suggest where it's wrong.
    In Main window:
    /:   PERFORM TEXT IN PROGRAM ZFIGS_CHECK_PRINTING     
    /:   USING &REGUP-BELNR&                              
    /:   CHANGING &ZSGTXT&                                
    /:   ENDPERFORM                                       
    CH   &ZSGTXT&           
    In Subroutine pool:
    FORM text TABLES intab STRUCTURE itcsy
                             outtab STRUCTURE itcsy.
      DATA: zbelnr(10),
            zsgtxt LIKE bseg-sgtxt.
      READ TABLE intab WITH KEY name = 'REGUP-BELNR' .
      IF sy-subrc = 0.
        MOVE intab-value TO zbelnr.
        SELECT SINGLE sgtxt INTO zsgtxt FROM bseg
              WHERE bukrs = '8140' AND
                    belnr = zbelnr.
        IF sy-subrc = 0.
          MOVE zsgtxt TO outtab-value.
          MODIFY outtab INDEX sy-tabix.
        ENDIF.
      ENDIF.
    ENDFORM.
    Thanks,
    Siva

    Hi,
    Can any one tell how to write loop statement in Main window to display BSEG-SGTXT. As i am getting text (BSEG-SGTXT) from subroutine pool and calling into Main window using Perform statement and printing duplicate text in multiple times insted of different text.
    Thanks,
    Siva

  • How to call functions in windows or Solaris in servlet?

    Hello,
    Does anyone know if there is a way for servlets to call functions in windows or solaris shell command????
    Thanks :)

    Checkout the Runtime.exec family of methods.
    I would think carefully if calling a shell script or batch file from a J2EE web component is something you really want to do though.

  • 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

  • Naming output files in Windows Batch Scripts

    <p>Looking for Windows batch script syntax to autonumber,automatically name, and/or randomly name output files to avoidoverwriting output files.</p>

    I use this type of functionalithy frequently to save output logs.<BR>Here is a snippet of code that should work. It assumes that you already have the Esscmd script that performs the DBStats call and outputs the log to D:\logs\dbstats.log.<BR><BR>Let me know if you have any questions.<BR><BR>@ECHO OFF<BR>:: ==========================================================<BR>::Filename:     GetDBSTATS.bat<BR>:<img src="i/expressions/face-icon-small-happy.gif" border="0">escription:     Runs DBSTATS and rename outputfile with current date<BR>:: ==========================================================<BR>::<BR>:: Run Esscmd to get dbstats output log d:\logs\dbstats.log<BR>ESSCMD D:\script\getdbstats.ess<BR>::<BR>:: Get Current Date and Time<BR> FOR /F "TOKENS=2" %%i IN ('DATE/T') DO SET FullDate=%%i<BR> SET Month=%fulldate:~0,2%<BR> SET Day=%fulldate:~3,2%<BR> SET Year=%fulldate:~6,4%<BR><BR> FOR /F "TOKENS=1" %%i IN ('TIME/T') DO SET FullTime=%%i<BR> FOR /F "DELIMS=: TOKENS=1" %%i in ('ECHO %fulltime%') DO SET Hour=%%i<BR> FOR /F "DELIMS=: TOKENS=2" %%j in ('ECHO %fulltime%') DO SET Minute=%%j<BR><BR>::<BR>::<BR>RENAME d:\logs\dbstats.log dbstats_%month%_%day%_%year%.log<BR>EXIT<BR>

  • Printing totals in words in footer window

    Hi all,
    I am trying to modify the standard form : RVINVOICE01.
    In main window i am getting the total Amount in Numbers. My requirement is to print that total Amount in Words in a Footer Window.
    Example:
    In Main Window if i get                       Total        : 1160 (KOMK-FKWRT)
    Then in Footer Window i have to display like this
    Total in  words :One Thousand One hundred sixty.
    how to do this ?
    Thanks in advance
    KR

    Hi Bujji,
    In Text elements of Footer window i have witen like this :
    /:     PERFORM ZK_WORD IN PROGRAM ZADIN01
    /:     USING &KOMK-FKWRT(I13)&
    /:     CHANGING &WORD1&
    /:     ENDPERFORM.
    AS  Total in Words: &word1&
    After  that i have created a Subroutine pool program called ZADIN01 , And in this i have written the folowing code.
    FORM ZK_WORD  TABLES INPUT STRUCTURE ITCSY
                                              OUTPUT STRUCTURE ITCSY.
    DATA: V_WORD1(100) TYPE C,
               V_FKWRT LIKE KOMK-FKWRT.
    READ TABLE INPUT INDEX 1.
    IF SY-SUBRC EQ 0.
    MOVE INPUT-VALUE TO V_FKWRT.
    ENDIF.
    CALL FUNCTION 'SPELL_AMOUNT'
      EXPORTING
       AMOUNT = V_FKWRT
    IMPORTING
       IN_WORDS = V_WORD1.
    ENDFORM.
    But the above code is giving the Error like : THE DATA OBJECT ''INPUT 'DOESNOT HAVE A COMPONENT CALLED 'VALUE'.
    How to slove this ? My code was  correct ?
    Thanks in advance

  • How to call a subroutine from sap script

    hi friends,
    Can anybody tell me How to call a subroutine from sap script .
    thanks n regards .
    Mahesh

    hi..
    Calling ABAP Subroutines: PERFORM 
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    The system does not execute the PERFORM command within SAPscript replace modules, such as TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE. The replace modules can only replace symbol values or resolve include texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    regards,
    veeresh

  • About the footer window

    Hi team,
                   i have two footer window for different pages(i.e page1, page2,). i want the page1 footer only with date and page number. for page2 footer window with different text.so how can i write the code for this footer windows  can any one help me...

    Hi!
    You have to create 2 pages, f.e. FIRST and NEXT.
    Attach the FOOTER1 to FIRST and FOOTER2 to NEXT.
    In the FOOTER1 write this:
    &PAGE&, &DATE&
    FOOTER2:
    Other texts
    In your printer program's main LOOP, you have to call both windows.
    LOOP AT gt_main INTO gs_main.
    CALL FUNCTION 'WRITE FORM'
    EXPORTING window = 'FOOTER1'.
    CALL FUNCTION 'WRITE FORM'
    EXPORTING window = 'FOOTER2'.
    ENDLOOP.
    You have to print them both, and on the FIRST page, only the attached FOOTER1 will appear, and on the NEXT page, the FOOTER2 will appear.
    Regards
    Tamá

  • How we can use footer window in a last page?

    I m making SAP SCRIPT..
    How we can use footer window in a last page?

    Hi vikas,
    is it that you want to use footer window to be printed in last page...then do like this,
    command to be used:
    /: IF &NEXTPAGE& EQ 0
    whatever footer you want.
    /: ENDIF
    and go thru the link and revert back if any quiries r present..
    http://sapscriptcode.blogspot.com/2007/05/print-footer-notes-only-on-last-page.html
    pls reward if helps,
    regards.

  • Error when calling a popup window in the initial screen of an application

    Hi,
        I am calling a popup window in the Initial screen to select the variant list.
    I am getting an error reference to Null Object reference.
    Here is the Error.
    Runtime Errors         OBJECTS_OBJREF_NOT_ASSIGNED_NO
    Exception              CX_SY_REF_IS_INITIAL
    Date and Time          15.06.2007 10:00:16
    Short text
    Access via 'NULL' object reference not possible.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "CL_WDR_MESSAGE_AREA===========CP" had to be
    terminated because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    An exception occurred that is explained in detail below.
    The exception, which is assigned to class 'CX_SY_REF_IS_INITIAL', was not
    caught in
    procedure "SUPPLY_VIEW_DATA" "(METHOD)", nor was it propagated by a RAISING
    clause.
    Since the caller of the procedure could not have anticipated that the
    exception would occur, the current program is terminated.
    The reason for the exception is:
    You attempted to use a 'NULL' object reference (points to 'nothing')
    access a component.
    An object reference must point to an object (an instance of a class)
    before it can be used to access components.
    Either the reference was never set or it was set to 'NULL' using the
    CLEAR statement.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "OBJECTS_OBJREF_NOT_ASSIGNED_NO" "CX_SY_REF_IS_INITIAL"
    "CL_WDR_MESSAGE_AREA===========CP" or "CL_WDR_MESSAGE_AREA===========CM00Q"
    "SUPPLY_VIEW_DATA"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    The exception must either be prevented, caught within proedure
    "SUPPLY_VIEW_DATA" "(METHOD)", or its possible occurrence must be declared in
    the
    RAISING clause of the procedure.
    To prevent the exception, note the following:
    Looking for Ur valuable suggestions.
    Cheers,
    Sam

    Hi Sam,
    The correct code for creating a popup window will be:
      data lo_window_manager type ref to if_wd_window_manager.
      data lo_api_component  type ref to if_wd_component.
      data lo_window         type ref to if_wd_window.
      lo_api_component  = wd_comp_controller->wd_get_api( ).
      lo_window_manager = lo_api_component->get_window_manager( ).
      lo_window         = lo_window_manager->create_window(
                         window_name            = 'WINDOW_NAME'
    *                    title                  =
    *                    close_in_any_case      = abap_true
                         message_display_mode   = if_wd_window=>co_msg_display_mode_selected
    *                    close_button           = abap_true
                         button_kind            = if_wd_window=>co_buttons_okcancel
                         message_type           = if_wd_window=>co_msg_type_none
                         default_button         = if_wd_window=>co_button_ok
      lo_window->open( ).
    Hope this helps.
    Regards,
    Ram

Maybe you are looking for

  • Exporting to PDF, the letter t is exported incorrectly

    Hello. I have an winforms app developed in .net 3.5. Reports are made in Crystal Reports 2008. I have a problem when exporting a report to PDF. The application have about 10 reports, and all but one works fine. The report looks correct when displayed

  • Mailbox Move ForceOffline Parameter

    Hell all, scenario: Exchange 2013 RTM CU3, Exchange 2013 SP1 DAG I'm trying to find a way to speed up Mailbox moves (local - from the RTM to the DAG environment) and I've pretty much exhausted all options I am aware of (MRS parameters, TCP Chimney, R

  • Question on forte for java

    Hi, I'm developing using the Forte for JAVA ide, but I get an error though i know certainly that my code is correct. I get this error: Tue Nov 06 11:35:29 CET 2001: java.lang.NoSuchMethodError: Posted StackTrace Annotation: Exception occurred in Requ

  • Hide button in table column

        Hi ,     I have added 2 buttons in one table column using layout. if the bindproperty for that column is "Approved" than that buttons set to false, if the bindproperty is "Pending" than buttons get visible. i am trying this code, but it is not go

  • New iPod won't sync

    hey everyone, I really need some help. I just bought a 30GB iPod. I'm trying to sync it with my current iTunes account but it won't sync. It will start to download, then just freeze up and I'll get an "iPod can't be synced, couldn't find specified fi