Professional Documents
Culture Documents
Before I tell you what is org_id, lets do some questions & answers:-
How can all this be achieved, without any hard coding in the screen.
Well....the answer is org_id
Qns: How will the system know that UKVAT belongs to uk org?
Ans: In VAT code entry screen(where Tax Codes will be entered),
following insert will be done
Insert into ap_vat_codes_all values(:screenblock.vatfield,
fnd_profile.value('org_id').
Alternately, use USERENV('CLIENT_INFO')
Next question, when displaying VAT Codes in LOV, will oracle do:
select * from ap_vat_codes_all where
org_id=fnd_profile.value('ORG_ID')?
Answer: almost yes.