Professional Documents
Culture Documents
RFC para La Integración de Ariba Network Con SAP ERP PDF
RFC para La Integración de Ariba Network Con SAP ERP PDF
This documentation, as well as the Ariba software and/or services described in it, contain proprietary information. They are provided under a
license or other agreement containing restrictions on use and disclosure and are also protected by copyright, patent and/or other intellectual
property laws. Except as permitted by such agreement, no part of the document may be reproduced or transmitted in any form by any means,
electronic, mechanical or otherwise, without the prior written permission of Ariba, Inc.
Ariba, Inc. assumes no responsibility or liability for any errors or inaccuracies that may appear in the documentation. The information contained
in the documentation is subject to change without notice.
Ariba, the Ariba logo, AribaLIVE, SupplyWatch, Ariba.com, Ariba.com Network and Ariba Spend Management. Find it. Get it. Keep it. and PO-
Flip are registered trademarks of Ariba, Inc. Ariba Procure-to-Pay, Ariba Buyer, Ariba eForms, Ariba PunchOut, Ariba Services Procurement,
Ariba Travel and Expense, Ariba Procure-to-Order, Ariba Procurement Content, Ariba Sourcing, Ariba Savings and Pipeline Tracking, Ariba
Category Management, Ariba Category Playbooks, Ariba StartSourcing, Ariba Spend Visibility, Ariba Analysis, Ariba Data Enrichment, Ariba
Contract Management, Ariba Contract Compliance, Ariba Electronic Signatures, Ariba StartContracts, Ariba Invoice Management, Ariba
Payment Management, Ariba Working Capital Management, Ariba Settlement, Ariba Supplier Information and Performance Management, Ariba
Supplier Information Management, Ariba Discovery, Ariba Invoice Automation, Ariba PO Automation, Ariba Express Content, Ariba Ready,
and Ariba LIVE are trademarks or service marks of Ariba, Inc. All other brand or product names may be trademarks or registered trademarks of
their respective companies or organizations in the United States and/or other countries.
Ariba Sourcing solutions (On Demand and software) are protected by one or more of the following patents, including without limitation: U.S.
Patent Nos. 6,199,050; 6,216,114; 6,223,167; 6,230,146; 6,230,147; 6,285,989; 6,408,283; 6,499,018; 6,564,192; 6,871,191; 6,952,682;
7,010,511; 7,072,061; 7,130,815; 7,146,331; 7,152,043;7,225,152; 7,277,878; 7,249,085; 7,283,979; 7,283,980; 7,296,001; 7,346,574; 7,383,206;
7,395,238; 7,401,035; 7,407,035; 7,444,299; 7,483,852; 7,499,876; 7,536,362; 7,558,746; 7,558,752; 7,571,137; 7,599,878; 7,634,439;
7,657,461; and 7,693,747. Patents pending.
Other Ariba product solutions are protected by one or more of the following patents:
U.S. Patent Nos. 6,199,050, 6,216,114, 6,223,167, 6,230,146, 6,230,147, 6,285,989, 6,408,283, 6,499,018, 6,564,192, 6,584,451, 6,606,603,
6,714,939, 6,871,191, 6,952,682, 7,010,511, 7,047,318, 7,072,061, 7,084,998; 7,117,165; 7,225,145; 7,324,936; and 7,536,362. Patents pending.
Certain Ariba products may include third party software or other intellectual property licensed from a third party. For information regarding
software or other intellectual property licensed from a third party, go to http://www.ariba.com/copyrights.cfm
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 2 Revised 25, April 2014
Table of Contents
Integration of Invoice Status Update with Ariba Network ...................................................... 5
Summary .......................................................................................................................................5
Design............................................................................................................................................5
Prerequisite/Setup: ........................................................................................................................5
Parameters: ...................................................................................................................................5
RFC Pseudo Code:...........................................................................................................................8
Output Structure of Invoice Status Update (ISU)..............................................................................8
Pseudo Code: .................................................................................................................................9
Data Filters ..................................................................................................................................10
Error Handling ..............................................................................................................................10
Globalization................................................................................................................................11
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 3 Revised 25, April 2014
Integration of ERP-Initiated Invoice with Ariba Network ...................................................... 20
Summary .....................................................................................................................................20
Design..........................................................................................................................................20
Prerequisite/Setup: ......................................................................................................................20
Parameters: .................................................................................................................................20
RFC Pseudo Code:.........................................................................................................................21
/ARBA/INVOICE_GET_DETAILS .....................................................................................................22
Output Structures of ERP-Initiated Invoice ....................................................................................22
Pseudo Code: ...............................................................................................................................24
Data Filters ..................................................................................................................................27
Error Handling ..............................................................................................................................28
Globalization................................................................................................................................28
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 4 Revised 25, April 2014
Integration of Invoice Status Update with Ariba
Network
Summary
This document describes design, functionality within SAP and pseudo code for Invoice Status Update.
This RFC will fetch the invoice statuses for the AN enabled vendor in regular intervals based on the date
and time stamp. Invoices with different statuses like Reconciled, Canceled, Processing, Paid and
Rejected are pulled.
Design
This would be schedule task which can be run at regular intervals. This process will be initiated from
proxy program /ARBA/INVSTATUPDT_EXPORT which calls the RFC function module
'/ARBA/INVOICE_STATUS_UPDATE' to pull the Invoice Status Update information from SAP. Data from
SAP is mapped to AN’s cXML and the data is posted to ASN using NetWeaver XI.
Prerequisite/Setup:
1. /ARBA/AN_VENDOR should be populated with enabled vendors for which the invoices
should be pulled.
2. Invoice document type, partial payment document and full payment document type
parameters should be maintained in /ARBA/PARAM_TAB.
3. The Authorization objects ZARIBA_RFC need to be added to the user who is executing the
function module.
Parameters:
CHECK_XBLNR_EMPTY K~XBLNR I NE If
INVOICE_DOC_OPTION
parameter is set and if
the XBLNR field is not
filled in invoice, then
those invoice
documents are not
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 5 Revised 25, April 2014
NAME FIELDNAME SIGN OPTI LOW HIGH DESCRIPTION
sent to AN.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 7 Revised 25, April 2014
RFC Pseudo Code:
Import Parameters:
Export Parameters:
Tables:
/ARBA/INVOICE_STATUS_UPDATE
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 8 Revised 25, April 2014
Pseudo Code:
1. Only users who are having authorization will be able to execute this RFC. If this
authorization object is not added, then RFC execution will be terminated with an exception
‘No Authorization to execute the transaction’.
3. The invoice document types, partial payment document types and full payment document
types are picked from /ARBA/PARAM_TAB.
4. Get all the invoice accounting documents created or changed after last run date for all the
AN enabled vendors from BKPF and BSIK (user inner join and to filter the credit memo’s use
the BKPF-TCODE <> ‘MR8M’). Reversed documents are not taken.
5. The invoice status is set as ‘reconciled’ for newly created and changed invoices if there is no
payment block (BSIK-ZLSPR = Blank).
6. The invoice status is set as ‘processing’ for newly created and changed invoices if there is a
payment block (BSIK-ZLSPR not equal to blank).
8. Partially Paid Invoices: If the partial payment is done for the invoices after the last run date
get the partial payment details using the BSIK and BKPF. Get the invoice details for the same
from BKPF (document type, Invoice information for the partial payment will be stored in
field REBZG, REBZJ, REBZZ).
9. The status is populated as paid and the comments field is populated as ‘Paid using manual
partial payment (f-58) in SAP’.
10. Fully Paid Invoices: Get all the full payments for the AN enabled vendors after the last run
date from BSAK and BKPF for the full payment document types. Fetch the invoice details
from BSAK and BKPF for the payments. The status is set to ‘paid’ and comment is populated
as ‘Paid using manual full payments (f-58) SAP’.
11. Reversed Invoices: Reversed payments are fetched for the AN enabled vendors after the last
run date and time from BSAK and BKPF.( where xreversal = 2[Reversal Documents]). The
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 9 Revised 25, April 2014
invoices for the reversed payments are fetched from BSAK and BKPF by passing company
code and reversed payment document number.
13. Rejected Invoices: If the invoice is created in AN and sent to SAP R/3 via IDOC and if the
IDOC creation fails, then the IDOC details are fetched from EDID4 table and the status is
populated as ‘rejected’ and the ISU is again sent back to AN.
16. Invoice Details like Vendor, Document Date, Document time, Amount and currency is also
populated in the Output table.
18. If the ERP_INV_PROCESSED_STATUS is not maintained, then the invoice status will be sent
to the invoice which is not available in AN.
Data Filters
1. Last Pull Date: This is the date with timestamp of the last pull/run date/time of this batch
integration process. The program updates the date-time stamp in /arba/proxyparam table.
2. Customers need to populate all the AN enabled vendors in /ARBA/AN_VENDOR for which the
invoice data’s needs to be pulled.
3. Invoice Document type, partial payment document type and full payment document type should
be maintained in /ARBA/PARAM_TAB.
Error Handling
2. If fully paid document types are not maintained in /ARBA/PARAM_TAB, then transaction is
terminated with message ‘Maintain
INVOICE_DOC_TYPE_FULL_AUTO/INVOICE_DOC_TYPE_FULL_MANUAL parameter in
/ARBA/PARAM_TAB’.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 10 Revised 25, April 2014
3. If the user who is executing the transaction is not having authorization, then the transaction is
terminated with a message ‘No Authorization to execute the transaction’.
Globalization
Time zone: In SAP time zone data of the invoice is not maintained hence we have provided a Time zone
as the global variable in NetWeaver XI.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 11 Revised 25, April 2014
Integration of Payment Proposal Request with
Ariba Network
Summary
This document describes design, functionality within SAP and pseudo code for the Payment Proposal
Request. This RFC will fetch the payments schedules or payment proposal information for the AN
enabled vendor in regular intervals based on the date and time stamp. The payments schedule data’s
are derived from the invoice.
Design
This would be schedule task which can be run at regular intervals. This process will be initiated from the
proxy program /ARBA/PAYMENTPROPOSAL_EXPORT which invokes the RFC function
/ARBA/PAYMENT_PROPOSAL which takes the input as last run date-time stamp got from the table
/ARBA/PROXYPARAM to pull the Payment Proposal information from SAP. Data from SAP is mapped to
AN’s cXML and the data is posted to ASN using NetWeaver XI.
Prerequisite/Setup:
1. /ARBA/AN_VENDOR should be populated with AN enabled vendors for which the invoices
should be pulled.
2. Invoice document type and partial payment document type parameters should be
maintained in /ARBA/PARAM_TAB.
3. The Authorization objects ZARIBA_RFC need to be added to the user who is executing the
function module.
Parameters:
CHECK_XBLNR_EMPTY K~XBLNR I NE If
INVOICE_DOC_OPTION
parameter is set and if
the XBLNR field is not
filled in invoice, then
those invoice
documents are not
sent to AN.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 12 Revised 25, April 2014
INVOICE_DOC_OPTION I EQ XBLNR To send output invoice
number as XBLNR.
Import Parameters:
Export Parameters:
Tables:
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 14 Revised 25, April 2014
RECV_BANK_INFO Like /ARBA/REC_BANK
/ARBA/PAYMENT_PROPOSAL
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 15 Revised 25, April 2014
Payee Details /ARBA/PAYEE
Pseudo Code:
1. Only users who are having authorization will be able to execute this RFC. If this
authorization object is not added, then RFC execution will be terminated with an exception
‘No Authorization to execute the transaction’.
3. The invoice document types and partial payment document types are picked from
/ARBA/PARAM_TAB.
4. Get all the invoice accounting documents created or changed after last run date for all the
AN enabled vendors from BKPF and BSIK(user inner join and to filter the credit memo’s use
the BKPF-TCODE <> ‘MR8M’)
5. If the documents are created on the same day as last run date consider only those which are
created after the time in the last run date
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 17 Revised 25, April 2014
picked if the following fields are changed. This is to ensure duplicate entries are not sent to
Ariba Network.
a. Payment Method
b. Discount Dates
c. Payment Terms
d. Payment Block Key
7. If the partial payment is done for the invoices after the last run date get the partial
payment details using the BSIK. Get the invoice details for the same using BSIK and BKPF
(document type, Invoice information for the partial payment will be stored in field REBZG,
REBZJ, REBZZ) and update the Payment schedule with the total unpaid amount details
(Invoice amount – partially paid amount)
8. Logic for populating proposal ID: Proposal ID is a concatenation of Invoice Number, Fiscal
Year, Item Number, Company Code and System ID.
9. If the invoice document has a payment block then the operation field is set to ‘hold’ else the
operation field is populated as ‘new’.
10. Logic for populating Discounts: If the customer does not want any discount and he want to
pay only the net amount, then the parameter NET_DISCOUNT_DAYS need to be maintained.
If the NET_DISCOUNT_DAYS is not maintained, then the discount is calculated based on the
payment terms and due dates maintained in the invoice.
12. The discount amount is calculated by multiplying the discount rate with gross amount
divided by 100.
14. Other Payment Proposal Related data’s are populated by taking them directly from
BSIK/BKPF.
16. Populate Payer Details. These data’s are picked from T001.
17. Populate Payee Details. These data’s are picked from LFA1 and ADRC.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 18 Revised 25, April 2014
18. Populate the Bank Details if the payment method is bank transfer only(T or U). The details
are fetched from BNKA.
Data Filters
1. Last Pull Date: This is the date with timestamp of the last pull/run date/time of this batch
integration process.
2. Customers need to populate all the AN enabled vendors in /ARBA/AN_VENDOR for which the
invoice data’s needs to be pulled.
3. Invoice Document type and partial payment document type should be maintained in
/ARBA/PARAM_TAB.
Error Handling
2. If the user who is executing the transaction is not having authorization, then the transaction is
terminated with a message ‘No Authorization to execute the transaction’.
Globalization
Time zone: In SAP time zone data of the invoice is not maintained hence we have provided a Time zone
as the global variable in NetWeaver XI.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 19 Revised 25, April 2014
Integration of ERP-Initiated Invoice with Ariba
Network
Summary
This document describes design, functionality within SAP and pseudo code for the ERPCC invoice
[Carbon Copy of Invoice]. The invoices created in SAP are fetched in regular time intervals based on date
and time stamp and sent to Ariba Network.
Design
This would be schedule task which can be run at regular interval. This process will be initiated from the
proxy program /ARBA/ERPINVOICE_EXPORT which calls the RFC function /ARBA/INVOICE_GET_DETAILS
which takes the input as last run date-time stamp got from the table /ARBA/PROXYPARAM to pull the
ERPCC information from SAP. Data from SAP is mapped to AN’s cXML and the data is posted to ASN
using NetWeaver XI.
Prerequisite/Setup:
1. /ARBA/AN_VENDOR should be populated with AN enabled vendors for which the invoices
should be pulled.
3. The Authorization object ZARIBA_RFC need to be added to the user who is executing the
function module.
Parameters:
CHECK_XBLNR_EMPTY K~XBLNR I NE If
INVOICE_DOC_OPTION
parameter is set and if
the XBLNR field is not
filled in invoice, then
those invoice
documents are not
sent to AN.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 20 Revised 25, April 2014
number as XBLNR.
Import Parameters:
Export Parameters:
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 21 Revised 25, April 2014
DATE_OUT Like SY-DATUM
Tables:
/ARBA/INVOICE_GET_DETAILS
Pseudo Code:
1. Only users who are having authorization will be able to execute this RFC. If this
authorization object is not added, then RFC execution will be terminated with an exception
‘No Authorization to execute the transaction’.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 24 Revised 25, April 2014
3. The invoices that are created after the last run date for all AN enabled vendors from BKPF
and BSIK is picked.
Filters:
1. Based on invoice doc option parameter, SAP Invoice Number or Reference document
number is populated.
2. Header details like fiscal year, document type, document date, posting date, document
time, header text and currency are populated.
4. Purchase Order Number is populated if it’s a PO based Invoice. The purchase order number
is picked from BSEG-EBELN.
5. Plant address details are populated. Every Plant will be having address number. Address
number is picked from T001W and the address details are fetched from ADRC by passing the
plant address number.
a. The purpose field is used for identifying whether the document is credit memo/Line
level credit memo/Standard Invoice.
If the debit/credit indicator is S and the document is created with reference to PO,
then it’s a credit memo.[Purpose - creditMemo]
b. If the invoice is not created via MIRO, then gross amount and tax amount are taken
from BSIK.
c. If the invoice is created via MIRO and the calculate flag is not set(Tax is manually
entered by user), then tax amount is taken from RBKP-WMWST1 and gross amount
is populated.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 25 Revised 25, April 2014
d. If the invoice is created via MIRO and Calculate flag is set, then tax amount is
automatically calculated.
7. Company Code address details are populated. Every company code has address number.
Address Number is fetched from T001 and the address details are fetched from ADRC by
passing the company code address number.
8. If the invoice has a special handling cost at line level, then field isspecialhandlinginline is set
to yes. If this indicator is set to yes, then the special handling cost will be populated at line
level in Ariba Network.
9. If the invoice has tax at line level, istaxinline is set to yes. Indicator isaccountinginline is also
set to yes.
1. If the invoice has a unplanned delivery cost, then one more service line item will be created
under a normal line item in AN. The line type field determines whether the line item is
service line item or normal line item.
S = Service Line
R = Normal Line
2. If the invoice has a tax, then the tax is calculated from the gross amount by using function
module CALCULATE_TAX_FROM_GROSSAMOUNT. The accrual transaction key and accrual
condition type are two parameters which need to be maintained by the user who is
executing the transactions if he wants accrual tax functionality. If the invoice has an accrual
tax, then a flag is set.
3. If the invoice is created via MIRO and the tax code entered in invoice is accrual tax code or
calculate tax is not set in MIRO [If this calculate tax check box is not ticked, then the user will
enter the tax manually in header level. But system will not populate the tax automatically in
the invoice lines proportionately], the line item net amount is taken from RBCO. If the
invoice is not created via MIRO and the tax code entered in invoice is accrual tax code or
calculate tax is not set, then take the Original tax base amount from BSEG.
4. If the tax code is not having accrual condition, then the line item net amount is summed up
and taken into a separate variable. In the same way the total line level tax is also summed
up and taken in a separate variable. If the invoice is created via MIRO, then the gross
amount is calculated by using the below formula.
Gross Amount = Individual line item amount + [ (Individual line item amount * Total tax
amount) / (Total line item amount) ].
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 26 Revised 25, April 2014
5. The line level tax is calculated only if the calculate tax checkbox is ticked. The tax lines and
accrual taxes are fetched using function module CALCULATE_TAX_FROM_GROSSAMOUNT.
If the invoice has a accrual tax, then accrual tax lines are not taken into account while
calculating the line level tax amount. Formula for calculating the line level tax amount.
Accrual tax is also calculated based on the final tax amount.
6. Tax Jurisdiction code, Tax code, item text, Cost Center, GL Account, Order number, Asset
Number, Quantity, Unit of Measure, Purchase order Number details are populated in Line
items.
7. If the document is Non PO Invoice, then quantity is defaulted to 1 and unit of measure is
defaulted to EA.
8. The price unit is calculated by dividing the line item amount by line item quantity.
9. The Tax Category is sent to AN. The table /ARBA/TAXCAT_MAP will be containing the tax
category. For e.g.
Fieldname Value
MWSKZ I1
In the above scenario, I1 tax code will not be sent. Sales Tax will be sent to AN.
10. If the parameter ERP_INV_PROCESSED_STATUS is set, then the Invoices which are sent to
AN are stored in /ARBA/AN_ERPINV.
Data Filters
1. Last Pull Date: This is the date with timestamp of the last pull/run date/time of this batch
integration process.
2. Customers need to populate all the AN enabled vendors in /ARBA/AN_VENDOR for which the
invoice data’s needs to be pulled.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 27 Revised 25, April 2014
Error Handling
2. If the user who is executing the transaction is not having authorization, then the transaction is
terminated with a message ‘No Authorization to execute the transaction’.
Globalization
Time zone: In SAP time zone data of the invoice is not maintained hence we have provided a Time zone
as the global variable in NetWeaver XI.
Copyright © 2013–2014 Ariba, Inc. All rights reserved. 28 Revised 25, April 2014