MA540 Mapping and Layout

 11 Replies
 0 Subscribed to this topic
 1 Subscribed to this forum
Sort:
Author
Messages
Stewart Bond
New Member Send Private Message
Posts: 2
New Member
We are trying to map to and build an MA540 data file for interfacing invoices with Lawson S3 v8.1 apps.  We have been working with the specifications provided in the Lawson pmtg-uw.pdf : Document number PMTG-81UW-09 published in August 2005.

The specifications in the documentation do not match the sample data files we have.  The files we have built are erroring out because data is not in the appropriate field locations.

If anyone has successfully mapped and built an MA540 layout that works with Lawson S3 v8.1 apps, we would appreciate hearing from you.

Here are the specs.  You will see for example, in field #7, it specifies the field is only used for the Detail record.  We discovered that the Header fields past #7 were off by 1 position.  So we added a filler field in the header record in position 7.  This same logic didn't seem to apply when we got to all the detail fields.  For example, the sample data files had >10 charater descriptions in position 113 which according to the specs is AU Group, 10 alpha characters.

<!--[if gte mso 9]> Normal 0 false false false MicrosoftInternetExplorer4 <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; margin-bottom:.0001pt; mso-pagination:widow-orphan; font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:"Times New Roman"; mso-bidi-font-family:"Times New Roman"; mso-bidi-language:AR-SA;} @page Section1 {size:8.5in 11.0in; margin:1.0in 1.25in 1.0in 1.25in; mso-header-margin:.5in; mso-footer-margin:.5in; mso-paper-source:0;} div.Section1 {page:Section1;} --> <!--[if gte mso 10]>

Field number

Record type

Field name

Type and length

Description

1

Header,

Detail,

AP Distribution,

Misc. Header AOC

Rec Type

Alpha 1

Record type. Indicates the type of audit record.

2

Header,

Detail,

AP Distribution,

Misc. Header AOC

Company

Numeric 4

Company number.

3

Header,

Detail,

AP Distribution,

Misc. Header AOC

Vendor

Alpha 9

Vendor ID.

4

Header,

Detail,

AP Distribution,

Misc. Header AOC

EDI Nbr

Alpha 15

The Electronic Data Interchange (EDI) number assigned to the vendor. Used to obtain the vendor ID.

Note Either the EDI number or the vendor ID is required.

5

Header,

Detail,

AP Distribution,

Misc. Header AOC

Invoice

Alpha 22

Invoice number.

6

Header,

Detail,

AP Distribution,

Misc. Header AOC

Suffix

Numeric 3

Suffix for the invoice. Represents the occurrence value of the invoice.

7

Detail

Seq Nbr

Numeric 4

Sequence number. Used to keep the detail record unique.

8

Header,

Detail,

AP Distribution

Tax Code

Alpha 10

A code that represents specific tax information. Used to calculate the tax amount for the invoice based on the tax rate defined for the tax code and to automatically create distribution lines.

9

Header,

Detail

Location

Alpha 5

The location code that represents a valid stocking location within the company inventory application.
Note: Required if pool option for vendor or company equals 3.

10

Header

PO Code

Alpha 4

The purchase order code used to keep purchase orders unique. This code can be used for reporting purposes.

11

Header

PO Number

AlphaRight 14

This field contains the number representing the purchase order. This field is required if the PO Required flag is set to "Yes" on the assigned invoice handling code.

12

Header

PO Release

Numeric 4

The number that identifies a specific release of a purchase order.

13

Header

Batch Num

Numeric 6

Batch number of entered invoices, debit memos, and credit memos.

14

Header

Voucher Nbr

Alpha 22

Voucher number assigned to the invoice.

15

Header

Auth Code

Alpha 3

Authority code representing a person or department responsible for approving a registered invoice.

16

Header

Proc Level

Alpha 5

The process level represents a reporting level below company.

17

Header

Invoice Type

Alpha 1

Invoice type:
blank = Invoice
D = Debit memo

18

Header

Inv Currency

Alpha 5

Currency of the invoice.

19

Header

Invoice Dte

Date 8

Date assigned to the invoice. Used when updating the vendor's purchase balance. Format = YYYYMMDD.

20

Header

Distrib Date

Date 8

The general ledger posting date assigned to the batch. Used to default a post date to all invoices entered for the batch.

Format = YYYYMMDD

21

Header

Purch Fr Loc

Alpha 4

Purchase from location code associated with the invoice.

22

Header

Description

Alpha Lower 30

Invoice description.

23

Header

Tran Inv Amt

Numeric 18,
16 whole
2 decimal

Transaction invoice amount in the company base currency.

24

Header

Tran Alow Amt

Numeric 18,
16 whole
2 decimal

Amount of the invoice available for discount in the currency of the invoice.

25

Header

Tran Txbl Amt

Numeric 18,
16 whole
2 decimal

Transaction taxable amount of the invoice in the currency of the invoice.

26

Header

Tran Tax Amt

Numeric 18,
16 whole.
2 decimal

Total transaction tax amount on the approval record.

27

Header

Tran Disc Amt

Numeric 18,
16 whole.
2 decimal

Transaction discount amount. The discount amount of the invoice in the currency of the invoice.

28

Header

Orig Cnv Rate

Numeric 14,
7 whole.
7 decimal

Currency exchange rate used to convert the invoice amount to the company base currency.

29

Header

Discount Rt

Numeric 5,
0 whole.
5 decimal

Discount rate used to calculate the discount amount of the invoice.

30

Header

Disc Date

Date 8

The discount date assigned to the invoice.
Format = YYYYMMDD.

31

Header

Due Date

Date 8

Invoice due date.
Format = YYYYMMDD.

32

Header

Remit To Code

Alpha 4

Remit-to location code associated with the invoice.

33

Header

Retail Amt

Numeric 18,

16 whole,

2 decimal

Retail amount. The retail amount of the invoice.

34

Header

Rcpt Inv Date

Date 8

Invoice receipt date. The date the invoice was received. If left blank, invoice date will default.

Format = YYYYMMDD

35

Header

Reason Code

Alpha 4

Reason code. This field contains the reason code, which indicates the reason for the document.

36

Header

Match Ref Nbr

Alpha 22

Matching reference number. Required if the vendor is defined as Match Reference processing.

37

Header

Handling Code

Alpha 4

Handling code. Invoice handling code. This code contains processing rules for invoice entry and invoice matching. If left blank, the handling code defaults from the vendor, process level, or match company.

38

Header

Operator

Alpha 10

Operator code. This field is used to store the login ID of the person who entered the record. If left blank, "MA540" defaults.

39

Header

Term Code

Alpha 5

Terms code. A user-defined code representing a method of determining invoice due and discount dates. Either a due date or a terms code is required.

40

Header

Tax Code Cntl

Alpha 1

Tax adjustment code. This control field defines the tax code usage in invoicing and approving taxes.

For PO invoices:

If set to 1 (Override), all lines approved for payment will use the tax code defined for the whole invoice.

If set to 2 (Ignore), no PO lines approved for payment will be taxed.

If set to 3 (Calculate), the tax amount will be calculated and a miscellaneous distribution will be created.

41

Header

CBPRINT Fl

Alpha 1

Print chargebacks. Indicates whether to print the chargeback.

42

Header

Inv Usr Fld 01

Alpha 15

Invoice user field 1. The data type of the field is defined during company setup and edited at invoice entry date.

Valid data types: Alphanumeric, Date, Amount, Numeric

43

Header

Inv Usr Fld 02

Alpha 15

Invoice user field 2. The data type of the field is defined during company setup and edited at invoice entry date.

Valid data types: Alphanumeric, Date, Amount, Numeric

44

Header

Inv Usr Fld 03

Alpha 15

Invoice user field 3. The data type of the field is defined during company setup and edited at invoice entry date.

Valid data types: Alphanumeric, Date, Amount, Numeric

45

Header

Inv Usr Fld 04

Alpha 15

Invoice user field 4. The data type of the field is defined during company setup and edited at invoice entry date.

Valid data types: Alphanumeric, Date, Amount, Numeric

46

Header

Inv Usr Fld 05

Alpha 15

Invoice user field 5. The data type of the field is defined during company setup and edited at invoice entry date.

Valid data types: Alphanumeric, Date, Amount, Numeric

47

Header

Return Number

Numeric 10

If the goods associated with the invoice were returned, this field contains the optional return number assigned to the return.

48

Detail

Seq Nbr

Numeric 4

Sequence number. Used to keep the detail record unique. Required if you have more than one line of item detail for an invoice.

49

Header

Match Prepay Flag

Alpha 1

Match prepay flag.

50

Header

Match Prepay Mt

Numeric 1

Match prepay.

51

Header

Prepay Date

Date 8

Prepay date.

52

Header

Prepay Discount Code

Alpha 10

Prepay discount code.

53

Header

Prepay Reference Number

Alpha 22

Prepay reference number.

54

Header

Prepay Retail Amount

Numeric 18,

Whole 16,

Decimal 2

Prepay retail amount.

55

Header

Prepay Amount

Numeric 18,

Whole 16,

Decimal 2

Prepay amount.

56

Header

Prepay AOC Amount

Numeric 18,

Whole 16,

Decimal 2

Prepay AOC amount.

57

Header

Prepay Tax Amount

Numeric 18,

Whole 16,

Decimal 2

Prepay tax amount.

58

Header

Prepay Serv Amount

Numeric 18,

Whole 16,

Decimal 2

Prepay service amount.

59

Detail

Line Nbr

Numeric 6

Line number of the purchase order.

60

Detail

Item

Alpha 32

Item identifier. If left blank, the element defined as the "item" in the match class will default.

61

Detail

Ven Item

Alpha 32

Vendor's item identifier.

62

Detail

Entered Qty

Numeric 13,

Whole 9,

Decimal 4

Required. Entered quantity. The quantity of goods being invoiced on the detail line.

63

Detail

Ent UOM

Alpha 4

Entered unit of measure. The unit of measure of the Entered Quantity. If left blank, the unit of measure will default from the item or vendor definition. If no item or vendor definition exists, the default vendor buy unit of measure is used. The unit of measure must be valid for the item.

64

Detail

Unit Cost

Numeric 18,

Whole 13,

Decimal 5

Required. The unit cost of the line item detail.

65

Detail

Extended Amt

Numeric 18,

Whole 16,

Decimal 2

Extended amount. The total value of the line item details received on a given invoice detail line.

66

Detail

AOC Code

Alpha 2

Add-on charge code. This field contains the identifier for the add-on charge associated with this line item detail.

67

Detail

Total AOC

Numeric 18,

Whole 16,

Decimal 2

Total add-on charge. The total add-on charge amount. Required if an AOC code is defined.

68

Detail

Rtl Unit Cost

Numeric 18,

Whole 13,

Decimal 5

Retail unit cost. The retail unit cost of the line item detail.

69

Detail

Element

Alpha 32 (occurs 10 times)

Required. Matching element. Used to determine the match detail that the line will be matched against. The match elements are part of the match class structure. A match class contains a hierarchy of line item details, which are the elements used in matching. The element defined as the "item" in the match class structure is required.

70

Detail

Dtl Dist Company

Numeric 4

Distribution company.

71

Detail

Acct Unit

Alpha 15

Accounting unit. The accounting unit is a shorthand notation representing the variable level number. When used in the General Ledger Account Master file, the accounting unit must be defined in the General Ledger Names file as a posting accounting unit.

Only valid for item types X (special) and N (non-stock).

72

Detail

Account

Numeric 6

Account. This field, along with the accounting unit and subaccount, make up the location (account) where amounts and other account information are stored. Only valid for item types X (special) and N (non-stock).

73

Detail

Sub Acct

Numeric 4

Subaccount. This field contains the subaccount from your general ledger chart of accounts that was charged with the amount carried on this record.

Only valid for item types X (special) and N (non-stock).

74

AP Distribution

Tax Indicator

Alpha 1

Tax indicator.

75

Detail

No Tax Flag

Alpha 1

Indicates if the detail line is taxable or tax exempt.

Valid values are:

Yes = Detail line is tax exempt.

No = Detail line may be taxable (default).

76

Line

Prepay Quantity

Numeric 13,

Whole 9,

Decimal 4

Prepay quantity.

77

Line

Prepay Unit Cost

Numeric 18,

Whole 13,

Decimal 5

Prepay unit cost.

78

Line

Prepay Tax Code

Alpha 10

Prepay tax code.

79

Line

Prepay Tax Amount 1

Numeric 18,

Whole 16,

Decimal 2

Prepay tax amount.

80

Line

Prepay Retail Unit Cost

Numeric 18,

Whole 13,

Decimal 5

Prepay retail unit cost.

81

Line

Prepay Date 1

Date 8

Prepay date.

82

Line

Terms Flag

Alpha 1

Terms flag.

83

Line

Catch Weight Cost

Numeric 18,

Whole 13,

Decimal 5

Catch weight cost.

84

Header

Terms Code

Alpha 5

Terms code.

85

AP Distribution

Dist Seq Nbr

Numeric 4

Distribution sequence number. A unique sequence number. Required if you have more than one line of distributions for an invoice.

86

AP Distribution

Taxable Amt

Numeric 18,

Whole 16,

Decimal 2

Taxable amount. The taxable amount of the invoice distribution.

87

AP Distribution

Orig Tran Amt

Numeric 18,

Whole 16,

Decimal 2

Distribution amount. The amount of the invoice distribution in the currency of the invoice.

88

AP Distribution

Dist Company

Numeric 4

Distribution company. The company number used for posting the transaction. A valid intercompany relationship must be defined in the General Ledger application. If left blank, the company number defaults.

89

AP Distribution

Dis Acct Unit

Alpha 15

Required (except for an unreleased distribution with a tax code).

The general ledger distribution accounting unit. A transaction will be created to this account and an offset transaction to the Accounts Payable liability account will occur.

90

AP Distribution

Dis Account

Numeric 6

Distribution account. This is the general ledger distribution account. Required (except for an unreleased distribution with a tax code).

91

AP Distribution

Dis Sub Acct

Numeric 4

Subaccount number. The general ledger distribution subaccount. If you are using subaccounts, this field is required except for an unreleased distribution with a tax code.

92

AP Distribution

AP Dtl Description

AlphaLower 30

Accounts Payable detail description.

93

AP Distribution

Dst Reference

Alpha 10

Reference. The distribution reference. If left blank, the default reference value defined in Accounts Payable Company defaults.

94

Detail,

AP Distribution,

Misc. Header AOC

Activity

Alpha 15

The activity assigned to the distribution. If left blank, defaults from the vendor.

95

Detail,

AP Distribution,

Misc. Header AOC

Acct Category

Alpha 5

The account category assigned to the distribution. If left blank, defaults from the vendor.

96

Detail,

AP Distribution,

Misc. Header AOC

Bill Category

Alpha 32

Billing category.

97

AP Distribution

Unit Amount

Numeric 15,

Whole 13,

Decimal 2

Unit amount. The total units allocated to the distribution.

98

AP Distribution

Asset Desc

AlphaLower 30

Asset description. A description of the asset if an asset is assigned to the distribution.

99

AP Distribution

Tag Nbr

Alpha 12

Tag number. If the distribution contains asset information, this field contains the tag number assigned to the asset. Represents a short name for a part of an asset.

100

AP Distribution

Item Nbr

Alpha 32

Item number. If the distribution contains asset information, this field contains the item number of an asset that is composed of different elements, but depreciated as a common asset unit.

101

AP Distribution

Item Quantity

Numeric 8

The item quantity.

102

AP Distribution

Item Desc

Alpha 30

Item description. If the distribution contains asset information, this field contains the description for stock and non-stock items.

103

AP Distribution

Asset Template

Alpha 10

A user-defined asset template identifies general asset creation parameters that you can use to quickly add assets with minimal keying. Using a template lets you default many data items associated with a new asset.

104

AP Distribution

Insrv Date

Date 8

In-service date. The book in-service date for the asset.

Format = YYYYMMDD

Note The in-service date can be different for each depreciation book used.

105

AP Distribution

Purchase Date

Date 8

The date the asset was purchased. This purchased date can be different from the in-service dates for the depreciation books used.

Format = YYYYMMDD

106

AP Distribution

Model Number

Alpha 30

The model number assigned to the distribution. Used in conjunction with the Asset Template field. If assigned, an asset template must also be assigned to the distribution.

107

AP Distribution

Serial Number

Alpha 30

This optional field is used for the serial number of the asset.

108

AP Distribution

Hold AM

Alpha 1

Hold Asset. This field indicates whether to hold the asset in the Asset interface file. Being held keeps item from becoming assets until they are released from hold.

109

AP Distribution

Asset

Numeric 10

Asset number. The asset number contains up to ten numeric characters that uniquely identify an asset. Assets are automatically numbered application-wide.

110

AP Distribution

Item Tax Tran

Numeric 18,

Whole 16,

Decimal 2

Tax amount. This field contains the tax amount associated with the asset distribution in the currency of the transaction.

111

AP Distribution

Asset Group

Alpha 10

This field contains the asset group assigned to the distribution.

112

AP Distribution

Combine

Alpha 10

Combine assets. This field indicates whether to combine items as one asset.

113

AP Distribution

AU Group

Alpha 10

Accounting unit group.

114

AP Distribution

Dep Exp Actvty

Alpha 15

The default activity assigned to the depreciation.

115

AP Distribution

Dep Acct Cat

Alpha 5

The default account category assigned to the depreciation.

116

AP Distribution

PO AOC Code

Alpha 2

Purchase Order add-on charge codes assigned to a distribution line. Add-on charges can be extra costs such as freight costs or other miscellaneous costs, or can be allowances, such as credits and returns.

117

Detail,

AP Distribution

Tax Usage Cd

Alpha 10

The tax usage code for the vendor.

This field is required if the Accounts Payable company indicates that VAT reporting is required.

118

AP Distribution

Dst Usr Fld 01

Alpha 20

Distribution user-defined field number one. This field can only be used for an Accounts Payable invoice, or invoices where the Match Flag equals No.

The data type of the field is defined during company setup and edited at invoice entry.

119

AP Distribution

Dst Usr Fld 02

Alpha 20

Distribution user-defined field number two. This field can only be used for an Accounts Payable invoice, or invoices where the Match Flag equals No.

120

AP Distribution

Dst Usr Fld 03

Alpha 20

Distribution user-defined field number three. This field can only be used for an Accounts Payable invoice, or invoices where the Match Flag equals No.

121

AP Distribution

Dst Usr Fld 04

Alpha 20

Distribution user-defined field number four. This field can only be used for an Accounts Payable invoice, or invoices where the Match Flag equals No.

122

AP Distribution

Dst Usr Fld 05

Alpha 20

Distribution user-defined field number five. This field can only be used for an Accounts Payable invoice, or invoices where the Match Flag equals No.

123

Misc. Header AOC

Misc AOC Code

Alpha 2

Add-on charge code.

124

Misc. Header AOC

Misc AOC Amount

Numeric 18,

Whole 16,

Decimal 2

Add-on charge amount.

125

Misc. Header AOC

Misc Acct Unit

Alpha 15

Accounting unit.

126

Misc. Header AOC

Misc Account

Numeric 6

Account.

127

Misc. Header AOC

Misc Sub Acct

Numeric 4

Sub account.

128

AOC

AOC Rate

Numeric 7,

Whole 2,

Decimal 5

Add-on cost percentage rate.

129

AOC

Entry

Alpha 1

 

130

Header,

Detail,

AP Distribution, Misc. Header AOC

Segment Block

Alpha 103

 

131

AOC

Landed Flag

Numeric 1

Landed flag.

132

AOC

Landed Unit Cost

Numeric 18,

Whole 13,

Decimal 5

Landed unit cost.

133

AOC

Zero Cost Flag

Alpha 1

Zero cost flag.

134

AOC

AOC On PO

Alpha 1

Add-on charge on the purchase order.

135

AOC

Summary Flag

Alpha 1

Summary flag.

136

AOC

Invoice Sprd Cret

Numeric 1

Invoice spread.

137

AOC

Invoice Tax Amount

Numeric 18,

Whole 16,

Decimal 2

Invoice tax amount.

138

AOC

Accr Tax Amount

Numeric 18,

Whole 16,

Decimal 2

Accrued tax amount.

139

AOC

Ext Tax Amount

Numeric 18,

Whole 16,

Decimal 2

Extended tax amount.

140

AOC

BL Invoice Amount

Numeric 18,

Whole 16,

Decimal 2

Billing invoice amount.

141

Header

Jrnl Book Nbr

Alpha 12

Journal book number.

142

Header

Diverse Code

Alpha 5

Diversity code.

143

Header

Pay Imm Flag

Alpha 1

Pay Immediately flag.

144

Header

Flex Flag

Alpha 1

 

145

Header

AOC Detail

Alpha 1

Add-on charge detail.

146

Header

Rule Group

Alpha 10

Rule group.

147

Header

Comment Seq Number

Numeric 1

Comment sequence number.

148

Header

Comment Name

Alpha 50

Comment name.

149

Header

Comment Text

Alpha 40

Comment text.


Deleted User
New Member Send Private Message
Posts: 0
New Member
Stewart:

We are on 9.0 and using the MA540 - here is a contact: she would be glad to fill you in on what we are doing
here at Geisinger Health System

bvalenti@geisinger.edu
Deleted User
New Member Send Private Message
Posts: 0
New Member
What did you eventually end up doing on this? I am just starting to look at the MA540 process.
Deleted User
New Member Send Private Message
Posts: 0
New Member
Jay;
We do MA540 uploads daily, but we are on Apps9. I can pass on info to you that's specific to APPS9 and how we do it if you like.
Deleted User
New Member Send Private Message
Posts: 0
New Member
Yes Please. That may be helpful.

Thanks
TracyO
Veteran Member Send Private Message
Posts: 97
Veteran Member
Stewart
When I saw your post, that sounded familar to me from when we upgraded to 8.1. I asked my IT person and they did not rembmer but I did get the set up we use in 8.1 and don't have any issues. I don't know if it is different than what you rec'd from Lawson but here is our layout for MA540 interface
Create table workInvoiceDetail


(

record_type varchar(1) NULL,

company varchar(4) NULL,

vendor varchar(9) NULL,

edi_number varchar(5) NULL,

invoice_number varchar(22) NULL,

invoice_suffix int NULL,

seq_nbr int null,

tax_code varchar(10) NULL,

location varchar(15) NULL,

po_code varchar(4) NULL,

po_number varchar(14) NULL,

po_release varchar(4) NULL,

batch_number varchar(4) NULL,

voucher_number varchar(2) NULL,

invoice_authorization varchar(32) NULL,

process_level varchar(5) NULL,

invoice_type varchar(1) NULL,

invoice_current varchar(5) NULL,

invoice_date varchar(8) NULL,

distrib_date varchar(8) NULL,

purch_from_location_origin varchar(4) NULL,

inv_description_manifest_nbr varchar(30) NULL,

inv_amount decimal(18,2) NULL,

allowable_amount decimal(18,2) NULL,

taxable_amount decimal(18,2) NULL,

tax_amount decimal(18,2) NULL,

discount_amount decimal(18,2) NULL,

exchange_rate decimal(14,7) NULL,

discount_rate decimal(5,3) NULL,

discount_date varchar(8) NULL,

due_date varchar(8) NULL,

remit_location varchar(4) NULL,

retail_amount decimal(18,2) NULL,

receipt_inv_date varchar(8) NULL,

reason_code varchar(4) NULL,

match_ref_number varchar(2) NULL,

handling_code varchar(4) NULL,

operator varchar(10) NULL,

term_code varchar(5) NULL,

tax_code_cntl varchar(1) NULL,

cbprint_flag varchar(1) NULL,

user_field1 varchar(5) NULL,

user_field2 varchar(5) NULL,

user_field3 varchar(5) NULL,

user_field4 varchar(5) NULL,

user_field5 varchar(5) NULL,

return_number int NULL,

cost_comp_flag varchar(1) null,

match_cost_comp decimal(18,5) NULL,

hash_quantity decimal(13,4) NULL,

match_prepay_flag varchar(1) null,

match_prepay_mt int null,

prepay_date varchar(8) null,

prepay_discount_code varchar(10) null,

prepay_reference_number varchar(22) null,

prepay_retail_amount decimal(18,2) NULL,

prepay_amount decimal(18,2) NULL,

prepay_aoc_amount decimal(18,2) NULL,

prepay_tax_amount decimal(18,2) NULL,

prepay_serv_amount decimal(18,2) NULL,

line_number int null,

item_number varchar(32) null,

vendor_item varchar(32) null,

quantity decimal(13,4) null,

unit_of_measure varchar(4) null,

unit_cost decimal(18,5) null,

extended_amount decimal(18,2) null,

p_code varchar(2) null,

total_p decimal(18,2) null,

retl_unit_cost decimal(18,5) null,

element1 varchar(32) null,

element2 varchar(32) null,

element3 varchar(32) null,

element4 varchar(32) null,

element5 varchar(32) null,

element6 varchar(32) null,

element7 varchar(32) null,

element8 varchar(32) null,

element9 varchar(32) null,

element10 varchar(32) null,

dtl_dist_comp int null,

acct_unit varchar(15) null,

account int null,

sub_acct int null,

fld76 varchar(1) null,

no_tax_flag varchar(1) null,

fld78 decimal(13,4) null,

fld79 decimal(18,5) null,

fld80 varchar(10) null,

fld81 decimal(18,2) null,

fld82 decimal(18,5) null,

fld83 varchar(08) null,

fld84 varchar(1) null,

fld85 decimal(18,5) null,

terms_code varchar(5) null,

fld87 int null,

fld88 decimal(18,2) null,

fld89 decimal(18,2) null,

fld90 int null,

fld91 varchar(15) null,

fld92 int null,

fld93 int null,

fld94 varchar(30) null,

fld95 varchar(10) null,

activity varchar(15) null,

acct_category varchar(5) null,

bill_category varchar(32) null,

fld99 decimal(15,2) null,

fld100 varchar(30) null,

fld101 varchar(12) null,

fld102 varchar(32) null,

fld103 int null,

fld104 varchar(30) null,

fld105 varchar(10) null,

fld106 varchar(08) null,

fld107 varchar(08) null,

fld108 varchar(30) null,

fld109 varchar(30) null,

fld110 varchar(1) null,

fld111 int null,

fld112 decimal(18,2) null,

fld113 varchar(10) null,

fld114 varchar(10) null,

fld115 varchar(10) null,

fld116 varchar(15) null,

fld117 varchar(05) null,

fld118 varchar(2) null,

tax_usage_cd varchar(10) null,

fld120 varchar(20) null,

fld121 varchar(20) null,

fld122 varchar(20) null,

fld123 varchar(20) null,

fld124 varchar(20) null,

fld125 varchar(2) null,

fld126 decimal(18,2) null,

fld127 varchar(15) null,

fld128 int null,

fld129 int null,

fld130 decimal(7,5) null,

fld131 varchar(1) null,

segment_block varchar(103) null,

fld133 int null,

fld134 decimal(18,5) null,

fld135 varchar(1) null,

fld136 varchar(1) null,

fld137 varchar(1) null,

fld138 int null,

fld139 decimal(18,2) null,

fld140 decimal(18,2) null,

fld141 decimal(18,2) null,

fld142 decimal(18,2) null,

jrnl_book_nbr varchar(12) null,

diverse_code varchar(5) null,

pay_imm_flag varchar(1) null,

flex__flag varchar(1) null,

aoc_detail varchar(1) null,

rule_group varchar(10) null,

comment_seq_number int NULL,

comment_name varchar(50) null,

comment_text varchar(40) null,

notc varchar(2) null,

unloading_port varchar(5) null,

stat_proc varchar(6) null,

ship_via varchar(12) null,

fob_code varchar(3) null,

drop_ship_fl varchar(1) null,

fld158 varchar(1) null,

fld159 varchar(8) null,

fld160 decimal(9,3) null,

fld161 decimal(13,4) null,

fld162 varchar(4) null

)

create table workInvoiceHeader


(

record_type varchar(1) NULL,

company varchar(4) NULL,

vendor varchar(9) NULL,

edi_number varchar(5) NULL,

invoice_number varchar(22) NULL,

invoice_suffix int NULL,

seq_nbr int null,

tax_code varchar(10) NULL,

location varchar(15) NULL,

po_code varchar(4) NULL,

po_number varchar(14) NULL,

po_release varchar(4) NULL,

batch_number varchar(4) NULL,

voucher_number varchar(2) NULL,

invoice_authorization varchar(32) NULL,

process_level varchar(5) NULL,

invoice_type varchar(1) NULL,

invoice_current varchar(5) NULL,

invoice_date varchar(8) NULL,

distrib_date varchar(8) NULL,

purch_from_location_origin varchar(4) NULL,

inv_description_manifest_nbr varchar(30) NULL,

inv_amount decimal(18,2) NULL,

allowable_amount decimal(18,2) NULL,

taxable_amount decimal(18,2) NULL,

tax_amount decimal(18,2) NULL,

discount_amount decimal(18,2) NULL,

exchange_rate decimal(14,7) NULL,

discount_rate decimal(5,3) NULL,

discount_date varchar(8) NULL,

due_date varchar(8) NULL,

remit_location varchar(4) NULL,

retail_amount decimal(18,2) NULL,

receipt_inv_date varchar(8) NULL,

reason_code varchar(4) NULL,

match_ref_number varchar(2) NULL,

handling_code varchar(4) NULL,

operator varchar(10) NULL,

term_code varchar(5) NULL,

tax_code_cntl varchar(1) NULL,

cbprint_flag varchar(1) NULL,

user_field1 varchar(5) NULL,

user_field2 varchar(5) NULL,

user_field3 varchar(5) NULL,

user_field4 varchar(5) NULL,

user_field5 varchar(5) NULL,

return_number int NULL,

cost_comp_flag varchar(1) null,

match_cost_comp decimal(18,5) NULL,

hash_quantity decimal(13,4) NULL,

match_prepay_flag varchar(1) null,

match_prepay_mt int null,

prepay_date varchar(8) null,

prepay_discount_code varchar(10) null,

prepay_reference_number varchar(22) null,

prepay_retail_amount decimal(18,2) NULL,

prepay_amount decimal(18,2) NULL,

prepay_aoc_amount decimal(18,2) NULL,

prepay_tax_amount decimal(18,2) NULL,

prepay_serv_amount decimal(18,2) NULL,

fld61 int null,

fld62 varchar(32) null,

fld63 varchar(32) null,

fld64 decimal(13,4) null,

fld65 varchar(4) null,

fld66 decimal(18,5) null,

fld67 decimal(18,5) null,

fld68 varchar(2) null,

fld69 decimal(18,2) null,

fld70 decimal(18,5) null,

element1 varchar(32) null,

element2 varchar(32) null,

element3 varchar(32) null,

element4 varchar(32) null,

element5 varchar(32) null,

element6 varchar(32) null,

element7 varchar(32) null,

element8 varchar(32) null,

element9 varchar(32) null,

element10 varchar(32) null,

fld72 int null,

fld73 varchar(15) null,

fld74 int null,

fld75 int null,

fld76 varchar(1) null,

fld77 varchar(1) null,

fld78 decimal(13,4) null,

fld79 decimal(18,5) null,

fld80 varchar(10) null,

fld81 decimal(18,2) null,

fld82 decimal(18,5) null,

fld83 varchar(08) null,

fld84 varchar(1) null,

fld85 decimal(18,5) null,

terms_code varchar(5) null,

fld87 int null,

fld88 decimal(18,2) null,

fld89 decimal(18,2) null,

fld90 int null,

fld91 varchar(15) null,

fld92 int null,

fld93 int null,

fld94 varchar(30) null,

fld95 varchar(10) null,

fld96 varchar(15) null,

fld97 varchar(5) null,

fld98 varchar(32) null,

fld99 decimal(15,2) null,

fld100 varchar(30) null,

fld101 varchar(12) null,

fld102 varchar(32) null,

fld103 int null,

fld104 varchar(30) null,

fld105 varchar(10) null,

fld106 varchar(08) null,

fld107 varchar(08) null,

fld108 varchar(30) null,

fld109 varchar(30) null,

fld110 varchar(1) null,

fld111 int null,

fld112 decimal(18,2) null,

fld113 varchar(10) null,

fld114 varchar(10) null,

fld115 varchar(10) null,

fld116 varchar(15) null,

fld117 varchar(05) null,

fld118 varchar(2) null,

fld119 varchar(10) null,

fld120 varchar(20) null,

fld121 varchar(20) null,

fld122 varchar(20) null,

fld123 varchar(20) null,

fld124 varchar(20) null,

fld125 varchar(2) null,

fld126 decimal(18,2) null,

fld127 varchar(15) null,

fld128 int null,

fld129 int null,

fld130 decimal(7,5) null,

fld131 varchar(1) null,

segment_block varchar(103) null,

fld133 int null,

fld134 decimal(18,5) null,

fld135 varchar(1) null,

fld136 varchar(1) null,

fld137 varchar(1) null,

fld138 int null,

fld139 decimal(18,2) null,

fld140 decimal(18,2) null,

fld141 decimal(18,2) null,

fld142 decimal(18,2) null,

jrnl_book_nbr varchar(12) null,

diverse_code varchar(5) null,

pay_imm_flag varchar(1) null,

flex__flag varchar(1) null,

aoc_detail varchar(1) null,

rule_group varchar(10) null,

comment_seq_number int NULL,

comment_name varchar(50) null,

comment_text varchar(40) null,

notc varchar(2) null,

unloading_port varchar(5) null,

stat_proc varchar(6) null,

ship_via varchar(12) null,

fob_code varchar(3) null,

drop_ship_fl varchar(1) null,

fld158 varchar(1) null,

fld159 varchar(8) null,

fld160 decimal(9,3) null,

fld161 decimal(13,4) null,

fld162 varchar(4) null

)



stcyrk
Basic Member Send Private Message
Posts: 18
Basic Member
I am currently wrestling with MA540 on APPS9 as well.  Are you matching?  I am able to get an invoice created, but not able to match yet.
Deleted User
New Member Send Private Message
Posts: 0
New Member
We are in the middle of upgrading to apps9 so I haven't looked at the project in awhile. I think we are probably at roughly the same place you are.
TBonney
Veteran Member Send Private Message
Posts: 281
Veteran Member
Please advise if you have been able to work out your issues with getting this MA540 Matching process working yet?

We too have been working on setting up MA540 and run into problems along the way. We have been able to create the MA540 and process the incoming ED502 test file from GHX with it. However, we too have had difficulty in determining whether or not the matching is actually working properly.

If you would not be opossed to it, perhaps we could hold a conference call to discuss this in more detail. Please let me know if you might be willing to do so.

Thank you.
Deleted User
New Member Send Private Message
Posts: 0
New Member
We put that on hold while doing Apps 9. Sorry.
brainet
Basic Member Send Private Message
Posts: 18
Basic Member
We have been doing invoice uploads for several years now, and had processes in place to upload these files into apcinvoice and apcdistrib. These were all non PO invoices so when we started needing to upload matching invoices we went along the same lines. We create our upload CSV files and do an importdb into MACINVOICE, MACAPDTL and MACINVDTL. The CSV files are created with headers to make it easier (less fields to pass) and the importdb does a lot of editing for you. When we run the MA540 we select the database option and have not had any problems with the invoices matching the PO’s. The file layout for the three files should be in an Excel file that you can get from the Knowledge Base on Lawson Support. We are on Lawson Apps 9 and running on an aix box.
DegenJF
New Member Send Private Message
Posts: 2
New Member
Do you have the 7.2 MA540M file layout?