Order Activity Rules

You must set up order activity rules to use with the NFe process. You use the Order Activity Rules program (P40204) to set up the rules and the statuses used by the rules. Set up rules for each document type and line type combination that you use to process notas fiscais for sales. The statuses that you set up for processing electronic notas fiscais must be sequenced between the status that you set up as the last status for printing the nota fiscal, and the last status that you set up for the sales update.

Unless you set the processing options to prevent a status update, the system updates the nota fiscal status when you:

  • Run the Print Nota Fiscal – Ship From program to generate the NFe.

  • Run the Nota Fiscal Elec. - Outbound program to write records to the F70XMLZ1 table.

  • Run the XML Inbound Transaction Process (R70XMLI1) program to process the answer from the fiscal authority that you received using the third-party software.

This table shows an example of order activity rules that you might set up for one order/line type combination:

Order Type

Line Type

Last Status

Description

Next Status

NF

S

595

Generate nota fiscal

598

NF

S

598

Print nota fiscal

610

NS

S

610

Generate NFe (outbound)

615

NS

S

615

Capture NFe (inbound)

620

NS

S

620

Sales update

999

NS

S

999

Completed