About BOX control command in SAPScript.

Hi,
I am using the BOX control command in SapScript.
Is it possible to assign the values of Xpos and Ypos dynamicalliy.
In BOX XPOS 16 CH WIDTH 0 MM HEIGHT 18 MM FRAME 10 TW,
i want to assign the values at runtime, instead of
xpos 16 , something like Xpos Var, where var contain the value of xposition.

Hi,
   We cant give the dynamic value in runtime . It should be static.
Regards,
Saran

Similar Messages

  • INCLUDE control command in sapscript

    I have used include control program and got long text for desired object,Problem is i want to move these text into some variable how can it be done.

    Hi,
    In the print program use the FM READ_TEXT to read the standard text..
    Then LOOP AT the text internal table and then concatenate the text and move it to string variable..
    Thanks
    Naren

  • Sapscript Control Commands

    Dear All,
                in Sapscript Control Command  there is one command
                INCLUDE .
                Pls explain it.

    Hi Kapoor,
    <b>INCLUDE: </b>To include the contents of another text into the current text, use the INCLUDE control command. SAPscript still treats the text to be included as a separate text. The text is copied over only at the point at which the output is formatted.
    Thus the use of the INCLUDE command always ensures that the most current version of a text is included into the output, since the text is not read and inserted until the output is formatted.
    <b>Syntax:
    /: INCLUDE name [OBJECT o] [ID i] [LANGUAGE l] [PARAGRAPH p]
    [NEW-PARAGRAPH np]
    </b>
    You must specify the name of the text to be inserted. It can be up to 70 characters long. If the name of the text contains spaces, then you must enclose it in quotes as a literal value. You can, alternatively, specify the name via a symbol. All remaining parameters in the INCLUDE command are optional. If an optional parameter is not specified, then SAPscript uses default values as applicable for the calling environment.
    /: INCLUDE MYTEXT
    The text MYTEXT is included in the language of the calling text.
    /: INCLUDE MYTEXT LANGUAGE 'E' PARAGRAPH 'A1'
    The text with the name MYTEXT and the language E is included, regardless of the language of the calling text. The paragraph format A1 will be used as the standard paragraph type for this call.
    Optional parameters:
    LANGUAGE
    If this parameter is not specified, then the language of the calling text or the form language are used for the text to be included. If the language is specified, then the text will be fetched in this language, regardless of the language of the calling text.
    PARAGRAPH
    The text to be included is formatted using the style allocated. The PARAGRAPH parameter can be used to redefine the standard paragraph for this style for the current call. All *-paragraphs in the included text will then be formatted using the paragraph specified here.
    NEW-PARAGRAPH
    The first line of the text to be included will be given this format indicator, as long as it is not a comment or command line. If the optional PARAGRAPH parameter (see above) is not specified, then all *-paragraphs of the included text will also be formatted using the paragraph specified in the NEW-PARAGRAPH command.
    OBJECT
    In order to completely specify a text, information about the text object is also required. There are a number of restrictions and other rules that depend on the object type of the calling text:
              o Any kind of text can be included in a form. If no object is specified, then TEXT will be used (standard texts).
              o In the case of a document text (DOKU object), you can include only document texts. This object type is also assumed if no object is specified in this environment.
              o Only hypertexts and document texts can be included in a hypertext (DSYS object). If the OBJECT parameter is missing, then DSYS is used as the default value.
              o In the other kinds of text you can include only standard texts (TEXT object), document texts or hypertexts. If there is no specification, then the default object is TEXT.
    ID
    The text ID is a part of the text key, which permits further text objects within a given object. If no ID is specified, then the default include ID is used from the TTXID table for the calling text. If there is no entry in this table, then the text ID of the calling text is used.
    The following consistency check is applied both to the ID and the object:
    All text IDs are allowed in a form.
    In document texts, only document texts may be included that have text IDs TX (general texts) or UO (authorization objects) and also other document texts with the same text ID as the calling document text.
    In DSYS texts, all DSYS texts can be included, whatever ID they have. Document texts to be included must have one of the IDs TX or UO.
    Into the other texts, standard texts with any allowable text ID, DSYS texts with all IDs, and document texts with the IDs TX and UO can be included.
    The INCLUDE command returns a status code in the SAPSCRIPT-SUBRC symbol:
    0: the text include was successful.
    1: the command could not be executed because it contained syntax errors.
    2: the rules governing the text to be included were not followed (see above).
    This value cannot occur if the command is used in a SAPscript form.
    4: the specified text could not be found.
    <b>Friendly Note:</b> You have many open threads and Plz close the threads if they are answered/solved and reward points to the people who are helping you by taking their  time.
    Thanks,
    Vinay

  • About control commands in scripts

    hi abapers
    can u plz tell about control commands in scripts uses of control commands

    Hi,
    Control Command Purpose:
    The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
    The SAPscript control commands are described in the following sections.
    <b>Syntax of Control Commands</b>
    Explicit Page Break: NEW-PAGE
    Preventing Page Breaks: PROTECT
    Next Main Window: NEW-WINDOW
    Assigning a Value to a Text Symbol: DEFINE
    Formatting Date Fields: SET DATE MASK
    Formatting Time Fields: SET TIME MASK
    Country-Dependent Formatting: SET COUNTRY
    Position of the Leading Sign: SET SIGN
    Initializing Numbered Paragraphs: RESET
    Including Other Texts: INCLUDE
    Changing the Style: STYLE
    Formatting Addresses: ADDRESS
    Setting a Header Text in the Main Window: TOP
    Setting a Footer Text in the Main Window: BOTTOM
    Conditional Text: IF
    Finding a Match: CASE
    Calling ABAP Subroutines: PERFORM
    Inserting Print Controls: PRINT-CONTROL
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Hexadecimal Data: HEX, ENDHEX
    Summing a Program Symbol: SUMMING
    Br,
    Laxmi

  • Copyright year in Java control panel about box

    I think the about box did not display the copyright year properly.
    Copyright (c) @@COPYRIGHT_YEAR@@ Oracle and/or it's affiliates

    hungwai wrote:
    The version of Windows/Java
    -Windows XP 32-bit and Windows ultimate Vista 64-bit
    -Java SE 1.6.0_21Perhaps you should raise a bug report. To do that, visit the [bug database|http://bugs.sun.com/bugdatabase/] and follow the instructions.
    I checked my Windows based Netbook and confirmed the version shows OK for 1.6.0_20.
    And just to correct something I said earlier, the Ubuntu Linux JCP does have an About box, under the General tab. Don't quite know how I missed it the 1st time. It shows the version correctly for 1.6.0_14.

  • ADDRESS ENDADDRESS command in SAPScript

    Hi Gurus,
    How does address endaddress command works in SAPscript.
    I want to use it in SAPscript as
    ADDRESS
        ADDRESSNUMBER <LFA1-ADRNR>
        FROMCOUNTRY 'US'
    ENDADDRESS.
    I have gone through the documentation of ADDRESS_INTO_PRINTFORM but still not clear of the sequence.
    Want to know, what will be the sequence in which address will be printed from above command and how does it determine this.
    Appreciate your help.
    Thanks,
    Kartavya

    Hi,
         Read Below documentation
           The ADDRESS - ENDADDRESS control command formats an address according to the postal convention of the recipient country defined in the COUNTRY parameter. The reference fields are described in the structures ADRS1, ADRS2, or ADRS3, depending on the type of address. Either direct values or symbols may be assigned to the parameters.
    Syntax:
    /: ADDRESS [DELIVERY] [TYPE t] [PARAGRAPH a] [PRIORITY p] [LINES l]
    /: TITLE title
    /: NAME name1[,name2[,name3[,name4]]]
    /: PERSON name of natural person [TITLE form of address]
    /: PERSONNUMBER number of the personen
    /: DEPARTMENT department
    /: STREET street name HOUSE house number
    /: LOCATION additional location information
    /: POBOX po box [CODE post code / zip code] [CITY city]
    /: POSTCODE post code / zip_code
    /: CITY city1[,city2]
    /: NO_UPPERCASE_FOR_CITY
    /: REGION county / state
    /: COUNTRY recipient country [LANGUAGE language code]
    /: COUNTRY_IN_REC_LANG
    /: LANG_FOR_COUNTRY language key
    /: FROMCOUNTRY sender country
    /: ADDRESSNUMBER address number
    /: ENDADDRESS
    The parameter values contain both formatting and address information. The address data are formatted for output according to the data in the following parameters:
    TYPE
    FROMCOUNTRY
    COUNTRY
    LANGUAGE
    PRIORITY
    DELIVERY
    LINES
    If DELIVERY is not specified and if a POBOX is specified, then the POBOX is used in an address instead of a STREET.
    Regards
    Bala Krishna

  • Control Command

    What are control commands in SAP Scripts?

    Preeti,
    Control Command Purpose:
    The purpose of these is to allow control of the output formatting. These commands are not interpreted by the SAPscript editor, but are passed through to the SAPscript Composer for processing. The Composer is the program that converts text from the form displayed in the editor to the form used for printing. This includes, for example, line and page formatting, the replacement of symbols with their current values and the formatting of text according to the paragraph and character formats specified.
    The SAPscript control commands are described in the following sections.
    Syntax of Control Commands
    Explicit Page Break: NEW-PAGE
    Preventing Page Breaks: PROTECT
    Next Main Window: NEW-WINDOW
    Assigning a Value to a Text Symbol: DEFINE
    Formatting Date Fields: SET DATE MASK
    Formatting Time Fields: SET TIME MASK
    Country-Dependent Formatting: SET COUNTRY
    Position of the Leading Sign: SET SIGN
    Initializing Numbered Paragraphs: RESET
    Including Other Texts: INCLUDE
    Changing the Style: STYLE
    Formatting Addresses: ADDRESS
    Setting a Header Text in the Main Window: TOP
    Setting a Footer Text in the Main Window: BOTTOM
    Conditional Text: IF
    Finding a Match: CASE
    Calling ABAP Subroutines: PERFORM
    Inserting Print Controls: PRINT-CONTROL
    Boxes, Lines, Shading: BOX, POSITION, SIZE
    Hexadecimal Data: HEX, ENDHEX
    Summing a Program Symbol: SUMMING
    refer.
    Re: SAP SCRIPT COMMANDS
    check this link
    http://www.allsaplinks.com/Scripts_1.html
    Don't forget to reward if useful

  • SAP Script : Control Commands for printing Label (barcode) by Zebra Printer

    Hello,
    I would like to know the control commands in sap script for Zebra Printer. The purpose of task is to print a field in barcode format in Right Bottom of the label.
    The sample code is placed below. Kindly have a look at it. The problem now i am facing is, the barcode for Customer PO is printing on the wrong place (Left Bottom, the text & barcode are overwriting). Can anyone suggest a possible way or can any one send the document for Barcode commands in SAP Script for Zebra Printer.
    Sample script code:
    Initialization and reset Barcode
    XAMCY^XZ
    Start
    ^XA
    Barcode setup
    ^BY3,2.7,2.2
    Set label home position
    ^LH
    ^FWN
    FO385,025A0R,40,50FDPN: &VBAP-MATNR&FS
    FO385,725A0R,40,50FD&VBAP-ARKTX&FS
    FO385,1710A0R,40,50FDRtns: &zsntsc-contr&FS
    FO345,025A0R,40,50FDService Order# &AUFK-AUFNR&FS
    FO345,725A0R,40,50FDSerial# &EQUI-SERNR&FS
    FO345,1710A0R,40,50FDRepair Order# &VBAP-VBELN&FS
    FO245,025B3R,N,90,N,NFD&AUFK-AUFNR&FS
    FO245,725B3R,N,90,N,NFD&EQUI-SERNR&FS
    FO245,1710B3R,N,90,N,NFD&VBAP-VBELN&FS
    FO138,1710A0R,40,35FDCustomer PO# &VBKD-BSTKD&FS
    FO98,025A0R,40,50FDWrnty: &W_WARRANTY&FS
    FO98,605A0R,40,50FDRoute: &W_ROUTE&FS
    FO58,025A0R,40,35FDShip-to-name: &W_NAME1&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO58,1325A0R,40,35FDMinor Group/Nr: &TVM5T-BEZEI&FS
    FO18,885A0R,40,35FDReported By: &QMEL-QMNAM&FS
    FO18,1710B3R,N,90,N,NFD&VBKD-BSTKD&FS
    ^XZ
    Thanks in Advance,
    Ramasamy

    HI
    GOOD
    GO THROUGH THIS
    A barcode solution consists of the following:
    - a barcode printer
    - a barcode reader
    - a mobile data collection application/program
    A barcode label is a special symbology to represent human readable information such as a material number or batch number
    in machine readable format.
    There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
    You can print barcodes from SAP by modifying an existing output form.
    Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool. 
    Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
    The next part of the equation can be a bit tricky as you will need to get a printer to print that barcode font. Regular laser printers does not normally print barcode fonts, only specialized industrial printers that is specifically designed to support that protocol and that uses specialized label media and heat transfer (resin) ribbon to create the sharp image required for barcodes.
    Not to fear though, there are two ways to get around this:
    - You can have your IT department do some research - 
    most laser printers can accept a font cartridge/dimm chip (similar to computer memory), called a BarDIMM that will allow a laser printer to support the printing of barcodes.
    - Secondly, you can buy software that you can upload in your SAP print Server that will convert the barcode symbology as an image that will print on a regular laser printer. I found that this option results in less sharper barcodes. This option is really if you need to convert a large quantity of printers (>10) to support barcodes. 
    - Thirdly, you can buy a third party software like Barcode.dll and install on your frontend PC connected to the laser printer.
    Now you have a barcode printed - what next?
    Well there are two options, depending on your business requirements:
    - You can use an existing SAP transaction on a regular workstation and get a barcode wedge reader to hook up between the keyboard and the PC. These wedge readers comes in a wand or scanner format. There are even wireless wedge scanners available that allows you to roam a few yards from the workstation to scan a label. This approach is mostly used where you want to prevent human errors in typing in long material, batch or serial numbers in receiving or issuing of material. The problem is that it's just replacing the keyboard input and you are basically locked down in one location and have to bring all the material to that location to process.
    - Another solution is to use SAPConsole transactions
    or write your own ABAP Dialog programs that will fit onto a barcode enabled wireless handheld terminal and that will follow the business logic as executed on the shop floor. 
    These programs are highly complex exercises in industrial engineering and ergonomics because of the limited screen sizes and limited ability to accept keyboard input. The user is instructed step-by-step and only scan and push F-keys to interact with the SAP system. Scan, scan, beep, beep, enter - highly automated.
    GO THROUGH THESE LINKS
    http://www.sap-img.com/abap/details-information-about-sap-barcodes.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/68/4a0d5b74110d44b1b88d9b6aa1315b/content.htm
    THANKS
    MRUTYUN

  • Unicode in About Box under Windows, CS5

    All strings of my plugin are stored in UTF8 resources in kResourceUTF8Encoded string tables in the .fr file (the language I use requires Unicode characters). These strings include my company key, about menu key and about box contents.
    They all appear correctly in the user interface of the Mac version of InDesign. However, on Windows, while my normal strings (error messages and similar) are all right, the company name, plugin name and the About box contents are not displayed correctly in the Help menu. Is there any way to make the Windows GUI Unicode compliant just like the Mac GUI is?
    Bye,
    Gábor

    Hi warengharding624,
    Based on your description, your issue is related about C/C++, since this forum is discussing about Windows Forms Controls, and I will move this thread to C++ forum.
    In addition,Could you share us what the type of your project is?
    Thanks for your understanding.
    Best Regards,
    Edward
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

  • FM 8p273 control commands stop working

    Hello,
    Recently upgraded to 8p273 due to known bug with indexing; this solved that problem.
    However--I find that from time to time (increasingly frequently, it seems) control commands (cntl-c, cntl-v, cntl-m, etc.) stop working, in an erratic fashion. I.e. one will stop working properly (seemingly cntl-c to copy things), but cntl-v still works, then after a while cntl-v will paste, but in the main frame not in the marker dialogue box, etc. (difficult to describe all this accurately).
    Eventually, I close FM and restart it, and I'm good for a few minutes.
    I've tried downloading p277 (in case it fixes this) but only 7Mb of 32 download, and when I try to run it, as far as I can see, nothing happens. So not getting anywhere there.
    I'm running this on Win XP SP3 under Parallels 8.0.18494, but I don't know that that's the problem; cntl-c and cntl-v still work in other applications.
    Any ideas?
    I'm near the end of a project (well, if I can get the work done!) so it doesn't make sense to upgrade to a new version just now....
    Thanks for any help!
    K

    Thanks very much for these suggestions. I doubt either malware or Parallels are to blame, though, because....
    a. It's an institutional computer, with daily updated virus files, and I don't download anything EVER through Windows (except software updates). No guarantee, of course, but I doubt that this would be the cause.
    b. When the problem surfaces (which is some time after entering FM), it is *local* to FM. I've never had the problem in MS Access, the only other product I use frequently on Windows, and when it happens, I've loaded Word and other things, and the problem is not duplicated there.
    c. The problem is discussed on Parallels forums (for an older version, however), but in those cases, it is global to all apps....
    KF

  • How to make BOX position variable in SAPscript

    Can we make box position variable in sapscript?
    Can we pass variable in Box command in sapscript like
    BOX XPOS <v1> YPOS <v2> WIDTH <v3> HEIGHT <v4>.

    Hi,
    Yes we can pass variables to BOX command...
    But the variables should be of type char
    Patil

  • Problem with SAP Script (Control Commands)

    Dear friends,
          I am facing one problem withg control commands. When i use <b>PROTECT.....ENDPROTECT</b> with <b>VAR type</b> window then it is not working instead i use with <b>MAIN type</b> window it is working fine. Another problem with <b>BOX command</b> when i use with <b>MAIN type</b> window then it is not working but when i use with VAR type window then it is working fine. SO i am little bit confused that is there any relation between control commands and window type?
    THanks & Regards,
    Bhavin

    Hi,
    There is no restriction to use any control commands on any windows.
    The SAP doesnt give any error, but the point of using Protect Endprotect in windows other than main window doesnt apply.
    Only main window carries from one page to another. So in order to print certain lines in a single page we use this control command.
    Regarding BOX command it works fine on any window.
    Thanks and Regards.
    Lavanya.

  • Fp-ai-110 remote control command

    Hi
    where can I find remote control commands for FP-AI-110 ,I could not find it in its manual like other devices , is there any one have idea about it ?

    What do you mean by "remote control command"?

  • Rightfax commands in Sapscript/Smartforms

    Hi,
    We are using RIGHTFAX with SAP ECC 5.0 for fax sending functionality.
    I have read all the threads related to RIGHTFAX functionality but would like to have answers for the following.
    1) Where exactly in a SAPSCRIPT / SMARTFORM form do I add the fax control commands (FCL Commands)so that RIGHTFAX connector for SAP R/3 recognise them?
    For eg: I want RIGHTFAX to include a particular cover sheet.For that I need to write the fax control command RFSAP_FCSFILE:file name. But where do I write that inside sapscript/smartform?
    Thanks,
    Bhaskar Pal.
    This message is not answered.Somehow it is showing as being answered already. I would appreciate your help/input on this issue. Please respond.

    Hi.  First try to set your post as unsolved.  There should be a radiobutton on the left of your post to do so.
    TO answer your questions,  what you need to do is to create a page, this page will be printed first.  Put your FCL commands in this page.  When the document is send to the printer device(the one setup for RIGHTFAX), it will have this coding on the first page.  Once it reaches RightFax,  the software will recognize that there is FCL code on this page and will except it, get the values, apply them, and then it strips off this first page.  This is good because we don't want the end user to see this anyway.  So, create a page in your sapscript called FAXPAGE,  put your commands in there and always start your printing at this page. 
    Regards,
    RIch Heilman

  • Ring or combo box control of date

    Hi, I am developing a GUI with ring or combo box indicating possible date, i.e., month, day, and year. Or is there a way to create multiple items ran sequentially in a ring or combo box control.
    the time stamp is alright, but can't get rid of the current time display in the set time and date dialogue . thanks alot.

    Hi rookieprgmer,
    You will have to format the date into a string to create a ring that contains all the data for the month, date and year. One method for separating the date from a timestamp is to use the Get Date/Time String. You could then take the date string and use it in the ring or combo box. Attached is an example of how to use that function.
    What do you mean by running multiple items simultaneously in a ring or combo box?
    Hopefully I covered what you were asking about.
    Sappster
    Attachments:
    date.JPG ‏7 KB

Maybe you are looking for

  • My music won't transfer from my computer to my phone-what's wrong?

    i just bought a mac and i am trying to put music i bought on this mac onto my iPhone but it won't sync, a little icon with a number comes up but when I drag it to my phone it just pops back to my library. What's going on???

  • Acrobat Pro 9.5.2 in OS 10.6.8

    As of lately Acrobat Pro has been taking quite a while to quit and the first and only first file I open takes a while to close. I have 4gb of ram, 2 -Dual-Core Intel Xeon Processor Speed:          2.66 GHz with 148gb of free space. I tried a reinstal

  • Using iWeb to publish to two sites separately

    Here's my situation: I purchased a Family Pack .mac so I get 5 sites. I will use one for my own use, my wife will use one, and my son will use one. We would like to use one of the two remaining accounts primarily to put up a website for a friend of o

  • Error message hkey_local_machine\software\classes\itunes.aifc keeps appearing when updating.

    Error message hkey_local_machine\software\classes\itunes.aifc keeps appearing when updating.  Then update uninstalls.  I was trying to fix a missing driver error.

  • Need to find last time a table was used.

    I am in the process of cleaning out a group of staging tablespaces and I would appreciate some help finding the last time a table was used. (ie: records added, deleted, ect.) Is there an SQL statement that will do it? Any other suggestions? I will Ap