SAPscript Basics

Hi All
plz tell me what is the basic difference and relation between Text module, text symbol and text element in SAPscript
THanks in Advance

hi Rashmi,
<b>    DEFINE: Value assignment to text symbols</b>
<b>Text symbols</b> receive their value through an explicit assignment. This assignment can be made interactively in the editor via the menu options Include &#61614;&#61472;&#61614;&#61472;Symbols &#61614;&#61472;&#61614;&#61472;Text. This lists all the text symbols of a text module, as well as those of the allocated layout set.
The contents defined in this way are lost if the transaction is exited. To continue printing the <b>text module</b>, you would have to enter the symbol values again.The DEFINE command allows you to anchor this value assignment firmly in the text, to also have it available when you next call up the text. Furthermore, you can allocate another value to a text symbol in
the course of the text.
Syntax:
/: DEFINE &symbolname& = ‘value’
Example:
/: DEFINE &re& = ‘Your correspondence of 3/17/94’
Example:
/: DEFINE &symbol1& = ‘xxxxxxx’
/: DEFINE &symbol2& = ‘yyy&symbol1&’
/: DEFINE &symbol1& = ‘zzzzzzz’
Result: &symbol2& &#61614;&#61472;yyyzzzzzzz
The assigned value may have a maximum of 60 characters. It can also contain further symbols. When a symbol is defined using the control command DEFINE, symbols which occur in the value are not immediately replaced by their value. They are only replaced when the target symbol is output. If the operator := is used in the DEFINE statement, all symbols which occur in the value which is to be assigned are immediately replaced by their current values. The resulting character string is only then assigned to the target symbol when all occurring symbols have been replaced. The length of the value is limited to 80 characters. The target symbol must be a text symbol, as at present.
Syntax:
/: DEFINE &symbolname& := ‘value’
<b>Windows</b> – At least one logical window must be defined for every page. (Otherwise it is not possible to format the texts) Window definition involves a list of window names and corresponding window types.
                 A MAIN window is displayed automatically. A Window mainly contains the SAPscript text and the variables to be printed. The text can be structured into blocks called <b>text elements</b>. There is one special window, MAIN , which contains the output of the line items of a document.
Regards,
Santosh

Similar Messages

  • SAPScript Basic

    Hi Friends,
    I have an sapscript with a line as follows,
    C10;AF2;36;2.9;3;0;0
    (C10 is not a characted format, I've checked that)
    Can someone please explain the meaning of last 6 value separated by semicolons? It would be helpful if one can suggest a tutorial/document which explains the meaning/syntaxt of sapscript commands.
    Thanks & Regards,
    Netrey

    well i do a LOT in SAP-Script and i never faced something like this. are you really sure you are getting this as sap-script code?
    or is this the printout?
    if this is the printout, noone can tell you what this shall be without having a look in your code.

  • How to retrieve the basic data text in material master to SAPSCRIPT?

    Besides using the function module READ_TEXT in the calling program, what alternatives are there if I don't want to modify the program but make changes in the sapscript only?
    I've tried to use the include statement in the sapscript editor, but I don't know how to call the text object whose ID is GRUN, object is MATERIAL.
    Should I use the include statement or any other ways to do it?
    Thanks.

    Thanks for replying this message.
    But the problem is that the object is not found,
    as I tried to print &SAPSCRIPT-SUBRC& and 4 is resulted.
    I've tried:
    /:INCLUDE &MARA-MATNR& OBJECT MATERIAL ID GRUN LANGUAGE &SY-LANGU&
    and
    /:INCLUDE &ISEG-MATNR& OBJECT MATERIAL ID GRUN LANGUAGE &SY-LANGU&
    But nothing is displayed. Anything wrong?

  • How to create a page format at sapscript?

    Hi all,
    Please help me in creating a page format for sapscript.
    Thanks.

    Hi Deniz,
    Page format – Specifies the format in which the form needs to be printed. E.g. Dina4, US Letter etc. The page format is determined from spool administration table with transaction SPAD.
    When u create new SAP Script from SE71 , u get  2 tabs- adminstrative data and basic settings.
    when u select Basic settings tab , u have options to set page format.
    DINA4 is the very common page format we generally use.
    REWARD IF USEFUL
    thanks and regards
    suma sailaja pvn

  • How to get (OAAD tcode) employee photo into sapscript / smartforms??

    Hi!
    I need to insert the employee photo jpeg (from oaad) into an sapscript or smartforms.
    It's possible to do dynamically? (without file conversion)
    Thanks

    Hi,
    I m providing u with this link, u may get some idea .
    How to display the employee photo in a smartform
    or
    These are all the steps to upload the Photo.
    1. Create a number range for SAP Archive Link :
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain number ranges.
    Tcode: OANR
    Create range 01 from 0000000001 to 9999999999 without the external number flag.
    2. Document type HRICOLFOTO must exist with document class JPG.
    IMG>Basis Components>Basis Services>SAP Archive Link>System Settings>Maintain document types.
    Table: TOAVE
    Tcode: OAC2
    3. Document type HRICOLFOTO must be linked to object type PREL and IT0002.
    IMG>Personnel Management>Personnel Administration>Tools>Optical Archiving>Set up Optical Archiving in HR.
    View: V_T585O,
    In all three columns there are minuses, don't put a flag in the check box.
    4. Check which content repository (Archive) is linked to document type HRICOLFOTO and object type PREL.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain Links.
    Table: TOAOM_C,
    Tcode: OAC3
    5. Create this content repository with storage type FILE archive.
    IMG>Basis Components>Basis Services>SAP Archive Link>Basic Settings>Maintain content repositories.
    Tcode: OAC0
    Storage type FILE archive can be attained by clicking on the field Storage type and clicking somewhere else in the screen with the right mouse button. Choose Possible entries and only then you get a list of all values. FILE Archive is entry number 08. Choose Version no. 0031 and Archive path something (e.g. C .
    6. Link photo to personnel number.
    Menu>Tools>Business Documents>Miscellaneous>Stored Documents.
    Tcode: OAAD
    Thanks,
    Mamta Kumari

  • About SAPscripts and smartforms

    Hi all,
             I am working on SAPscripts and i have one doubt.
    I want to know the concepts how data is communicated between SAP scripts and print program.Suppose I am writing one subroutine. Can i write the form statements in the print program of the script or I have to write it in another program.
             I want whether SAPscript is calling the print program or vice versa.
             Please tell me the same concepts regarding smartforms.
             Please experts provide me a vivid idea so that I can get the concepts clear.
        With regards,
          Abir.

    HI
    GOOD
    AS PER YOUR REQUIREMENT HERE I AM GIVING SOME POINTS RELATING TO SAP SCRIPT AND DRIVER PROGRAM
    WHEN YOU R CREATING A SAPSCRIPT FORM IT CANT ABLE TO EXECUTE OF ITSELF, FOR EXECUTION IT NEEDS HELP .THAT IS THE REASON YOU R CREATING A DRIVER PROGRAM.
    IF YOU GO THROUGH A DRIVER PROGRAM YOU CAN FIND OUT THAT YOU R PASSING THE SAP SCRIPT NAME AS A PARAMTER.SO YOUR DRIVER PROGRAM IS CALLING YOUR SAP SCRIPT FORM.
    USING THE DRIVER PROGRAM YOU ARE PASSING THE APPROPRIATE VALUE FOR THE VARIBALE THAT YOU R GOING TO PRINT IN THE SAP SCRIPT FORM.
    =============================
    SMARTFORM CONCEPT=>
    SAP Smartforms can be used for creating and maintaining forms for mass printing in SAP Systems. The output medium for Smartforms support printer, fax, e-mail, or the Internet (by using the generated XML output).
    According to SAP, you need neither have any programming knowledge nor use a Script language to adapt standard forms. However, basic ABAP programming skills are required only in special cases (for example, to call a function module you created or for complex and extensive conditions).
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name    Type assignment   Reference type
    ITAB1               TYPE                  Table Structure
    Global definitions
    Variable name    Type assignment   Reference type
    ITAB2               TYPE                  Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g.  HD_GEN for printing header details,
            IT_GEN  for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    THANKS
    MRUTYUN

  • Box and Size stmt in sapscript

    Hi all
    a very basic question
    can anybody plz tell me whatz the difference between box and size stmt in sapscript
    Thanks in advance

    hi,
       Check this Out.....
       <b>BOX, POSITION, SIZE</b>: Boxes, lines, shading
    The BOX, POSITION and SIZE commands are for drawing boxes, lines and shadows. These commands can be used to specify that within any particular layout set, window or passage of window text can be output in a frame or with shadowing.
    The SAP printer drivers that are based on page-oriented printers (the HP LaserJet PCL-5 driver HPLJ4, the
    Postscript driver POST, the Kyocera Prescribe driver PRES) employ these commands when creating output. Line printers and non-supported page-oriented printers ignore these commands. The resulting output may be viewed in the SAPscript print previewer.
    Syntax:
    1. /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    2. /: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]
    3. /: SIZE [WIDTH] [HEIGHT] [WINDOW] [PAGE]
    <b>BOX</b>
    Syntax:
    /: BOX [XPOS] [YPOS] [WIDTH] [HEIGHT] [FRAME] [INTENSITY]
    Effect: draws a box of the specified size at the specified position.
    Parameters: For each parameter (XPOS, YPOS, WIDTH, HEIGHT and FRAME), both a measurement and a unit of measure must be specified. The INTENSITY parameter should be entered as a percentage between 0 and 100.
    •&#61472;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
    •&#61472;WIDTH: Width of the box.
    Default: WIDTH value of the SIZE command.
    •&#61472;HEIGHT: Height of the box.
    Default: HEIGHT value of the SIZE command.
    •&#61472;FRAME: Thickness of frame.
    Default: 0 (no frame).
    •&#61472;INTENSITY: Grayscale of box contents as %.
    Default: 100 (full black)
    Measurements: Decimal numbers must be specified as literal values (like ABAP/4 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 measure: The following units of measure may be used:
    •&#61472;TW (twip)
    •&#61472;PT (point)
    •&#61472;IN (inch)
    •&#61472;MM (millimeter)
    •&#61472;CM (centimeter)
    •&#61472;LN (line)
    •&#61472;CH (character).
    The following conversion factors apply:
    •&#61472;1 TW = 1/20 PT
    •&#61472;1 PT = 1/72 IN
    •&#61472;1 IN = 2.54 CM
    •&#61472;1 CM = 10 MM
    •&#61472;1 CH = height of a character relative to the CPI specification in the layout set header
    •&#61472;1 LN = height of a line relative to the LPI specification in the layout set header
    Examples:
    /: 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.
    POSITION
    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 which 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.
    •&#61472;XORIGIN, YORIGIN: Origin of the coordinate system.
    •&#61472;WINDOW: Sets the values for the left and upper edges to be the same of those of the current window (default setting).
    •&#61472;PAGE: Sets the values for the left and upper edges to be the same as those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
    Examples:
    /: 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.
    <b>SIZE</b>
    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.
    •&#61472;WIDTH, HEIGHT: Dimensions of the rectangle or line.
    •&#61472;WINDOW: Sets the values for the width and height to the values of the current window (default setting).
    •&#61472;PAGE: Sets the values for the width and height to the values of the current output page.
    Examples:
    /: 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.
    Regards,
    Santosh

  • SAPScript box drawing

    Hi Guys,
    I'm facing difficulties on drawing a box with records in SAPScript. Im using below for box drawing:
    1. Draw main box
    /: BOX WIDTH 280 MM HEIGHT 130 MM FRAME 10 TW 
    2. Draw vertical line to separate each different COLUMN
    /: BOX XPOS 15 CH WIDTH 0 CH HEIGHT 130 MM FRAME 10 TW
    3. Draw <b>horizontal line</b> to separate each different RECORD
    /: BOX YPOS 4   CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW
    Problems:
    1.  For drawing <b>horizontal line</b> to seprate each record, basically i fix a static incremental counter for YPOS xxx CH.
    For eg:
    1st line -> /: BOX YPOS <b>4</b>   CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW
    2nd line -> /: BOX YPOS<b> 6</b>   CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW
    3rd line -> /: BOX YPOS <b>8</b>   CH WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW
    ... and so on, until the end of the box
    The output LINE for first few records still ok, but for the rest it is <b>overlapping</b> with the records.
    ---> Please comment the right way to overcome above.
    2. The code for drawing horizontal line is a lot, is there a better to perform the drawing?
    > Please comment
    Thanks in advance.

    Hi,
    My problem solved by using LN as below:
    :/ BOX YPOS 4 <b>LN</b> WIDTH 280 MM HEIGHT 0 CH FRAME 10 TW
    But right now, im using command SIZE to draw a box for me automatically by following the actual window size. I did that with no problem.
    But im facing problem when im drawing Vertical line(column separator)within the box. Im intend to draw a line <b>without</b> specific the height for <b>Vertical</b> line(because my 2nd page's height is larger than 1st page and thus i do not want to harcode the height). Below is my code:
    /:SIZE WINDOW                      -->Draw main box
    /:BOX FRAME 10 TW                  -->Draw main box
    /:BOX XPOS 15  CH FRAME 10 TW      --> Draw vertical line
    The result returned with problem,  there are 2 vertical line being draw out. 1st line is draw at position 15 ch as instructed by the command, but there is <b>2nd line draw out of my main box</b> on right, this is not expected.
    Please comment on how should i fix the code.
    Thanks in advance.

  • Advantages of  adobe forms over sapscripts and smartforms.

    Good day ,
    Can anyone pls mention atleast 2 to 3 major differences between sapscripts,smartforms and adobe forms?
    I want to know wat r the drawbacks in each n how we rectified it in adobe forms.Are there any disadvantages in adobe forms??
    Awaiting your reply,
    Thanks,
    Deepthi.

    Hi Martina,
    SAP Interactive Forms by Adobe offer you the following business advantages:
    1.  Interactive functions automate the creation of data for SAP systems
    2.  Full integration into the SAP development environments for Java and ABAP
    3.  User-friendly tools reduce the time and costs associated with creating form layouts.
    4.  The usage of the PDF format means that forms retain their appearance regardless of the environment they are used in.
    Moreover,
    SAP Interactive Forms by Adobe offer the following basic functions:
    1.  Create form templates for the layout that include logos or pictures
    2.  Generate documents by merging form templates and current system data
    3.  Edit forms online or offline
    4.  Forms can be filled in advance automatically with specific data from SAP applications and then sent to the correct recipients using secure methods
    5.  Automatic consistency checks for forms
    6.  Activate enhanced functions such as comments
    7.  Digital signatures and form certification
    8.  Send completed forms to the SAP application with automatic updates of the business data
    There are not any disadvantages in adobe forms as such except the value help is not present but that could be done after a little coding.
    Reward if useful.
    Regards,
    Vaibhav Tiwari.

  • ALV Programming and Sapscript...

    Hi,
    Till date i have only worked in standard reports, now i have to work on ALV report and Sapscript, so if any one have any basic tutorial on ALV and Sapscript, pls email me.
    Thanks in advance.

    Hi arup,
    1. This is the most simple form of alv.
    2. Minimum, this much coding is required for a normal alv.
    The two main FMs for any alv programming are.
    <b>REUSE_ALV_LIST_DISPLAY
    REUSE_ALV_FIELDCATALOG_MERGE</b>
    3. just copy paste to get a taste of it.
    4.
    report abc.
    TYPE-POOLS : slis.
    DATA : alvfc TYPE slis_t_fieldcat_alv.
    DATA : alvfcwa TYPE slis_fieldcat_alv.
    data : begin of itab occurs 0.
            include structure usr02.
    data : end of itab.
    START-OF-SELECTION.
      select * from usr02
      into table itab.
      CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
        EXPORTING
          i_program_name         = sy-repid
          i_internal_tabname     = 'ITAB'
          i_inclname             = sy-repid
        CHANGING
          ct_fieldcat            = alvfc
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    IMPORTANT
      LOOP AT ALVFC INTO ALVFCWA.
        IF ALVFCWA-FIELDNAME = 'USTYP'.
          ALVFCWA-NO_CONVEXT = 'X'.
          MODIFY ALVFC FROM ALVFCWA.
        ENDIF.
      ENDLOOP.
    Display
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          it_fieldcat   = alvfc
        TABLES
          t_outtab      = itab
        EXCEPTIONS
          program_error = 1
          OTHERS        = 2.
    regards,
    amit m.

  • Sapscript change source language

    Hi,
    I have a sapscript form and want to change the basic forms language.
    How to do that without creating the form new from scratch?
    (Please no answers concerning translastion - I want the form to be restricted to one language which is not the current source language).
    TIA,
    Clemens

    > <i>(Please no answers concerning translastion - I
    > want the form to be restricted to one language which
    > is not the current source language).</i>
    >
    >
    > Are you saying that you want to change the original
    > language of the original standard SAP form in client
    > 000?
    >
    > Regards,
    > Rich Heilman
    Rich,
    what ever.
    I have an existing form in Client 100. I want the original language to be changed from current settings.
    Howto?
    BTW: *!@?

  • SAPScript: how tu adjust heigh and width of standard text (logo)?

    Hi!
    how to adjust heigh and width of standard text (logo)?
    I do not want to edit the logo, because it is used elsewhere, so I need to adjust heigh and width when using it in a form.
    For now stadard text comes over the window. Here is how I use it:
    INCLUDE ZHEX-LOGO OBJECT TEXT ID ST
    Will reward,
    Mindaugas

    Hi Mindaugas,
    While uploading using RSTXLDMC. You have to maintain your size of the logo.
    Go through below mentioned document.
    Upload TIFF files to SAPscript texts
    Description
    The report RSTXLDMC allows a TIFF graphics file to be uploaded from the file system of the R/3 GUI to a standard text in the R/3 word processor SAPscript. (TIFF is a registered trademark of the Aldus Corporation.)
    When uploading, the TIFF graphic is converted either into a black and white raster image (parameter type=BMON ) or as a color raster image with a maximum of 256 colors (parameter type=BCOL).
    The black and white raster images ( BMON) can be printed using the following printer types:
    PCL-5 printer
    PostScript printer
    Kyocera PRESCRIBE printer
    Device type SAPWIN (with SAPlpd 32-bit as of Version 2.41 for Windows NT or Windows 95)
    The color raster images (BCOL) can be printed using the following printer types:
    PCL-5 printer with color capability (e.g. HP Color LaserJet). Color graphics are not printed properly on monochrome PCL-5 printers (e.g. HP LaserJet 5), because the printer cannot set the color palette as required and does not perform any gray-level conversion.
    PostScript printer (color graphics are automatically converted to gray levels on black and white printers using PostScript) Device type SAPWIN (with SAPlpd 32-bit as of Version 2.41 for Windows NT or Windows 95) During TIFF graphic import, the basic set " Baseline TIFF 6.0 " of the TIFF specification 6.0 is supported.
    To maintain compatibility with earlier versions of the report RSTXLDMC, it is also possible to convert the TIFF graphic directly into a black and white raster image for a particular printer type when uploading. These are the three printer types PCL-5 (parameter type=PCL ), PostScript (parameter type=POST) and Kyocera PRESCRIBE (parameter type=PRES ). A raster image uploaded in this manner can only be printed using the appropriate printer type.
    Besides TIFF raster graphics, direct printer commands in the respective printer language (PCL-5, PostScript or Prescribe) can also be contained in the file which is to be uploaded (printer macros). They are then transferred to the standard text unmodified.
    The graphics are output by inserting the standard text into the document which is to be printed, directly or using an INCLUDE command. The printer commands, which for example draw a company logo on the page, are only output if the print request is processed by the printer driver corresponding to the macro type, otherwise they are ignored. Example: A macro of type PCL is contained in a print request. If the request is output to a printer with type HPLJIIID (to which the driver HPL2 is assigned), the macro data is sent to the printer. If the request is printed on a printer of type POSTSCPT (to which the driver POST is assigned), the output of the macro data is suppressed.
    In the standard text, the printer commands are inserted between the HEX ... ENDHEX command lines in hex notation. Various report parameters allow the graphic or printer macro to be placed on the page or at the current text position. Note: When the /:HEX command line which precedes the macro appears in the text, a line break is generally made before the graphic is output. The output of the macro therefore begins in the next text line at the left window border of the current page window, as long as a shift to the right is not specified (see below).
    If your own printer macros are uploaded and not TIFF files, you must ensure yourself that the normal (text) output of the driver is not impaired when the printer commands are inserted in the output from the uploaded file. The printer drivers pass the data contained in the file to the printer unmodified, therefore without control over the individual actions this triggers on the printer. For example, syntax errors should not be generated by the PostScript commands (type POST), or form feeds should not be contained in the file (unless this was intended) for PCL-5 (type PCL).
    Restrictions:
    In general, the output of graphics generated via RSTXLDMC from R/3 is not suitable for mass printing (that is, unless you are using the "Graphic resident on printer" feature): the R/3 spooler has to hold significantly more data in its output files. If the graphics occur several times in a spool request, the data also reoccurs. Apart from this, the network is more heavily loaded in sending the increased volume of data to the printer and the printer output is slowed significantly (varies according to printer model) if raster graphics are output as well as the text.
    If your graphics reside on your printer during a printing job, the degree of 'correctness' with which they are printed depends on the amount of memory available in your printer. R/3 print drivers are unable to determine whether the amount of memory available is enough! If one of the graphics that you have marked as resident is not displayed, try reloading the graphic and switching off the parameter "Graphic resident on printer".
    When printing black and white graphics on PCL-5 printers, image data is compressed in order to greatly reduce the file size.
    The output of graphics and macros on PCL-5 printers, PostScript printers and device type SAPWIN (type BMON, BCOL, PCL, POST) is adapted to the page orientation used, that is if landscape is used instead of portrait, the graphic is also turned when output. This is not the case for the PRESCRIBE printers (type BMON, PRES)! With these printers, the graphic is not automatically turned when landscape is used, but appears on the page in the identical position as for portrait. You are therefore recommended not to output raster images when printing in landscape on PRESCRIBE printers.
    PRESCRIBE printers do not support the resolutions 200 and 600 dots per inch when printing raster images.
    Not all PCL-5 compatible printers support the resolutions 200 and 600 dots per inch when printing raster images.
    TIFF graphics with compression type 2 ("CCITT Group 3 1-Dimensional Modified Huffman run length encoding ") can currently not be imported although this is a component of the Baseline TIFF 6.0 specification for monochrome images.
    Color TIFF graphics with full color representation (ie. a lot more than 256 colors) are automatically converted into 256 gray levels when uploading with type BCOL.
    When TIFF graphics are converted to black and white raster images (type BMON, PCL, POST, PRES) there is no default simulation of gray levels or colors of the original image on the printer (for example, by using different tones of gray). Each pixel of the original image is converted to a white or black pixel on the printer according to its intensity value.
    The parameter "Number of TIFF gray levels" does, however, allow a simulation of gray/colour tones of the original image through levels of gray on the printer, when using type PCL, POST or PRES. This parameter is ignored for type BMON.
    The conversion of TIFF graphics can be so time-consuming that it is recommendable to execute the report RSTXLDMC in batch processing. Note: in batch, the file is always read from the file system of the application server (ie. not from the file system of the GUI).
    The length of an individual text in the text file is limited. When importing TIFF graphics with very large dimensions, especially if more than 2 gray levels are used, a termination can therefore occur when saving the standard text ("EXPORT_TOO_MUCH_DATA"). This restriction can only be avoided by reducing the TIFF graphics. Note: The display of a raster image in Postscript or PRESCRIBE format needs from two to three times as much space as displaying in PCL-5.
    When processing very large TIFF images on PostScript printers, a print termination can occur with PS error message "limitcheck". In this case the internal memory of the printer is insufficient to scale the required raster image. This implementation limit cannot be influenced by changing the report parameters when importing.
    Requirement
    The file which is to be uploaded can contain the following formats/ commands:
    Baseline TIFF 6.0 raster image files. The image information of the TIFF file is converted into black and white/color raster images when uploading. Note: As the TIFF format allows a variety of variants, only a basic set of TIFF 6.0 formats is supported here described in the TIFF 6.0 specification as Baseline TIFF 6.0.
    PCL : PCL-5, Hewlett Packard Printer Control Language 5 for HP LaserJet 3, 4, 5 series and compatible printers. The data is output by the printer driver HPL2 only.
    PRES: Kyocera PRESCRIBE for Kyocera laser printers. The data is output by the printer driver PRES only.
    POST: Adobe PostScript or EPS format (encapsulated PostScript ) for PostScript printers. The data is output by the printer driver POST only. In the upload, one of the end-of-file markers (CTRL-D, hex $04) which may be contained in the PostScript file is not transferred.
    For PostScript files which contain a bounding box entry (for example, all EPS files) the macro/graphic can be scaled to a size specified by the user. In this case, a small lead text and trailer are generated by the report for the macro data and inserted in the standard text.
    Parameters of RSTXLDMC
    File name
    Path and file name of the file to be uploaded in the file system of the R/3 frontend (dialog processing) or in the file system of the application server (batch processing)
    Type
    Way which the data contained in the file is to be converted. Possible values are BMON, BCOL, PCL, POST and PRES. With parameter values BMON and BCOL, a TIFF 6.0 file is expected. This is converted into either a black and white raster image (BMON) or a color raster image (BCOL). These raster images are printer-independent and can be printed using various printer types (see above).
    With parameter values PCL, POST and PRES, either a TIFF 6.0 file or a file with printer commands in the appropriate printer langauge is expected. If the file is a TIFF file, it is converted into a black and white raster image for the printer type specified in the parameter. The presence of a TIFF file is recognized automatically. If the file is not a TIFF file, the file contents are regarded as the printer macro of the respective type. Data loaded with type PCL, POST or PRES can only be printed on the respective printer type.
    Resolution for TIFF raster images
    Resolution which should be used when importing a TIFF raster image, in dots per inch (dpi). If an allowed value is entered here, this overrides the resolution information in the TIFF file. The allowed values are:
    75 dpi
    100 dpi
    150 dpi
    200 dpi (not for type PRES, for PCL only HP LaserJet 4,5 series)
    300 dpi
    600 dpi (not for type PRES, for PCL only HP LaserJet 4,5 series)
    Changing the resolution affects the size of the graphic on the printer. If a resolution of 300 dpi is stated in the TIFF file and this parameter is set to 75 dpi, the graphic is four times as big when printed as at the outset.
    Note: Kyocera PRESCRIBE printers do not support 200 and 600 dpi resolutions.
    Note: Not all PCL-5 printers support resolutions 200 and 600 dpi, for example HP LaserJet 3 series does not, but LaserJet 4 and 5 series do.
    Graphic Resident on Printer
    Normally, graphics that occur more than once in a printing job (a company logo that appears on each page, for example) are sent to the printer repeatedly each time they are needed. In order to avoid this kind of redundancy, you can select this checkbox on the selection screen. The R/3 print driver then stores the graphic in the printer's memory and the printer retrieves the 'resident' graphic memory every time that re-occurs in your job.
    Caution: Whether or not the printer correctly reproduces the graphic depends on the amount of memory available in the printer during the printing job! You should avoid using this feature with color graphics since they take up a lot more memory than monochrome graphics.
    This parameter can only be used with types "BMON" and "BCOL".
    Absolute positioning
    Determines whether the macro/graphic is positioned absolutely or is to be output at the current text position. If this checkbox is selected, the graphic is positioned absolutely (parameters "X-position" and "Y-position" are used), if this checkbox is not selected, the graphic is positioned at the current text position (parameters "Reserved height" and "Shift to right" are used)
    Absolute X-position
    Horizontal position (space from left border) of the macro/graphic, if absolute positioning is required. This is the parameter XPOS of the HEX command.
    Absolute Y-position
    Vertical position (space from upper border) of the macro/graphic, if absolute positioning is required. This is the parameter YPOS of the HEX command.
    Reserve height automatically
    If this checkbox is selected, the system automatically inserts the actual height of the graphic during printing into the subsequent "Reserved height" parameter.
    Reserved height
    If positioned at the current text position, this parameter specifies the horizontal spacing to be reserved for the macro/graphic, which must not be printed with text from the paragraph. This is the parameter HEIGHT of the HEX command.
    Shift to right
    If positioned at the current text position, this parameter specifies the space between the left border of the macro/graphic and the left border of the page window. If this value is increased, the macro/graphic is shifted to the right. This is the parameter LEFT of the HEX command.
    Unit of measurement for positioning
    The unit of measurement in which the position values (X,Y, height, shift) are specified. Possible values are CM (centimeters), MM (millimeters), IN (inches), PT (typographic point = 1/72 inch), TW (1/20 point = 1/1440 inch)
    Text title
    Comment used for the attribute "Title" of the standard text generated as well as as a comment line in the text itself
    Line width
    Number of columns to be used in the standard text when generating the HEX...ENDHEX command lines. The default value is 132
    Text name
    Name of the standard text to be generated. If an * character occurs in the name, it is replaced by the value of the parameter "Printer type". For example, if the entry is ZHEX-IMAGE1-* and the printer type = PCL, the text name ZHEX-IMAGE1-PCL is generated. The default value for the name is ZHEX-MACRO-<printer type>, but the standard text can be named as required (take into account customer reserve). Standard texts are client-dependent!
    Note: The name of a standard text can be up to 32 characters long !
    Text ID
    ID of the standard text to be generated. The default value is ST (general standard texts)
    Text language
    Language key of the standard text to be generated. The default value is the logon language
    PostScript scaling
    Flag which determines how the macros/graphics of type POST are handled. If set to 'X', the report expects a PostScript comment line in the file
    %%BoundingBox llx lly urx ury (e.g. %%BoundingBox -1.5 0 21.4 14.1)
    as present, for example, in all EPS files, in which the dimensions and the position of the macro/graphic are specified (if a bounding box comment is not included, 0 0 1 1 is assumed as the default value). This information is then used by the report to insert PostScript commands which scale the macro/graphic to the size specified in the parameters "Width" and "Height" (listed below).
    If the flag is set to ' ' (blank), the PostScript file is transferred to the standard text without any additions (any transformations to the coordinate system used by the printer driver must already be contained in the file).
    The flag must be set to 'X' for the import of TIFF files for type POST.
    Width according to PS scaling
    Required width of the macro/graphic if the flag PostScript scaling is set. Can remain at zero for the import of TIFF files, the size is then determined by the resolution of the graphic.
    Height according to PS scaling
    Required height of the macro/graphic if the flag PostScript scaling is set. Can remain at zero for the import of TIFF files, the size is then determined by the resolution of the graphic.
    If you want to scale the PostScript graphic with these parameters, one of the two values, width or height, can be specified with zero. The graphic is then scaled so that the width-to-height ratio remains unchanged and the original graphic is not distorted.
    Unit of measurement for PS scaling
    Unit of measurement in which the parameters "Width" and "Height" are specified. Possible values are CM (centimeters), MM (millimeters), IN (inches), PT (typographic point = 1/72 inch), TW (1/20 point = 1/1440 inch)
    Number of TIFF gray levels
    Number of gray tones which are to be used on the printer for displaying the original image. Note: This parameter is only evaluated when using types PCL, POST or PRES!
    Possible values are 2,4,9. With the default value 2, each pixel of the original image is converted either to a white or a black pixel on the printer. With the value 4, each pixel of the original image is converted on the printer with 4 pixels, which simulate 4 different gray levels. With the value 9, each pixel of the original image is converted on the printer with 9 pixels which simulate 9 different gray levels.
    Note: With values 4 or 9 the resolution of the image is doubled or tripled. The restrictions on the possible resolutions (see previous parameter) then apply for the resulting resolution.
    Output
    Individual steps of the upload procedure are logged in the report list generated and, if necessary, errors reported. The uploading of TIFF graphics, in particular, is cancelled if there is a variant which is not supported. A message to this effect is then issued. If execution is successful, the report generates a standard text with the key specified in the parameters. If the standard text already exists, a window appears with a warning before the text is overwritten.
    Regards,
    Ameer Baba.

  • Sapscript Standard Text Printing - Format Problem

    Heros,
                  I wanted to print one standard text(Basic Text of Process order) in sapscript.I am using the INCLUDE command instead of Read_text FM , so that I can keep the Paragraphs of that text intact.But I am falling short of two requirements of my client.
    1. He has highlighted Some words of the text and underlined some of the text. He wants that character format intact in spascript.How can I do that?
    2. The script initaly was using Read_Text and was storing the value in a variable wa_line and was printing in script as
    <b>[LI ]  DESCRIPTION:  &wa_line&</b>
    so it was printing like
    DESCRIPTION:   fasfoihfaishfiahfiafhfihfahfiashfiahfahfiafiasfihahfisahfafasi
    But now I am using INCLUDE command as follows
    <b>[LI] DESCRIPTION:
    [: /] INCLUDE OBJECT BLAH BLAH</b>
    So it is printing like
    <b>DESCRIPTION:
    fasfoihf
    aishfiahfiafhfihfa
    hfiashfiahfa
    hfiafiasfihahfisahfafasi</b>
    I want to get them in same line.
    I mean
    <b>DESCRIPTION: fasfoihf
    aishfiahfiafhfihfa
    hfiashfiahfa
    hfiafiasfihahfisahfafasi</b>
    Is that possible?
    <b>Reward Point Guranteed.</b>

    Hi Anid,
    When you are creating your standard text the default value in the tag column is *. If you change this value to = (Extended line) the display of standard text will start in the same line as the previous value (in your case it will display the standard text in the same line as DESCRIPTION:).
    Hope this solves your problem!
    Regards,
    Saurabh

  • Having trouble viewing the print preview of sapscript

    Hi experts,
    I am currently developing a driver program that calls 13 different sapscript forms (which are also customized - has n existing standards). so basically, the whole program and the forms are all from scratch.
    I've already executed the call function open, write and close forms, but everytime i test the program in the QAS, (the part where you can choose the print preview and the output device)
    and press the print preview button, a dialog box appears telling me:
    WRITE_FORM is invalid, OPEN_FORM is missing.
    But i clearly stated that in my program.
    Can anyone tell me how am i suppose to write the call functions that will let me see the print preview?
    Also, at this moment, i'm not passing anything yet from the program to the form, i just want to check if the form is being called.
    Thanks,
    Frank

    Hi Franklin,
    Order of calling OPEN_FORM,WRITE_FORM,CLOSE_FORM
    is  CALL FUNCTION 'OPEN_FORM'.
                LOOP AT ITAB.
                  CALL FUNCTION 'WRITE_FORM'  .
               ENDLOOP.
        CALL FUNCTION 'CLOSE_FORM'.
    You know this order.Now as you are calling more than 1 form
    we should call every form between
    CALL FUNCTION 'OPEN_FORM'.
    CALL FUNCTION 'START_FORM'.
    LOOP AT ITAB.
                  CALL FUNCTION 'WRITE_FORM'  .
               ENDLOOP.
    CALL FUNCTION 'END_FORM'.
    CALL FUNCTION 'CLOSE_FORM'.
    Try using this.
    Regards
    Lakshman

  • Print Terms & Conditions in the Back page in Sapscript

    Hello Experts,
    I need your help.
    I have one sapscript. I want print Terms&Conditions in the back page.
    My Sapscript is a copy of MEDRUCK.
    I want: When NACHA = 1 --> Print Terms&Conditions on the reverse side of each page.
              When NACHA = 5 --> Print Terms & Conditions in the last page (Not in the back).
    I did one example of sapscript with only one page First. I created a second page Back.
    The first point at Back and has the print mode 'D'.
    The Back point at First and doesn't has any print mode.
    My problem is:
    1- Always, i have the last page without Back page. Always  i have an odd number of pages. Normally i must have a peer number. Each page has the back page. But, is not the result.
    I tried to call NEW-PAGE BACK at the end of the last page First like that:
    If &NEXTPAGE = 0&
    NEW-PAGE BACK
    Endif.
    But doesn't work. NEW-PAGE works only in the Window Main and &NEXTPAGE& = 0 works only in a window not main. So, i can't use them at the same time, in the same window.
    Can any one help me please? I'm blocked and i can't resolve the problem?
    And what i must do for NACHA = 5?
    Thank you.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Aug 15, 2008 4:59 PM

    Hi,
    This problem is caused by the printer which does not understand the sapscript page commands.  Basically you need to embed printer specific commands for controlling output so that on particular conditions the output in printed double sided for the first 2 pages then each page single sided.
    This is not easy, and can change depending on the printer being used.  I would not recommend this type of action in SAPscript or SMARTforms.
    Cheers
    David Cooper

Maybe you are looking for

  • Excel 2010 "Save As" happens twice

    In Excel 2010, whenever I choose "Save As", it starts normally and performs the requested change. However, it then repeats itself as if I performed the "Save As" a second time. This does not happen in the other Office 2010 Pro Plus components. Does a

  • Imac late 2013 laggy gaming when moving camera

    Hey guys, on my 2nd late imac 2013 27 inch with the gtx 775m. I replaced my first imac because of yellow tinted screen....2nd screen has same yellow tint, if not worse so I decided to just keep it. Anyways, with my first imac I got a week ago I notic

  • Why can't i go on the internet but connected to wi-fi

    I've been having this problem for the past month.  My internet works fine at other locations, but when i get home my wi-fi status bar shows i'm connected, but i still dont have access to any programs requiring the internet.  I can not connect on safa

  • Error while renaming Search databases

    followed below steps to rename search dbs. http://blogs.technet.com/b/wbaer/archive/2013/12/18/how-to-rename-search-service-application-databases-on-the-same-server.aspx But getting error while pointing to new renamed DB. Please advice $SearchService

  • Restrict Authorization in SAP_ALL & SAP_NEW for SCC4 T-CODE only display

    hi, I want  to restrict 'Change' mode for SCC4 T-CODE to devuser having complete authorization with profiles SAP_ALL and SAP_NEW. Only 'Display' should be allowed for SCC4. For devuser no roles are assigned. For Other Users Roles are assigned with re