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

Similar Messages

  • Excel VBA + SAP Scripting / How can I send an instruction to a background window without bringing it up?

    Hello guys,
    I need to send keys to a window in the background, but I don't want it to pop up when I do it as it may cause some errors if I'm typing something at that moment. Is this possible?
    The script I'm working on converts a spool to a pdf, but when the save as window comes up, the script stops recording because that is not a SAP screen, but a windows screen.
    I was actually able to make it work by ending the script right before executing the transaction, then I used AppActivate and SendKeys to execute the transaction by pressing F8 and saving the file by pressing enter, but I still have these windows popping up while the macro is running, so, is it possible to have the SendKeys point to a specific application without it bringing it to the foreground?
    Also, please note that I am new to programming, so I'm not familiar with all the functions.
    Thanks in advance.

    Hello Jahir.
    I had several similar request in past.
    One requirement was mass convertion of PM orders printout from spool to PDF.
    I found a solution where a small ABAP-Report (implemented in coding-area of an SQ02 infoset) Transfer spool data from my SAP user as PDF to a temp Folder on my local HDD.
    Then I convert this PDF-files with an small application (pdf2txt.exe) to text-files. Where a small Excel VBA code got an specific text as identifier (PM order number).
    So I have pdf-files with spoolnumber-naming and dedicated PM order number. So a small VBA code is renaming my files for better identification by enduser.
    Another method was to write an small VBA macro which is able to identify Save-As dialogbox and fillin a specific filename and press 'Save' by using ESER32-API methods and functions.
    As you are new with programming I guess both methods are a Little bit to complex for you.
    LEt me know when you Need more Information for one of above used methods by me.
    MAy you can give some more Details in which Transaction you will Trigger the spools.
    Br, Holger

  • Is it possible to use same sap script for different comp code with difflogo

    I have 3 company codes. I need to use same sap script to all  but each company code has different logo. I dnt want to go for 3 different sap script. Is it possible to change in coding
    like this
    If comp code = '100'
    print ' logo1'
    If comp code = '200'
    print ' logo2'
    If comp code = '300'
    print ' logo3'
    in same sapscript.If yes how ?

    Hi,
    Yes you can do it.
    In Sap Script use:-
    /: If Comp code='100'
       INCLUDE ZHEX-LOGO100 OBJECT TEXT ID ST LANGUAGE EN
    /:Elseif comp code = '200'
    INCLUDE ZHEX-LOGO200 OBJECT TEXT ID ST LANGUAGE EN
    /:Else
    INCLUDE ZHEX-LOGO300 OBJECT TEXT ID ST
    LANGUAGE EN
    /:Endif
    I hope this helps,
    Regards
    Raju Chitale

  • In sap scripts how to display the driver program

    Hi,
        I Want to know the sap scripts How to display the output to driver program

    Hi,
    Go to NACE Transaction.
    Select application for ex: if sales V1.
    Click on output types.
    Select the output type for ex : BA00
    Double click on Processing routines.
    There you can find the Driver Program name and Script/smart form name.
    Reward if useful.
    Thanks,
    Raju

  • Sap script '' how to create table frame in sap script"""

    i have some problem in sap script''  how to create table frame in sap script"""

    Hi,
    you can use BOX command..
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT and FRAME both a measurement and a unit of measurement must be specified. The INTENSITY parameter should be specified as a percentage between 0 and 100.
    1. XPOS, YPOS: Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    2. WIDTH: Width of the box. Default: WIDTH value of the SIZE command.
    3. HEIGHT: Height of the box. Default: HEIGHT value of the SIZE command.
    4. FRAME: Thickness of frame.
    Default: 0 (no frame).
    5. INTENSITY: Grayscale of box contents as % .
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP numeric constants) by being enclosed in inverted commas. The period should be used as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    • TW (twip)
    • PT (point)
    • IN (inch)
    • MM (millimeter)
    • CM (centimeter)
    • LN (line)
    • CH (character).
    The following conversion factors apply:
    • 1 TW = 1/20 PT
    • 1 PT = 1/72 IN
    • 1 IN = 2.54 CM
    • 1 CM = 10 MM
    • 1 CH = height of a character relative to the CPI specification in the layout set header
    • 1 LN = height of a line relative to the LPI specification in the layout set header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shadowing having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    check the fallowing link also
    http://help.sap.com/saphelp_40b/helpdata/en/d1/803293454211d189710000e8322d00/content.htm
    Mark the points if u find it useful...
    Regards,
    Omkar.

  • In SAP Scripts How to write the fields 90  Degrees to regular format

    Hi ,
    I am working with SAP Scripts . Sometimes you may want to print text vertically.
    I have got a requiremnt in which there we have to write some data which is to be written 90 degres to regular output.
    please let me know if there is any printer setting for that .
    Regards.
    Rohit.

    Dear friend,
    For printing the text verticaly you need to made a
    print controle at printer level.
    select a command and in that you have to go in tab general
    attribute.
    and in front of :Include Printer Control: give the z print controle.
    in my company basis people had made one print controle
    ZR090.
    YOU have to use this command two times between
    the text .
    first command will move the printer at 90 degree and then
    write the text and second will move back to horizental.
    I dont know how this ZR090 can be made.
    rest wht i have written is very true and currently working.
    hope this will solve your problem.
    rewards are expected.
    Thanks and Regards
    vivek kumar srivastava

  • How to hard code values in drop down by index

    Hi everyone
    I hav a node containing 2 attributes ie value n key. I am using drop down by index.  Value attribute is bound to my drop dwn box. In key I am providing key value for the value.  I need to hard code 3 value..Can anyone help me how to do so.
    Thanks
    Jaspreet Kaur

    Hi,
    Example for Data Binding of the DropDownByIndex UI Element:
    Procedure at design time:
           1.      Create a view with the name TestView.
           2.      Insert the DropDownByIndex UI element as a container child of the TestView view. (Step 1)
           3.      Create the context structure, as described in step 2.
    Create the context node X with the cardinality 0..n. Insert the value attribute y of the type String into this node. Then perform the data binding of the DropDownByIndex UI element in the Properties window of the View Designer. The texts property must be bound to the value attribute y with the context path description TestView.X.y (step 3).
    The context path TestView.X.y describes the attribute y in the context node X of the view context of the TestView view.
    You can fill the context with test data using the following controller implementation.
    public void wdDoInit()
        //@@begin wdDoInit()
       String[] letters = new String []
       {"A", "B", "C", "D"};
    //Create context elements for the node "X"
       List nodeElements = new ArrayList();
       for (int i =  0; i <letters.length; ++i)
          IPrivateTestView.IXElement xElement = wdContext.createXElement();
          xElement.setY(letters<i>);
          nodeElements.add(xElement);
    //Bind node element list to the node
       wdContext.nodeX().bind(nodeElements);
    //Set node’s lead selection which determines the selected item
       wdContext.nodeX().setLeadSelection(1);
        //@@end
    Regards
    Ayyapparaj

  • Use printer other than default?  how to hard code it?

    Is it possible to make application to use specific printer but other than default? may be hard code it into application code?
    For example I know the name of print service(the PATH to configured printer) and I want my application to use THAT printer most of the time. how can make it so that my application uses one printer which is other than default..
    printDialog is not a good solutionin in my case I think because user might have 15 printers configured on his machine! and I do not want him to scroll PrintServices combobox looking for needed printer... why not show only 2 or printers out of 15?
    or in my case I think it is even better to hard code couple of configured printers in an application code so that I user does not get tired of working with printDialog window every time he needs to print. When my application is released to client it will be used especially for printing porposes of one particular document so he does not need to see margins and printer settings everytime.

    Basically the print dialog should offer this function without you having to code it. I don't know on Windows but on my Mac you can select printers other than default and get the computer to remember them.

  • How to hard code a records at the end of file

    Hello experts,
    I am doing IDOC to File scenario,I need to append 4 records at the end of file each time it is created in XI(These four records are need to be hardcode in the o/p file) .
    For example with IDOC to File,the o/p file like
    1 name number sal
    2 name number sal
    3 name number sal
    But my expected file is
    1 name number sal
    2 name number sal
    3 name number sal
    1 abc    123   2345676
    2 bdc     234 11111111
    3 aaa     123 11111111
    4 fffff       567 33333333
    Every time these 4 records are common.How can i hard code the last 4 records in XI.
    could u plz help me in this.Thanks in advance.
    Regards,
    KP

    Hi,
    Hope u are doing File Content Conversion in ur receiver adapter.
    Lets assume that u have structure like below
    -Record
      -RecordSet
        X
        Y
        Z
    Add one more Recordset like for Trailer records
    -Record
      -RecordSet
         X
         Y
         Z
      -TrailerRecordSet
         Trailer
    In ur mapping hardcode the Trailer node with the four lines (u can use '\n' char to represent nextlines)
    In ur Receiver communication channel add the TrailerRecordSet also...
    RecordSetStructure:  RecordSet,TrailerRecordSet
    TrailerRecordSet.fieldSeparator -
    '0'
    TrailerRecordSet.endSeparator -
    '0'
    RecordSet Parameters....
    Regards,
    Sudharshan

  • How to hard code the values in XI for the synchronous scenario?

    Hi All,
    Actual Scenario : Webservice - XI - Any of the Receiver Adapter(RFC/JDBC) .
    The receiver adapter setup will take some more days to complete. So, time being I would like to hard code the response values in XI according to the webservice request and send the response back to webservice. Is it possible?
    If it is possible, could you please tell me how to go about for this?
    Regards
    Sara

    Hey
    >>So, time being I would like to hard code the response values in XI according to the webservice request
    if ur response is based upon the request,then how can u hard code any value?when u hard code any element.it will always display the hard coded value irrespective of the request.
    in case u want to hard code something which does not depends on response or which will always stay the same in ur scenario,then just use the constant function of message mapping to do that
    thanx
    ahmad
    Message was edited by:
            Ahmad

  • Sap Script - How to show two logos consecutive in a row.

    Hi All,
    If in a window I insert two lines:
    /: INCLUDE ZHEX-MACRO-ZLOGO001 OBJECT TEXT ID ST
    /: INCLUDE ZHEX-MACRO-ZLOGO002 OBJECT TEXT ID ST
    the Sap Script shows two logos not consecutive in a row.
    I'd like to show the two logos in the same row and if it is possible, separated by blanks.
    Any idea?
    Thanks in advance for your kind support.
    Regards,
       Giovanni

    This is because of your page size limitation. IF you will create two windows then it will work.Aline these windows properly in layout of page.

  • Hard code of IP Address

    hi
    I have seen java code Containing IP Address of Other server. But when we have most java (components)files containing IP Address in the code, to make a hit to another Server, then it becomes tedious process to change these IP Address in all the file(components) when necessary. So is there any way to generate java file which will take care of these...
    like Hash table where it fetch the IP Addresses....
    Please some one Elucidate on this issue.
    from
    yogi

    Why not just put the IP address(es) in a configuration file? It's pretty easy to read and write simple properties using the java.util.Properties class.

  • Regarding sap script how to create first page and next page

    could u plz let me explain the steps for creating
    WE HAVE " PAGE BUTTOR" IN THE FORM.
    THERE WE CAN CREATE MULTIPLE PAGES
    I HAVE ONE    MAIN WINDOW   FOR "FIRST PAGE"
    I HAVE ONE MORE   MAIN WINDOW   FOR  "NEXT PAGE"
    LIKE THIS
    HOW CAN I TEST THE MULTIPLE PAGE S
    EXPLAIN CLEARLY
    FIRST PAGE
    NEXT PAGE
    THIRD PAGE
    FOUTH PAGE
    IN SAP CERIPT FORM

    hi
    in ur script u have  page button click to it and now do this
    goto 
    EDIT-->Create Element
    after this u have an pop-up
    now enter ur page name and description here and press enter
    insimilar manner creat the pages that u want
    Now once uahve created the pages  click to windows button
    and do this
    EDIT-->Create Element
    after this u have an pop-up
    now enter ur window  name and description here and press enter
    Now once u have created the windows click to page window button
    here u will give the page name in the box and do the same
    EDIT-->Create Element
    an popup will apear select the window u want to have on this window ok
    now code inside this window
    Hope this will solve ur problem
    Cheers
    Snehi Chouhan

  • SAP Script - How to write data in a table format.

    Hi All,
    In my requirement, I need to show item data in a table format ( In a box, with horizental & veritcal lines.
    can somebody pl give me a small code to do this.
    Regards,
    Hardik

    Hi
    SCRIPT BOXES
    POSITION WINDOW
    SIZE WIDTH '160' MM HEIGHT '140' MM
    BOX FRAME 10 TW
    Box
    BOX HEIGHT '11' MM WIDTH '160' MM FRAME 10 TW INTENSITY 35
    linessssssss
    BOX XPOS '20' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '45' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '80' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    BOX XPOS '120' MM WIDTH 0 TW HEIGHT '140' MM FRAME 10 TW
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Use the BOX, POSITION, and SIZE commands for drawing boxes, lines, and shading to print particular windows within a form or passages of text within a window in a frame or with shading.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet driver HPL2, the Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when printing. Line printers and page-oriented printers not supported in the standard ignore these commands. You can view the resulting printer output in the SAPscript print preview.
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    BOX Command
    Syntax
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each of XPOS, YPOS, WIDTH, HEIGHT, and FRAME, you must specify both a measurement and a unit of measurement. Specify the INTENSITY parameter as a percentage between 0 and 100.
    XPOS, YPOS
    Upper left corner of the box, relative to the values of the POSITION command.
    Default: Values specified in the POSITION command.
    The following calculation is performed internally to determine the absolute output position of a box on the page:
    X(abs) = XORIGIN + XPOS
    Y(abs) = YORIGIN + YPOS
    WIDTH
    Width of the box. Default: WIDTH value of the SIZE command.
    HEIGHT
    Height of the box. Default: HEIGHT value of the SIZE command.
    FRAME
    Thickness of frame.
    Default: 0 (no frame).
    INTENSITY
    Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: You must specify decimal numbers as literal values (like ABAP numeric constants) by enclosing them in inverted commas. Use the period as the decimal point character. See also the examples listed below.
    Units of measurement: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character).
    The following conversion factors apply:
    1 TW = 1/20 PT
    1 PT = 1/72 IN
    1 IN = 2.54 CM
    1 CM = 10 MM
    1 CH = height of a character relative to the CPI specification in the form header
    1 LN = height of a line relative to the LPI specification in the form header
    /: BOX FRAME 10 TW
    Draws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).
    /: BOX INTENSITY 10
    Fills the window background with shading having a gray scale of 10 %.
    /: BOX HEIGHT 0 TW FRAME 10 TW
    Draws a horizontal line across the complete top edge of the window.
    /: BOX WIDTH 0 TW FRAME 10 TW
    Draws a vertical line along the complete height of the left hand edge of the window.
    /: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15
    /: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    /: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW
    Draws two rectangles and two lines to construct a table of three columns with a highlighted heading section.
    POSITION Command
    Syntax
    /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    Effect: Sets the origin for the coordinate system used by the XPOS and YPOS parameters of the BOX command. When a window is first started, the POSITION value is set to refer to the upper left corner of the window (default setting).
    Parameters: If a parameter value does not have a leading sign, then its value is interpreted as an absolute value, in other words, as a value that specifies an offset from the upper left corner of the output page. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value. If one of the parameter specifications is missing, then no change is made to this parameter.
    XORIGIN, YORIGIN
    Origin of the coordinate system.
    WINDOW
    Sets the values for the left and upper edges to match those of the current window (default setting).
    PAGE
    Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    /: POSITION WINDOW
    Sets the origin for the coordinate system to the upper left corner of the window.
    /: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'
    Sets the origin for the coordinate system to a point 2 cm from the left edge and 2.5 cm from the upper edge of the output page.
    /: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM
    Shifts the origin for the coordinates 1.5 cm to the left and 1 cm up.
    SIZE Command
    Syntax
    /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    Effect: Sets the values of the WIDTH and HEIGHT parameters used in the BOX command. When a window is first started, the SIZE value is set to the same values as the window itself (default setting).
    Parameters: If one of the parameter specifications is missing, then no change is made to the current value of this parameter. If a parameter value does not have a leading sign, then its value is interpreted as an absolute value. If a parameter value is specified with a leading sign, then the new value of the parameter is calculated relative to the old value.
    WIDTH, HEIGHT
    Dimensions of the rectangle or line.
    WINDOW
    Sets the values for the width and height to the values of the current window (default setting).
    PAGE
    Sets the values for the width and height to the values of the current output page.
    /: SIZE WINDOW
    Sets WIDTH and HEIGHT to the current window dimensions.
    /: SIZE WIDTH '3.5' CM HEIGHT '7.6' CM
    Sets WIDTH to 3.5 cm and HEIGHT to 7.6 cm.
    /: POSITION WINDOW
    /: POSITION XORIGIN -20 TW YORIGIN -20 TW
    /: SIZE WIDTH +40 TW HEIGHT +40 TW
    /: BOX FRAME 10 TW
    A frame is added to the current window. The edges of the frame extend beyond the edges of the window itself, so as to avoid obscuring the leading and trailing text characters.
    <REMOVED BY MODERATOR>
    Regards
    Anji
    Edited by: Alvaro Tejada Galindo on Jul 8, 2008 10:59 AM

  • SAP Script: How do you print internal table values in a VAR window?

    Hi
      I want to have a window like MAIN window where I can print data like line items and the no of lines are only 3..I have added one window type VAR. I have schedule line data in one internal table in which I am calling WRITE_FORM func.mod for the newly created window..But the last schedule line only getting printed...when I debug the script looping in internal table is happening correctly and going to window also happening but in the output its showing last schedule line...What could be the problem and how to over come this?
        Thanks in advance.
    Regards
    Vali.

    Hi Md,
    1. type MAIN window CAN GROW (vertically)
       But VAR window Cannot.
    2. If our window is type VAR or FIXED
       no matter how much we loop
       it will show only the last record.
       because it cannot grow.
      (every loop pass overwrites the contents in the layout)
    3. So if we use loop to print anything,
       THE WINDOW MUST BE OF TYPE "MAIN" ONLY.
    Hope the above helps.
    Regards,
    Amit M.

Maybe you are looking for