Go to Human Resource Responsiblity --> Security --> Define Security Profile
Name : CDMAP Security Profile
Business Group : Vision Corporation
Submit concurrent program "Security List Maintenance"
ATTACH SECURITY PROFILE TO RESPONSIBLITY
Go To System Administrator Responsibility --> Profile --> System
check Responsibility "Payables, Vision Operations (USA)"
Profile :
This program calls the package CDMAP_TEST_PKG.MAIN, It using the Oracle View AP_INVOICES view, it will returns the data once the OU is initialized
procedure MAIN(piv_errorbuf OUT VARCHAR2, pin_errorcode OUT NUMBER);
END;
create or replace package BODY CDMAP_TEST_PKG as
procedure MAIN(piv_errorbuf OUT VARCHAR2, pin_errorcode OUT NUMBER) IS
ln_count number := 0;
BEGIN
--ln_orgid :=fnd_global.org_id;
select count(*) into ln_count from AP_INVOICES;
fnd_file.put_line(1, 'count-' || ln_count);
END;
END;
sdsdsd
Go to System Administration Responsibility --> System Administration --> Concurrent --> Programs
Click to Update Icon --> Go to Request Tab --> Under Request Settings --> Operating Unit Mode--> Change to "Single"
Apply --> Click Ok in confirmation page
Retry the program in SRS Window
Go to the responsibility "Payables Vision Operations (USA)"
Go to concurrent program SRS Window , Concurrent program "CDMAP_TEST" Its Operating Unit is Populated from the Security profile "CDMAP Security Profile"
Based on Selected Operating Unit will get the data from AP_INVOICES views
No comments:
Post a Comment