✒️ABAP / La construcción del formulario: configuración general, páginas y ventanas Por Jaime Gomez Arango

ABAP La construcción del formulario: configuración general, páginas y ventanas

ABAP La construcción del formulario: configuración general, páginas y ventanas

FORM DESIGN: GENERAL SETTINGS, PAGES, AND WINDOWS

GENERAL CONFIGURATION OF A SMARTFORM

In the SMARTFORMS transaction, we encounter the first item in the GLOBAL SETTINGS folder with its attributes, where we assign a description to our form.

GLOBAL SETTINGS => FORM ATTRIBUTES

The language of form creation can be found here. We can effortlessly translate to various languages.

In the OUTPUT OPTIONS tab, we configure the following:

  • For page format, we leave the default option, which is A4, corresponding to a standard A4 sheet.
  • For characters per inch, we stick with the default option, 10.00.
  • For lines per inch, we also keep the default option, 6.00.
  • For style, we enter the name of the style we created in the first lesson of the unit.
  • The output format will be the default one.

GLOBAL SETTINGS => FORM INTERFACE

Here, we specify the variables, structures, and tables received as input by the form.

In the Tables tab, we complement with TI_USERS. To specify the table type:

  • We create a TYPE TABLE in transaction SE11, selecting the Type Table option.

  • We enter a description and the structure excluding the client and activate it.

  • Finally, we use the table type in the table declaration.

GLOBAL SETTINGS => GLOBAL DEFINITIONS

  • Global Data: We specify variables, constants, internal tables, etc., for the form.
  • Types: We declare the types used in the form.
  • Field Symbols: We declare Field Symbols for the form.
  • Initialization: We declare the code needed to execute the form, including subroutine calls.
  • Initialization: Here, we declare the code needed to execute the form, including subroutine calls, for example, to fetch specific data from SAP tables. Remember to concentrate data selection in the printed program where possible.
  • Form Routines: We declare the code of all subroutines specified in the Initialization tab.
  • Currency/Quantity Fields: We specify the amount fields used in the form.

Smartforms, like ABAP programs, need activation.

ELEMENTS COMPOSING A SMARTFORM

  • Pages: Pages in ABAP Smartforms are the canvas on which various elements of the form are placed. A form may consist of one or more pages, with each page representing a segment of the output document. Pages help organize and structure the content of the form, facilitating the presentation of data.
  • Windows: Windows in ABAP Smartforms are designated areas within a page where data and other elements are displayed. They serve as containers for text, graphics, tables, and other visual components. Windows enable the arrangement and layout of content on the page, allowing for precise control over the appearance of the form.
  • Graphics: Graphics refer to visual elements such as images, logos, or diagrams that can be included in ABAP Smartforms. They enhance the visual appeal of the form and can convey additional information to the end-user. Graphics are often used to brand documents or provide illustrative content.
  • Text Elements: Text elements in ABAP Smartforms are used to display textual content within the form. They allow for the insertion of static text, dynamic text generated from variables or data fields, and formatted text with different fonts, sizes, and styles. Text elements are fundamental for conveying information and instructions in the form.
  • Text Modules: Text modules in ABAP Smartforms are reusable blocks of text that can be inserted into the form. They are particularly useful for standardizing text segments that appear frequently across multiple forms or pages. Text modules simplify form maintenance and ensure consistency in language and terminology.
  • Addresses: Addresses in ABAP Smartforms represent fields or placeholders for displaying contact information such as names, addresses, phone numbers, and email addresses. They are commonly used in forms such as invoices, delivery notes, or letters to communicate recipient details effectively.
  • Tables: Tables in ABAP Smartforms are used to organize and present structured data in a tabular format. They consist of rows and columns where data fields are populated dynamically from internal tables or database queries. Tables allow for the efficient display of data in a structured manner, making it easier for users to interpret and analyze information.
  • Conditions: Conditions in ABAP Smartforms are rules or criteria that determine whether certain elements or sections of the form should be displayed or hidden based on specific conditions. They enable dynamic content visibility and customization, allowing forms to adapt to varying data or user inputs.
  • Loops: Loops in ABAP Smartforms are used to iterate over collections of data, such as internal tables or database result sets, and repeat certain elements or sections of the form for each iteration. Loops facilitate the dynamic generation of content based on the size or characteristics of the data set, improving form flexibility and scalability.
  • Code Lines: Code lines in ABAP Smartforms refer to segments of ABAP code embedded within the form for implementing custom logic or functionality. They can be used to perform calculations, manipulate data, or control the flow of the form based on specific requirements. Code lines extend the capabilities of Smartforms beyond basic layout and presentation.
  • Commands: Commands in ABAP Smartforms are predefined actions or operations that can be applied to form elements or executed within the form processing logic. They include functions such as navigating between pages, submitting data, or triggering events based on user interactions. Commands enhance the interactivity and usability of Smartforms.
  • Folders: Folders in ABAP Smartforms are organizational containers used to group related elements or sections within the form. They help maintain a structured hierarchy and simplify form navigation and management. Folders can be used to organize form components such as pages, windows, graphics, or text elements, making it easier to locate and maintain specific parts of the form.

PAGES

A form consists of one or more pages. The main page is the starting page that already exists when the form is created. We must rename it and provide a description since ABAP assigns a generic name by default, which in this case is %PAGE1. We'll change it to FIRST with the description "First page".

In the General Properties tab, we can specify the next page, if any, after the FIRST; if no other page exists, we leave the main page as the next one.

The pages of a form differ in their structure. For example, the first page of an invoice contains addresses not to be shown on the next page but business general terms to be shown on the last page. For each page, a following page must be specified to establish a page sequence. We can also call the same page repeatedly for recursive output, e.g., if the item list of the invoice is too long for a single page document. Any page break is automatically triggered by the main window or can be manually coded in the form logic.

Many forms contain only one page with different structures: the first one calling the next, and the next calling itself. If the text doesn't fully fit on the second page, another page is automatically displayed.

OUTPUT OPTIONS tab: we specify the page format, whether Portrait or Landscape, and print mode characteristics in the printing mode option.

BACKGROUND PICTURE tab: we add a background image, ensuring to complete the OUTPUT MODE option with the output type to respect the graphic. We must upload the image to SAP.

WINDOWS

Windows are output areas for the data shown within the pages of the form. When creating a new form, the MAIN window is automatically generated within the %PAGE1 page.

There are various window types, but generally, two are used: the main MAIN WINDOW, which can be one per page, and secondary or Auxiliary Windows, which can exist as many as needed.

The main features of windows include:

  • Windows can be positioned anywhere on a page, even overlapping each other.
  • The same window can be used on multiple pages of a form so that the same contents are displayed on all pages.
  • Different sizes can be chosen for each window on each page except for the main window.
  • The main window displays information that can span several pages. When the main window on the first page is filled, the system continues to show the main window's contents on subsequent pages, automatically triggering a page break. This does not happen with secondary windows.
  • The main window can have the same width on each page but its height may vary.
  • If secondary windows with the same name are created on several pages, the system displays the contents of that secondary window on each page.

Steps for creating a new window:

  • Right-click on the page name and select CREATE/WINDOWS.

  • Change the name and description, and in the GENERAL PROPERTIES tab, configure the window type.

  • In the OUTPUT OPTIONS tab, specify window dimensions.

  • Mark the Lines with option. This generates the box in the windows even if no content is printed.

  • To configure window dimensions and position on the page, we can also use Form Painter, a tool allowing us to configure the layout or arrangement of windows in a form.

  • In the CONDITIONS tab, we configure conditions for window display.

FORM PAINTER is the tool belonging to the smartforms transaction that allows us to configure the layout or arrangement of windows in a smartform.

FORM PAINTER CONFIGURATION

MENU => UTILITIES => OPTIONS => FORM PAINTER


 

 

 


Sobre el autor

Publicación académica de Jaime Eduardo Gomez Arango, en su ámbito de estudios para el Curso ABAP Avanzado.

SAP Expert


Jaime Eduardo Gomez Arango

Profesión: Ingeniero de Sistemas y Computación - España - Legajo: SW34C

✒️Autor de: 149 Publicaciones Académicas

🎓Egresado de los módulos:

Disponibilidad Laboral: FullTime

Presentación:

Ingeniero de sistemas y computación con 8 años de experiencia el desarrollo frontend & backend (react/node) y en cloud (aws), actualmente desarrollando habilidades en sap btp, ui5, abap y fiori.

Certificación Académica de Jaime Gomez

✒️+Comunidad Académica CVOSOFT

Continúe aprendiendo sobre el tema "La construcción del formulario: configuración general, páginas y ventanas" de la mano de nuestros alumnos.

SAP Senior

Se centra en la configuración inicial y la estructura básica de un formulario Smartform en SAP. Para acceder a la herramienta de creación, se utiliza la transacción SMARTFORMS. La configuración general se organiza dentro de la carpeta llamada "Parametrizaciones Globales". El primer paso dentro de esta carpeta es definir los "Atributos del formulario". Aquí se asigna un nombre técnico al formulario, por ejemplo ZFORMULARIO_PRUEBA, y una descripción significativa para los usuarios, como "Formulario de Usuarios". En las propiedades generales se registra información administrativa como el autor, la fecha y hora de creación y modificación, y...

Acceder a esta publicación

Creado y Compartido por: Mara Fadua Romero Hernandez

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master


La Construcción del formulario: Configuración general, Páginas y Ventanas Configuración general del smartphone Se explicó cómo acceder a la transacción de smartphones y las "Parametrizaciones globales". En la solapa "Propiedades generales" se define la descripción e idioma del formulario, permitiendo su traducción a varios idiomas con poco esfuerzo. La solapa "Opciones de salida" permite configurar el formato de página (por defecto DIN_A4), caracteres y líneas por pulgada, estilo y formato de salida. Se debe asignar una tabla de entrada (por ejemplo, TI_usuarios), creando un tipo tabla (por...

Acceder a esta publicación

Creado y Compartido por: Juan Ignacio Romero

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Master

Introducción: Domina la estructura esencial de SmartForms: configura atributos globales, define páginas y diseña ventanas para crear formularios profesionales (facturas, órdenes, etc.). Configuración Global 1. Atributos del Formulario Descripción: Nombre significativo (ej: "Formulario de Usuarios"). Propiedades Generales: Idioma base (ej: ES Español). Idiomas de traducción (multilingüe). Opciones de Salida: Formato página: DINA4 (A4). Estilo: Z_PRUEBA_ESTILO (creado previamente). Unidades recomendadas:...

Acceder a esta publicación

Creado y Compartido por: Oscar Aravena Muller / Disponibilidad Laboral: FullTime

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Expert



La construcción del formulario: configuración general, páginas y ventanas en SAP En SAP, la construcción de formularios es un proceso clave para la generación de documentos de salida como facturas, notas de crédito, pedidos, entre otros. Tradicionalmente, estos formularios se crean utilizando SAPscript o Smart Forms (en versiones más modernas se puede utilizar Adobe Forms, pero aquí nos centraremos en los dos primeros). Uno de los aspectos fundamentales en la construcción de un formulario es su estructura jerárquica, basada en tres niveles principales: configuración general, páginas y ventanas. La construcción de un formulario en SAP combina elementos...

Acceder a esta publicación

Creado y Compartido por: David Ibarra / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

Lección: La Construcción del Formulario: Configuración General, Páginas y Ventanas Esta lección proporciona una guía exhaustiva sobre la creación y configuración inicial de un Smartform, cubriendo desde los atributos generales hasta la definición de sus componentes esenciales como páginas y ventanas, y la crucial interfaz para la comunicación de datos. 1. Configuración General del Smartform Puntos Importantes: Acceso y Descripción del Formulario (Atributos): Descripción: Al ingresar a la transacción SMARTFORMS e iniciar la creación de un nuevo formulario (ej. ZFORMULARIO_PRUEBA),...

Acceder a esta publicación

Creado y Compartido por: Roberto Fluder Ahumada

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

La construcción del formulario: Configuración general, páginas y ventanas 1. La configuración general de un Smartform Cuando se ingresa a la transacción SMARTFORMS lo primero que se visualiza dentro de la carpeta Parametrizaciones Globales son los atributos del formulario. Aquí se asigna una descripción al formulario, ejemplo: "Formlario de Usuarios" En la pestaña "Propiedades Generales" se visualiza el idioma de creación del formulario (ES) y se puede seleccionar los distintos idiomas en los que traduciremos el formulario. En la pestaña "Opciones de salida" se configura: - El formato de página: DINA4 que es formato a una hoja tamaño...

Acceder a esta publicación

Creado y Compartido por: Yeny Gisela Yanes Bautista

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Junior

Construcción del Formulario Smart Form: Configuración General, Páginas y Ventanas 1. Configuración General del Formulario Atributos del Formulario (Parametrizaciones Globales): Descripción del formulario (ejemplo: "Formulario de usuarios"). Idioma de creación y opciones de traducción (soporte multi-idioma). Opciones de salida: Formato de página (DIN A4 por defecto). Caracteres y líneas por pulgada (valores por defecto). Estilo del formulario (ejemplo: "Z_prueba_estilo"). Formato de salida. Interfaz del Formulario: Especificación...

Acceder a esta publicación

Creado y Compartido por: Miguel Angel Campo Velasco

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

LA CONSTRUCCION DEL FORMULARIO: CONFIGURACION GENERAL, PAGINAS Y VENTANAS uno de los puntos mas fuerte de los formularios Smartform es que pueden ser traducidos a varios idiomas con un minimo de trabajo. -En la solapa "opciones de salida" configuraremos las opciones que vemos en la siguiente imagen: -En formato de pagina dejaremos la opción por defecto que es DINA4 que es el formato de página correspondiente a una hoja tamaño A4. -En "Caracteres por pulgada" dejaremos la opción por defecto que es 10,00. -En "Líneas por pulgada" también dejaremos la opción por defecto que es 6,00.

Acceder a esta publicación

Creado y Compartido por: Luis Enrique Romero Pinto

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Expert


Las paginas de un formulario difieren en su estructura, la primera pagina de una factura por ejemplo contiene las direcciones que no se quieren mostrar en la pagina siguiente pero si se quieren mostrar en terminos generales de negocios en la ultima pagina, para cada pagina se debe especificar una pagina siguiente para obtener una secuencias de paginas, tambien se puede llamar a la misma pagina repetidamente si se quiere una salida recursisa, por ejemplo, si la lista de los items de la fatura muy larga y no entra en un solo documento de pagina, cualquier corte de pagina es disparado automaticamente por la ventana principal o se puede codificar manualmente en la logica del formulario, muchos formularios contienen solo una pagina de diferente estructura,...

Acceder a esta publicación

Creado y Compartido por: Jose Medina / Disponibilidad Laboral: FullTime + Carta Presentación

*** CVOSOFT - Nuestros Alumnos - Nuestro Mayor Orgullo como Academia ***

SAP Senior

La configuración general de un Smartform: Cuando ingresamos a la transacción Smartform, lo primero que vemos dentro de la carpeta Parmetrizaciones Globales son los Atributos del formulario. Aqui podemos asignar una decripción a nuestro formulario, en este caso escribiremos " Formulario de Usuarios". En la solapa Propiedades Generales vemos el idioma de creación del formulario, que será ES (Español) y podemos seleccionar los distitos idiomas en los que traduciremos el formulario. En la solapa Opciones de salida configuraremos lo siguiente: En formato de página dejaremos la opción por defecto que es DINA4 que es el formato de página corresponfiente a una hoja tamaño...

Acceder a esta publicación

Creado y Compartido por: Javier Miguel Angel Barcelo / Disponibilidad Laboral: PartTime

 


 

👌Genial!, estos fueron los últimos artículos sobre más de 99.000 publicaciones académicas abiertas, libres y gratuitas compartidas con la comunidad, para acceder a ellas le dejamos el enlace a CVOPEN ACADEMY.

🔎Buscador de Publicaciones:

 


 

No sea Juan... Solo podrá llegar alto si realiza su formación con los mejores!