ChiTownDiva
Technical User
Hi guys...
This is going to be difficult because I didn't write the stored procedure and I don't have access to it because it's written by an outside source.
I understand that the only stored procedure that can be written in oracle that will work in Crystal Reports is a ref cursor.
Without getting too much in depth the store procedure is:
PROCEDURE tfna (
in cursor IN OUT t_EmployeeRef,
in_begin_dt IN VARCHAR2,
in_end_dt IN VARCHAR2,
in_rc_code IN VARCHAR2,
in_company IN VARCHAR2,
in_state IN VARCHAR2,
in_mgt_level IN VARCHAR2,
in_job_title IN VARCHAR2,
in_crse1 IN VARCHAR2);
The record set output Record (t_EmployeeRef) looks like:
Position Field Name Field Type/Size
1 Student_Name PERSON Varchar2(62)
2 RC_Code PERSON.LOCAL_PERS_ID/Varchar2(20)
3 CUID_UID PERSON.LOGIN_ID/Varchar2 (20)
4 SSN PERSON.SSN/Varchar2 (20)
5 Job_Title PERSON.JOB_TITLE/Varchar2 (40)
6 Company PERSON.COMPANY/Varchar2 (30)
7 State PERSON.ADDRESS_STATE/Varchar2 (10)
8 Mgt_Level PERSON.MGT_LEVEL/Varchar2 (10)
9 Supervisor PERSON table supervisor name from SSN lookup. Varchar2(62)
10 Sup_phone PERSON table supervisor phone number type Varchar2(20)
11 Sup_CUID PERSON.LOGIN_ID/Varchar2 (20)
12 Person_Status PERSON.PERSON_STATUS/Varchar2 (20)
The "Supervisor" and "Student_Name" are composite fields.
When I go to create a report from the stored procedure, I get the list of fields from the SQL portion of the stored procedure:
Address_state
Company
Initcap(lower(concat(p.person.pers_last_name....)
Job_Title
Local_pers_id
Mgt_Level
Nvl((Initcap(lower(concat(supv.pers_last_name...)
login_id
login_id
pers_phone_num
ssn
Person_status
To_char(p.job_title_effective.....)
According to the programmer, I should be seeing the Field Names from the output record--Not the fields in the sql part of the procedure.
Is this right?
Thanks.
ChiTownDivaus
This is going to be difficult because I didn't write the stored procedure and I don't have access to it because it's written by an outside source.
I understand that the only stored procedure that can be written in oracle that will work in Crystal Reports is a ref cursor.
Without getting too much in depth the store procedure is:
PROCEDURE tfna (
in cursor IN OUT t_EmployeeRef,
in_begin_dt IN VARCHAR2,
in_end_dt IN VARCHAR2,
in_rc_code IN VARCHAR2,
in_company IN VARCHAR2,
in_state IN VARCHAR2,
in_mgt_level IN VARCHAR2,
in_job_title IN VARCHAR2,
in_crse1 IN VARCHAR2);
The record set output Record (t_EmployeeRef) looks like:
Position Field Name Field Type/Size
1 Student_Name PERSON Varchar2(62)
2 RC_Code PERSON.LOCAL_PERS_ID/Varchar2(20)
3 CUID_UID PERSON.LOGIN_ID/Varchar2 (20)
4 SSN PERSON.SSN/Varchar2 (20)
5 Job_Title PERSON.JOB_TITLE/Varchar2 (40)
6 Company PERSON.COMPANY/Varchar2 (30)
7 State PERSON.ADDRESS_STATE/Varchar2 (10)
8 Mgt_Level PERSON.MGT_LEVEL/Varchar2 (10)
9 Supervisor PERSON table supervisor name from SSN lookup. Varchar2(62)
10 Sup_phone PERSON table supervisor phone number type Varchar2(20)
11 Sup_CUID PERSON.LOGIN_ID/Varchar2 (20)
12 Person_Status PERSON.PERSON_STATUS/Varchar2 (20)
The "Supervisor" and "Student_Name" are composite fields.
When I go to create a report from the stored procedure, I get the list of fields from the SQL portion of the stored procedure:
Address_state
Company
Initcap(lower(concat(p.person.pers_last_name....)
Job_Title
Local_pers_id
Mgt_Level
Nvl((Initcap(lower(concat(supv.pers_last_name...)
login_id
login_id
pers_phone_num
ssn
Person_status
To_char(p.job_title_effective.....)
According to the programmer, I should be seeing the Field Names from the output record--Not the fields in the sql part of the procedure.
Is this right?
Thanks.
ChiTownDivaus