Document Change History:
Ver.Rel. No Release date Created By Reviewed By Approved Remarks
By
A 31-May-22 Ajay Krishna Draft
Interface Name Integration InvoicesPaymentVouchers_AMS to SAP
MAXIMO INVOICE FIELDS
Label Name Object Field Name
Total Base Cost INVOICE BASETOTALCOST
Contact INVOICE CONTACT
Currency INVOICE CURRENCYCODE
Description INVOICE DESCRIPTION
Type INVOICE DOCUMENTTYPE
Due Date INVOICE DUEDATE
Invoice Date INVOICE INVOICEDATE
Invoice INVOICE INVOICENUM
Organization INVOICE ORGID
Original Invoice INVOICE ORIGINVOICENUM
Paid INVOICE PAID
Paid Date INVOICE PAIDDATE
PO INVOICE PONUM
PO Site INVOICE POSITEID
Site INVOICE SITEID
Status INVOICE STATUS
Invoice Total INVOICE TOTALCOST
Company INVOICE VENDOR
Vendor Invoice INVOICE VENDORINVOICENUM
Commodity Code INVOICELINE COMMODITY
Commodity Group INVOICELINE COMMODITYGROUP
Condition Code INVOICELINE CONDITIONCODE
Contract Reference INVOICELINE CONTRACTREFNUM
Contract Reference Revision INVOICELINE CONTRACTREFREV
Contract Reference Line ID INVOICELINE CONTREFLINEID
Conversion Factor INVOICELINE CONVERSION
Description INVOICELINE DESCRIPTION
Line INVOICELINE INVOICELINENUM
Invoice INVOICELINE INVOICENUM
Quantity INVOICELINE INVOICEQTY
Order Unit INVOICELINE INVOICEUNIT
Item INVOICELINE ITEMNUM
Line Cost INVOICELINE LINECOST
Secondary Line Cost INVOICELINE LINECOST2
Line Type INVOICELINE LINETYPE
Loaded Cost INVOICELINE LOADEDCOST
Organization INVOICELINE ORGID
PO Line INVOICELINE POLINENUM
PO INVOICELINE PONUM
PO Site INVOICELINE POSITEID
Site INVOICELINE SITEID
Unit Cost INVOICELINE UNITCOST
Vendor INVOICELINE VENDOR
Work Order INVOICECOST REFWO
hers_AMS to SAP
MAXIMO INVOICE FIELDS IDOC
DataType Length Description Idoc Segment
AMOUNT 10 Total cost of the invoice in base currency
ALN 50 Contact name used when paying invoice.
UPPER 8 Currency used to pay invoice.
ALN 100 Short Description about the invoice.
UPPER 12 The type of document, such as invoice, credit, deb
it, or consignment payment.
DATE 4 When payment is due.
DATE 4 The date the invoice was created.
UPPER 8 Invoice number
UPPER 8 Organization Identifier
UPPER 8 Reference to invoice if it is a credit or debit note.
DECIMAL 10 This is the amount that was actually paid.
DATE 4 Date when payment made.
UPPER 8 The PO number associated with the invoice
UPPER 8 The site where the purchase order was created. T
o create an invoice, you must have security privile
ges to the same organization to which the purchas
e order site belongs.
UPPER 8 Site Identifier
UPPER 10 The current status of this invoice.
DECIMAL 10 Total that is payable to vendor.
UPPER 12 The supplier who issued the invoice.
UPPER 12 Vendor's Invoice number
UPPER 8 Commodity
UPPER 8 Commodity Group
UPPER 30 item condition code for the invoice line
UPPER 8 Contract Reference Number.
INTEGER 12 Contract Reference Revision Number.
BIGINT 19 Identifies the contract line that was used to find t
he price for this line
DECIMAL 15 Conversion factor between order units and issue u
nits.
ALN 100 The description of the item.
INTEGER 12 System generated invoice line item number.
UPPER 8 Invoice number this line belongs to.
DECIMAL 15 Quantity invoiced on this line.
UPPER 16 Unit of measure for this item.
UPPER 30 Item number of this invoice line.
DECIMAL 10 The total line cost for the item or service.
DECIMAL 10 Base Currency Line Cost 2.
UPPER 15 Line type. The value of line type could be Item, M
aterial, Service, Special Order or External Catalog I
tem.
DECIMAL 10 Line cost loaded with taxes & special charges.
UPPER 8 Organization Identifier
INTEGER 12 The line item on the PO that refers to this invoice l
ine item.
UPPER 8 The PO that this line item refers to
UPPER 8 The site where the purchase order was created. T
o create an invoice, you must have security privile
ges to the same organization to which the purchas
e order site belongs.
UPPER 8 Site Identifier
DECIMAL 10 Unit price of item or service.
UPPER 12 Supplier of invoice.
UPPER 10 Referenced Work Order
SAP INVOICE FIELDS
Field Name DataType Length Description
NA
LIFNR-LFA1 Contact - LFA1 - SORTL (H1 Filed from SAP)
WAERS-LFM1 Currency in vendor Master
SGTXT-RSEG TEXT 25 Document header text
NA
ZFBDT-RBKP DATE 10 Date on which invocie is due
BLDAT-RBKP DATE 10 invoice date
BELNR-RBKP NUMRIC 10 Document Number of Miro
BUKRS-RBKP ALFA-NUMRIC 4 Company code
NA
NA
AUGDT-BSEG DATE 10 Invoice payment date
EBELN-RSEG NUMRIC 10 PO number
WERKS-RSEG NUMRIC 4 Plant
WERKS-RSEG NUMRIC 4 Plant
ICO_AUGP Checkbox 1 Status of invoice i.e open or closed
NA
LIFNR-LFA1 NUMRIC 09 The Supplier number
XBLNR-RBKP ALFA-NUMRIC 16 Invoice number of vendor invoice
NA
NA
NA
KONNR-EKPO Agreement Number
LABNR-EKPO Modification Version Order ack number
EBELP-EKPO Line item number
Send Value As 1
TXZ01 ALFA-NUMRIC 40 po TEXT
EBELP-EKPO Line item number
BELNR-RSEG NUMRIC 10 Document Number of Miro
MENGE-RSEG Quantity of the line
MEINS ALFA-NUMRIC 3 Unit of Measure
MATNR ALFA-NUMRIC 40 Material Code
NA
NA
NORMT-EKPO Doc type ZHQP Item Category Blank
Service Doc type ZSRV Item Cat - B &
Assignment category - K
NA
BUKRS-RBKP ALFA-NUMRIC 4 Company code
EBELP-EKPO NUMRIC 10 PO Line
EBELN-EKPO NUMRIC 10 PO Number
WERKS-RSEG NUMRIC 4 Plant
WERKS-RSEG NUMRIC 4 Plant
NETPR NUMRIC 11 Net price per unit
NA
Custome Field work order number
Sample Doc
Number use in
1122000004 BSEG Table
Paid date ZFI_INVPAYVOUCHER_SAP_TO_AMS
Status
linetype
Multiple line
Invoice single line
reflecting in PO
server
INVOICE FIELDS
Remarks/Logic in SAP PI Map
Invocie Booked Send status as APPR & when
Invocie cleared send status as PAID
For Reverse Invoice send status as REVERSED
Line item
Line item
Line item
Line item
Line item
Line item
Header item
Line item
Line item
Line item
Sent Value as ITEM OR TOOL if Material PO Line Item
Sent Value as STDSERVICE if Service PO
Header item
Line item
Header item
Line item
BELNR-BSEG
Input Parameters
BUZID-BSEG = W
Field Name LIFNR-BSEG
Header
DataType NUMRIC
Length 10
Invocie Party Number
Description
Pass the Input Parameters (BELNR) in
BSEG table and get field (AWKEY)
fetch first 10 digit of AWKEY field and
pass this in table RBKP-BELNR the
fetch (LIFNR)
Remarks/Logic in SAP PI
CL_EX_FI_TRANS_DATE_DERIVE Transaction Date Derived
CL_EX_BADI_LAYER Badi Layer
CL_EX_BADI_FM_USE_ASSIGN Badi FM use Assigned
CL_EX_TAX_CONDITIONS Tax Condition
CL_EX_BADI_FMDERIVE Badi FMDERIVE
CL_EX_FM_AUTH_OLD_ACTIVITY FM_AUTH_OLD_ACTIVITY
CL_EX_FM_DATES_ENHANCEMENT FM_DATES_ENHANCEMENT
CL_EX_FMFG_FUNDMSG_DRV_DEF FMFG_FUNDMSG_DRV_DEF
CL_EX_FAGL_SEGMENT_BS_ACC FAGL_SEGMENT_BS_ACC
CL_EX_FAGL_DERIVE_SEGMENT FAGL_DERIVE_SEGMENT
CL_EX_FAGL_DERIVE_PSEGMENT FAGL_DERIVE_PSEGMENT
CL_EX_FQST_CALC_COUNTRY FQST_CALC_COUNTRY
CL_EX_AC_QUANTITY_GET
CL_EX_FMRI
CL_EX_SMOD_SAPLFMRI
CL_EX_FMRE_BUS_PROCESS
CL_EX_FAGL_SET_SEGMENT
CL_EX_GLT0_REPLACE_ASGMT
CL_EX_GLT0_COMPRESS_ITEM
CL_EX_GLT0_CLR_ASGMT
CL_EX_GLT0_INV_REF_FMFG
CL_EX_GLT0_COMPLETE_ASGMT
CL_EX_GLT0_CLEARING_ITEMS
H_WAERS-BSEG SGTXT-RBKP
Header Header
TEXT TEXT
3 25
Transaction Currency Document header text
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table and fetch the filed BSEG table get the fist 10 Digits of Ref.
(H_WAERS) Key field (AWKEY). Enter this 10 Digit
number in RBKP table in BELNR Field
and fetch SGTXT field
ZFBDT-BSEG BUDAT-RBKP
Header Header
DATE DATE
10 10
Date on which invocie is due invoice date
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table and get field AWKEY fetch BSEG table get the fist 10 Digits of Ref.
first 10 digit of AWKEY field and pass Key field (AWKEY). Enter this 10 Digit
this in table RBKP-BELNR and fetch number in RBKP table in BELNR Field
the filed (ZFBDT) and fetch BUDAT field
BELNR-BSEG BUKRS-BSEG
Header Header
NUMRIC ALFA-NUMRIC
10 4
Document Number of Miro Company code
This is the Input Paramete after Pass the Input Parameters (BELNR) in
entring Document number (BELNR) in BSEG table and fetch the filed (BUKRS)
table BSEG will get other fileds
information
H_BUDAT-BSEG EBELN-RSEG
Header Header
DATE NUMRIC
10 10
Invoice payment date PO number
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table and fetch the field BSEG table get the fist 10 Digits of Ref.
H_BUDAT Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field
and fetch EBELN field
WERKS-RSEG WERKS-RSEG
Header Header
NUMRIC NUMRIC
4 4
Plant Plant
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and fetch WERKS field and fetch WERKS field
BSIK / BSAK LIFNR-LFA1
Header Header
TEXT NUMRIC
4 09
Status of invoice i.e open or closed The Supplier number
Pass the Input Paramter (BELNR) in Pass the Input Parameters (BELNR) in
BSIK/BSAK table BSEG table and fetch the field Supplier
If the BELNR found in BSIK table it means LIFNR
Invoice are open then Pass the Value
APPR
If the BELNR found in BSAK table it
means Invocie are closed then pass the
value PAID
For reverse Invoice
Go to BKPF table enter the Input
Parameter (BELNR) and feth the field
(STGRD) reversal reason
Pass the value REVERSED if (STGRD) = 01
ok
XBLNR-RBKP KONNR-EKPO
Header Line Item
ALFA-NUMRIC TEXT
16 10
Invoice number of vendor invoice Agreement Number
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RBKP table in BELNR Field number in RSEG table in BELNR Field
and fetch XBLNR field and Pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and
fetch the field KONNR
No values in Field
LABNR-EKPO EBELP-EKPO
Header Line item
TEXT NUMRIC
20 3
Modification Version Order ack Line item number
number
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and Pick Pur doc number (EBELN) pass and Pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and this EBELN field in table EKPO and
fetch the field LABNR fetch the field EBELP
No Values in Field
TXZ01-EKPO
Line item
ALFA-NUMRIC
40
Conversion Factor PO TEXT
there is no field available in SAP Pass the Input Parameters (BELNR) in
Send Value As 1 form PO server BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field
and Pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and
fetch the field TXZ01
EBELP-EKPO BELNR-RSEG
Line Item
NUMRIC NUMRIC
3 10
Line item number Document Number of Miro
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY)
number in RSEG table in BELNR Field
and Pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and
fetch the field EBELP
ok
MENGE-RSEG MEINS-RSEG
Line item Line Item
NUMRIC ALFA-NUMRIC
13 3
Quantity of the line Unit of Measure
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and fetch MENGE field and fetch MEINS field
MATNR-RSEG NORMT-EKPO
Line Item Line Item
ALFA-NUMRIC TEXT
40 3
Material Code Category of PO
For Material PO For Material PO
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and fetch MATNR field and get the filed EBELN enter this
EBELN in table EKPO
If EKPO - PSTYP is Blank and getting
value of EKPO - MATNR then pass this
MATNR in MARA and fetch MARA -
NORMT
For Service PO For Service PO
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get EBELN and EBELP and BSEG table get the fist 10 Digits of Ref.
pass in EKPO and fetch PACKNO. Pass Key field (AWKEY). Enter this 10 Digit
it to ESLL and fetch SUB_PACKNO number in RSEG table in BELNR Field
again pass it to ESLL - PACKNO and and get the filed EBELN enter this
fetch SRVPOS EBELN in table EKPO
If EKPO - PSTYP = D, then Pass value as
'STDSERVICE' if Pass EKPO - EBELN and
EBELP and fetch PACKNO. Pass it to
ESLL and fetch SUB_PACKNO again
pass it to ESLL - PACKNO and fetch
SRVPOS, or else pass 'SERVICE
If BSART = ZHQP and PSTYP & KNTTP
is blank then sent value as ITEM or
TOOL (Pass EBAN-MATNR in MARA &
fetch NORMT and sent value from it)
If BSART = ZSER and PSTYP & KNTTP is
9 & K respectivly then sent value as
STDSERVICE
line type -MARA - NORMT or 'SERVICE'
'STDSERVICE' 'MATERIAL'
BUKRS-RBKP EBELP-EKPO
Line Item
ALFA-NUMRIC NUMRIC
4 10
Company code PO Line
Pass the Input Parameters (BELNR) in For Material PO
BSEG table and fetch the field Pass the Input Parameters (BELNR) in
Company code (BUKRS) BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field
and Pur doc number (EBELN) pass this
EBELN field in table EKPO and fetch
the field EBELP
For Service PO
Pass the Input Parameters (BELNR) in
BSEG table get EBELN and EBELP and
pass in EKPO and fetch PACKNO. Pass
it to ESLL and fetch SUB_PACKNO
again pass it to ESLL - PACKNO and
fetch EXTROW
EBELN-EKPO WERKS-RSEG
Header Header
NUMRIC NUMRIC
10 4
PO Number Plant
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and fetch the field (EBELN) and fetch WERKS field
WERKS-RSEG NETPR-EKPO
Header Line Item
NUMRIC NUMRIC
4 11
Plant Net price per unit
Pass the Input Parameters (BELNR) in Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref. BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field number in RSEG table in BELNR Field
and fetch WERKS field and pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and
fetch the field NETPR
Pass the Input Parameters (BELNR) In
BSEG Table and go to line itme id
(BUZID) = W and fetch DMBTR
AFNAM-EBAN
Line item
TEXT
12
Custome Field work order number
Pass the Input Parameters (BELNR) in
BSEG table get the fist 10 Digits of Ref.
Key field (AWKEY). Enter this 10 Digit
number in RSEG table in BELNR Field
and pick Pur doc number (EBELN) pass
this EBELN field in table EKPO and pick
the field EBELN & EBELP and enter this
field in table EBAN and fetch the field
BANFN & BNFPO
Field Mapping Inv Pay voucher
AMS SAP
CONTACT LIFNR
CURRENCYCODE WAERS
DESCRIPTION SGTXT
DUEDATE ZFBDT
INVOICEDATE BLDAT
INVOICENUM BELNR
ORGID BUKRS
PAIDDATE AUGDT
PONUM EBELN
POSITEID WERKS
SITEID WERKS
VENDOR LIFNR
VENDORINVOICENUM XBLNR
CONTRACTREFNUM KONNR
CONTRACTREFREV LABNR
CONTREFLINEID EBELP
DESCRIPTION TX01
INVOICELINENUM EBELP
INVOICENUM BELNR
INVOICEQTY MENGE
INVOICEUNIT MEINS
ITEMNUM MATNR
LINETYPE NORMT / PACKNO
ORGID BUKRS
POLINENUM EBELP
PONUM EBELN
POSITEID WERKS
SITEID WERKS
UNITCOST NETPR