Script PORLEGEFATLIB: X3 connection properties
TOEMAIL: Add email address to variable
Use this to add email addresses to the EFAT_DATA_EMAIL_TO variable. Separate multiple email addresses with a semicolon (;).Content and operating method
Transaction
There is no transaction process.
Log file
There is an open log file.
Different call cases
This entry point is called when sending a document to EFAT if the mail service for EFAT is activated.
The variable EFAT_DATA_EMAIL_TO already has the email address where the file will be sent.
You can overwrite this variable or add new emails, separated by a semicolon (;).
Open tables
In the table below, the Significant content setting indicates that the content is in phase with the context. That is, the current invoice is loaded.
Table | Significant content | Table title |
---|---|---|
COMPANY | Yes | Company |
SINVOICE | Yes | Invoice headers |
RPT_CHOICE: Change the report code in the variable
Use this to change the report code in the WARP_RPTCOD variable.
Content and operating method
Transaction
There is no transaction process.
Log file
There is an open log file.
Different call cases
This entry point is always called when sending a document to EFAT.
The variable WARP_RPTCOD already has the report code of the report that will be printed.
This variable can be overwritten.
Available variables or masks
Variable or mask | Definition |
---|---|
WARP_RPTCOD(GLONARP)(0..9) Char | Local variable storing report code to be used in EFAT |
Open tables
In the table below, the Significant content setting indicates that the content is in phase with the context. That is, the current invoice is loaded.
Table | Significant content | Table title |
---|---|---|
COMPANY | Yes | Company |
SINVOICE | Yes | Invoice headers |
TABPRTMOD | Yes | Print template table |
EFAT_CPYNAM: Customize company name on email to final customer
Use this entry point to customize the name of the company that goes on the final email to the customer.
Content and operating method
Transaction
There is no transaction process.
Log file
There is an open log file.
Available variable
The variable [L]EFAT_SPE_CPYNAM is available.
After the entry point is finished, the company name changes to the value in the variable. If the variable is empty, the value in GESCPY is used.
LANGTPL: Allows the user to choose the language for the EFAT e-mail
Content and operating method
Transaction
There is no transaction process.
Log file
There is an open log file.
Code context
The LANGTPL entry point is available in both PORLEGEFATLIB and PORLEGEFATLIB_V2 scripts.
It allows the user to specify the language in which the EFAT e-mail will be sent.
The variable [L]LANGTPL is provided for this purpose. It is empty when the entry point is called.
If the language entered is not supported by the script, the variable is cleared and has no effect.
Similarly, if [L]LANGTPL remains empty, no changes will be applied.
Available variable
Variable | Description |
---|---|
[L]LANGTPL | Language code for the EFAT e-mail |