124: );
125:
126: END set_attrib_message;
127:
128: FUNCTION compile_message_body(p_change_request_id IN okl_vp_change_requests.id%TYPE) RETURN VARCHAR2 IS
129: -- cursor that picks up the agreement details
130: -- for an AGREEMENT type of change request, the copy agreement is displayed
131: -- for ASSOCIATION type of change requst, the original agreement is displayed
132: CURSOR c_get_creq_dtls_csr(cp_change_request_id okl_vp_change_requests.id%TYPE)IS
128: FUNCTION compile_message_body(p_change_request_id IN okl_vp_change_requests.id%TYPE) RETURN VARCHAR2 IS
129: -- cursor that picks up the agreement details
130: -- for an AGREEMENT type of change request, the copy agreement is displayed
131: -- for ASSOCIATION type of change requst, the original agreement is displayed
132: CURSOR c_get_creq_dtls_csr(cp_change_request_id okl_vp_change_requests.id%TYPE)IS
133: -- this portion of select will work for AGREEMENT type of change requests
134: SELECT agreement.contract_number agreement_number
135: ,subclass.meaning agreement_category
136: ,vendors.vendor_name vendor_name
142: FROM okc_k_headers_v agreement
143: ,okc_subclasses_v subclass
144: ,po_vendors vendors
145: ,okc_k_party_roles_b party_roles
146: ,okl_vp_change_requests change
147: ,fnd_lookups lookups
148: ,okl_k_headers khr
149: WHERE agreement.scs_code = subclass.code
150: AND party_roles.dnz_chr_id (+) = agreement.id
169: FROM okc_k_headers_v agreement
170: ,okc_subclasses_v subclass
171: ,po_vendors vendors
172: ,okc_k_party_roles_b party_roles
173: ,okl_vp_change_requests change
174: ,fnd_lookups lookups
175: WHERE agreement.scs_code = subclass.code
176: AND party_roles.dnz_chr_id (+) = agreement.id
177: AND party_roles.rle_code (+) = 'OKL_VENDOR'
198:
199: lv_message:= '
'||G_AMP_SIGN||'nbsp; | |||||||||||||
'|| Okl_Accounting_Util.Get_Message_Token(p_region_code => 'OKL_VP_CHANGE_REQUESTS' 203: ,p_attribute_code => 'CHANGEREQNUM') 204: ||' | '|| G_AMP_SIGN ||'nbsp;' || cv_get_creq_dtls.change_request_number 205: ||' | '||G_AMP_SIGN ||'nbsp; | '||''||G_AMP_SIGN ||'nbsp; | '||'|| Okl_Accounting_Util.Get_Message_Token(p_region_code => 'OKL_VP_CHANGE_REQUESTS'Line 206: '202: ' '|| Okl_Accounting_Util.Get_Message_Token(p_region_code => 'OKL_VP_CHANGE_REQUESTS' | 203: ,p_attribute_code => 'CHANGEREQNUM') 204: ||' '|| G_AMP_SIGN ||'nbsp;' || cv_get_creq_dtls.change_request_number | 205: ||' '||G_AMP_SIGN ||'nbsp; | '||''||G_AMP_SIGN ||'nbsp; | '||206: ' '|| Okl_Accounting_Util.Get_Message_Token(p_region_code => 'OKL_VP_CHANGE_REQUESTS' | 207: ,p_attribute_code => 'CHANGEREQTYPE') 208: ||' '|| G_AMP_SIGN ||'nbsp;' || cv_get_creq_dtls.change_request_type | '||209: ||' 210: ' |