DBA Data[Home] [Help]

APPS.GME_MAKE_TO_ORDER_PVT dependencies on FND_GLOBAL

Line 588: l_user_id := FND_GLOBAL.user_id;

584: l_batch_header_rec.due_date := l_so_line_rec.request_date;
585: l_batch_header_rec.FIRMED_IND := l_firmed_ind;
586: l_batch_header_rec.plan_cmplt_date := l_so_line_rec.schedule_ship_date;
587: /* Batch Creation user. If diff. from the sales order user then set the user context to this one */
588: l_user_id := FND_GLOBAL.user_id;
589: FND_GLOBAL.apps_initialize(l_user_id,-1,-1);
590:
591: IF l_mto_rules_rec.batch_creation_user is not NULL THEN
592: IF (l_mto_rules_rec.batch_creation_user <> l_user_id) THEN

Line 589: FND_GLOBAL.apps_initialize(l_user_id,-1,-1);

585: l_batch_header_rec.FIRMED_IND := l_firmed_ind;
586: l_batch_header_rec.plan_cmplt_date := l_so_line_rec.schedule_ship_date;
587: /* Batch Creation user. If diff. from the sales order user then set the user context to this one */
588: l_user_id := FND_GLOBAL.user_id;
589: FND_GLOBAL.apps_initialize(l_user_id,-1,-1);
590:
591: IF l_mto_rules_rec.batch_creation_user is not NULL THEN
592: IF (l_mto_rules_rec.batch_creation_user <> l_user_id) THEN
593: IF (g_debug <= gme_debug.g_log_statement) THEN

Line 596: FND_GLOBAL.apps_initialize(l_mto_rules_rec.batch_creation_user,-1,-1);

592: IF (l_mto_rules_rec.batch_creation_user <> l_user_id) THEN
593: IF (g_debug <= gme_debug.g_log_statement) THEN
594: gme_debug.put_line(g_pkg_name||'.'||l_api_name||' Batch creation user is '||l_mto_rules_rec.batch_creation_user);
595: END IF;
596: FND_GLOBAL.apps_initialize(l_mto_rules_rec.batch_creation_user,-1,-1);
597: END IF;
598: END IF;
599:
600: gme_debug.put_line('Calling Create Batch API');

Line 816: --FND_GLOBAL.apps_initialize(l_user_id,-1,-1);

812: gme_debug.put_line(g_pkg_name||'.'||l_api_name||' Notify_CSR for batch_id'||l_rsv_rec.supply_source_header_id);
813: gme_debug.put_line(g_pkg_name||'.'||l_api_name||' Notify_CSR for batch_line_id'||l_rsv_rec.supply_source_line_id);
814: gme_debug.put_line(g_pkg_name||'.'||l_api_name||' Notify_CSR for sales_line_id'||l_rsv_rec.demand_source_line_id);
815: END IF;
816: --FND_GLOBAL.apps_initialize(l_user_id,-1,-1);
817: GME_SUPPLY_RES_PVT.notify_CSR
818: ( P_Batch_id => l_rsv_rec.supply_source_header_id
819: , P_Batch_line_id => l_rsv_rec.supply_source_line_id
820: , P_So_line_id => l_rsv_rec.demand_source_line_id

Line 844: FND_GLOBAL.apps_initialize(l_user_id,-1,-1);

840: END IF;
841:
842: /* Set the user context back to the original user */
843: IF (l_mto_rules_rec.batch_creation_user <> l_user_id) THEN
844: FND_GLOBAL.apps_initialize(l_user_id,-1,-1);
845: END IF;
846:
847: /* Get the Order and Line Information */
848: OPEN Get_order_info(p_so_line_id);