SalesOrderNotaFiscalRegular

Sales Order Nota Fiscal Regular - Brazil - 42

Major Business Rule

Object Name: B7601150

Parent DLL: CLOC

Location: Client/Server

Language: C

B7601150  Sales Order Nota Fiscal Regular

SAR Number :1844213 / 2249129 / 2241090


Purpose of Business Function


This process is responsible for generating extra lines in F4211 file for ICMS, IPI, Substitution. By adding these lines to this file, the 
accounting process for the specific entries will be taken care of by the standard software. It processes all lines in a nota fiscal and 

accumulates the amount to add to the header.


Enhancement Type:  New


Business Function Summary


Type of Business Function (Logic Class)


• Transaction Business Function.

Business Function Origin


• C

Sources in this Business Function


No.TypeSource DescriptionData Structure
1B9800100Get Audit InformationD9800100
2B4200410F40203 Get Next Status from Activity RulesD4200410

3B7600950F42119 Write Sales History LedgerD7600950

4B7600980Add Tax Lines To Sales Order DetailD7600980

5B0100024Update Customer CurrencyD0100024


Related Tables by Source


Source Table DescriptionPrimary / SecondaryModeKey Fields or Notes
F4211Sales Order DetailPrimaryUpdtPrimary, Unique
F7611BNota Fiscal DetailSecondaryReadPrimary, Unique







Source Data Structure


No.Data ItemRequiredI/ODescription
1.LNTYYiProcessing Options from R76B803  Tax line Type
2.LTTRYIProcessing Options from R76B803  Beginning Status

3.NXTRYIProcessing Options from R76B803  Next Status Code From

4.NXTRYIProcessing Options from R76B803  Next Status Code To

5.AAYI/OSales Order Header Total  amount to update SO Header

6.DOCOYISO Number  from Business View

7.DCTOYISO Doc. Type  from Business View

8.KCOOYISO Company -  from Business View

9.EV01YIcCurrencyConversion

10.CRYRYIcCurrencyConvType

11.EV01YocErrorCode: 1-No Error; 0-Error

12.DTAIYiszErrorMessage

13.AN8YiAddressBook for Customer Currency

14.TRDJYiTransaction Date for Customer Currency


Special Logic

Performance Impact


Type A






^

Data Structure

D7601150 - Sales Order Nota Fiscal Regular - Brazil              - 42

Parameter NameData ItemData TypeReq/OptI/O/Both
szPOLineTypeLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOBeginningStatusLTTRcharOPTINPUT

A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed.

szPOStatusNextFromNXTRcharOPTINPUT

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

szPOStatusNextToNXTRcharOPTINPUT

A user defined code (system 40/type AT) indicating the next step in the order flow of the line type.

mnOrderGrossDifferenceAAMATH_NUMERICOPTBOTH

A number that identifies the amount that the system will add to the account balance of the associated account number.  Enter credits with a 
minus sign (-) either before or after the amount. 

mnDocumentOrderInvoiceEDOCOMATH_NUMERICOPTINPUT

A number that identifies an original document. This document can be a voucher, a sales order, an invoice, unapplied cash, a journal entry, 
and so on.

szOrderTypeDCTOcharOPTINPUT

A user defined code (00/DT) that identifies the type of document. This code also indicates the origin of the transaction. J.D. Edwards has 
reserved document type codes for vouchers, invoices, receipts, and time sheets, which create automatic offset entries during the post 
program. (These entries are not self-balancing when you originally enter them.) The following document types are defined by J.D. Edwards and 
should not be changed: P Accounts Payable documents   R Accounts Receivable documents   T Payroll documents   I Inventory documents  
O Purchase Order Processing documents   J General Accounting/Joint Interest Billing documents   S Sales Order Processing documents

szCompanyKeyOrderNoKCOOcharOPTINPUT

A number that, along with order number and order type, uniquely identifies an order document (such as a purchase order, a contract, a 
sales order, and so on). If you use the Next Numbers by Company/Fiscal Year facility, the Automatic Next Numbers program (X0010) uses the 
order company to retrieve the correct next number for that company. If two or more order documents have the same order number and order 
type, the order company lets you locate the desired document. If you use the regular Next Numbers facility, the order company is not used to 
assign a next number. In this case, you probably would not use the order company to locate the document.

cCurrencyConversionEV01charOPTINPUT

An option that specifies the type of processing for an event.

cCurrencyConverTypeCRYRcharOPTINPUT

A code that specifies whether to use multi-currency accounting, and the method of multi-currency accounting to use: Codes are:    N Do not 
use multi-currency accounting. Use if you enter transactions in only one currency for all companies. The multi-currency fields will not appear 
on forms. The system supplies a value of N if you do not enter a value.    Y Activate multi-currency accounting and use multipliers to convert 
currency. The system multiplies the foreign amount by the exchange rate to calculate the domestic amount.    Z Activate multi-currency 
accounting and use divisors to convert currency. The system divides the foreign amount by the exchange rate to calculate the domestic amount.

cReturnErrorEV01charOPTOUTPUT

An option that specifies the type of processing for an event.

szErrorCodeDTAIcharOPTOUTPUT

A code that identifies and defines a unit of information. It is an alphanumeric code up to 8 characters long that does not allow blanks or 
special characters such as %, &, or +. You create new data items using system codes 55-59. You cannot change the alias.

szUserIdUSERcharOPTINPUT

The code that identifies a user profile.

szWorkStationIdJOBNcharOPTINPUT

The code that identifies the work station ID that executed a particular job.

jdDateUpdatedUPMJJDEDATEOPTINPUT

The date that specifies the last update to the file record.

mnTimeOfDayTDAYMATH_NUMERICOPTINPUT

The computer clock in hours:minutes:seconds.

mnHeaderForeignExtPriceFEAMATH_NUMERICOPTBOTH

The product of the foreign price times the number of units.

szProgramIdPIDcharOPTOUTPUT

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szPOOverrideStatusLTTRcharOPTINPUT

A code (system 40/type AT) specifying the last step in the processing cycle that this order line has successfully completed.

szPOLineTypeFrtLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOLineTypeInsLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

szPOLineTypeExpLNTYcharOPTINPUT

A code that controls how the system processes lines on a transaction. It controls the systems with which the transaction interfaces, such as 
General Ledger, Job Cost, Accounts Payable, Accounts Receivable, and Inventory Management. It also specifies the conditions under 
which a line prints on reports, and it is included in calculations. Codes include the following: S Stock item   J Job cost   N Nonstock item   F Freight  
T Text information   M Miscellaneous charges and credits   W Work order

mnLineNumberErrorLNIDMATH_NUMERICOPTNONE

A number that identifies multiple occurrences, such as line numbers on a purchase order or other document. Generally, the system assigns 
this number,but in some cases you can override it.

szGLClassErrorAA07charOPTNONE

This item is used scrub Specification Data fields that are 7 character alpha fields.

szFunctionErrorPIDcharOPTNONE

The number that identifies the batch or interactive program (batch or interactive object). For example, the number of the Sales Order Entry 
interactive program is P4210, and the number of the Print Invoices batch process report is R42565. The program ID is a variable length value. 
It is assigned according to a structured syntax in the form TSSXXX, where: T The first character of the number is alphabetic and identifies the 
type, such as P for Program, R for Report, and so on. For example, the value P in the number P4210 indicates that the object is a 
program. SS The second and third characters of the number are numeric and identify the system code. For example, the value 42 in the number P4210 
indicates that this program belongs to system 42, which is the Sales Order Processing system. XXX The remaining characters of the numer are 
numeric and identify a unique program or report. For example, the value 10 in the number P4210 indicates that this is the Sales Order Entry 
program.

szDescriptErrorDS40charOPTNONE

A 40-character description.

Related Functions

None

Related Tables

None