1.普通键弹性域:
在基础表中,存在一个code_combination_id 来对应键弹性域;
根据这个ccid来查询弹性域字段:
首先需要初始化:
DECLARE
l_boolean boolean;
BEGIN
l_boolean:=fnd_flex_keyval.validate_ccid(appl_short_name=>'SQLGL',
key_flex_code=>'GL#',
structure_number=>g_coa_id,
combination_id=>ccid);
END;
再进行查询
select fnd_flex_keyval.segment_value(2),fnd_flex_keyval.segment_description(2) from dual;
2. 如果是银行账户:
我们常使用code_combination_id关联到视图GL_CODE_COMBINATIONS_KFV。