RETURNLINE – Return Line

System
OE (OE)
Prefix
RTL
Primary key
COMPANY, AUTH-NO, LINE-NBR
Fields
59
Updated by
1 program
Referenced by
2 programs

RETURNLINE is the Return Line table in Lawson OE (prefix RTL). It is indexed by COMPANY, AUTH-NO, LINE-NBR (RTLSET1); alternate indexes: RTLSET2, RTLSET3, RTLSET4, RTLSET5 and RTLSET6. It is related 1:1 to GLMASTER, COLINE, GLSYSTEM, ICCOMPANY, ICLOCATION, ITEMLOC, ITEMMAST, OECOMPANY and 4 more and 1:M to WHSHLDTL, RETURNMISC and SOHDETAIL. It is updated by IC11.1 and referenced by BLI2.1 and WH20.7. The table has 59 fields, 6 indexes and 22 documented relations.

About RETURNLINE

The Return Line file contains the lines entered on a return.

Fields (59)

Column = COBOL field name without the RTL- prefix, hyphens → underscores. Derived fields are computed by the application and are not stored.

Field / columnTypeDescription & valuesUpdated by
RTL-COMPANY PK
COMPANY
Numeric 4This field contains the company number.
RTL-AUTH-NO PK
AUTH_NO
Numeric 10This field contains the authorization number of the user who is entering the return.
RTL-LINE-NBR PK
LINE_NBR
Numeric 6This field contains the line number.
RTL-CUSTOMER
CUSTOMER
Alpha 9 (Right Justified)This field contains the number that represents a customer.
RTL-ORDER-NBR
ORDER_NBR
Numeric 8This field contains the order number.
RTL-LOCATION
LOCATION
Alpha 5This field contains a valid stock location within the company inventory.
RTL-DATE
DATE
Numeric 8 (yyyymmdd)This field contains the system date when the return was created.
RTL-ITEM
ITEM
Alpha 32This field contains the item identifier.
RTL-DESCRIPTION
DESCRIPTION
Alpha 30 (Lower Case)This field contains the item description.
RTL-LINE-TYPE
LINE_TYPE
Alpha 1This field contains the type of inventory on this line.
  • I Inventoried
  • N Non-Stock
  • X Special
RTL-REASON-CODE
REASON_CODE
Alpha 4This field contains the reason code, which indicates the cause for credit memos.
RTL-SHIP-TO
SHIP_TO
Numeric 4This field contains the number representing the ship to customer.
RTL-QUANTITY
QUANTITY
Signed 13.4This field contains the return quantity in sell unit of measure.
RTL-SELL-UOM
SELL_UOM
Alpha 4This field contains the stock unit of measure for the item. If entered, it must be a valid stock unit of measure for this item. If not entered, the default stock unit of measure for this item is assigned.
RTL-INVC-CW-QTY
INVC_CW_QTY
Signed 13.4This field contains the invoice catch weight quantity. This field is valid only for catch weight items. This is used in extended price calculation, but quantity is used for pricing.
RTL-INVEN-CW-QTY
INVEN_CW_QTY
Signed 13.4This field contains the inventory catch weight quantity. This field is used only for credit memo catch weight items, if the item is returned to inventory. This is defaulted from invoice catch weight quantity.
RTL-ENTERED-PRICE
ENTERED_PRICE
Signed 18.5This field contains the price of the line in original billing currency.
RTL-STD-COST
STD_COST
Signed 18.5This field contains the cost of the item that is being returned if the company is using standard costing.
RTL-SELL-TO-STOCK
SELL_TO_STOCK
Signed 13.7This field contains a conversion factor for converting the line amount from sell to stock unit of measure.
RTL-UNIT-PRICE
UNIT_PRICE
Signed 18.5This field contains the unit price in company base currency.
RTL-BASE-PRICE
BASE_PRICE
Signed 18.5This field contains the base price from the order.
RTL-SPR-UOM
SPR_UOM
Alpha 4This field contains the sell pricing unit of measure.
RTL-SPR-TO-STOCK
SPR_TO_STOCK
Signed 13.7This field contains the conversion factor from price to stock unit of measure.
RTL-ENT-UNIT-COST
ENT_UNIT_COST
Signed 18.5This field contains the entered unit cost for the return line.
RTL-UNIT-COST
UNIT_COST
Signed 18.5This field contains the approved unit cost for this invoice line item in company base currency.
RTL-ACTIVITY
ACTIVITY
Alpha 15This field contains the activity for the sales account. Activities are the processes or procedures that produce work. Cost objects (products, services, customers, and so on) are the reasons for performing the activity. Activities and cost object activities are used synonymously in Project Accounting. Direct costs are posted to activities, and indirect costs are allocated to activities based on activity drivers. Activities are grouped or organized by activity levels. There are two types of activities: "posting allowed" and "summary only." Use posting level activities to budget and maintain all posted transactions. Summary activities or macro activities combine information and balances from lower level activities for reporting and inquiries.
RTL-ACCT-CATEGORY
ACCT_CATEGORY
Alpha 5This field contains the account category for the sales account. Account categories are groupings of costs, revenues, or a combination of both used for reporting and inquiries for activities in Project Accounting. All transactions are posted to an account category within an activity. You can assign a specific General Ledger account or range of accounts (company, accounting unit, account, and subaccount) that make up the transactions posted to an account category using Account Assignment (AC07.1). Period-to-date, year-to-date, and life-to-date balances are maintained by account category for activities. Account categories must be assigned to activities before you do any budgeting or transaction processing.
RTL-ACTIVITY-C
ACTIVITY_C
Alpha 15This field contains the activity for the Cost (COGS) account. Activities are the processes or procedures that produce work. Cost objects (products, services, customers, and so on) are the reasons for performing the activity. Activities and cost object activities are used synonymously in Project Accounting. Direct costs are posted to activities, and indirect costs are allocated to activities based on activity drivers. Activities are grouped or organized by activity levels. There are two types of activities: "posting allowed" and "summary only." Use posting level activities to budget and maintain all posted transactions. Summary activities or macro activities combine information and balances from lower level activities for reporting and inquiries.
RTL-ACCT-CATEG-C
ACCT_CATEG_C
Alpha 5This field contains the account category for the Cost (COGS) account. Account categories are groupings of costs, revenues, or a combination of both used for reporting and inquiries for activities in Project Accounting. All transactions are posted to an account category within an activity. You can assign a specific General Ledger account or range of accounts (company, accounting unit, account, and subaccount) that make up the transactions posted to an account category using Account Assignment (AC07.1). Period-to-date, year-to-date, and life-to-date balances are maintained by account category for activities. Account categories must be assigned to activities before you do any budgeting or transaction processing.
RTL-ATN-OBJ-ID-C
ATN_OBJ_ID_C
Numeric 12This field contains the system-defined object ID representing the Activity Management commitment for Cost (COGS).
RTL-CUST-REQ-ACT
CUST_REQ_ACT
Alpha 1This field indicates whether the customer wants a credit memo issued or replacement of goods.
  • C Credit Memo
  • R Replacement
RTL-RESTK-CHG-CODE
RESTK_CHG_CODE
Alpha 16This field contains the add-on charge code indicating whether you want to charge the customer for restocking.
RTL-INV-DISP-CD
INV_DISP_CD
Alpha 1This field indicates where to place returned items.
  • R Return To Stock
  • S Scrap
  • I Ignore
RTL-CREATE-CM-CD
CREATE_CM_CD
Alpha 1This field indicates whether or not to create a credit memo.
  • Y Yes
  • N No
RTL-DETAIL-QTY
DETAIL_QTY
Signed 13.4This field contains the summation of all detail line quantity in stock unit of measure.
RTL-SLS-ACCT-UNIT
SLS_ACCT_UNIT
Alpha 15This field contains the sales accounting unit to post to.
RTL-SLS-ACCOUNT
SLS_ACCOUNT
Numeric 6This field contains the sales account to post to.
RTL-SLS-SUB-ACCT
SLS_SUB_ACCT
Numeric 4This field contains the sales subaccount to post to.
RTL-OFF-ACCT-UNIT
OFF_ACCT_UNIT
Alpha 15This field contains the COGS offset account unit to post to.
RTL-OFF-ACCOUNT
OFF_ACCOUNT
Numeric 6This field contains the COGS offset account to post to.
RTL-OFF-SUB-ACCT
OFF_SUB_ACCT
Numeric 4This field contains the COGS offset subaccount to post to.
RTL-CGS-ACCT-UNIT
CGS_ACCT_UNIT
Alpha 15This field contains the COGS account unit to post to.
RTL-CGS-ACCOUNT
CGS_ACCOUNT
Numeric 6This field contains the COGS account to post to.
RTL-CGS-SUB-ACCT
CGS_SUB_ACCT
Numeric 4This field contains the COGS subaccount to post to.
RTL-CV-ACCT-UNIT
CV_ACCT_UNIT
Alpha 15This field contains the cost variance accounting unit.
RTL-CV-ACCOUNT
CV_ACCOUNT
Numeric 6This field contains the cost variance account.
RTL-CV-SUB-ACCT
CV_SUB_ACCT
Numeric 4This field contains the cost variance subaccount.
RTL-PO-NUMBER
PO_NUMBER
Alpha 14 (Right Justified)This field contains the number representing the purchase order.
RTL-PO-CODE
PO_CODE
Alpha 4This is the purchase order code.
RTL-STATUS
STATUS
Numeric 1This field contains the return status.
  • 0 Entered
  • 1 Released
  • 9 Closed
RTL-AVERAGE-COST
AVERAGE_COST
Signed 18.5This field contains the cost of the item that is being returned if the company is using average costing.
RTL-SOH-QTY
SOH_QTY
Signed 13.4This field contains the desired quantity.
RTL-LAST-MISC-SEQ
LAST_MISC_SEQ
Numeric 3
RTL-LAST-COMM-SEQ
LAST_COMM_SEQ
Numeric 3
RTL-GLBL-LINE-TYPE
GLBL_LINE_TYPE
Alpha 15
RTL-FREIGHT-TOT
FREIGHT_TOT
Signed 18.2
RTL-INSURANCE-TOT
INSURANCE_TOT
Signed 18.2
RTL-CSTMS-TOT
CSTMS_TOT
Signed 18.2
RTL-OTHER-AOC-TOT
OTHER_AOC_TOT
Signed 18.2

Indexes (6)

Keys marked * are descending. Every documented Lawson index is unique unless flagged Duplicates; Subset indexes carry a Where condition.

IndexKeysFlagsConditionUsed in
RTLSET1COMPANY, AUTH-NO, LINE-NBRPrimaryBLI2.1, IC11.1, WH20.7
RTLSET2COMPANY, CUSTOMER, ITEM, SHIP-TO, DATE, AUTH-NO, LINE-NBR
RTLSET3ATN-OBJ-ID-CKeyChange, SubsetWhere ATN-OBJ-ID-C != Zeroes
RTLSET4COMPANY, ITEM, STATUS, AUTH-NO, LINE-NBRKeyChange
RTLSET5COMPANY, REASON-CODE, STATUS, AUTH-NO, LINE-NBRKeyChange
RTLSET6COMPANY, LINE-NBR, AUTH-NO

Relations

One to one (15) — lookups and parents

RelationTableRulesConditionField map
Cogs AccountGLMASTERNot RequiredValid When RTL-CGS-ACCT-UNIT != Spaces Or RTL-CGS-ACCOUNT != Zeroes Or RTL-CGS-SUB-ACCT != ZeroesRTL-COMPANYGLM-COMPANY, RTL-CGS-ACCT-UNITGLM-ACCT-UNIT, RTL-CGS-ACCOUNTGLM-ACCOUNT, RTL-CGS-SUB-ACCTGLM-SUB-ACCOUNT
Cogs OffsetGLMASTERNot RequiredValid When RTL-OFF-ACCT-UNIT != Spaces Or RTL-OFF-ACCOUNT != Zeroes Or RTL-OFF-SUB-ACCT != ZeroesRTL-COMPANYGLM-COMPANY, RTL-OFF-ACCT-UNITGLM-ACCT-UNIT, RTL-OFF-ACCOUNTGLM-ACCOUNT, RTL-OFF-SUB-ACCTGLM-SUB-ACCOUNT
ColineCOLINENot RequiredValid When RTL-ORDER-NBR != ZeroesRTL-COMPANYCOL-COMPANY, RTL-ORDER-NBRCOL-ORDER-NBR, RTL-LINE-NBRCOL-LINE-NBR
GlsystemGLSYSTEMRequiredRTL-COMPANYGLS-COMPANY
IccompanyICCOMPANYRequiredRTL-COMPANYICC-COMPANY
IclocationICLOCATIONRequiredRTL-COMPANYICL-COMPANY, RTL-LOCATIONICL-LOCATION
ItemlocITEMLOCNot RequiredValid When RTL-LINE-TYPE = "I"RTL-COMPANYITL-COMPANY, RTL-LOCATIONITL-LOCATION, RTL-ITEMITL-ITEM
ItemmastITEMMASTRequiredWhen RTL-LINE-TYPE != "X"ICC-ITEM-GROUPITE-ITEM-GROUP, RTL-ITEMITE-ITEM
OecompanyOECOMPANYRequiredRTL-COMPANYOEC-COMPANY
OeinvclineOEINVCLINERequiredWhen RTN-ORIG-INVC-PRE != Spaces Or RTN-ORIG-INVC-NBR != ZeroesRTL-COMPANYOIL-COMPANY, RTN-ORIG-INVC-PREOIL-INVC-PREFIX, RTN-ORIG-INVC-NBROIL-INVC-NUMBER, RTL-LINE-NBROIL-LINE-NBR
OemiscOEMISCNot RequiredValid When RTL-RESTK-CHG-CODE != SpacesRTL-COMPANYOEM-COMPANY, RTL-RESTK-CHG-CODEOEM-MISC, RTN-CURRENCY-CODEOEM-CURRENCY-CODE
OereasonOEREASONRequiredWhen RTL-REASON-CODE != SpacesRTL-COMPANYOER-COMPANY, RTL-REASON-CODEOER-REASON-CODE
ReasonOEREASONRequiredWhen RTL-REASON-CODE != SpacesRTL-COMPANYOER-COMPANY, RTL-REASON-CODEOER-REASON-CODE
ReturnhdrRETURNHDRRequiredRTL-COMPANYRTN-COMPANY, RTL-AUTH-NORTN-AUTH-NO
Sales AccountGLMASTERRequiredRTL-COMPANYGLM-COMPANY, RTL-SLS-ACCT-UNITGLM-ACCT-UNIT, RTL-SLS-ACCOUNTGLM-ACCOUNT, RTL-SLS-SUB-ACCTGLM-SUB-ACCOUNT

One to many (7) — child tables

RelationTableRulesConditionField map
BinsWHSHLDTLValid When ITE-LOT-TRACK-FL = "N" And ITL-BIN-TRACK-FL = "Y"RTL-COMPANYWHD-COMPANY, RTL-LOCATIONWHD-LOCATION, RTN-SHIPMENT-NBRWHD-SHIPMENT-NBR, RTL-LINE-NBRWHD-LINE-NBR, WHD-COMPONENT-SEQ, WHD-BIN, WHD-LOT, WHD-SUBLOT, WHD-UOM, WHD-SERIAL
LotsWHSHLDTLValid When ITE-LOT-TRACK-FL = "Y"RTL-COMPANYWHD-COMPANY, RTL-LOCATIONWHD-LOCATION, RTN-SHIPMENT-NBRWHD-SHIPMENT-NBR, RTL-LINE-NBRWHD-LINE-NBR, WHD-COMPONENT-SEQ, WHD-BIN, WHD-LOT, WHD-SUBLOT, WHD-UOM, WHD-SERIAL
OeshipdtlWHSHLDTLRTL-COMPANYWHD-COMPANY, RTL-LOCATIONWHD-LOCATION, RTN-SHIPMENT-NBRWHD-SHIPMENT-NBR, RTL-LINE-NBRWHD-LINE-NBR, WHD-COMPONENT-SEQ, WHD-BIN, WHD-LOT, WHD-SUBLOT, WHD-UOM, WHD-SERIAL
ReturnmiscRETURNMISCRTL-COMPANYRMC-COMPANY, RTL-AUTH-NORMC-AUTH-NO, RTL-LINE-NBRRMC-LINE-NBR, RMC-SEQ
SerialsWHSHLDTLValid When ITE-SER-TRACK-FL = "R" Or ITE-SER-TRACK-FL = "I"RTL-COMPANYWHD-COMPANY, RTL-LOCATIONWHD-LOCATION, RTN-SHIPMENT-NBRWHD-SHIPMENT-NBR, RTL-LINE-NBRWHD-LINE-NBR, WHD-COMPONENT-SEQ, WHD-BIN, WHD-LOT, WHD-SUBLOT, WHD-UOM, WHD-SERIAL
SohdetailSOHDETAILRTL-COMPANYSDT-COMPANY, RTL-LOCATIONSDT-LOCATION, RTL-ITEMSDT-ITEM, SDT-UOM, SDT-LOT, SDT-SUBLOT, SDT-BIN
UomsWHSHLDTLValid When ITE-MULT-UOMS > ZeroesRTL-COMPANYWHD-COMPANY, RTL-LOCATIONWHD-LOCATION, RTN-SHIPMENT-NBRWHD-SHIPMENT-NBR, RTL-LINE-NBRWHD-LINE-NBR, WHD-COMPONENT-SEQ, WHD-BIN, WHD-LOT, WHD-SUBLOT, WHD-UOM, WHD-SERIAL

Programs

Updated by (1)

Referenced by (2)