Understanding Activity Rules

Use the NF-e Next Status Setup program (P76B090) to configure all the valid next status codes related to a specific emission type and NFe status combinations. Each combination of emission type and XML status correspond to a next status value. You must use activity rules to set up the valid next status combinations. Therefore, the system validates the activity rules and only changes the status of the sales order and nota fiscal to valid and permitted next statuses. The system stores activity rule information in the NF-e Next Status Setup table (F76B090).

This table provides a recommendation about how you can configure activity rules:

Last

Description

Next

Other

Allowed

Allowed

Allowed

Allowed

Ledger

520

Enter sales order

540

560

562

N

540

Print pick

560

N

560

Ship confirmation

562

N

562

Generate nota fiscal

564

563

580

Y

563

Additional charges

564

N

564

Normal (Generate XML)

577 (accepted)

998 (rejected /canceled)

579 (error)

565 (contingencies)

N

565

Contingencies

566 (FS and Offline)

598 (EPEC/DPEC)

569 (FSDA)

581 (SVC-AN)

582 (SVC-RS)

N

566

FS CONT (Print DANFE)

570

Y

568

EPEC/DPEC CONT (Generate XML)

577 (accepted)

998 (rejected/canceled)

579 (error)

566 (FS and offline)

569 (FSDA)

564 (normal)

N

569

FS – DA CONT (Print DANFE)

572

Y

570

FS CONT and Offline (Generate XML)

619 (accepted)

579 (error)

N

572

FS – DA CONT (Generate XML)

619 (accepted)

579 (error)

N

575

EPEC/DPEC CONT (Print DANFE)

619

Y

577

Normal (Print DANFE)

619

Y

579

XML Error

564 (normal)

566 (FS and Offline)

568 (EPEC/DPEC)

569 (FSDA)

N

580

Print nota fiscal

617

620

998

Y

581

SVC-AN (Generate XML) and EPEC/DPEC Accepted

584

N

582

SVC-RS (Generate XML)

585

N

583

Error

584

SVC-AN

585

SVC-RS

564 Contingency

N

584

SVC-AN (Accepted)

586

997 Rejected

998 Cancelled

583 Error

N

585

SVC-RS (Accepted)

587 Print DANFE

997 Rejected

998 Cancelled

583 Error

N

586

SVC-AN (Print DANFE)

619

998

Y

587

SVC-RS (Print DANFE)

619

998

Y

617

NFE generation (Sao Paolo)

618

N

618

NFE reception (Sao Paolo)

619

N

619

Generate Brazil tax lines

620

N

620

Sales update

999

N

998

Reverse

N

999

Complete (ready to purge)

N

Note: It is not required that you set up activity rules according to this table.