You are on page 1of 11

3/18/2020 Document 988184.

1
Copyright (c) 2020, Oracle. All rights reserved. Oracle Confidential.

How To Create a Simple Test Case For AutoInvoice in R12 (Doc ID 988184.1)

In this Document

Goal
Solution
Step 1 - Define a Transaction Source
Step 2- Update the Transaction Line Flexfield
Step 3 - Insert an Invoice record into the AutoInvoice Table
Step 4 - Run AutoInvoice

Still Have Questions?


References

APPLIES TO:

Oracle Receivables - Version 12.0.0 and later


Information in this document applies to any platform.
Executable:RAXTRX - Autoinvoice Import Program

GOAL

This note has been consolidated into Note 1067402.1 'Setting Up AutoInvoice for Release 12: A Case Study Using a Simple Script

To do the basic setup required to import a simple invoice and credit memo into Receivables. This is intended to serve as a base setup for a user new to AutoInvoice for
use in validating that the import works correctly.

Users should consult the the Oracle Receivables Reference Guide for more information about specific fields and usage in the import process.

For more information on loading tax only lines refer to Note 731149.1

SOLUTION

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 1/11
3/18/2020 Document 988184.1

NOTE: In the images below and/or the attached document, user details / company name / address / email / telephone number represent a fictitious sample (based
upon made up data used in the Oracle Demo Vision instance). Any similarity to actual persons, living or dead, is purely coincidental and not intended in any
manner.

Step 1 - Define a Transaction Source

Receivables Manager > Setup > Transaction > Source

For the purpose of this test, set the values as shown below in the next 6 screenshots. Change only your operating unit name for this test case.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 2/11
3/18/2020 Document 988184.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 3/11
3/18/2020 Document 988184.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 4/11
3/18/2020 Document 988184.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 5/11
3/18/2020 Document 988184.1

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 6/11
3/18/2020 Document 988184.1

Step 2- Update the Transaction Line Flexfield

Receivables Manager > Setup > Financial > Flexfield > Descriptive > Segments
Query the Title “Line Descriptive Flexfield”
Add a new row and enter the value as shown in the red box below

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 7/11
3/18/2020 Document 988184.1

Click on Segments and add values for row 1 & 2 (the name is not important for this test). map these to Interface_line_attribute1 and interface_line_attribute2

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 8/11
3/18/2020 Document 988184.1

Step 3 - Insert an Invoice record into the AutoInvoice Table

This record must exactly match the setup from step 1 & 2. The script below can be used with modifications as mentioned below.

Insert into ra_interface_lines_all (


INTERFACE_LINE_CONTEXT,
INTERFACE_LINE_ATTRIBUTE1,
INTERFACE_LINE_ATTRIBUTE2,
BATCH_SOURCE_NAME,
LINE_TYPE,
DESCRIPTION,
CURRENCY_CODE,
AMOUNT,
CUST_TRX_TYPE_NAME,
CUST_TRX_TYPE_ID,
TERM_ID,
ORIG_SYSTEM_BILL_CUSTOMER_ID,
ORIG_SYSTEM_BILL_ADDRESS_ID,
CONVERSION_TYPE,

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 9/11
3/18/2020 Document 988184.1

CONVERSION_RATE,
UOM_NAME,
ORG_ID,
AMOUNT_INCLUDES_TAX_FLAG)
values
('AutoInvoice Test',
TEST_1',
'TEST_1',
'AutoInvoice Test',
'LINE',
'TEST',
'USD',
100,
'Invoice',
1,
4,
11089, --enter your customer id from hz_cust_accounts.cust_account_id
1361, --enter your hz_cust_acct_sites_all.cust_acct_site_id where cust_account_id =value from line above
'User',
1,
'Ea',
82, --enter your org id here
'N');

Step 4 - Run AutoInvoice

You should be able to import an invoice using the steps above simply by running autoinvoice and supplying the source 'AutoInvoice Test".

Still Have Questions?

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the My Oracle Support
Receivables Community.

To provide feedback on this note, click on the Rate this document link.

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 10/11
3/18/2020 Document 988184.1

Didn't find what you are looking for?

https://support.oracle.com/epmos/faces/DocumentDisplay?_adf.ctrl-state=39qkb0uq1_65&id=988184.1 11/11

You might also like