Monday, 2 May 2011

A single Query covering P2P life Cycle


A single Query covering P2P life Cycle


In Finance, transaction management processing is one of labor intensive task in ERP, as it requires extensive data entry , chance are very very high for duplication/re-entry. As we know Procure to Pay life cycle start itself from contract management till making payment.
As we know the efficient Procure to pay process have these sub processes;
  • Contract Management
  • Purchase Requisitions
  • Purchase Orders
  • Accounts Payable - Managing invoice
  • Supplier Payment
p2p
In real business world, many time when system is running external/internal auditor are more interested in scrutiny of:
  • Goods received / invoices received
  • Inaccurate or duplicate vendor & material master records
  • Discrepancies in payment terms
  • Delays / long processing times
  • Detect duplicate vendor
  • Unusually large or small payments
  • Unauthorized changes made to invoices
  • Detect Duplicate invoice
  • Detect Duplicate payment
  • Approval status
Therefore, it is Inhouse ISD/Finance IT or implementing company responsibility is to provide such kind of adhoc reporting for auditor so that they can satisfy the audit requirement.
A 'P2P' query that made Auditors happy
It was brought by ISD team , as part year end audit for a ERP system which went live 3 month back. It was a one of requirement to display data for a particular PO which covers data from there all 5 five phases, means a particular PO line consist of:
  1. Requisition Detail
  2. Purchase Order Details
  3. Receiving Details
  4. Invoicing Detail
  5. Payment Details
Therefore thought to share this query, hope this would be great help who have such kind of adhoc requirement from daily life.
Here is query:
SELECT
A.ORG_ID "ORG ID",
E.VENDOR_NAME "VENDOR NAME",
UPPER(E.VENDOR_TYPE_LOOKUP_CODE) "VENDOR TYPE",
F.VENDOR_SITE_CODE "VENDOR SITE",
F.ADDRESS_LINE1 "ADDRESS",
F.CITY "CITY",
F.COUNTRY "COUNTRY",
TO_CHAR(TRUNC(D.CREATION_DATE)) "PO DATE",
D.SEGMENT1 "PO NUMBER",
D.TYPE_LOOKUP_CODE "PO TYPE",
C.QUANTITY_ORDERED "QTY ORDERED",
C.QUANTITY_CANCELLED "QTY CANCALLED",
G.ITEM_DESCRIPTION "ITEM DESCRIPTION",
G.UNIT_PRICE "UNIT PRICE",
(NVL(C.QUANTITY_ORDERED,0)-NVL(C.QUANTITY_CANCELLED,0))*NVL(G.UNIT_PRICE,0) "PO Line Amount",
(SELECT
DECODE(PH.APPROVED_FLAG, 'Y', 'Approved')
FROM PO.PO_HEADERS_ALL PH
WHERE PH.PO_HEADER_ID = D.PO_HEADER_ID) "PO STATUS",
A.INVOICE_TYPE_LOOKUP_CODE "INVOICE TYPE",
A.INVOICE_AMOUNT "INVOICE AMOUNT",
TO_CHAR(TRUNC(A.INVOICE_DATE)) "INVOICE DATE",
A.INVOICE_NUM "INVOICE NUMBER",
(SELECT
DECODE(X.MATCH_STATUS_FLAG, 'A', 'Approved')
FROM AP.AP_INVOICE_DISTRIBUTIONS_ALL X
WHERE X.INVOICE_DISTRIBUTION_ID = B.INVOICE_DISTRIBUTION_ID)"Invoice Approved?",
A.AMOUNT_PAID,
H.AMOUNT,
I.CHECK_NUMBER "CHEQUE NUMBER",
TO_CHAR(TRUNC(I.CHECK_DATE)) "PAYMENT DATE"
FROM AP.AP_INVOICES_ALL A,
AP.AP_INVOICE_DISTRIBUTIONS_ALL B,
PO.PO_DISTRIBUTIONS_ALL C,
PO.PO_HEADERS_ALL D,
PO.PO_VENDORS E,
PO.PO_VENDOR_SITES_ALL F,
PO.PO_LINES_ALL G,
AP.AP_INVOICE_PAYMENTS_ALL H,
AP.AP_CHECKS_ALL I
WHERE A.INVOICE_ID = B.INVOICE_ID
AND B.PO_DISTRIBUTION_ID = C. PO_DISTRIBUTION_ID (+)
AND C.PO_HEADER_ID = D.PO_HEADER_ID (+)
AND E.VENDOR_ID (+) = D.VENDOR_ID
AND F.VENDOR_SITE_ID (+) = D.VENDOR_SITE_ID
AND D.PO_HEADER_ID = G.PO_HEADER_ID
AND C.PO_LINE_ID = G.PO_LINE_ID
AND A.INVOICE_ID = H.INVOICE_ID
AND H.CHECK_ID = I.CHECK_ID
AND F.VENDOR_SITE_ID = I.VENDOR_SITE_ID
AND C.PO_HEADER_ID IS NOT NULL
AND A.PAYMENT_STATUS_FLAG = 'Y'
AND D.TYPE_LOOKUP_CODE != 'BLANKET';
The important section which cover in the query output is as:
1. Information for Supplier
1
2.Purchase Order details
2
3. Receiving Items Details
3
4.Invoice Details
4
5.Payment Details
5

What is “Order To Cash” in Oracle?


What is “Order To Cash” in Oracle?


Order to cash normally refer to the process in which taking customer sale order via different sales channel like email, internet, sales person, fax or by some other means like EDI, and then fulfilling the order, shipping, logistic and then generating an invoice and collecting payment for that invoice and then receipt. if we consider the flow ,this can be further categorize into seven sub-process like
  • Customer
  • Order entry (creation of order /booking of order )
  • Order fulfillment
  • Distribution
  • Invoicing
  • Customer payments /Collection
  • Receipt
A typical flow can be best represented as:
ordertocash

API Avability of HRMS


API Avability of HRMS
So here are few Business events required for your bespoken application and there underline API's details
dgreybarrowAdd a New Employee
  1. Insert person :hr_entry_api.insert_element_entry
  2. Update people group :hr_assignment_api.update_emp_asg_criteria
  3. Update assignment :hr_assignment_api.update_us_emp_asg
  4. Insert base salary :insert into per_pay_proposals
  5. Insert check as the payment method :hr_entry_api. insert_element_entry
dgreybarrowUpdate Employee Information
  1. Update personal information if it changed: per_per_upd.upd
  2. Update assignment and people group information if it exists, set mode to correct or update :hr_assignment_api.update_emp_asg_criteria
dgreybarrowAdd terminating employees
In Oracle On Terminate screen, select Actual Process Date and/or Final Process Date and click on Terminate button. Optionally, enter 'Leaving Reason,' 'Notified,' 'Projected,' 'Last Standard Proces' values.
These are API's are available for termination
 
Hr_ex_employee_api (File name: peexeapi.pkb)
This file contains three (3) procedures.....
hr_ex_employee_api.actual_termination_emp
hr_ex_employee_api.update_term_details_emp
hr_ex_employee_api.final_process_emp
Note: The API's have to be called in that order.
dgreybarrowAddress
  1. Insert or Update Addresses :hr_person_address_api.create_person_address
  2. Update existing address records :hr_person_address_api.update_person_address
dgreybarrowPhones
  1. Insert or create a phone :hr_phone_api.create_phone
  2. update existing phone records :hr_person_address_api.update_person_address
dgreybarrowSchools and Colleges
  1. Insert or create a schol and college information :per_esa_ins.ins
  2. update existing records :per_esa_upd.upd
dgreybarrowInsert or Update Deductions
  1. If deduction is ended, use the delete API to set end date :hr_entry_api.delete_element_entry
  2. Update deduction if exists, else insert it :hr_entry_api.insert_element_entry
dgreybarrowQualifications
  1. Insert or create a qualifications information :per_qualifications_api.create_qualification
  2. update qualifications records :per_qualifications_api.update_qualification
dgreybarrowEnd Date /delete Element Enties
  1. End Date /delete Element Enties :py_element_entry_api.delete_element_entry
There are 4 date track delete modes available (variable p_datetrack_delete_mode)
  • DELETE end date element entry
  • DELETE_NEXT_CHANGE delete next changes
  • FUTURE_CHANGE delete future changes
  • ZAP completely remove element entry from the database
dgreybarrowInsert or Update Direct Deposits
  1. If direct deposit is ended, use the delete API to set end date:hr_personal_pay_method_api.delete_personal_pay_method
  2. Insert bank account if it does not exist :insert into pay_external_accounts
  3. Update direct deposit if exists, else insert it :hr_personal_pay_method_api.create_personal_pay_method
dgreybarrow
Inform Manager of Inactive Employee Credit card process
  1. Use this if required inactivate employee credit card process : hr_ex_employee_api.actual_termination_emp
dgreybarrowJobs
  1. Create new Job :hr_job_api.create_job
  2. Updating the job details :hr_job_api.update_job
dgreybarrowPositions
  1. Create new position :hr_position_api.create_position
  2. Updating the position details :hr_position_api.update_position
dgreybarrow
Where I can get the details for these API's
For Oracle release 11 ,11i release 12, the APIs are located in the operating system directories:
$PER_TOP/patch/xxx/sql and $PAY_TOP/patch/xxx/sql,
Refer to filenames like pe****api.pkh, py****api.pkh, and hr****api.pkh, where **** represents wildcard characters.
You can identify the package name and version of the API.
Run this query
 
 
SELECT text
FROM all_source
WHERE name LIKE '%your_api_name%'
AND text LIKE '%Header%';
 
This query will return the header line of the pac kage and package body showing the package name and current version number.
 
 
SELECT object_type,object_name
FROM user_objects
WHERE object_name
LIKE 'HR%API';
 
dgreybarrow
Publicly Callable Business Process APIs in Oracle HRMS
Oracle APIs are a logical grouping of all external process routines. The Oracle HRMS API sets delivers a set of PL/SQL packages procedures and functions that provide an open interface to the database.
There are three options for you to find the details:
  1. Oracle Documents
    To find a current list of publicly callable business process APIs in Oracle HRMS; you need to go into your On Line Help from within applications and use the search field to find 'Publicly Callable Business'. In the Search Results frame you will see a link to 'Publicly Callable Business Process APIs in Oracle HRMS (Oracle HRMS)' listed.
  2. Irep
    To find correct information on APIs you check Oracle Integration Repository (irep) which can accessed via MetaLink by selecting the Knowledge tab - Knowledge Browser sub-tab, then in the Online Documentation box select - Oracle Integration Repository.
  3. Search the database
    You may find official documentation on Publicaly Callable APIs as in options 1.
    You can search in the HR Schema for the stored procedures with name 'HR%API'. Open the Package spec and then read the inline comment about the parameters. This is very useful to understand what is meant by each paramater and what the API does.
  4. Etrm via metalink
    TRM helpful in selecting the appropriate API call.
dgreybarrowConsidertaion for using API
Before using any API's of payroll and HRMS you must have clear understanding of
  1. Data Tracking
  2. Validation paramater
  3. Correction, insert mode of API's
dgreybarrowAdditional Note for API's documents
You can download "Configuring, Reporting and System Administration in Oracle HRMS" document from the Oracle documentation library. It has a list of api's.

Sunday, 1 May 2011

Understand Date Tracking in HRMS


Understand Date Tracking in HRMS


Effective DatesDate Tracking is a means of maintaining a history of changes to personnel records. It applies to the following parts of a person's record in Oracle HR: People, Assignments. Each of the areas that are date tracked within a record are date tracked independently.
We can 'date track' by setting an Effective Date. An effective date is the date at a particular point in time when a person's record is effective. When you set an effective date for your work, DateTrack ensures that only information effective on that day is used for any processing,
validation, enquiries and reporting you carry out.
Lets understand this in this simple diagram , which is consider as timeline of a personal record.
Persoanl record
It shows how the person's Status has changed over time to reflect their changing circumstances. As the changes are made in Oracle, the system keeps a record of each change. These records can be thought of as different slices - or different pages in a file that show each change. Date tracking allows you to visit each slice or page at any time. If you set the effective date to 17 July 2001.. for example, the record would show that this individual is Married. Reset back to today and the marital status would show as divorced.
Take a another example for employee Assignment
assigrecord
In this example the assignment record shows how this person's Position changes over time.
When this person originally started in company , their position was Programmer 1. Over time their position get changed and Oracle keep maintaining the history of this. In addition, this individual has been told that they have a new position which will take effect as of the 01 Jan 2008. Using date tracking you can record that this position change will take effect in advance of it happening - simply by setting the Effective Date to 01 Jan 2008 and making the change. Until that date actually arrives, the position will still show as the current one.
InsertIf there are future dated entries in the system (as in the assignment example above), and you wish to record a new change that will occur prior to the forthcoming change then Oracle will prompt you to Insert the record as part of the update. In this scenario, Oracle will insert a new 'slice' of history up to the date of the future change only.
assigrecord1

In above diagram example, a future dated change was entered to record that this individual's position is changing from Programmer Level 3 to Analyst on 1 Jan 2007. However, subsequent to this change being entered and saved in Oracle, this person will have a new supervisor from July 1st - i.e. before taking up the new position. If you now record the new supervisor change, Oracle will prompt you to 'insert' it. As such, a further slice of history will exist from 1 July 2007 to 1 Jan 2008.
Which columns in Oracle hold these values
To control these date tracking rows, every DateTracked table must include these columns:
  • EFFECTIVE_START_DATE DATE NOT NULL
  • EFFECTIVE_END_DATE DATE NOT NULL

Step by Step :Using Receipt API ->Create Cash Receipt


Step by Step :Using Receipt API ->Create Cash Receipt


Functional Importance of Receipt API's
Oracle receipt APIs provide an extension to existing functionality of creating and manipulating receipts through standard AR Receipts forms and lockboxes.
Most of the public receipt API caters to the following basic functionality via different API calls:
  1. Creating a cash receipt.
  2. Applying a cash receipt to a debit item.
  3. Creating a cash receipt and applying it to a debit item in one pass.
  4. On-account application.
  5. Unapplying the on-account application.
  6. Unapplying the receipt application to a particular transaction.
  7. Reversing the receipt.
  8. Activity application, such as Receipt Write-off.
  9. Creating a miscellaneous receipt.
  10. Other account application, such as Claim Investigation.
  11. Receipt-to-receipt application.
  12. Creating a cash receipt and an on-account application in one pass.
These API potentially used when you are using two major products like AR and Trade managment.
Which API's is not supported
  1. Creating a Batch Receipt
dgreybarrowWhy Receipts API are in demand
  • For Migration in Transformation/re-implemenation project , company want to bring old receipts to newer system. Except Lockbox, there is no other way other than API.
  • Integration :Some sectors like retail, healthcare , Telco need direct Integration with third party POS based system like (WINCOR etc)
  • Need for excel based upload interface : Majority of collection for companies are in third and fourth week of the month , and all entry should go into system thus need for excel based receipt upload cann't be denied. The business need for having receipt WEBADI is still not supported by Oracle.
dgreybarrow What is senarios
The senario which going to discuss here is "Create Cash Receipt "
In Reality a cash receipts may be created as identified (with a customer/Transaction) or as unidentified (without a customer).This routine is called to create cash receipts for the payment received in the form of a check or cash.
The key is
  • When you tag customer/transaction it is identified
  • Where there is no customer attached to receipt it is unidentified.
Moreover Receipt that you are going to create must have a Payment method , which have underline account details for identified and unidentified account.
dgreybarrowWhich API is being used
By using the following procedure Ar_receipt_api_pub.Create_cash you can create a single cash receipt, as in the case of manually created cash receipts.
dgreybarrow Step to use the API
You have to perform these steps in order to get API executed
Step 1 : Identification of some mandatory and key column of API
Once you identify the key and mandatory column , you have 50% done. What is recomended for you to check the API version in irep with your EBS version.
Here is the example.
Case 1 Receipt API Oracle Parameter








Step 2 : Idetify and the mandatory column and must do pre-requsite setup for receipt.
Your Payment method , underline bank, respective accounting details must be pre-requiste step up for creating a receipt in Oracle.
The mandatory requirement is Customer master with valid bill to and a valid transaction that must be open.
Step 3: You need to initialize the apps_initialize pacakge
For this you have to follow these steps:
Run the query 1
 
SELECT USER_ID FROM FND_USER
WHERE USER_NAME='USER_NAME';
 
Run the query 2
 
SELECT application_id FROM fnd_application
WHERE application_short_name LIKE  'APPL_SHRT_NAME'; --'AR';
 
Run the query 3
 
SELECT RESPONSIBILITY_ID
FROM FND_RESPONSIBILITY
WHERE APPLICATION_ID=222;
 
Run the query 4
Run thisscript ,
--- this script you can use to set the environment.
--- this is tested in 11i
--- you need to pass the details from query 1, 2 and 3  
DECLARE

 p_user_id NUMBER;
 p_resp_id NUMBER;
 p_resp_appl_id NUMBER;

  BEGIN
 
 p_user_id := 1011  -- pass the value of query 1 
 p_resp_id := 50556; -- pass the value of query 2
 p_resp_appl_id := 222;  -- pass the value of query 3

 fnd_global.apps_initialize
 (
  user_id  => p_user_id,
  resp_id  => p_resp_id,
  resp_appl_id => p_resp_appl_id
 );
 
END;
this will set the apps environment.
Alternatively you can use fnd_global.apps_initialize(1290,51118,222) before calling API.
Step 4: run the below
script in Toad or sql*plus and once the procedure executed correctly Oracle will issue a receipt id.
DECLARE
        p_api_version                   NUMBER;
        p_init_msg_list                 VARCHAR2(240);
        p_commit                        VARCHAR2(240);
        p_validation_level              NUMBER;
        p_usr_currency_code             VARCHAR2(240); 
        p_usr_exchange_rate_type        VARCHAR2(240); 
        p_exchange_rate_type            VARCHAR2(240); 
        p_exchange_rate                 NUMBER;   
        p_exchange_rate_date            DATE;
        p_factor_discount_amount        NUMBER;
        p_receipt_date                  DATE;
        p_postmark_date                 DATE;
        p_customer_number               VARCHAR2(240);  
        p_customer_bank_account_id      NUMBER;
        p_customer_bank_account_num     VARCHAR2(240);  
        p_customer_bank_account_name    VARCHAR2(240); 
        p_location                      VARCHAR2(240); 
        p_customer_receipt_reference    VARCHAR2(240);  
        p_remittance_bank_account_num   VARCHAR2(240); 
        p_remittance_bank_account_name  VARCHAR2(240); 
        p_receipt_method_name           VARCHAR2(240); 
        p_doc_sequence_value            NUMBER;   
        p_ussgl_transaction_code        VARCHAR2(240); 
        p_anticipated_clearing_date     DATE;     
        p_called_from                   VARCHAR2(240); 
        p_comments                      VARCHAR2(240);
        p_issuer_name                   VARCHAR2(240); 
        p_issue_date                    DATE;   
        p_issuer_bank_branch_id         NUMBER;  
        p_amount                        NUMBER;
        p_receipt_number                VARCHAR2(240);
        p_receipt_method_id             NUMBER;
        p_customer_name                 VARCHAR2(240);
        p_customer_id                   NUMBER;
        p_currency_code                 VARCHAR2(10);
        p_gl_date                       DATE;
        p_deposit_date                  DATE;
        p_customer_site_use_id          NUMBER;
        p_override_remit_account_flag   VARCHAR2(1);
        p_remittance_bank_account_id    NUMBER;
        p_maturity_date                 DATE;
        x_return_status                 VARCHAR2(1);
        x_msg_count                     NUMBER;
        x_msg_data                      VARCHAR2(240);
        p_cr_id                         NUMBER;
        p_global_attribute_rec          AR_RECEIPT_API_PUB.global_attribute_rec_type;
        p_attribute_rec                 AR_RECEIPT_API_PUB.attribute_rec_type;
    
BEGIN

   
    p_receipt_number                    := 'HUB-TEST1';   --rECEIPT NUMBER
    p_receipt_method_id                 := 14011;
    p_customer_name                     := 'JOHNSON & JOHNSON (S) PTE LTD';
    p_amount                            := 1200;
    p_remittance_bank_account_id        := '14560';  -- JUST PASS THE BANK DETAILS
    p_currency_code                     := 'SGD';
    p_receipt_date                      := SYSDATE;
    p_gl_date                           := SYSDATE;
    p_deposit_date                      := SYSDATE;
    p_override_remit_account_flag       := 'Y';
    p_maturity_date                     := SYSDATE+60;
    p_comments                          := 'POS Cash Collection';
    
fnd_global.apps_initialize(1290,51118,222);



AR_RECEIPT_API_PUB.Create_cash (
                p_api_version                   =>  1.0                
                ,p_init_msg_list                =>  FND_API.G_FALSE
                ,p_commit                       =>  FND_API.G_FALSE
                ,p_validation_level             =>  FND_API.G_VALID_LEVEL_FULL
                ,p_usr_currency_code            =>  p_usr_currency_code
                ,p_currency_code                =>  p_currency_code    
                ,p_usr_exchange_rate_type       =>  p_usr_exchange_rate_type
                ,p_exchange_rate_type           =>  p_exchange_rate_type
                ,p_exchange_rate                =>  p_exchange_rate          
                ,p_exchange_rate_date           =>  p_exchange_rate_date
                ,p_amount                       =>  p_amount
                ,p_factor_discount_amount       =>  p_factor_discount_amount
                ,p_receipt_number               =>  p_receipt_number
                ,p_receipt_date                 =>  p_receipt_date
                ,p_gl_date                      =>  p_gl_date
                ,p_maturity_date                =>  p_maturity_date
                ,p_postmark_date                =>  p_postmark_date
                ,p_customer_id                  =>  p_customer_id
                ,p_customer_name                =>  p_customer_name
                ,p_customer_number              =>  p_customer_number
                ,p_customer_bank_account_id     =>  p_customer_bank_account_id
                ,p_customer_bank_account_num    =>  p_customer_bank_account_num
                ,p_customer_bank_account_name   =>  p_customer_bank_account_name
                ,p_location                     =>  p_location
                ,p_customer_site_use_id         =>  p_customer_site_use_id                 
                ,p_customer_receipt_reference   =>  p_customer_receipt_reference
                ,p_override_remit_account_flag  =>  p_override_remit_account_flag
                ,p_remittance_bank_account_id   =>  p_remittance_bank_account_id
                ,p_remittance_bank_account_num  =>  p_remittance_bank_account_num  
                ,p_remittance_bank_account_name =>  p_remittance_bank_account_name
                ,p_deposit_date                 =>  p_deposit_date
                ,p_receipt_method_id            =>  p_receipt_method_id   
                ,p_receipt_method_name          =>  p_receipt_method_name 
                ,p_doc_sequence_value           =>  p_doc_sequence_value
                ,p_ussgl_transaction_code       =>  p_ussgl_transaction_code 
                ,p_anticipated_clearing_date    =>  p_anticipated_clearing_date
                ,p_called_from                  =>  p_called_from   
                ,p_global_attribute_rec         =>  p_global_attribute_rec
                ,p_attribute_rec                =>  p_attribute_rec
                ,p_comments                     =>  p_comments
                ,p_issuer_name                  =>  p_issuer_name  
                ,p_issue_date                   =>  p_issue_date    
                ,p_issuer_bank_branch_id        =>  p_issuer_bank_branch_id    
                ,x_return_status                =>  x_return_status
                ,x_msg_count                    =>  x_msg_count
                ,x_msg_data                     =>  x_msg_data
                ,p_cr_id                        =>  p_cr_id                                         
);

IF (x_return_status = 'S') THEN

   COMMIT;
   
            dbms_output.put_line('SUCCESS');
            dbms_output.put_line('Return Status            = '|| SUBSTR (x_return_status,1,255));
            dbms_output.put_line('p_cr_id                  = '||p_cr_id);
                

ELSE     

   ROLLBACK;
   
   dbms_output.put_line('Return Status    = '|| SUBSTR (x_return_status,1,255));
   dbms_output.put_line('Message Count     = '|| TO_CHAR(x_msg_count ));
   dbms_output.put_line('Message Data    = '|| SUBSTR (x_msg_data,1,255));
   dbms_output.put_line(APPS.FND_MSG_PUB.Get ( p_msg_index    => APPS.FND_MSG_PUB.G_LAST,    
          p_encoded      => APPS.FND_API.G_FALSE));
  
   IF x_msg_count >=0 THEN
   
      FOR I IN 1..10 LOOP
               dbms_output.put_line(I||'. '|| SUBSTR (FND_MSG_PUB.Get(p_encoded => FND_API.G_FALSE ), 1, 255));
      
      END LOOP;
   END IF;
   
END IF;


EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Exception :'||sqlerrm);
 
END;

This is been tested in 11i . With little modification you can use in R12. Here is api code in text file.
dgreybarrow Finally Verification
Make sure you API executed correctly , once done you can check the receipt creation from Receipt workbench screen. What you have to do, just search the Receipt number and verify the details are correctly been populated or not.
Navigate to Receivables
Receipts : Receipts.
Query for Receipt Number 'HUB-TEST1'(As Example discussed above). The below screen shows the created cash receipt
Case 1 Receipt API Oracle
We will some other API usage in another post.

Receipt API's


The World of API's
To integrate with Oracle apps there are 10 API's, such as:
a) Creating a cash receipt
b) Applying it to a debit item
c) Creating a cash receipt and applying it to a debit item in one pass
d) On-account application
e) Unapplying the On-Account application
f) Unapplying the receipt application to a particular transaction
g) Reversing the receipt
h) Create a Miscellaneous receipt
i) Create a cash receipt activity application
j) Unapplies a cash receipt activity application
The 10 Receipt API's:
1 AR_RECEIPT_API_PUB.CREATE_CASH : This is for creating a single cash receipt, as in case of manually created cash receipts.
2 AR_RECEIPT_API_PUB.APPLY : Applies a cash receipt if used in (1) to a particular installment
of a debit item. The application can also be a cross currency application.
3 AR_RECEIPT_API_PUB.CREATE_AND_APPLY : This API's can be used in place of 2 sepearte call as in (1) & (2) above. This will Creates a cash receipt and applies it to a specified installment of a debit item in one pass.
4 AR_RECEIPT_API_PUB.APPLY_ON_ACCOUNT : Does an On Account application for a cash receipt.
5 AR_RECEIPT_API_PUB.UNAPPLY_ON_ACCOUNT : Unapplies the On-account application on the specified receipt.
6 AR_RECEIPT_API_PUB.UNAPPLY : This unapplies the application of a particular installment of a debit item against the specified cash receipt.
7 AR_RECEIPT_API_PUB.REVERSE : This is used to reverses the specified receipt.
8 AR_RECEIPT_API_PUB.CREATE_MISC : This is used to creates a Miscellaneous receipt
9 AR_RECEIPT_API_PUB.ACTIVITY_APPLICATION : This is used to creates an activity application on a cash receipt
10 AR_RECEIPT_API_PUB.ACTIVITY_UNAPPLICATION : This API used to unapplies a particular activity application on a cash receipt.
The solution can be best understood as figure:
receipt

Difference between "Internal" and "External" Drop-Ship


Difference between "Internal" and "External" Drop-Ship

In Oracle Context External Drop-Shipping means your Oracle Order Management uses purchase orders to outside suppliers that are automatically generated from sales orders for goods supplied directly from the supplier. The “external ” supplier ships the goods directly to the 3rd Party customer and confirms the shipment through the use of an Advanced Shipment Notice(ASN).

You should take a note,Oracle uses this ASN to record a receiving transaction into inventory followed by an immediate logical shipping transaction. From these transactions, conveyance of title takes place and the customer can be invoiced and the supplier’s invoice can be processed.

where as “Internal” context Drop-Shipping functions in a similar fashion. The key difference is that no inventory transactions take place on the books of the selling operating unit; transfer of ownership of the goods from shipper to seller to customer with the only physical movement of the goods being out of the shipping organization.


Here is Functional test cases for Drop shipment

1)Enter an order for drop ship item

Responsibility: Order Management

Orders, Returns -> Order Organizer -> New

Under Main tab:

Enter Customer,Order Type and Price List. Verify that any defaulting takes place per rules setup.
Under Line Items tab:
Enter item (must be Purchasable), qty, schedule ship date. Ensure Selling Price populates correctly.
Under the Shipping tab:
Enter Source Type = External
Enter Receiving Org
Save the order.

2)Book the order

Hit the Book Order button.
The order header status should show Booked.

The order line status should be Awaiting Receipt.

This can be verified by viewing the Status field on the sales order line, or by going to

Tools -> Workflow Status

Note: If the line status does not show Awaiting Receipt, try manually progressing the order via:

Actions -> Progress Order

3)Run Requisition Import

Orders, Returns -> Requisition Import


 


Enter Import Source = Order Entry

Submit the request and verify the sales order. Check for Sales Order is updated with the req number or not by opening the order and going to the Line Items tab. Select Actions -> Additional Line Information

Under the Drop Ship tab you will see the requisition information.

4)Create a purchase order from the requisition

within Responsibility: Purchasing

Go to Autocreate

In the Find Requisition Lines window, enter the requisition number, clear the buyer and ship to fields and click the Find button.In the Autocreate Documents window, select the requisition line and click the Automatic button. In the New Document window,select the supplier and click the Create button. Record the PO number.

5)Approve the PO

When you are able to find Purchase Order click the Approve button.Ensure the Submit for Approval box is checked and click OK.

6)Receive against the PO

Navigate to :Receiving -> Receipts

Once you select organization, find the details by passing PO number.Now Tab through the Receipt Header window to the Lines window.Complete the details.

7)Initiate Receiving Transaction
Receiving -> Receiving Transactions Summary, In the Find Expected receipts form, enter the PO number and hit Find button.

You need to check the box to the far left of the Receiving line and enter a Subinventory.Save and verify that the concurrent program Receiving Transaction Processor completes successfully.

  Verify the transactions

Receiving -> Transactions -> Summary
Under Supplier and Internal tab, enter receipt number and hit Find button to get the details.

9)Now Verify Sales Order status updated

Responsibility: Order Management
Orders, Returns -> Order Organizer
Find details for order number and navigate to the Lines tab, find out the detail for status , it should be 'Shipped'.Shipped Qty should be updated to reflect the full quantity ordered.

(This test cases for drop shipment flow Adopted from Metalink on reader demand.)

Similar Post on Drop Shipment

Understand “Drop Shipment” in Order Management?
Understand “Drop Shipment” in Order Management? -Part II
‘Drop Shipment’, ‘BackOrders’ and ‘Back to Back Order’ …
Drop Shipment - Functional Setup and flow
"Internal" versus "External" Drop-Ship: What’s the difference?