• Creando Formulario Inicial
    Se71

    1. Página inicial
    2. Crear una ventana
    3. Crear párrrafo por defecto
  • Creando un programa de impresión

    [Pag 171] El arte de programar en SAP…

  • Comandos SAPSCRIPT

  • Comandos

  • Impresión láser

    1. Creando un sistema de código de barras
    2. Incluyendo el sistema de código de barras en el SAPscript
      1. Creando un formato de caracter basado en el sistema de código de barras
      2. Introducir texto basado en el código de barras
    3. Cambiado el tamaño estándar del código de barras ( Ancho largo )
    Sapscript Barcode Printing
    Printing BAR Code in sap script
  • Impresión en Impresoras de ETIQUETAS

  • Opciones Creando el formulario.

  • 1.Creando Página inicial

    MENU Crear Elemento

    Por convención, simpre lapágina principal será llamada
    MAIN.

  • 2.- Crear una ventana en una página

    Ventana es el espacio en el cual vamos a trabajar para poder crear nuestros formularios.

    • Crear nuevo elemento en el menú
      Por cada Ventana Página que creemos, deberemos llenar sus atributos en la siguiente ventana (Que está al final dela pantalla).
  • 3. Crear párrafo por defecto


    Con el menú elemento nuevo
    Las Características al final de la pagina

    Regresar con Cabecera

  • Finalizando

    Seleccionamos Parametrizaciones básicas

    Verificamos que la Pagina sea la principal.

    Grabamos

    Activamos el Formulario


  • Para que un SAPScript pueda mostrar información, esta debe provenir de un programa. Este programa llama al formulario y le pasa toda la información necesaria. Es por eso, que vamos a crear un programa bastante sencillo para utilizar como ejemplo.

  • Cadenas de caracteres:
    Las cadenas de caracteres son elementos de edición para una parte de un párrafo y son insertadas directamente en el texto. El comienzo del ámbito de texto es marcado con y el final con </>, siendo XX el nombre de la cadena de caracteres definida en el formulario.

  • Sap Script Formatting options

    Formatting Options help.sap
  • SAPscript Control Commands

    help.SAP
  • 1. Creando un sistema de código de barras SE73

  • Incluyendo el CB en el SAPScript

    Se creo una nueva ventana para el CB

  • Introducir el texto

  • Probando

    • Imprimir físicamente
    • Escanear con una Tablet
  • 3. Cambiado el tamaño estándar del código de barras

    • Crear una copia de del la formato C128A_0 ZC128_0
    • Modificar el Formato de Carácter con el nuevo código de barras.
    • Modificar el Layout
  • Crear el Texto Estándar S010

    • Subir el texto estándar (formato ITF)
  • Insertar el texto estándar en el Form


    Referencia al Texto

  • Conexión del texto estándar con las variables


  • Impresión de Ubicaciones WM LM55

    Form: LVSBINPRINT

  • Encontrando el Texto estándar de una FORM

    SE71

    • Cabecera: Definiremos los atributos del formulario como el tipo de formulario, tamaño, forma de visualización, fuentes, etc..
    • Párrafos: Los párrafos son las principales unidades de edición en SAPscript. Cada texto creado en el editor está compuesto de varios párrafos. El comienzo de un párrafo va indicado por la marca de párrafo en la columna izquierda del editor. En el formulario se definen el nombre y las propiedades de los párrafos.
  • Una Pagina -> Muchas ventanas
    Un Formulario -> Mucha páginas.

  • Ver el Formulario

  • Datos de Conexión

    • FORM: ZDUMMY_FORM
      • PAGE: MAIN
        • Ventana: MAIN
      • Parrafo: MA
        • Elemento ITEM
           &<FS_PROGRAMAS>-ID_PROG&
           &<FS_PROGRAMAS>-NOMBRE_PROG&
  • LLAMAR UN FORMULARIO

     CALL FUNCTION 'OPEN_FORM'
              EXPORTING
                DEVICE = 'device'
                FORM = V_FORM
                LANGUAGE = 'S'
                OPTIONS = ITCPO
                ARCHIVE_INDEX = TOA_DARA
                DEVICE = 'PRINTER'
                DIALOG = 'X'
              EXCEPTIONS
                CANCELED = 01.

    Device: Es por donde saldrá el formulario:

    • printer
    • screen
    • telefax
    • fax
      form El nombre del formulario
  • ESCRIBIR EN UN FORMULARIO
    Para enviar datos del programa al formulario se usa la función WRITE_FORM

    CALL FUNCTION 'WRITE_FORM'
            EXPORTING
              ELEMENT = 'ITEM'
              WINDOW = 'MAIN'
           EXCEPTIONS
             OTHERS = 01.
  • Las tablas ITCPO, TOA_DARA y ITCPP son necesarias para poder ejecutar el SAPScript.

    TABLES: ZPROGRAMAS,ITCPO,TOA_DARA,ITCPP.
  • La variable V_FORM contendrá el nombre del formulario, mientras que la variable V_SCRIPT nos sirve para determinar si el formulario está activo o no.

    DATA: V_FORM(14) TYPE C, 
    V_SCRIPT.
  • Parámetro impresión, salida inmediata
    Parámetro impresión, borrar tras salida
    Parámetro impresión, tiempo de permanencia en SPOOL
    Visualización de impresión.

    ITCPO-TDIMMED = '*'.     
    ITCPO-TDDELETE = '*'. 
    ITCPO-TDLIFETIME = '7'. 
    ITCPO-TDPREVIEW = 'X'.
  • Iniciamos la ejecución del formulario.

    CALL FUNCTION 'START_FORM'
    EXPORTING
    FORM= V_FORM 
    LANGUAGE= 'S'.
  • Si la variable V_SCRIPT está vacía, entonces debemos abrir el formulario, para esto utilizamos el módulo de funciones OPEN_FORM.

    IFV_SCRIPT EQSPACE. 
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
    FORM= V_FORM 
    LANGUAGE= 'S'
    OPTIONS= ITCPO 
    ARCHIVE_INDEX= TOA_DARA 
    DEVICE = 'PRINTER'
    DIALOG = 'X'
    EXCEPTIONS
    CANCELED = 01. 
    IF SY-SUBRC NE 0. 
    EXIT. 
    ENDIF. 
    V_SCRIPT = 'X'. 
    ENDIF.
  • Hacemos un LOOPa la tabla interna T_ZPROGRAMAS y asignamos los valores al Field-Symbol . Por cada vuelta del LOOP, llamamos al módulo de funciones WRITE_FORMque lo que hace es llamar a la ventana de nuestro formulario.

    LOOP ATT_ZPROGRAMAS 
    ASSIGNING<FS_PROGRAMAS>. 
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
    ELEMENT= 'ITEM'
    WINDOW= 'MAIN'
    EXCEPTIONS
    OTHERS= 01. 
    ENDLOOP.
  • Con el módulo de funciones END_FORM indicamos que hemos terminado de utilizar la ventana. Si la variable V_SCRIPTno está vacía, cerramos el formulario con el módulo de funciones CLOSE_FORM.

    CALL FUNCTION 'END_FORM'
    IMPORTING
    RESULT = ITCPP. 
    IFV_SCRIPT NESPACE. 
    CALL FUNCTION 'CLOSE_FORM'. 
    ENDIF.
  • Output Length

    &symbol(length)&
  • Omitting the Leading Sign

    &symbol(S)&
  • Leading Sign to the Left

    &symbol(<)&
  • Leading Sign to the Right

    &symbol(>)&
  • Omitting Leading Zeros

    &symbol(Z)&
  • Space Compression

    &symbol(C)&
  • Number of Decimal Places

    &symbol(.N)&
  • Omitting the Separator for ‘Thousands’

    &symbol(T)&
  • Specifying an Exponent for Floating Point Numbers

    &symbol(EN)&
  • Right-Justified Output

    &symbol(R)&
  • Fill Characters

    &symbol(Ff)&f = fill character 
    Example: &KNA1-UMSAT(F*)& -> **700.00
  • Suppressing Output of Initial Values

    &symbol(I)&
  • Ignoring Conversion Routines

    &symbol(K)&
  • Date Mask

    /: SET DATE MASK = 'date_mask'

    Example:

    /: SET DATE MASK = 'MMMM DD, YYYY' 
            &DATE& -> March 01, 1997
  • Time Mask

    /: SET TIME MASK = 'time_mask'

    Example:

    /: SET TIME MASK = 'HH:MM' 
           &TIME& -> 10:08
  • BOX Command

    Effect: draws a box of the specified size at the specified position.
    Additions: 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.

  • POSITION Command

    /: 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).

    Additions: 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.

  • Lista de todos los CB

  • Se creo el Formato del código de barras

  • C1 para el código de barras

  • Impresión de salida

  • Escaneando

  • 1 Crear una Copia y Modificar el tipo de código de barras del sistema.


    -

    Nueva

    Nombre


    Escojamos Rotado

    Parámetros por defecto


    Aparece nuestro CB

  • Modificar el Formato de Carácter con el nuevo código de barras.

  • Modificar el Layout

  • EL RESULTADO

  • ELEMENT es el nombre del elemento de textos que deseamos enviarle datos ITEM

  • Unit: The following units of measurement may be used:
    TW (twip)
    PT (point)
    IN (inch)
    MM (millimeter)
    CM (centimeter)
    LN (line)
    CH (character)

  • Conversion factors:
    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

  • Example

    /: 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 grayscale 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.

    1. XORIGIN, YORIGIN: Origin of the coordinate system.
    2. WINDOW: Sets the values for the left and upper edges to match those of the current window (default setting).
    3. PAGE: Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm).
  • Example

    /: 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 left upper coordinate 1.5 cm to the left and 1 cm up.

{"cards":[{"_id":"53ee990415daa2ff28000107","treeId":"53b75b9bf8eaff873900008f","seq":2214437,"position":0.25,"parentId":null,"content":"[Suscribirse gratis a gingko](https://gingkoapp.com/sapscript)\n![](data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxQSE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ff873900008f","seq":2214417,"position":0.5,"parentId":null,"content":"![](https://lh3.googleusercontent.com/-b1rZUjRDyXw/AAAAAAAAAAI/AAAAAAAAMcI/l_Sn914Sau4/s120-c/photo.jpg)\nResumen de la utilización de SAP Script \n**Iván Castillo**\n[castillo.ivan@gmail.com](https://plus.google.com/u/0/+Iv%C3%A1nCastillodelatorre/posts)"},{"_id":"53b75eb2f8eaff8739000092","treeId":"53b75b9bf8eaff873900008f","seq":3037638,"position":1,"parentId":null,"content":"# **SapScript** SE71\n\n"},{"_id":"53b7ec2df8eaff87390000ab","treeId":"53b75b9bf8eaff873900008f","seq":2195216,"position":0.5,"parentId":"53b75eb2f8eaff8739000092","content":"**Creando Formulario Inicial**\nSe71 \n\n![](https://www.filepicker.io/api/file/sDgEZL8XSVul9CxOLHVl)\n\n1. Página inicial\n1. Crear una ventana\n1. Crear párrrafo por defecto"},{"_id":"53d1449e221ce604a00003e3","treeId":"53b75b9bf8eaff873900008f","seq":2193492,"position":0.25,"parentId":"53b7ec2df8eaff87390000ab","content":"##Opciones Creando el formulario.\n"},{"_id":"53d14ac8221ce604a00003e4","treeId":"53b75b9bf8eaff873900008f","seq":2193629,"position":1,"parentId":"53d1449e221ce604a00003e3","content":"* **Cabecera:** Definiremos los atributos del formulario como el tipo de formulario, tamaño, forma de visualización, fuentes, etc..\n* **Párrafos:** Los párrafos son las principales unidades de edición en SAPscript. Cada texto creado en el editor está compuesto de varios párrafos. El comienzo de un párrafo va indicado por la marca de párrafo en la columna izquierda del editor. En el formulario se definen el nombre y las propiedades de los párrafos.\n"},{"_id":"53b761f7f8eaff8739000093","treeId":"53b75b9bf8eaff873900008f","seq":2176490,"position":0.5,"parentId":"53b7ec2df8eaff87390000ab","content":"###**1.Creando Página inicial**\n![](https://www.filepicker.io/api/file/uTcnrSpSt35QbIigZZwg)\n\n**MENU** Crear Elemento\n![](https://www.filepicker.io/api/file/TCYiZPYxTE6OKrWO1OtZ)\nPor convención, simpre lapágina principal será llamada \nMAIN. \n![](https://www.filepicker.io/api/file/DO24Z8oNR2ZBUAHrBaCw)"},{"_id":"53b76ce0f8eaff8739000095","treeId":"53b75b9bf8eaff873900008f","seq":2176675,"position":0.5,"parentId":"53b761f7f8eaff8739000093","content":"Una Pagina -> Muchas ventanas\nUn Formulario -> Mucha páginas."},{"_id":"53b808bef8eaff87390000ad","treeId":"53b75b9bf8eaff873900008f","seq":2176561,"position":0.75,"parentId":"53b7ec2df8eaff87390000ab","content":"###**2.- Crear una ventana en una página**\nVentana es el espacio en el cual vamos a trabajar para poder crear nuestros formularios.\n![](https://www.filepicker.io/api/file/00RDs7IRSxj25Xn4ayUA)\n- Crear nuevo elemento en el menú\nPor cada Ventana Página que creemos, deberemos llenar sus atributos en la siguiente ventana (Que está al final dela pantalla). \n![](https://www.filepicker.io/api/file/cYHcPy9KQS61hoWEtOFT)"},{"_id":"53b8026cf8eaff87390000ac","treeId":"53b75b9bf8eaff873900008f","seq":2176648,"position":1,"parentId":"53b7ec2df8eaff87390000ab","content":"###**3. Crear párrafo por defecto** \n![](https://www.filepicker.io/api/file/kahM2IqReqyHloYsa9dD)\nCon el menú elemento nuevo \nLas Características al final de la pagina\n![](https://www.filepicker.io/api/file/yS3DvAQySOmgXMzsIvTn)\nRegresar con Cabecera\n![](https://www.filepicker.io/api/file/dUv9Ma6QOa8uMdoqAqyg)"},{"_id":"53b847bdf8eaff87390000ae","treeId":"53b75b9bf8eaff873900008f","seq":3037659,"position":2,"parentId":"53b7ec2df8eaff87390000ab","content":"# Finalizando\nSeleccionamos Parametrizaciones básicas\n![](https://www.filepicker.io/api/file/DPQalWZNRXullfSR7aBi)\nVerificamos que la Pagina sea la principal.\n![](https://www.filepicker.io/api/file/jSHF0nPiQnOJuWVenVrG)\nGrabamos\n![](https://www.filepicker.io/api/file/U2gWjIPBRrW36WKORvPO)\nActivamos el Formulario\n![](https://www.filepicker.io/api/file/aRShC2mQDuz8D4dw1ig0)\n...\n![](https://www.filepicker.io/api/file/VytK7ZRfQQOSKKkyFchX)"},{"_id":"53d1ac9f221ce604a0000442","treeId":"53b75b9bf8eaff873900008f","seq":2193844,"position":1,"parentId":"53b847bdf8eaff87390000ae","content":"**Ver el Formulario**![](https://www.filepicker.io/api/file/IdOaIOzS8aqqcagVWb44)\n...\n![](https://www.filepicker.io/api/file/jAgK3guRmKbMPegvRq4u)\n\n"},{"_id":"53d1b507221ce604a0000443","treeId":"53b75b9bf8eaff873900008f","seq":2211541,"position":2,"parentId":"53b847bdf8eaff87390000ae","content":"##**Datos de Conexión**\n\n* **FORM:** ZDUMMY_FORM\n - **PAGE:** MAIN\n - **Ventana:** MAIN\n - **Parrafo:** MA \n - **Elemento** ITEM\n```\n &<FS_PROGRAMAS>-ID_PROG&\n &<FS_PROGRAMAS>-NOMBRE_PROG&\n```"},{"_id":"53b769f8f8eaff8739000094","treeId":"53b75b9bf8eaff873900008f","seq":7427651,"position":2,"parentId":"53b75eb2f8eaff8739000092","content":"##Creando un programa de impresión\n[Pag 171] El arte de programar en SAP...\n "},{"_id":"53b853a6f8eaff87390000b0","treeId":"53b75b9bf8eaff873900008f","seq":2177444,"position":1,"parentId":"53b769f8f8eaff8739000094","content":"####Para que un **SAPScript** pueda mostrar información, esta debe provenir de un programa. Este programa llama al formulario y le pasa toda la información necesaria. Es por eso, que vamos a crear un programa bastante sencillo para utilizar como ejemplo."},{"_id":"53d28540221ce604a0000445","treeId":"53b75b9bf8eaff873900008f","seq":2194392,"position":0.5,"parentId":"53b853a6f8eaff87390000b0","content":"**LLAMAR UN FORMULARIO**\n```\n CALL FUNCTION 'OPEN_FORM'\n EXPORTING\n DEVICE = 'device'\n FORM = V_FORM\n LANGUAGE = 'S'\n OPTIONS = ITCPO\n ARCHIVE_INDEX = TOA_DARA\n DEVICE = 'PRINTER'\n DIALOG = 'X'\n EXCEPTIONS\n CANCELED = 01.\n```\n**Device:** Es por donde saldrá el formulario:\n * printer\n * screen\n * telefax\n * fax\n**form** El nombre del formulario"},{"_id":"53d2a064221ce604a0000447","treeId":"53b75b9bf8eaff873900008f","seq":2211538,"position":2,"parentId":"53b853a6f8eaff87390000b0","content":"**ESCRIBIR EN UN FORMULARIO**\nPara enviar datos del programa al formulario se usa la función *WRITE_FORM*\n```\nCALL FUNCTION 'WRITE_FORM'\n EXPORTING\n ELEMENT = 'ITEM'\n WINDOW = 'MAIN'\n EXCEPTIONS\n OTHERS = 01.\n```"},{"_id":"53d2a9b0221ce604a0000448","treeId":"53b75b9bf8eaff873900008f","seq":2194803,"position":1,"parentId":"53d2a064221ce604a0000447","content":"**ELEMENT** es el nombre del elemento de textos que deseamos enviarle datos ** ITEM **"},{"_id":"53d2009c221ce604a0000444","treeId":"53b75b9bf8eaff873900008f","seq":2194281,"position":9,"parentId":"53b769f8f8eaff8739000094","content":"[Programa de ejemplo ZFORM.ABAP](https://drive.google.com/open?id=0B-pxgxFIOXBHRzZlVUo5aHc2Wk0&authuser=0)"},{"_id":"53b9408ff8eaff87390000b1","treeId":"53b75b9bf8eaff873900008f","seq":2194292,"position":1.015625,"parentId":"53d2009c221ce604a0000444","content":"Las tablas ITCPO, TOA_DARA y ITCPP son necesarias para poder ejecutar el SAPScript. \n```\nTABLES: ZPROGRAMAS,ITCPO,TOA_DARA,ITCPP. \n```"},{"_id":"53b946dbf8eaff87390000b2","treeId":"53b75b9bf8eaff873900008f","seq":2194291,"position":1.03125,"parentId":"53d2009c221ce604a0000444","content":" La variable V_FORM contendrá el nombre del formulario, mientras que la variable V_SCRIPT nos sirve para determinar si el formulario está activo o no. \n````\nDATA: V_FORM(14) TYPE C, \nV_SCRIPT. \n````\n"},{"_id":"53b9553ff8eaff87390000b3","treeId":"53b75b9bf8eaff873900008f","seq":2194289,"position":1.0625,"parentId":"53d2009c221ce604a0000444","content":"Parámetro impresión, salida inmediata\nParámetro impresión, borrar tras salida\nParámetro impresión, tiempo de permanencia en SPOOL\nVisualización de impresión.\n````\nITCPO-TDIMMED = '*'. \t\nITCPO-TDDELETE = '*'. \nITCPO-TDLIFETIME = '7'. \nITCPO-TDPREVIEW = 'X'. \t\n````"},{"_id":"53b95c82f8eaff87390000b5","treeId":"53b75b9bf8eaff873900008f","seq":2194288,"position":1.125,"parentId":"53d2009c221ce604a0000444","content":"Iniciamos la ejecución del formulario. \n````\nCALL FUNCTION 'START_FORM'\nEXPORTING\nFORM= V_FORM \nLANGUAGE= 'S'. \n````"},{"_id":"53b95a3cf8eaff87390000b4","treeId":"53b75b9bf8eaff873900008f","seq":2194287,"position":1.25,"parentId":"53d2009c221ce604a0000444","content":"Si la variable V_SCRIPT está vacía, entonces debemos abrir el formulario, para esto utilizamos el módulo de funciones OPEN_FORM. \n````\nIFV_SCRIPT EQSPACE. \nCALL FUNCTION 'OPEN_FORM'\nEXPORTING\nFORM= V_FORM \nLANGUAGE= 'S'\nOPTIONS= ITCPO \nARCHIVE_INDEX= TOA_DARA \nDEVICE = 'PRINTER'\nDIALOG = 'X'\nEXCEPTIONS\nCANCELED = 01. \nIF SY-SUBRC NE 0. \nEXIT. \nENDIF. \nV_SCRIPT = 'X'. \nENDIF.\n````\n"},{"_id":"53b95f91f8eaff87390000b6","treeId":"53b75b9bf8eaff873900008f","seq":2194286,"position":1.5,"parentId":"53d2009c221ce604a0000444","content":"Hacemos un LOOPa la tabla interna T_ZPROGRAMAS y asignamos los valores al Field-Symbol <FS_PROGRAMAS>. Por cada vuelta del LOOP, llamamos al módulo de funciones WRITE_FORMque lo que hace es llamar a la ventana de nuestro formulario. \n````\nLOOP ATT_ZPROGRAMAS \nASSIGNING<FS_PROGRAMAS>. \nCALL FUNCTION 'WRITE_FORM'\nEXPORTING\nELEMENT= 'ITEM'\nWINDOW= 'MAIN'\nEXCEPTIONS\nOTHERS= 01. \nENDLOOP. \n````"},{"_id":"53b9674af8eaff87390000b7","treeId":"53b75b9bf8eaff873900008f","seq":2194284,"position":2,"parentId":"53d2009c221ce604a0000444","content":"Con el módulo de funciones END_FORM indicamos que hemos terminado de utilizar la ventana. Si la variable V_SCRIPTno está vacía, cerramos el formulario con el módulo de funciones CLOSE_FORM. \n````\nCALL FUNCTION 'END_FORM'\nIMPORTING\nRESULT = ITCPP. \nIFV_SCRIPT NESPACE. \nCALL FUNCTION 'CLOSE_FORM'. \nENDIF.\n````"},{"_id":"53b7e84ef8eaff87390000aa","treeId":"53b75b9bf8eaff873900008f","seq":3037656,"position":3,"parentId":"53b75eb2f8eaff8739000092","content":"# Comandos SAPSCRIPT"},{"_id":"53d166a9221ce604a00003e5","treeId":"53b75b9bf8eaff873900008f","seq":2210975,"position":0.25,"parentId":"53b7e84ef8eaff87390000aa","content":"**Cadenas de caracteres:**\nLas cadenas de caracteres son elementos de edición para una parte de un párrafo y son insertadas directamente en el texto. El comienzo del ámbito de texto es marcado con <XX> y el final con </>, siendo XX el nombre de la cadena de caracteres definida en el formulario.\n\n"},{"_id":"53d46551221ce604a000044b","treeId":"53b75b9bf8eaff873900008f","seq":2195105,"position":0.5,"parentId":"53b7e84ef8eaff87390000aa","content":"##Sap Script Formatting options\n\n#####[Formatting Options help.sap](http://help.sap.com/saphelp_47x200/helpdata/en/d1/803411454211d189710000e8322d00/content.htm)"},{"_id":"53d46635221ce604a000044c","treeId":"53b75b9bf8eaff873900008f","seq":2195032,"position":1,"parentId":"53d46551221ce604a000044b","content":"**Output Length**\n~~~\n&symbol(length)&\n~~~"},{"_id":"53d46af1221ce604a000044e","treeId":"53b75b9bf8eaff873900008f","seq":2195069,"position":2,"parentId":"53d46551221ce604a000044b","content":"**Omitting the Leading Sign**\n~~~\n&symbol(S)&\n~~~"},{"_id":"53d4857b221ce604a000044f","treeId":"53b75b9bf8eaff873900008f","seq":2195070,"position":3,"parentId":"53d46551221ce604a000044b","content":"**Leading Sign to the Left**\n~~~\n&symbol(<)&\n~~~"},{"_id":"53d48668221ce604a0000450","treeId":"53b75b9bf8eaff873900008f","seq":2195071,"position":4,"parentId":"53d46551221ce604a000044b","content":"**Leading Sign to the Right**\n~~~\n&symbol(>)&\n~~~"},{"_id":"53d486bd221ce604a0000451","treeId":"53b75b9bf8eaff873900008f","seq":2195076,"position":5,"parentId":"53d46551221ce604a000044b","content":"**Omitting Leading Zeros**\n~~~\n&symbol(Z)&\n~~~"},{"_id":"53d48829221ce604a0000452","treeId":"53b75b9bf8eaff873900008f","seq":2195079,"position":6,"parentId":"53d46551221ce604a000044b","content":"**Space Compression**\n~~~\n&symbol(C)&\n~~~\n"},{"_id":"53d488b7221ce604a0000453","treeId":"53b75b9bf8eaff873900008f","seq":2195083,"position":7,"parentId":"53d46551221ce604a000044b","content":"**Number of Decimal Places**\n~~~\n&symbol(.N)&\n~~~"},{"_id":"53d48915221ce604a0000454","treeId":"53b75b9bf8eaff873900008f","seq":2195084,"position":8,"parentId":"53d46551221ce604a000044b","content":"**Omitting the Separator for ‘Thousands’**\n~~~\n&symbol(T)&\n~~~"},{"_id":"53d4895d221ce604a0000455","treeId":"53b75b9bf8eaff873900008f","seq":2195085,"position":9,"parentId":"53d46551221ce604a000044b","content":"**Specifying an Exponent for Floating Point Numbers**\n~~~\n&symbol(EN)&\n~~~"},{"_id":"53d489a8221ce604a0000456","treeId":"53b75b9bf8eaff873900008f","seq":2195086,"position":10,"parentId":"53d46551221ce604a000044b","content":"**Right-Justified Output**\n~~~\n&symbol(R)&\n~~~"},{"_id":"53d489ee221ce604a0000457","treeId":"53b75b9bf8eaff873900008f","seq":2195087,"position":11,"parentId":"53d46551221ce604a000044b","content":"**Fill Characters**\n~~~\n&symbol(Ff)&f = fill character \nExample: &KNA1-UMSAT(F*)& -> **700.00 \n~~~"},{"_id":"53d48a3c221ce604a0000458","treeId":"53b75b9bf8eaff873900008f","seq":2195088,"position":12,"parentId":"53d46551221ce604a000044b","content":"**Suppressing Output of Initial Values**\n~~~\n&symbol(I)&\n~~~"},{"_id":"53d48a8e221ce604a0000459","treeId":"53b75b9bf8eaff873900008f","seq":2195089,"position":13,"parentId":"53d46551221ce604a000044b","content":"**Ignoring Conversion Routines**\n~~~\n&symbol(K)&\n~~~"},{"_id":"53d48ae7221ce604a000045a","treeId":"53b75b9bf8eaff873900008f","seq":2195096,"position":14,"parentId":"53d46551221ce604a000044b","content":"**Date Mask**\n~~~\n/: SET DATE MASK = 'date_mask' \n~~~\nExample: \n~~~\n/: SET DATE MASK = 'MMMM DD, YYYY' \n &DATE& -> March 01, 1997 \n~~~"},{"_id":"53d48c23221ce604a000045b","treeId":"53b75b9bf8eaff873900008f","seq":2195098,"position":15,"parentId":"53d46551221ce604a000044b","content":"**Time Mask**\n~~~\n/: SET TIME MASK = 'time_mask'\n~~~ \nExample: \n~~~\n/: SET TIME MASK = 'HH:MM' \n &TIME& -> 10:08\n~~~"},{"_id":"53d46978221ce604a000044d","treeId":"53b75b9bf8eaff873900008f","seq":2195115,"position":1,"parentId":"53b7e84ef8eaff87390000aa","content":"##SAPscript Control Commands\n#####[help.SAP](http://help.sap.com/saphelp_nw73ehp1/helpdata/en/4e/37991b862135aae10000000a42189c/content.htm)"},{"_id":"53d49b30221ce604a000045c","treeId":"53b75b9bf8eaff873900008f","seq":2195161,"position":1,"parentId":"53d46978221ce604a000044d","content":"###**BOX Command**\n**Effect:** draws a box of the specified size at the specified position.\n**Additions:** 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."},{"_id":"53d49ea6221ce604a000045d","treeId":"53b75b9bf8eaff873900008f","seq":2195149,"position":1,"parentId":"53d49b30221ce604a000045c","content":"**Unit:** The following units of measurement may be used:\nTW (twip)\nPT (point)\nIN (inch)\nMM (millimeter)\nCM (centimeter)\nLN (line)\nCH (character)"},{"_id":"53d49f6b221ce604a000045e","treeId":"53b75b9bf8eaff873900008f","seq":2195152,"position":2,"parentId":"53d49b30221ce604a000045c","content":"**Conversion factors:**\n1 TW = 1/20 PT\n1 PT = 1/72 IN\n1 IN = 2.54 CM\n1 CM = 10 MM\n1 CH = height of a character relative to the CPI specification in the form header\n1 LN = height of a line relative to the LPI specification in the form header"},{"_id":"53d4a2ac221ce604a000045f","treeId":"53b75b9bf8eaff873900008f","seq":2195158,"position":3,"parentId":"53d49b30221ce604a000045c","content":"**Example**\n~~~\n/: BOX FRAME 10 TW\n~~~\nDraws a frame around the current window with a frame thickness of 10 TW (= 0.5 PT).\n~~~\n/: BOX INTENSITY 10\n~~~\nFills the window background with shading having a grayscale of 10%.\n~~~\n/: BOX HEIGHT 0 TW FRAME 10 TW\n~~~\nDraws a horizontal line across the complete top edge of the window.\n~~~\n/: BOX WIDTH 0 TW FRAME 10 TW\n~~~\nDraws a vertical line along the complete height of the left hand edge of the window.\n~~~\n/: BOX WIDTH '17.5' CM HEIGHT 1 CM FRAME 10 TW INTENSITY 15\n/: BOX WIDTH '17.5' CM HEIGHT '13.5' CM FRAME 10 TW\n/: BOX XPOS '10.0' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW\n/: BOX XPOS '13.5' CM WIDTH 0 TW HEIGHT '13.5' CM FRAME 10 TW\n~~~\nDraws two rectangles and two lines to construct a table of three columns with a highlighted heading."},{"_id":"53d4a6e6221ce604a0000460","treeId":"53b75b9bf8eaff873900008f","seq":2195162,"position":2,"parentId":"53d46978221ce604a000044d","content":"###**POSITION Command**\n/: POSITION [XORIGIN] [YORIGIN] [WINDOW] [PAGE]\n**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).\n\n**Additions:** 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."},{"_id":"53d4ad88221ce604a0000461","treeId":"53b75b9bf8eaff873900008f","seq":2195165,"position":1,"parentId":"53d4a6e6221ce604a0000460","content":"1. XORIGIN, YORIGIN: Origin of the coordinate system.\n2. WINDOW: Sets the values for the left and upper edges to match those of the current window (default setting).\n3. PAGE: Sets the values for the left and upper edges to match those of the current output page (XORIGIN = 0 cm, YORIGIN = 0 cm)."},{"_id":"53d4aeb4221ce604a0000462","treeId":"53b75b9bf8eaff873900008f","seq":2195166,"position":2,"parentId":"53d4a6e6221ce604a0000460","content":"**Example**\n~~~\n/: POSITION WINDOW\n~~~\nSets the origin for the coordinate system to the upper left corner of the window.\n~~~\n/: POSITION XORIGIN 2 CM YORIGIN '2.5 CM'\n~~~\nSets 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.\n~~~\n/: POSITION XORIGIN '-1.5' CM YORIGIN -1 CM\n~~~\nShifts the origin for the left upper coordinate 1.5 cm to the left and 1 cm up."},{"_id":"6b0189e5f3f82cdc510000ba","treeId":"53b75b9bf8eaff873900008f","seq":7853205,"position":4,"parentId":"53b75eb2f8eaff8739000092","content":"## Comandos\n![](https://www.filepicker.io/api/file/fi3nQhnZRn2IspuTrVmF)"},{"_id":"53ebb4d0b7f3fa45ac0001f0","treeId":"53b75b9bf8eaff873900008f","seq":3037639,"position":1.25,"parentId":null,"content":"# Impresión de Códigos de Barras"},{"_id":"53e1a07eb7f3fa45ac0000cc","treeId":"53b75b9bf8eaff873900008f","seq":2212366,"position":0.5,"parentId":"53ebb4d0b7f3fa45ac0001f0","content":"# Impresión láser\n1. Creando un sistema de código de barras \n1. Incluyendo el sistema de código de barras en el SAPscript\n 1. Creando un formato de caracter basado en el sistema de código de barras\n 1. Introducir texto basado en el código de barras\n1. Cambiado el tamaño estándar del código de barras ( Ancho largo )\n\n#####[Sapscript Barcode Printing](http://wiki.scn.sap.com/wiki/display/ABAP/Step-by-step+Sapscript+Barcode+Printing)\n#####[Printing BAR Code in sap script](http://scn.sap.com/thread/703877)"},{"_id":"53e1ae0ab7f3fa45ac0000cd","treeId":"53b75b9bf8eaff873900008f","seq":2210963,"position":1,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"## 1. Creando un sistema de código de barras **SE73**\n![](https://www.filepicker.io/api/file/LKNLVjJjR2qprAkYgwQg)"},{"_id":"53eb8d63b7f3fa45ac0001eb","treeId":"53b75b9bf8eaff873900008f","seq":2210964,"position":1,"parentId":"53e1ae0ab7f3fa45ac0000cd","content":"**Lista de todos los CB**\n![](https://www.filepicker.io/api/file/6ydaQpRdSiaclbgLlxdG)"},{"_id":"53d41110221ce604a000044a","treeId":"53b75b9bf8eaff873900008f","seq":2210949,"position":2,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"## Incluyendo el CB en el SAPScript\n\n**Se creo una nueva ventana para el CB**\n\n![](https://www.filepicker.io/api/file/wnLBlhrxT7uUAWFzhDAd)"},{"_id":"53eb7d5db7f3fa45ac0001e7","treeId":"53b75b9bf8eaff873900008f","seq":2210967,"position":1,"parentId":"53d41110221ce604a000044a","content":"**Se creo el Formato del código de barras**\n![](https://www.filepicker.io/api/file/pz9NeMp5RiGGjBIr0YX9)\n"},{"_id":"53eb8e43b7f3fa45ac0001ec","treeId":"53b75b9bf8eaff873900008f","seq":2210968,"position":2,"parentId":"53d41110221ce604a000044a","content":"**C1 para el código de barras**\n![](https://www.filepicker.io/api/file/XGj61eWZSSSG9gROolp1)"},{"_id":"53eb809fb7f3fa45ac0001e8","treeId":"53b75b9bf8eaff873900008f","seq":2210955,"position":3,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"##Introducir el texto\n![](https://www.filepicker.io/api/file/FPcqdRjSto8bulgV5yQT)"},{"_id":"53eb8656b7f3fa45ac0001e9","treeId":"53b75b9bf8eaff873900008f","seq":2211595,"position":4,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"###Probando\n* Imprimir físicamente \n* Escanear con una Tablet"},{"_id":"53eb8fb9b7f3fa45ac0001ed","treeId":"53b75b9bf8eaff873900008f","seq":2210972,"position":2,"parentId":"53eb8656b7f3fa45ac0001e9","content":"**Impresión de salida**\n![](https://www.filepicker.io/api/file/XEJtQuVPTQuzrDXOg2dw)"},{"_id":"53eb8ff3b7f3fa45ac0001ee","treeId":"53b75b9bf8eaff873900008f","seq":2210973,"position":3,"parentId":"53eb8656b7f3fa45ac0001e9","content":"**Escaneando**\n![](https://www.filepicker.io/api/file/7VvRBXafSbiwqx3QK95w)"},{"_id":"53eb882db7f3fa45ac0001ea","treeId":"53b75b9bf8eaff873900008f","seq":2212340,"position":5,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"## 3. Cambiado el tamaño estándar del código de barras \n* Crear una copia de del la formato C128A_0 ZC128_0 \n* Modificar el Formato de Carácter con el nuevo código de barras.\n* Modificar el Layout\n"},{"_id":"53d30f69221ce604a0000449","treeId":"53b75b9bf8eaff873900008f","seq":2212326,"position":1,"parentId":"53eb882db7f3fa45ac0001ea","content":"###**1 Crear una Copia y Modificar el tipo de código de barras del sistema.**\n![](https://www.filepicker.io/api/file/aWRxweTsRHKD5S4j2DUg)\n-\n![](https://www.filepicker.io/api/file/UGXtxFSFmNDIMRnDeeKA)\nNueva\n![](https://www.filepicker.io/api/file/WP1jmgJtRsS390Mblmna)\nNombre\n![](https://www.filepicker.io/api/file/jF8uI1bYQly4izFHne6w)\n![](https://www.filepicker.io/api/file/K3u668CTQcm8XfVEnfbp)\nEscojamos Rotado\n![](https://www.filepicker.io/api/file/xv8fRbPkTTObCWOHXc4t)\nParámetros por defecto\n![](https://www.filepicker.io/api/file/MIPvvdW4Q8qBGTOpVEvw)\n![](https://www.filepicker.io/api/file/yhutC0TPRJSkKAtGke0r)\nAparece nuestro CB\n![](https://www.filepicker.io/api/file/nW5XyLffTqGTjnwVksWU)"},{"_id":"53ebbb20b7f3fa45ac0001f3","treeId":"53b75b9bf8eaff873900008f","seq":2212333,"position":1.5,"parentId":"53eb882db7f3fa45ac0001ea","content":"###**Modificar el Formato de Carácter con el nuevo código de barras.**\n![](https://www.filepicker.io/api/file/c3XfSzLyR7Kyb1Lp5S5A)\n"},{"_id":"53e18d2ab7f3fa45ac0000ca","treeId":"53b75b9bf8eaff873900008f","seq":2212350,"position":2,"parentId":"53eb882db7f3fa45ac0001ea","content":"###**Modificar el Layout**\n![](https://www.filepicker.io/api/file/ku0sACD5RZ6jBPgLtaz0)"},{"_id":"53ed1d7115daa2ff2800005a","treeId":"53b75b9bf8eaff873900008f","seq":2212352,"position":3,"parentId":"53eb882db7f3fa45ac0001ea","content":"###**EL RESULTADO**\n![](https://www.filepicker.io/api/file/Q66bpRRST0aprBuH29CW)"},{"_id":"53d291ff221ce604a0000446","treeId":"53b75b9bf8eaff873900008f","seq":2212356,"position":6,"parentId":"53e1a07eb7f3fa45ac0000cc","content":"[SAP NOTA 45643 - Barcode control sequences for JetCAPS/Jetmobile BarDIMM](https://drive.google.com/open?id=0B-pxgxFIOXBHMVpOcFE3U2lTTGs&authuser=0)"},{"_id":"53ebb557b7f3fa45ac0001f1","treeId":"53b75b9bf8eaff873900008f","seq":2211637,"position":1,"parentId":"53ebb4d0b7f3fa45ac0001f0","content":"##Impresión en Impresoras de ETIQUETAS"},{"_id":"53ed287815daa2ff2800005b","treeId":"53b75b9bf8eaff873900008f","seq":2214352,"position":1,"parentId":"53ebb557b7f3fa45ac0001f1","content":"###**Crear el Texto Estándar S010**\n\n* Subir el texto estándar (formato ITF)\n![](https://www.filepicker.io/api/file/UQFNru4xRziXpdPBfVYj)\n\n"},{"_id":"53ebb0d6b7f3fa45ac0001ef","treeId":"53b75b9bf8eaff873900008f","seq":2214361,"position":2,"parentId":"53ebb557b7f3fa45ac0001f1","content":"###**Insertar el texto estándar en el Form**\n![](https://www.filepicker.io/api/file/vBonmzfOQ9u0YQdpGHzU)\nReferencia al Texto \n![](https://www.filepicker.io/api/file/pfVxnhdeT56erl7BiFxy)"},{"_id":"53de72f4b7f3fa45ac0000c9","treeId":"53b75b9bf8eaff873900008f","seq":2214370,"position":3,"parentId":"53ebb557b7f3fa45ac0001f1","content":"###**Conexión del texto estándar con las variables**\n![](https://www.filepicker.io/api/file/CGInG79DTxSZI8ChoAd8)\n![](https://www.filepicker.io/api/file/5jaWypG7QynROdwIWqVR)"},{"_id":"53ee794f15daa2ff280000b1","treeId":"53b75b9bf8eaff873900008f","seq":2214413,"position":3,"parentId":"53de72f4b7f3fa45ac0000c9","content":"![](https://www.filepicker.io/api/file/JaZJu5TQIaynLAzBHZMs)\n[Generando el texto desde Zebra Video](https://www.youtube.com/watch?v=BuvhbIjfwKY)"},{"_id":"595c0bf2c290840371000138","treeId":"53b75b9bf8eaff873900008f","seq":3069445,"position":4,"parentId":"53de72f4b7f3fa45ac0000c9","content":"http://www.ibscanner.com/online-barcode-scanner"},{"_id":"53ebb608b7f3fa45ac0001f2","treeId":"53b75b9bf8eaff873900008f","seq":2212374,"position":4,"parentId":"53ebb557b7f3fa45ac0001f1","content":"###**Impresión de Ubicaciones WM LM55**\n\nForm: LVSBINPRINT"},{"_id":"6256650106cd5323700000a1","treeId":"53b75b9bf8eaff873900008f","seq":5921676,"position":5,"parentId":"53ebb557b7f3fa45ac0001f1","content":"## Encontrando el Texto estándar de una FORM\n**SE71**"},{"_id":"56a23de46b1f1cee1a45b1b0","treeId":"53b75b9bf8eaff873900008f","seq":5921680,"position":1,"parentId":"6256650106cd5323700000a1","content":""},{"_id":"625668e406cd5323700000a2","treeId":"53b75b9bf8eaff873900008f","seq":5921681,"position":1.5,"parentId":"6256650106cd5323700000a1","content":"![](https://www.filepicker.io/api/file/L6PBJCamQyGXSkriK5d9)"},{"_id":"62566a2e06cd5323700000a3","treeId":"53b75b9bf8eaff873900008f","seq":5921683,"position":2,"parentId":"6256650106cd5323700000a1","content":"![](https://www.filepicker.io/api/file/iD7Hn4gqQhiK46cbZWci)"},{"_id":"62566b1106cd5323700000fb","treeId":"53b75b9bf8eaff873900008f","seq":5921685,"position":3,"parentId":"6256650106cd5323700000a1","content":"![](https://www.filepicker.io/api/file/1PKD4bLeT1SqyQhTJwQZ)"},{"_id":"6257784a06cd5323700000fc","treeId":"53b75b9bf8eaff873900008f","seq":5922159,"position":2,"parentId":"53ebb4d0b7f3fa45ac0001f0","content":"### [Imprimir OTS](http://www.saptechnical.com/Tutorials/Smartforms/TO/Index.htm)"},{"_id":"53e18de0b7f3fa45ac0000cb","treeId":"53b75b9bf8eaff873900008f","seq":2211533,"position":1.5,"parentId":null,"content":"##**Filosofía**\n* El texto se debe acomodar de acuerdo al párrafo, linea a linea.\n* Las imágenes BOX se acomodan por aparte con xpos ypos \n**Son máscaras diferentes**\n![](https://www.filepicker.io/api/file/JcxInhkhSjyetLlW7Sow)\n\n"},{"_id":"53ba327922c14c914d00002f","treeId":"53b75b9bf8eaff873900008f","seq":2211511,"position":2,"parentId":null,"content":"##**Bibliografia**\n[Manual PDF ***](http://www.abap.es/Descargas/Form%20-%20Manual%20SapScript.pdf)\n[SAPScript Important Programs](http://www.erpgreat.com/sapscripts/sapscript-important-programs.htm)\n[Barcodes and SAPscript forms](http://wiki.scn.sap.com/wiki/display/ABAP/Barcodes+and+SAPscript+forms)\n[ bar code printing](http://www.saptechnical.com/Tutorials/Smartforms/Barcode/Index.htm)\n[Comparing Smart Forms to SAPscript](http://www.ossincorp.com/Black_Box/Black_Box_2.php)\n[Send Custom Mail after creation PO with SapScript PDF attachment](http://scn.sap.com/blogs/mobility/2012/03/27/send-custom-mail-after-creation-po-with-sapscript-pdf-attachment)"}],"tree":{"_id":"53b75b9bf8eaff873900008f","name":"SAPSCRIPT","publicUrl":"sapscript"}}