DBA Data[Home] [Help]

APPS.RLM_RD_SV dependencies on RLM_TPA_SV

Line 72: RLM_TPA_SV.InitializeSoGroup(x_Sched_rec, v_ReGroup_ref, x_Group_rec);

68: g_Accounted_Tab.DELETE;
69: g_BlktIntransits := FALSE;
70: g_IntransitQty := FND_API.G_MISS_NUM;
71: --
72: RLM_TPA_SV.InitializeSoGroup(x_Sched_rec, v_ReGroup_ref, x_Group_rec);
73: --
74: WHILE FetchGroup(v_ReGroup_ref, v_ReGroup_rec) LOOP
75: --{
76: CallSetups(x_Sched_rec, v_ReGroup_rec);

Line 325: RLM_TPA_SV.SynchronizeShipments(x_Sched_rec, x_Group_rec);

321: --
322: IF x_Sched_rec.schedule_purpose IN (k_REPLACE, k_REPLACE_ALL, k_ORIGINAL,K_CHANGE) THEN
323: --
324: CancelPreHorizonNATS(x_Sched_rec, x_Group_rec);
325: RLM_TPA_SV.SynchronizeShipments(x_Sched_rec, x_Group_rec);
326: RLM_TPA_SV.ProcessPreHorizonATS(x_Sched_rec, x_Group_rec);
327: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);
328: --
329: END IF;

Line 326: RLM_TPA_SV.ProcessPreHorizonATS(x_Sched_rec, x_Group_rec);

322: IF x_Sched_rec.schedule_purpose IN (k_REPLACE, k_REPLACE_ALL, k_ORIGINAL,K_CHANGE) THEN
323: --
324: CancelPreHorizonNATS(x_Sched_rec, x_Group_rec);
325: RLM_TPA_SV.SynchronizeShipments(x_Sched_rec, x_Group_rec);
326: RLM_TPA_SV.ProcessPreHorizonATS(x_Sched_rec, x_Group_rec);
327: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);
328: --
329: END IF;
330: --

Line 327: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);

323: --
324: CancelPreHorizonNATS(x_Sched_rec, x_Group_rec);
325: RLM_TPA_SV.SynchronizeShipments(x_Sched_rec, x_Group_rec);
326: RLM_TPA_SV.ProcessPreHorizonATS(x_Sched_rec, x_Group_rec);
327: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);
328: --
329: END IF;
330: --
331: IF x_Sched_rec.schedule_purpose = k_ADD THEN

Line 333: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);

329: END IF;
330: --
331: IF x_Sched_rec.schedule_purpose = k_ADD THEN
332: --
333: RLM_TPA_SV.ProcessOld(x_Sched_rec, x_Group_rec);
334: --
335: END IF;
336: --
337: -- Bug 4351397 : Start

Line 368: RLM_TPA_SV.ProcessATS(x_Sched_rec, x_Group_rec);

364: -- Bug 4351397 : End
365: --
366: -- the following order of ATS and then NATS is used reg.bug1548628
367: --
368: RLM_TPA_SV.ProcessATS(x_Sched_rec, x_Group_rec);
369: --
370: --Start of bug fix 4223359
371: --
372: IF (l_debug <> -1) THEN

Line 393: RLM_TPA_SV.ProcessNATS(x_Sched_rec, x_Group_rec);

389: END IF;
390: --
391: --End of bug fix 4223359
392: --
393: RLM_TPA_SV.ProcessNATS(x_Sched_rec, x_Group_rec);
394: --
395: ExecOperations(x_Sched_rec, x_Group_rec);
396: --
397: -- Bug 2261743

Line 469: RLM_TPA_SV.get_setup_terms(x_Group_rec.ship_from_org_id,

465: -- NOTE: call rla setups to populate setup info in the group rec:
466: -- schedule precedence, match within/across strings, firm disposition code
467: -- offset days, order header id
468: --
469: RLM_TPA_SV.get_setup_terms(x_Group_rec.ship_from_org_id,
470: x_Group_rec.customer_id,
471: x_Group_rec.ship_to_address_id,
472: x_Group_rec.customer_item_id,
473: v_TermsLevel,

Line 1581: RLM_TPA_SV.ReconcileShipments(x_Group_rec, x_Key_rec, x_Quantity);

1577: v_Quantity := x_Quantity; -- Bug 4297984
1578: --
1579: IF x_Reconcile THEN
1580: --
1581: RLM_TPA_SV.ReconcileShipments(x_Group_rec, x_Key_rec, x_Quantity);
1582: --
1583: IF (l_debug <> -1) THEN
1584: rlm_core_sv.dlog(k_DEBUG,'x_Quantity',x_Quantity);
1585: END IF;

Line 2128: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

2124: SetOperation(x_Key_rec, k_UPDATE, x_Quantity);
2125: else
2126: --
2127: if (x_Quantity < x_Key_rec.dem_rec.ordered_quantity) then
2128: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
2129: x_Key_rec, k_RECONCILE,
2130: x_Key_rec.req_rec.primary_quantity);
2131: end if;
2132: --

Line 4186: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN

4182: -- start of bug fix 4223359
4183: --
4184: IF x_Quantity > 0 THEN
4185: --
4186: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN
4187: --
4188: IF (l_debug <> -1) THEN
4189: rlm_core_sv.dlog(k_DEBUG,'v_index',v_Index);
4190: END IF;

Line 4289: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN

4285: IF (l_debug <> -1) THEN
4286: rlm_core_sv.dpush(k_SDEBUG,'ReconcileShipments');
4287: END IF;
4288: --
4289: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN
4290: --
4291: IF (l_debug <> -1) THEN
4292: rlm_core_sv.dlog(k_DEBUG,'x_quantity',x_quantity);
4293: rlm_core_sv.dlog(k_DEBUG,'g_Reconcile_tab(v_Index).ordered_quantity',

Line 8931: RLM_TPA_SV.UpdateDemand(x_Sched_rec, x_Group_rec, x_Key_rec,

8927: END IF;
8928: --
8929: END IF;
8930: --
8931: RLM_TPA_SV.UpdateDemand(x_Sched_rec, x_Group_rec, x_Key_rec,
8932: x_SumOrderedQty, x_DemandType);
8933: --
8934: -- this means that the req was not matched in OE so we should
8935: -- only insert the new requirement

Line 8943: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

8939: rlm_core_sv.dlog(k_DEBUG,'insert x_key_rec.req_rec.primary_quantity',
8940: x_key_rec.req_rec.primary_quantity);
8941: END IF;
8942: --
8943: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
8944: x_Key_rec, k_RECONCILE,
8945: x_Key_rec.req_rec.primary_quantity);
8946: --
8947: END IF;

Line 10126: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,

10122: g_WhereTab1.DELETE;
10123: g_WhereTab2.DELETE;
10124: g_BindVarTab.DELETE;
10125: --
10126: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,
10127: x_Group_rec,
10128: k_ATS,
10129: v_AtsDemand,
10130: v_NatsDemand,

Line 10351: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

10347: IF (l_debug <> -1) THEN
10348: rlm_core_sv.dlog(k_DEBUG,'v_NewCount', v_NewCount);
10349: END IF;
10350: --
10351: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
10352: v_Key_rec, k_RECONCILE,
10353: v_Key_rec.req_rec.primary_quantity);
10354: END IF;
10355: --

Line 10444: RLM_TPA_SV.ReconcileAction(x_sched_rec,

10440: --
10441: --bug 5608510
10442: --
10443: IF v_check_partial_flag = 'N' THEN
10444: RLM_TPA_SV.ReconcileAction(x_sched_rec,
10445: x_group_rec,
10446: v_Key_rec,
10447: v_line_id_tab,
10448: v_DemandCount,

Line 10543: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,

10539: g_WhereTab1.DELETE;
10540: g_WhereTab2.DELETE;
10541: g_BindVarTab.DELETE;
10542: --
10543: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,
10544: x_Group_rec,
10545: k_NATS,
10546: v_NatsDemand,
10547: v_AtsDemand,

Line 10733: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

10729: IF (l_debug <> -1) THEN
10730: rlm_core_sv.dlog(k_DEBUG,'v_NewCount', v_NewCount);
10731: END IF;
10732: --
10733: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
10734: v_Key_rec, k_RECONCILE,
10735: v_Key_rec.req_rec.primary_quantity);
10736: END IF;
10737:

Line 10750: RLM_TPA_SV.ReconcileAction(x_sched_rec,

10746: v_DemandCount := v_LineMatch(v_Key_rec.req_rec.line_id-v_LowestLineId).match_count;
10747: v_SumOrderedQty := v_LineMatch(v_Key_rec.req_rec.line_id-v_LowestLineId).sum_qty;
10748: v_line_id_tab(0) := v_line_id_tmp;
10749: --
10750: RLM_TPA_SV.ReconcileAction(x_sched_rec,
10751: x_group_rec,
10752: v_Key_rec,
10753: v_line_id_tab,
10754: v_DemandCount,

Line 10822: RLM_TPA_SV.ReconcileShipments(x_Group_rec,

10818: rlm_core_sv.dlog(k_DEBUG,'x_SumOrderedQty', x_SumOrderedQty);
10819: rlm_core_sv.dlog(k_DEBUG,'x_DemandType', x_DemandType);
10820: END IF;
10821: --
10822: RLM_TPA_SV.ReconcileShipments(x_Group_rec,
10823: x_Key_rec,
10824: x_Key_rec.req_rec.primary_quantity);
10825: --
10826: Reconcile(x_Group_rec,

Line 10850: RLM_TPA_SV.DeleteDemand(x_Sched_rec,

10846: --
10847: IF x_Key_rec.req_rec.primary_quantity <= 0 THEN
10848: --
10849: g_del_reconcile := 'Y'; --Bugfix 6131516
10850: RLM_TPA_SV.DeleteDemand(x_Sched_rec,
10851: x_Group_rec,
10852: x_Key_rec,
10853: v_Demand_ref);
10854: --

Line 10857: RLM_TPA_SV.IncreaseDemand(x_Sched_rec,

10853: v_Demand_ref);
10854: --
10855: ELSIF x_Key_rec.req_rec.primary_quantity > x_SumOrderedQty THEN
10856: --
10857: RLM_TPA_SV.IncreaseDemand(x_Sched_rec,
10858: x_Group_rec,
10859: x_Key_rec,
10860: v_Demand_ref,
10861: x_SumOrderedQty);

Line 10865: RLM_TPA_SV.DecreaseDemand(x_Sched_rec,

10861: x_SumOrderedQty);
10862: --
10863: ELSIF x_Key_rec.req_rec.primary_quantity < x_SumOrderedQty THEN
10864: --
10865: RLM_TPA_SV.DecreaseDemand(x_Sched_rec,
10866: x_Group_rec,
10867: x_Key_rec,
10868: v_Demand_ref,
10869: x_SumOrderedQty);

Line 10873: RLM_TPA_SV.OtherDemand(x_Sched_rec,

10869: x_SumOrderedQty);
10870: --
10871: ELSIF x_Key_rec.req_rec.primary_quantity = x_SumOrderedQty THEN
10872: --
10873: RLM_TPA_SV.OtherDemand(x_Sched_rec,
10874: x_Group_rec,
10875: x_Key_rec,
10876: v_Demand_ref);
10877: --

Line 11124: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

11120: END LOOP;
11121: --
11122: IF v_QtyDelta <> 0 AND IsSchedulePrecedence THEN
11123: --
11124: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
11125: x_Key_rec, k_NORECONCILE, v_QtyDelta);
11126: --
11127: END IF;
11128: g_inc_exception := 'N'; --Bugfix 6159269

Line 14220: RLM_TPA_SV.CalculateCUMKey(v_cum_key_record, v_cum_record);

14216: AND line_id = x_Line_id --Bugfix 7007638
14217: ORDER BY start_date_time desc;
14218: --
14219: v_cum_key_record.create_cum_key_flag := 'N';
14220: RLM_TPA_SV.CalculateCUMKey(v_cum_key_record, v_cum_record);
14221: --
14222: v_Progress := '020';
14223: --
14224: IF v_cum_record.cum_key_id IS NULL THEN

Line 15029: RLM_TPA_SV.InitializeBlktGrp(x_Sched_rec, v_BlkGroup_ref, x_Group_rec);

15025: rlm_core_sv.dpush(k_SDEBUG, 'ProcessReleases');
15026: END IF;
15027: x_Processed := 'N';
15028: --
15029: RLM_TPA_SV.InitializeBlktGrp(x_Sched_rec, v_BlkGroup_ref, x_Group_rec);
15030: --
15031: WHILE FetchBlktGrp(v_BlkGroup_ref, v_BlkGroup_rec) LOOP
15032: --{
15033: v_BlkGroup_rec.isSourced := x_Group_rec.isSourced;