Versiones comparadas

Clave

  • Se ha añadido esta línea.
  • Se ha eliminado esta línea.
  • El formato se ha cambiado.

7.2. SapScript para alarmas SII

TransacciónTransaction:
/EDGE/SII_SC En esta transacción se parametrizan los textos SAPScripts para cabecera y cuerpo a utilizar en las alarmas. En esta pantalla encontramos dos bloques: Datos Generales y Sapscripts Generados.
SapScripts Generados
Image Removed
En esta parte se muestran los SapScripts que se han generado hasta el momento. El funcionamiento de los elementos de pantalla es el siguiente:

Campo

Significado

SAPSCRIPT

Nombre del SapScript

Denominación

Descripción del SapScript

Objeto

Nombre del objeto de la aplicación

Nombre de Texto

Nombre del texto SapScript

ID

Id de texto

Idioma

Idioma del SapScript

...

Campo

Significado

SAPSCRIPT

Nombre del Sacpscript

Denominación

Descripción del Sapscript

Idioma

Idioma del SapScript

Si por ejemplo pulsamos el icono de editar Image Removed :
Image Removed
Nos aparece el SapScript para su edición:
Image Removed
Variables permitidas
La implementación que se está dando por defecto para la lectura de variables del texto SapScript es a nivel de cabecera, para la tabla BKPF. Las variables que se quieran ver reflejadas en una notificación tienen que venir indicadas entre && de la siguiente manera:
&BKPF-nombre_del_campo&
Por ejemplo:
&BKPF-BUKRS&  → Sociedad: Se cambiará este texto por la sociedad en la que se esté trabajando.
&BKPF-BLART& → Clase de documento: Se cambiará este texto por la clase de documento en la que se haya creado la notificación.
En esta implementación por defecto para el texto SapScript de cabecera sólo se pueden indicar un máximo de 50 caracteres incluyendo el nombre de la variable a sustituir. Por ejemplo, para el texto SapScript de cabecera:
Image Removed
y de cuerpo:
Image Removed
Recibimos la siguiente notificación vía email (ya que esa ha sido la parametrización del canalIn this transaction the SAPScripts texts for header and body to be used in the alarms are parameterized. In this screen we find two blocks: General Data and Generated Sapscripts.


Generated SapScripts


Image Added

This part shows the SapScripts that have been generated so far. The operation of the screen elements is as follows:


Field

Description

SAPSCRIPT

SapScript Name

Denomination

SapScript Description

Object

Name of the application object

Text Name

SapScript Text Name

ID

Text ID

Language

SapScript Language



General Data

By double clicking on any of the generated SapScripts lines, the following fields are filled for editing and deletion.


Field

Description

SAPSCRIPT

SapScript Name

Denomination

SapScript Description

Language

SapScript Language


If for example click the edit iconImage Added :
Image Added


SapScript appears for editing:


Image Added


Allowed Variables
The default implementation for reading SapScript text variables is at the header level for the BKPF table. The variables that you want to see reflected in a notification have to be indicated between && in the following way:

&BKPF-field_name&

For example:

&BKPF-BUKRS& → Company This text will be changed by the society in which you are working.

&BKPF-BLART& → Document type: This text will be changed by the document type in which the notification was created.


In this default implementation for the SapScript header text only a maximum of 50 characters can be entered including the name of the variable to be replaced. For example, for the SapScript header text:
Image Added


And body:

Image Added


We received the following notification via email (since this was the parameterization of the channel):