Está en la página 1de 19

OracleApps@JayaKrishna

OracleApps@JayaKrishna

Home Multi-Org R12 FORMS Reports UNIX OAF WF Oracle11.5.10 Appl

Wednesday, 24 August 2011


Single Insertion scripts for AR Transactions In Oracle Applications in 11i

Single Insertion scripts for AR Transactions

Instructions for Transactions


Overview
Receivables: Receivables is all about receiving money. A department which keeps track of the money to be received from the customers for Goods/ Services provided to them. In most business entities this is typically done by generating an invoice and mailing or electronically delivering it to the customer, which in turn must pay it with an established time frame called credit or payment terms. Actually based on transactions we use to know the due amount of the customer. This document shows how to create a Regular Invoice is nothing but a transaction and creation of Credit memos and Debit memos. Transaction: A transaction is an invoice which is sent by the customers to the Organization. Based on which the customers will get paid.

This Document provides the guidance to the user with the necessary information for creating Transactions. The Interface table used here is: 1. RA_INTERFACE_LINES_ALL

Insertion steps Following are the steps that must be followed, in order, to perform the Single insertions for Regular Transactions, Credit memos and Debit memos: <><> Execution Description Step Step 1 Select * from ra_interface_lines_all where trunc(creation_date)=trunc(sysdate) To check whether is there any other records exists in the interface table.

Execution Step Step 2

Description INSERT INTO Apps.ra_interface_lines_all (batch_source_name, line_type, description, currency_code, interface_line_context, org_id, orig_system_bill_address_id, orig_system_ship_address_id, orig_system_bill_customer_id, orig_system_ship_customer_id, quantity, unit_selling_price, amount, inventory_item_id, conversion_type, creation_date, created_by, uom_code, uom_name, tax_code, gl_date, conversion_rate, term_id, term_name, cust_trx_type_id, cust_trx_type_name, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4 ) VALUES ('LEGACY', 'LINE', 'Sample Source', 'USD', 'CONVERSION', 204, 9123, 9123, 96084, 96084, NULL, NULL, 100, 109868, 'User', SYSDATE, 1008480, 'Ea', 'Each','Exempt', SYSDATE, 1, 1062, 'N30', 1, 'Invoice', 'LEG_TRX_000',

Execution Step Step 3 COMMIT;

Description

Execution Step Step 4

Description Run the Auto invoice Master Program by using Receivables Manager, Vision Operations (USA) responsibility. Navigation: ControlRequests Run Parameters which we need to pass: Number of Instances 1 Invoice Source LEGECY Default Date 17-SEP-2009 Transaction type Invoice (Low) Bill To Customer Number (High) Bill To Customer Number (Low) Bill To Customer Name (High) Bill To Customer Name (Low) GL Date (High) GL Date (Low) Ship Date (High) Ship Date (Low)Transaction Number (High)Transaction Number (Low) Sales Order Number (High) Sales Order Number (Low) Invoice Date (High) Invoice Date (Low) Ship To Customer Number

Execution Step Step 5

Description After submitting auto Invoice master program it automatically submits auto invoice import program. After completion of the concurrent programs check the errors tables if there is any errors. Select * from ra_interface_errors_all where interface_line_id=46819

Step 6

Step 7

Then Check the base tables. Select * from ra_customer_trx_all where created_by=1008480 Select * from ra_customer_trx_lines_all where customer_trx_id=219300

Execution Step Step 8

Description INSERT INTO ra_interface_lines_all ( batch_source_name, line_type, description, currency_code, conversion_type,conversion_rate, created_by, creation_date, last_updated_by, last_update_date, org_id, amount, orig_system_bill_address_id, orig_system_ship_address_id, orig_system_bill_customer_id, orig_system_ship_customer_id, trx_date, cust_trx_type_name, cust_trx_type_id, gl_date, interface_line_context, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4,primary_salesrep_id,header_attribute1 ) VALUES ('LEGACY', 'LINE', 'Sample Source', 'USD', 'User',1, 1008480, SYSDATE, 1008480, SYSDATE, 204, -100, 9123, 9123, 96084, 96084, SYSDATE, 'Credit Memo', 2, SYSDATE, 'CONVERSION','REF_003',

Execution Step Step 9 Step 10 COMMIT;

Description

Check the Interface table whether the got populated exactly or not. Select * from ra_interface_lines_all where created_by=1008480;

Execution Step Step 11

Description Run the Auto invoice Master Program by using Receivables Manager, Vision Operations (USA) responsibility. Navigation: ControlRequests Run Parameters which we need to pass: Number of Instances 1 Invoice Source LEGECY Default Date 11-NOV-2009 Transaction type Credit memo (Low) Bill To Customer Number (High) Bill To Customer Number (Low) Bill To Customer Name (High) Bill To Customer Name (Low) GL Date (High) GL Date (Low) Ship Date (High) Ship Date (Low)Transaction Number (High)Transaction Number (Low) Sales Order Number (High) Sales Order Number (Low) Invoice Date (High) Invoice Date (Low) Ship To Customer Number

Execution Step Step 12

Description

After submitting auto Invoice master program it automatically submits auto invoice import program. After completion of the concurrent programs check the errors tables if there is any errors. Select * from ra_interface_errors_all where interface_line_id=46819

Step 13

Step 14

Then Check the base tables. Select * from ra_customer_trx_all where created_by=1008480 Select * from ra_customer_trx_lines_all where trx_number=502552;

Execution Step Step 15

Description INSERT INTO ra_interface_lines_all (batch_source_name, set_of_books_id, line_type, term_name, term_id, description, currency_code, conversion_type, created_by, creation_date, last_updated_by, last_update_date, org_id, amount, orig_system_bill_address_id, orig_system_ship_address_id, trx_date, primary_salesrep_id, cust_trx_type_name, cust_trx_type_id, orig_system_bill_customer_id, orig_system_ship_customer_id, conversion_rate, gl_date, header_attribute_category, header_attribute1, header_attribute2, interface_line_context, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4 ) VALUES ('LEGACY', 1, 'LINE', '30 Net', 4, 'Sample Source', 'USD', 'User', 1008480, SYSDATE, 1008480, SYSDATE, 204, 100, 9123, 9123, SYSDATE, NULL, 'Debit Memo', 1004,

Execution Step Step 16 COMMIT;

Description

Execution Step Step 17

Description Run the Auto invoice Master Program by using Receivables Manager, Vision Operations (USA) responsibility. Navigation: ControlRequests Run Parameters which we need to pass: Number of Instances 1 Invoice Source LEGECY Default Date 17-SEP-2009 Transaction type Invoice (Low) Bill To Customer Number (High) Bill To Customer Number (Low) Bill To Customer Name (High) Bill To Customer Name (Low) GL Date (High) GL Date (Low) Ship Date (High) Ship Date (Low)Transaction Number (High)Transaction Number (Low) Sales Order Number (High) Sales Order Number (Low) Invoice Date (High) Invoice Date (Low) Ship To Customer Number

Execution Step Step 18

Description After submitting auto Invoice master program it automatically submits auto invoice import program. Check whether is there is any errors. Select * from ra_interface_errors_all where interface_line_id=46819; Then Check the base tables. Select * from ra_customer_trx_all where created_by=1008480; Select * from ra_customer_trx_lines_all where trx_number=502552;

Pre-Requisitions

<><> Execution Step Step 1

Description Customer should be defined in Oracle. Navigation: Set up Customers Standard Select * from ra_customers where customer_name like 'Apps CUST%'

Execution Step Step 2

Description Currency must be defined in Oracle. Navigation: Setup Financials Currencies Currencies Select * from fnd_currencies where currency_code like 'USD'

Step 3

Item must be defined on Oracle. Navigation: Set up Transactions Items Define Items. Select * form mtl_system_items_b where segment1 like 'JK_TEST_ITEM%'

Step 4

Unit of measure must be defined in Oracle. Navigation: Set up System Unit of Measure Classes. Select * from mtl_unit _of_measures where uom_code like 'Ea%'

Step 5

Transaction typed must be defined in Oracle. Navigation: Set up Transactions Transaction types Select * from ra_cust_trx_types_all where name like 'invoice%'

Step 6

Source must be defined in Oracle. Navigation: Set up Transactions Sources select * from ra_batch_sources_all where name like LEGECY%'

Step 7

Payment terms must be defined in Oracle. Navigation: Set up Transactions Payment Terms. select * from ra_terms where name like 'N30%'

Code Attachments single_insert_transactions.sql

The above sql file has the code to perform single insert into Interface tables for transactions. INSERT INTO Apps.ra_interface_lines_all (batch_source_name, line_type, description, currency_code, interface_line_context, org_id, orig_system_bill_address_id, orig_system_ship_address_id, orig_system_bill_customer_id, orig_system_ship_customer_id, quantity, unit_selling_price, amount, inventory_item_id, conversion_type, creation_date, created_by, uom_code, uom_name, tax_code, gl_date, conversion_rate, term_id, term_name, cust_trx_type_id, cust_trx_type_name, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4 ) VALUES ('LEGACY', 'LINE', 'Sample Source', 'USD', 'CONVERSION', 204, 9123, 9123, 96084, 96084, NULL, NULL, 100, 109868, 'User', SYSDATE, 1008480, 'Ea', 'Each','Exempt', SYSDATE, 1, 1062, 'N30', 1, 'Invoice', 'LEG_TRX_000', 1, 1, 'REF_000' ); COMMIT; Script for Credit memos Single Insert: INSERT INTO ra_interface_lines_all ( batch_source_name, line_type, description, currency_code, conversion_type,conversion_rate, created_by, creation_date, last_updated_by, last_update_date, org_id, amount, orig_system_bill_address_id, orig_system_ship_address_id, orig_system_bill_customer_id, orig_system_ship_customer_id, trx_date, cust_trx_type_name, cust_trx_type_id, gl_date, interface_line_context, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4,primary_salesrep_id,header_attribute1 ) VALUES ('LEGACY', 'LINE', 'Sample Source', 'USD', 'User',1, 1008480, SYSDATE, 1008480, SYSDATE, 204, -100,

9123, 9123, 96084, 96084, SYSDATE, 'Credit Memo', 2, SYSDATE, 'CONVERSION','REF_003', 1, 1, 'REF_003',-3,'REF_003' ); COMMIT; Script for Debit memos: INSERT INTO ra_interface_lines_all (batch_source_name, set_of_books_id, line_type, term_name, term_id, description, currency_code, conversion_type, created_by, creation_date, last_updated_by, last_update_date, org_id, amount, orig_system_bill_address_id, orig_system_ship_address_id, trx_date, primary_salesrep_id, cust_trx_type_name, cust_trx_type_id, orig_system_bill_customer_id, orig_system_ship_customer_id, conversion_rate, gl_date, header_attribute_category, header_attribute1, header_attribute2, interface_line_context, interface_line_attribute1, interface_line_attribute2, interface_line_attribute3, interface_line_attribute4 ) VALUES ('LEGACY', 1, 'LINE', '30 Net', 4, 'Sample Source', 'USD', 'User', 1008480, SYSDATE, 1008480, SYSDATE, 204, 100, 9123, 9123, SYSDATE, NULL, 'Debit Memo', 1004, 96084, 96084, 1, SYSDATE, 'LEGACY', 'REF_005', SYSDATE, 'CONVERSION', 'REF_005', SYSDATE, 1, 1 ); COMMIT;

Posted by OracleApps.Jayakrishna at 23:47 Email ThisBlogThis!Share to TwitterShare to Facebook Labels: AR No comments: Post a Comment Links to this post Create a Link Newer Post Older Post Home Subscribe to: Post Comments (Atom)

Labels

AIM Methodology and- Documents used for projects (1) Alerts (1) AP (3) AR (1) OM (1) Queries (3) R12 (1) SQL and Pl/SQL (1)

Blog Archive

2012 (2) 2011 (13) o September (5) o August (4) Single Insert Scripts for Suppliers in 11i Applica... Single Insertion scripts for Approved Supplier Lis...

o o

Single Insertion scripts for AR Transactions In Or... Single Insert Script for AP Invoices in 11.5.10 Or... July (1) June (3)

Total Pageviews
23208

Followers About Me
OracleApps.Jayakrishna View my complete profile Picture Window template. Powered by Blogger.