Defaulting Expenditure organization at AP invoice line level same as Project owning organization.
Summary:
Hi,
We have a requirement to default the expenditure organization same as project owning organization for the we have used the custom SQL in Org ID Value Set as below suggested by Oracle:
org_id = :{PARAMETER.BusinessUnit} and nvl(:{SEGMENT.EXPENDITURE_ITEM_DATE}, trunc(sysdate)) between nvl(EFFECTIVE_START_DATE, nvl(:{SEGMENT.EXPENDITURE_ITEM_DATE}, trunc(sysdate))) and nvl(EFFECTIVE_END_DATE, nvl(:{SEGMENT.EXPENDITURE_ITEM_DATE}, trunc(sysdate))) and organization_id = (select carrying_out_organization_id from pjf_projects_all_b where project_id = :{SEGMENT.PROJECT_ID})
It is defaulting the Project owing organization as Expenditure organization but not letting the user to select another organization when required because there is only one record showing in the LOV. To overcome this issue, I changed the Value Set back to standard and used initial value section to default the value.