1084: --dbms_output.put_line('For std pos');
1085: begin
1086: select a.notification_id, a.recipient_role
1087: INTO l_nid, l_ntf_role_name
1088: from wf_notifications a,
1089: wf_item_activity_statuses wa
1090: where itemkey=wa.item_key
1091: and itemtype=wa.item_type
1092: and a.message_name in ('PO_EMAIL_PO_WITH_RESPONSE', 'PO_EMAIL_PO_PDF_WITH_RESPONSE')
1099: begin
1100: --dbms_output.put_line('For Releases');
1101: select a.notification_id, a.recipient_role
1102: INTO l_nid, l_ntf_role_name
1103: from wf_notifications a,
1104: wf_item_activity_statuses wa
1105: where itemkey=wa.item_key
1106: and itemtype=wa.item_type
1107: and a.message_name in ('PO_EMAIL_PO_WITH_RESPONSE', 'PO_EMAIL_PO_PDF_WITH_RESPONSE')
1114: if (l_nid is null) then
1115: --we do not want to continue if the notification is not closed.
1116: return;
1117: else
1118: x_supp_user_name := wf_notification.responder(l_nid);
1119: end if;
1120:
1121: if (substr(x_supp_user_name, 1, 6) = 'email:') then
1122: --Get the username and store that in the supplier_user_name.
1949:
1950:
1951:
1952:
2015:
2248: '
2249:
2250:
2251: ';
2252: WF_NOTIFICATION.WriteToClob(document,l_document);
2253:
2254: END LOOP;
2255: CLOSE l_po_chg_req_csr;
2256: WF_NOTIFICATION.WriteToClob(document, '
2252: WF_NOTIFICATION.WriteToClob(document,l_document);
2253:
2254: END LOOP;
2255: CLOSE l_po_chg_req_csr;
2256: WF_NOTIFICATION.WriteToClob(document, '
2257:
2265:
2266: if(l_additional_changes is not null) then
2267: l_document := '
'||fnd_message.get_string('PO','PO_WF_NOTIF_ADD_CHN_REQ')||''||
2268: ' `  '||l_additional_changes||'
';
2269: WF_NOTIFICATION.WriteToClob(document,l_document);
2270: end if;
2271:
2272: else
2273: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
2272: else
2273: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
2274: fnd_message.set_token('DOC',l_document_type);
2275: l_document := fnd_message.get;
2276: WF_NOTIFICATION.WriteToClob(document,l_document);
2277: end if;
2278: exception when others then
2279: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm);
2280: END GEN_NTF_FOR_REQ_SUP_CHN;
2275: l_document := fnd_message.get;
2276: WF_NOTIFICATION.WriteToClob(document,l_document);
2277: end if;
2278: exception when others then
2279: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm);
2280: END GEN_NTF_FOR_REQ_SUP_CHN;
2281:
2282:
2283: PROCEDURE GEN_NTF_FOR_PLAN_SUP_CHN( p_code IN varchar2,
2781:
2782:
2783:
2784:
2842:
3070: '
3071:
3072:
3073: ';
3074: WF_NOTIFICATION.WriteToClob(document,l_document);
3075:
3076: END LOOP;
3077: CLOSE l_po_chg_req_csr;
3078: WF_NOTIFICATION.WriteToClob(document, '
3074: WF_NOTIFICATION.WriteToClob(document,l_document);
3075:
3076: END LOOP;
3077: CLOSE l_po_chg_req_csr;
3078: WF_NOTIFICATION.WriteToClob(document, '
3079:
3085:
3086: if(l_additional_changes is not null) then
3087: l_document := '
'||fnd_message.get_string('PO','PO_WF_NOTIF_ADD_CHN_REQ')||''||
3088: ' `  '||l_additional_changes||'
';
3089: WF_NOTIFICATION.WriteToClob(document,l_document);
3090: end if;
3091:
3092: else
3093: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
3092: else
3093: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
3094: fnd_message.set_token('DOC',l_document_type);
3095: l_document := fnd_message.get;
3096: WF_NOTIFICATION.WriteToClob(document,l_document);
3097: end if;
3098: exception when others then
3099: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm);
3100:
3095: l_document := fnd_message.get;
3096: WF_NOTIFICATION.WriteToClob(document,l_document);
3097: end if;
3098: exception when others then
3099: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm);
3100:
3101: END GEN_NTF_FOR_PLAN_SUP_CHN;
3102:
3103: /*
3724:
3725:
3726:
3727:
3766:
3839: '
3840:
3841:
3842: ';
3843: WF_NOTIFICATION.WriteToClob(document,l_document);
3844:
3845: END LOOP;
3846: CLOSE l_po_ack_csr;
3847: WF_NOTIFICATION.WriteToClob(document, '
3843: WF_NOTIFICATION.WriteToClob(document,l_document);
3844:
3845: END LOOP;
3846: CLOSE l_po_ack_csr;
3847: WF_NOTIFICATION.WriteToClob(document, '
3848:
3906:
4144: '
4145:
4146:
4147: ';
4148: WF_NOTIFICATION.WriteToClob(document,l_document);
4149:
4150: END LOOP;
4151: CLOSE l_po_chg_req_csr;
4152: WF_NOTIFICATION.WriteToClob(document, '
4148: WF_NOTIFICATION.WriteToClob(document,l_document);
4149:
4150: END LOOP;
4151: CLOSE l_po_chg_req_csr;
4152: WF_NOTIFICATION.WriteToClob(document, '
4153:
4159:
4160: if(l_additional_changes is not null) then
4161: l_document := '
'||fnd_message.get_string('PO','PO_WF_NOTIF_ADD_CHN_REQ')||''||
4162: ' `  '||l_additional_changes||'
';
4163: WF_NOTIFICATION.WriteToClob(document,l_document);
4164: end if;
4165: else
4166: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
4167: fnd_message.set_token('DOC',l_document_type);
4165: else
4166: fnd_message.set_name('PO','PO_WF_NOTIF_CAN_ENTIER');
4167: fnd_message.set_token('DOC',l_document_type);
4168: l_document := fnd_message.get;
4169: WF_NOTIFICATION.WriteToClob(document,l_document);
4170: end if;
4171: exception when others then
4172: IF g_fnd_debug = 'Y' THEN
4173: FND_LOG.string(FND_LOG.level_unexpected, g_module_prefix ||
4172: IF g_fnd_debug = 'Y' THEN
4173: FND_LOG.string(FND_LOG.level_unexpected, g_module_prefix ||
4174: l_api_name || '.others_exception', l_progress||':'||sqlerrm);
4175: END IF;
4176: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm); */
4177: null;
4178:
4179: END GEN_NTF_FOR_BUYER_SUP_CHG;
4180:
4629:
4630:
4631:
'||fnd_message.get_string('PO','PO_WF_NOTIF_REASON')||' | '||fnd_message.get_string('PO','PO_WF_NOTIF_SPLIT')||' |
---|
4894: ';
4895: WF_NOTIFICATION.WriteToClob(document,l_document);
4896: END LOOP;
4897: CLOSE l_po_chg_req_csr;
4898: WF_NOTIFICATION.WriteToClob(document, '
4899:
4920:
4921: '' ||
4922: '';
4923:
4924: WF_NOTIFICATION.WriteToClob(document,l_document);
4925: end if;
4926:
4927: else --if header_cnacel = N
4928: if(l_header_response = 'ACCEPTED') then
4933: fnd_message.set_name('PO','PO_WF_NOTIF_BUY_RESP_CAN');
4934: fnd_message.set_token('DOC',l_doc_hdr_info);
4935: fnd_message.set_token('RESPONSE',l_header_response);
4936: l_document := fnd_message.get;
4937: WF_NOTIFICATION.WriteToClob(document,l_document);
4938: end if;
4939: else
4940: WF_NOTIFICATION.WriteToClob(document,'GEN_NTF_FOR_SUP_BUY_RP for no html customer');
4941: end if;
4936: l_document := fnd_message.get;
4937: WF_NOTIFICATION.WriteToClob(document,l_document);
4938: end if;
4939: else
4940: WF_NOTIFICATION.WriteToClob(document,'GEN_NTF_FOR_SUP_BUY_RP for no html customer');
4941: end if;
4942: exception when others then
4943: IF g_fnd_debug = 'Y' THEN
4944: FND_LOG.string(FND_LOG.level_unexpected, g_module_prefix ||
4943: IF g_fnd_debug = 'Y' THEN
4944: FND_LOG.string(FND_LOG.level_unexpected, g_module_prefix ||
4945: l_api_name || '.others_exception', l_progress||':'||sqlerrm);
4946: END IF;
4947: WF_NOTIFICATION.WriteToClob(document,'Exception occured:'||sqlerrm); */
4948: null;
4949:
4950: END GEN_NTF_FOR_SUP_BUY_RP;
4951: