🚀PROMO #PLANCARRERA2024 - 🔥Bonificaciones, Precios Congelados y Cuotas

 X 

✒️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

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 la Carrera Consultor ABAP.

SAP Master

Jaime Eduardo Gomez Arango

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

✒️Autor de: 108 Publicaciones Académicas

🎓Cursando Actualmente: Consultor ABAP Nivel Avanzado

🎓Egresado del módulo:

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 Master

Lección: Construcción del Formulario: Configuración general, Páginas y Ventanas [ 5º de 11 ] Atributos del formulario. Se puede registrar una descripción del formulario. Podemos ver el idioma de creación del formulario. En la solapa Opciones de salida se puede configurar el estilo del formulario. Interfase formulario: Acá especificaremos las variables, estructuras y tablas que recibe el formulario. Definiciones globales: Global Data: Especificaremos todas las variables, constantes, estructuras, tablas internas que utilicemos en el formulario. Tipos: Todos los tipos que vayamos a utilizar. Simbolo de campo: Field Symbol que usemos. Inicialización: El código que necesite...

Acceder a esta publicación

Creado y Compartido por: Jose Angel Valles Bustos

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

SAP Expert


Construcción del formulario: Configuración general, Páginas y Ventanas Configuración general de un smartform: Dentro de parametrizaciones globales (Global Settings) encontraremos: Atributos del formulario.- Aquí podemos agregar un nombre al formulario, en la solapa "propiedades generales" vemos el idioma de creación del formulario, que será ES y podremos seleccionar los distintos idiomas en lo que traduciremos el formulario. En la solapa "Opciones de salida" vemos el formato de página, caracteres por pulgada, etc. Interfase formulario.- Aquí especificaremos las variables, estructuras y tablas que recibe como entrada el formulario. Definiciones globales.- Aquí...

Acceder a esta publicación

Creado y Compartido por: José Luis Zevallos Mamani

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

SAP Master

Configuración General de los Smartforms. Dentro de la carpeta parametrizaciones Globales encontramos los atributos del formulario. Propiedades Generales : idioma de creación del formulario. En opciones de Salida: Configuramos el formato de página (page format),caracteres por pulgadas (Characters per inch), lineas por pulgada(line per inch), el estilo (Style), y el formato de salida (output format). En interfaz del formulario: se especifican las variables, estructuras y tablas que recibe como entrada el formulario. En definiciones globales: configuramos datos globales, tipos, simbolos de campo, inicialización, rutinas form y campos de moneda/cantidad. Elementos que componen un formulario smartform: Paginas, ventanas,...

Acceder a esta publicación

Creado y Compartido por: Maria Ysabel Colina De Magdaleno

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

SAP Senior

CONSTRUCCIÓN DEL FORMULARIO: Configuración General, Páginas y Ventanas. 1. Configuración general de un Smartforms: - Parametrizaciones Globales (Global Settings) . - Atributos del formulario. - Propiedades Generales (General Attributes): Idioma del formulario pueden ser traducidos. - Opciones de salida (output options) : Tipo de página, tamaño. Formato de página (page format), formato de página. Caracteres por pulgada. Líneas por pulgada Estilo, se coloca el nombre dle estilo creado en la Tx: "smartstyles". Formato de salida: la que venga por defecto. -Interfaces del Formulario. Aqui se especifican las variables, tablas, estructuras...

Acceder a esta publicación

Creado y Compartido por: Morela Silva

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

SAP Master

Leccion 5: Construccion del formulario: Configuración general, Páginas y Ventanas. 1.- Configuración general de un Smartform. Dentro del Item Atributos formulario, en la solapa Propiedades Generales, podemos seleccionar los distintos idiomas ne los que traduciremos el formulario. En la solapa Opciones de salida, configuramos: el Formato de página, Caracteres por pulgada, Líneas por pulgada, Estilo, Formato de salida y Dispositivo de salida. Dentro del Item Interfase formulario, especificaremos las variables, estructuras y tablas que recibe como entrada el formulario. Dentro del Item Definiciones globales, utilizamos las siguientes solapas: Datos globales, Tipos, Símbolos de campo, Inicialización,...

Acceder a esta publicación

Creado y Compartido por: Calixto Gutiérrez

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

SAP Master


Configuración general de un SMARTFORM *Atributos del formulario. Se puede registrar una descripción del formulario. Podemos ver el idioma de creación del formulario. En la solapa Opciones de salida se puede configurar el estilo del formulario. *Interfase formulario: Acá especificaremos las variables, estructuras y tablas que recibe el formulario. *Definiciones globales: Global Data: Especificaremos todas las variables, constantes, estructuras, tablas internas que utilicemos en el formulario. Tipos: Todos los tipos que vayamos a utilizar. Simbolo de campo: Field Symbol que usemos. Inicialización: El código que necesite ejecutar el formulario. Rutinas Form: Código de todas las subrutinas. Campos...

Acceder a esta publicación

Creado y Compartido por: Ivan Dario Lemus Moya

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

SAP Senior

Un formulario está compuesto por una o más páginas. Una página está compuesta por una o más ventanas (algo parecido a los frames). Existen dos tipos de ventanas: MAIN (una sola por página) y SECONDARY Window (una o varias por página). Para aplicar el principio DRY (Dont Repeat Yourself) se pueden reutilizar la misma ventana en varias páginas. Con las ventanas principales se produce un salto de página automático. Esto no ocurre con las secundarias. El Form Painter, entre otras cosas, nos ayuda a crear las ventanas de una forma visual. La visualización de las ventanas se puede condicionar. * TRANSACCIONES SMARTFORMS --> Se emplea para el mantenimiento de los...

Acceder a esta publicación

Creado y Compartido por: Francisco Javier López Andreu

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

SAP SemiSenior

CONFIGURACIÓN GENERAL: * Se especifica el nombre del formulario y el estilo que deseamos usar. * Hay valores por default, DINA4 quieres decir hoja tamaño A4. * En interfase formulario agregamos las tablas que recibirán los datos al usar la función del smartform. * En definiciones globales se especifica todas las variables, constantes, estructuras, ti, que se utilizará en el formulario. PÁGINAS * Un formulario puede tener una o más páginas, se puede configurar para que sea vertical o apaisado (horizontal), poner imagen de fondo. Para cada página se debe especificar la subsiguiente, también se puede...

Acceder a esta publicación

Creado y Compartido por: Freddy Carrillo Tucto

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

SAP Expert

CONFIGURACION GENERAL SMARTFORMS. Cuando ingresamos a la transacción SMARTFORMS, lo primero que vemos dentro de la carpeta Parametrizaciones Globales (Global Settings) son los atributos del formulario. Aquí podremos asignar una descripción a nuestro formulario. En este caso escribiremos "Formulario de Usuarios". En la solapa Propiedades Generales (General Attributes) vemos el idioma de creación del formulario, que será ES (Español) y podremos seleccionar los distintos idiomas en los que traduciremos el formulario. Uno de los puntos más fuertes de los formularios SmartForms es que pueden ser traducidos a varios idiomas con un mínimo de trabajo. Los parámetros globales,...

Acceder a esta publicación

Creado y Compartido por: Francisco Javier Gomez Jimenez

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

SAP Master

CONFIGURACION DEL FORMULARIO Dentro de las parametrizaciones globales del formulario tenemos como primera opción "Atributos del formulario". Allí se define el nombre, idiomas a traducir, configuración de salida como formato de página, estilo, etc. Luego tenemos la "Interfaz del formulario" donde definimos los prámetros del formulario. Por último tenemos las "Definiciones globales" donde declaramos las variables, tipos, tablas globales, subrutinas, código de inicialización y campos de moneda/cantidad. Cada formulario está compuesto por una o más páginas, cada una con sus propiedades, opciones de salida y objetos como texto, gráfico,...

Acceder a esta publicación

Creado y Compartido por: Jonatan Richioni

 


 

👌Genial!, estos fueron los últimos artículos sobre más de 79.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!