In R12, the corresponding secondary ledger CCID is obtained through the CCID of primary ledger.

Source: Internet
Author: User
-- Get ledger mapping ID
Begin
Select Coa_mapping_id
Into Vl_mapping_id
From Gl_coa_mappings
Where Name = Vgc_mapping_name
And Rownum =   1 ;
End ;

-- Clear temp table
Begin
Delete Gl_accts_map_int_gt;
End ;
-- Insert R12 CCID
Begin
Insert   Into Gl_accts_map_int_gt
(From_ccid, coa_mapping_id)
Values
(Pi_ccid, vl_mapping_id );
End ;
-- Call API
Gl_accounts_map_grp.map (mapping_name => Vgc_mapping_name,
Create_ccid => True,
Debug =>   Null );

Commit ;
-- Get secondary ledger CCID
Begin
Select To_ccid Into Vl_convert_ccid From Gl_accts_map_int_gt;
End ;
-- Return CCID
Return Vl_convert_ccid;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.