0% found this document useful (0 votes)
339 views1 page

Create AR Notes with API Example

This document provides an API code sample to create a new note in an accounts receivable (AR) system. The code initializes variables for the note record, sets values like the note type and customer transaction ID, and calls the ARP_NOTES_PKG.insert_p procedure to insert the new note record into the database, outputting the assigned note ID.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
339 views1 page

Create AR Notes with API Example

This document provides an API code sample to create a new note in an accounts receivable (AR) system. The code initializes variables for the note record, sets values like the note type and customer transaction ID, and calls the ARP_NOTES_PKG.insert_p procedure to insert the new note record into the database, outputting the assigned note ID.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

API to create new AR Notes ---------------------------ARP_NOTES_PKG.

insert_p ---------------------DECLARE v_notes_rec ar_notes%rowtype; begin --Set the org_id for apps 11i --fnd_client_info.set_org_context('204'); -- set org_id for apps R12 mo_global.init('AR'); mo_global.set_policy_context('S','204'); -- to initialize the variables v_notes_rec.note_type v_notes_rec.customer_trx_id v_notes_rec.text v_notes_rec.customer_call_topic_id v_notes_rec.call_action_id v_notes_rec.customer_call_id := := := := := := 'MAINTAIN'; 759812; 'AR Notes API Demo form [Link]'; NULL; NULL; NULL;

-- call API ARP_NOTES_PKG.insert_p(v_notes_rec); commit; dbms_output.put_line(' Note_id is: ' ||v_notes_rec.note_id); END;

You might also like