segunda-feira, 16 de janeiro de 2017

Time zones in the NF-e solution



There are two scenarios related to the time zone and NF-e solution.
Scenario 1 - In a process that the NF-e is created via MM or SD side, the time zone comes from the settings of the Plant.
Scenario 2 - If the process of the creation of NF-e document is performed manually, via NF-e Writer for example, you will have to check the time zone settings of the user logged in the ERP that is creating manually it, because the time zone will come from the user's settings.
Based in both scenarios above, you will need to check in which scenario this problem is happening in your enviroment. It is important to identify it, because the customizing to be checked is different.
Also, remember to check the time zone settings of the user that you are using to connect ERP and GRC systems. If you do not know which is the user, you can check it in the transaction SE16N, opening the table J_1BNFE_CUST3. There will see the name of the connection to GRC in the column RFC Destination. After this, go to transaction SM59, click in ABAP Connections and you will see the user. Then, check the time zone settings of this user.
Review the customizing of time zones and DST Rules in your ERP and GRC (if you use this message system) in the path SPRO > SAP Customizing Implementation Guide > SAP NetWeaver > General Settings > Time Zones > Maintain Time Zones.
About the field DHEMI, the NF-e 3.10 requires to inform the time in which the nota fiscal was created using the UTC format (previously used as GMT). Check if the SAP Notes 2050660 and 2048658 are applied in your system. With the SAP Note 2050660, the field DHEMI will be always converted to standard time +0000 UTC. For example, in case you are creating a nota fiscal for a branch in Sao Paulo today, 28/DEC/2014 14:30 -03:00 UTC (Brazilian time), the field DHEMI will be 20141228173000. Notice that you will have one of the scenarios below.
Scenario A - You use GRC as your messaging system: GRC will check which region issued the nota fiscal and then adjust the field DHEMI according to its time zone. In the case of the example above, as Sao Paulo is the issuer and the time zone there is -03:00 UTC, GRC will change the field DHEMI and send to SEFAZ as 2014-12-28T14:30:00-03:00. Keep in mind that the field DHEMI in the table /XNFE/OUTNFEHD will be stored in UTC +0000, so in this case it will be stored as 20140815173000. Also, check if the SAP Note 2052421 is applied in your system in order to avoid validation issues on the last day of the month.
Scenario B - You do not use GRC as your messaging system: You will have to check if the provider of your messaging adjust the date and time before sending to SEFAZ, otherwise you can receive a rejection to send a nota fiscal in the future, for example. Check it with the responsible of your messaging system.

Fonte: https://wiki.scn.sap.com/wiki/display/LOCLA/Time+zones+in+the+NF-e+solution

Nenhum comentário:

Postar um comentário