EBS動態建立賬戶組合實現

2022-04-08 11:52:52 字數 2722 閱讀 4279

目的:使用程式動態建立賬戶組合。如果賬戶組合存在的話,返回存在的id,不存在的話就動態建立賬戶組合並返回id。

實現步驟:

1. 得到賬簿的chart_of_accounts_id

2. 得到賬戶彈性域分隔符

3. 呼叫標準的api得到賬戶組合id

具體實現如下:

1. 得到賬簿的chart_of_accounts_id實現code:

select sob.chart_of_accounts_id

into l_id_flex_num

from financials_system_params_all fsp, gl_sets_of_books sob

where org_id = p_org_id

and sob.set_of_books_id = fsp.set_of_books_id;

2. 得到賬戶彈性域分隔符實現code:

select concatenated_segment_delimiter

into l_segment_delimiter

from fnd_id_flex_structures

where application_id = 101

and id_flex_code = 'gl#'

and id_flex_num = l_id_flex_num;

3. 呼叫標準的api得到賬戶組合id實現code:

l_concatenated_segments := l_segment1 || l_segment_delimiter ||

p_segment2 || l_segment_delimiter ||

p_segment3 || l_segment_delimiter ||

l_segment4 || l_segment_delimiter ||

l_segment5 || l_segment_delimiter ||

l_segment6 || l_segment_delimiter ||

l_segment7 || l_segment_delimiter ||

l_segment8 || l_segment_delimiter ||

l_segment9 || l_segment_delimiter ||

l_segment10 || l_segment_delimiter ||

l_segment11 || l_segment_delimiter ||

l_segment12 || l_segment_delimiter ||

l_segment13 || l_segment_delimiter ||

l_segment14 || l_segment_delimiter ||

l_segment15 || l_segment_delimiter ||

l_segment16 || l_segment_delimiter ||

l_segment17 || l_segment_delimiter ||

l_segment18 || l_segment_delimiter ||

l_segment19 || l_segment_delimiter ||

l_segment20 || l_segment_delimiter ||

l_segment21 || l_segment_delimiter ||

l_segment22 || l_segment_delimiter ||

l_segment23 || l_segment_delimiter ||

l_segment24 || l_segment_delimiter ||

l_segment25 || l_segment_delimiter ||

l_segment26 || l_segment_delimiter ||

l_segment27 || l_segment_delimiter ||

l_segment28 || l_segment_delimiter ||

l_segment29 || l_segment_delimiter ||

l_segment30 || l_segment_delimiter;

l_gcc_account_id := apps.fnd_flex_ext.get_ccid(application_short_name => 'sqlgl',

key_flex_code => 'gl#',

structure_number => l_id_flex_num,

validation_date => to_char(sysdate,

apps.fnd_flex_ext.date_format),

concatenated_segments => x_concatenated_seg);

fnd_file.put_line(fnd_file.log,

'l_gcc_account_id:' || l_gcc_account_id);

if l_gcc_account_id = 0 then

return null;

end if;

注意 :如果賬戶id返回0,表示沒有建立成功。

錯誤原因:傳入的引數不正確或者賬戶組合沒有通過驗證。

svn建立賬戶

1 找到svn安裝路徑 我的是 home ssl repos rogue server conf 如果不知道,可以搜尋 find name svn 2 進入該目錄的conf,其中包含authz passwd svnserve.conf三個檔案 3 進入passwd,在 users 下面加上你要新增的...

Ubuntu之建立賬戶

sudo useradd m mtest1 s sbin nologin sbin nologin 此時無法登陸系統,即使給了密碼也不行。所謂 無法登陸 指的僅是這個使用者無法使用bash或其他shell來登陸系統而已,並不是說這個賬號就無法使用系統資源。舉例來說,各個系統賬號中,列印作業有lp這個...

Postgresql 建立賬戶,修改密碼

sudo su postgres psql password postgres 輸入密碼 q 本機除錯的時候,最好在裝完以後新增乙個pgsql的管理員帳號,否則phppgadmin不讓登陸 建立使用者 sudo su postgres psql create user myuser with pas...