En esta sección se describen los pasos a seguir para llevar a cabo la conexión con la API Adjuntos que utilizaremos para adjuntar la factura con el QR al documento SAP FI.
Esta tarea será llevada a cabo en el Tile “Communication Arrangement” y será necesario realizarla de forma manual en cada uno de los sistemas.
...
This section describes the steps to follow to connect with the Attachments API that we will use to attach the invoice with the QR to the SAP FI document.
This task will be carried out in the “Communication Arrangement” Tile and will need to be done manually in each of the systems.
Info |
---|
The user who performs this task must have access to the Tile Communication Arrangements , to do so they must have one of these three roles assigned: SAP_BR_ADMINISTRATOR o or SAP_BR_APPL_SUP_ENG_DEV_SUP o or SAP_BR_CONF_EXPERT_BUS_NET_INT. En el caso de que el sistema disponga de varios mandantes, esta tarea se realizará en el mandante de trabajo, que normalmente es el mandante 100. |
A continuación, se describen los pasos a realizar en cada sistema para exponer y consumir esta API localmente.
Crear Communication Arrangements que expone el servicio de Adjuntos de FI
Para crear el communication arrangement, navegamos al Tile en cuestión y pulsamos el botón new.
...
If the system has multiple clients, this task will be performed on the work client, which is usually client 100. |
Below are the steps to perform on each system to expose and consume this API locally.
Create Communication Arrangements that expose the FI Attachments service
To create the communication arrangement, we navigate to the Tile in question and press the new button.
...
Next, we select the scenario ID SAP_COM_0002 - Finance - Posting Integration y completamos el campo con el nombre a crear el and complete the field with the name to create the Communication Arrangement.
...
Crear el Create the Communication System
Para poder crear el Communiation Arragement, se debe crear un sistema de comunicación en el cual se indicarán los datos del host y los datos del usuario habilitado para usar el servicio. Para ello, pulsamos el botón new y le damos un nombre al sistema de comunicaciones creado.
Info |
---|
También podemos usar un sistema que ya exista y apunte a nuestro sistema local. |
...
Crear el usuario de comunicación de entrada.
A continuación creamos un usuario de Inbound Communication con el nombre y contraseña que queramos, debemos guárdalo porque lo usaremos en el paso siguiente.
...
Guardamos y lo configuramos para nuestro Communication System.
Guardamos y volvemos al Communication Arrangement. que ya tendrá el sistema asignado.
Asignamos el usuario de entrada que hemos creado previamente, con esto habilitamos solo a ese usuario usar este Communication Arrangement.
...
Configurar el Communication System con el usuario de salida.
Para crear el Communication Arrangement que consume el servicio que hemos expuesto en el paso anterior, se debe seleccionar el sistema que creamos en el paso 2, pero antes, debemos acceder al Communication System para añadir el usuario habilitado para consumir este servicio.
En el tile Communication System, seleccionamos el sistema que creamos en el paso 2 y creamos un usuario de salida que será el usuario de entrada que creamos en el paso 3.
...
Guardamos el Communication System.
Crear Communication Arrangements que consume el servicio de Adjuntos de FI.
Para poder consumir el servicio expuesto con el Communication Arrangement anterior In order to create the Communiation Arragement , a communication system must be created in which the host data and the data of the user enabled to use the service will be indicated. To do this, we press the new button and give a name to the communications system created.
Info |
---|
We can also use a system that already exists and points to our local system. |
...
Create the incoming communication user.
Next we create an Inbound Communication user with the name and password we want, we must save it because we will use it in the next step.
...
We save and configure it for our Communication System.
...
We save and return to the Communication Arrangement . that will already have the system assigned.
We assign the input user that we have previously created, with this we enable only that user to use this Communication Arrangement.
...
Finally, we must deactivate the output services since they will not be used and thus avoid exposing them. We can now save the Communication Arrangement and we would finish this configuration block .
...
Configure the Communication System with the exit user.
To create the Communication Arrangement that consumes the service that we have exposed in the previous step, the system that we created in step 2 must be selected, but first, we must access the Communication System to add the user enabled to consume this service.
In the Communication System tile, we select the system that we created in step 2 and create an exit user that will be the entry user that we created in step 3.
...
We save the Communication System .
Create Communication Arrangements that consume the FI Attachments service.
In order to consume the exposed service with the previous Communication Arrangement (SAP_COM_0002), debemos configurar un Communication Arrangement del producto que se encargará de consumir este serviciowe must configure a Communication Arrangement of the product that will be responsible for consuming this service.
...
A continuación, seleccionamos el ID de escenario Next, we select the scenario ID /TBAI/CS_ATTACHMENTS y completamos el campo con el nombre a crear el and complete the field with the name to create the Communication Arrangement.
...
Seleccionamos el sistema creado anteriormente y el usuario que hemos creado en el paso anterior.
...
Activamos el servicio de salida y guardamos.
...
Podemos validar el servicio usando el bóton Check Connection.
...
Si todo ha ido bien devolverá un mensaje como este:
...
Si tenemos un error en el usuario de comunicaciones veríamos un mensaje así:
...
Para solucionarlo solo hay que contrastar que el usuario de entrada y salida tienen el mismo nombre y contraseña para que coincida el usuario habilitado en la exposición del servicio con el usuario que consumirá dicho servicio desde este último Communication Arrangement.We select the system created previously and the user that we created in the previous step.
...
We activate the output service and save.
...
We can validate the service using the Check Connection button.
...
If everything went well, it will return a message like this:
...
If we have an error in the communications user we would see a message like this:
...
To solve it, you just have to verify that the entry and exit user have the same name and password so that the user enabled in the service exposure matches with the user who will consume said service from this last Communication Arrangement.