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 1585: RLM_TPA_SV.ReconcileShipments(x_Group_rec, x_Key_rec, x_Quantity);

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

Line 2293: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

2289: SetOperation(x_Key_rec, k_UPDATE, x_Quantity);
2290: else
2291: --
2292: if (x_Quantity < x_Key_rec.dem_rec.ordered_quantity) then
2293: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
2294: x_Key_rec, k_RECONCILE,
2295: x_Key_rec.req_rec.primary_quantity);
2296: end if;
2297: --

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

4347: -- start of bug fix 4223359
4348: --
4349: IF x_Quantity > 0 THEN
4350: --
4351: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN
4352: --
4353: IF (l_debug <> -1) THEN
4354: rlm_core_sv.dlog(k_DEBUG,'v_index',v_Index);
4355: END IF;

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

4450: IF (l_debug <> -1) THEN
4451: rlm_core_sv.dpush(k_SDEBUG,'ReconcileShipments');
4452: END IF;
4453: --
4454: IF RLM_TPA_SV.MatchShipments(x_Group_rec, x_Key_rec.req_rec, v_Index) THEN
4455: --
4456: IF (l_debug <> -1) THEN
4457: rlm_core_sv.dlog(k_DEBUG,'x_quantity',x_quantity);
4458: rlm_core_sv.dlog(k_DEBUG,'g_Reconcile_tab(v_Index).ordered_quantity',

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

9101: END IF;
9102: --
9103: END IF;
9104: --
9105: RLM_TPA_SV.UpdateDemand(x_Sched_rec, x_Group_rec, x_Key_rec,
9106: x_SumOrderedQty, x_DemandType);
9107: --
9108: -- this means that the req was not matched in OE so we should
9109: -- only insert the new requirement

Line 9117: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

9113: rlm_core_sv.dlog(k_DEBUG,'insert x_key_rec.req_rec.primary_quantity',
9114: x_key_rec.req_rec.primary_quantity);
9115: END IF;
9116: --
9117: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
9118: x_Key_rec, k_RECONCILE,
9119: x_Key_rec.req_rec.primary_quantity);
9120: --
9121: END IF;

Line 10300: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,

10296: g_WhereTab1.DELETE;
10297: g_WhereTab2.DELETE;
10298: g_BindVarTab.DELETE;
10299: --
10300: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,
10301: x_Group_rec,
10302: k_ATS,
10303: v_AtsDemand,
10304: v_NatsDemand,

Line 10525: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

10521: IF (l_debug <> -1) THEN
10522: rlm_core_sv.dlog(k_DEBUG,'v_NewCount', v_NewCount);
10523: END IF;
10524: --
10525: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
10526: v_Key_rec, k_RECONCILE,
10527: v_Key_rec.req_rec.primary_quantity);
10528: END IF;
10529: --

Line 10618: RLM_TPA_SV.ReconcileAction(x_sched_rec,

10614: --
10615: --bug 5608510
10616: --
10617: IF v_check_partial_flag = 'N' THEN
10618: RLM_TPA_SV.ReconcileAction(x_sched_rec,
10619: x_group_rec,
10620: v_Key_rec,
10621: v_line_id_tab,
10622: v_DemandCount,

Line 10717: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,

10713: g_WhereTab1.DELETE;
10714: g_WhereTab2.DELETE;
10715: g_BindVarTab.DELETE;
10716: --
10717: RLM_TPA_SV.BuildMatchQuery(x_sched_rec,
10718: x_Group_rec,
10719: k_NATS,
10720: v_NatsDemand,
10721: v_AtsDemand,

Line 10907: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

10903: IF (l_debug <> -1) THEN
10904: rlm_core_sv.dlog(k_DEBUG,'v_NewCount', v_NewCount);
10905: END IF;
10906: --
10907: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
10908: v_Key_rec, k_RECONCILE,
10909: v_Key_rec.req_rec.primary_quantity);
10910: END IF;
10911:

Line 10924: RLM_TPA_SV.ReconcileAction(x_sched_rec,

10920: v_DemandCount := v_LineMatch(v_Key_rec.req_rec.line_id-v_LowestLineId).match_count;
10921: v_SumOrderedQty := v_LineMatch(v_Key_rec.req_rec.line_id-v_LowestLineId).sum_qty;
10922: v_line_id_tab(0) := v_line_id_tmp;
10923: --
10924: RLM_TPA_SV.ReconcileAction(x_sched_rec,
10925: x_group_rec,
10926: v_Key_rec,
10927: v_line_id_tab,
10928: v_DemandCount,

Line 10996: RLM_TPA_SV.ReconcileShipments(x_Group_rec,

10992: rlm_core_sv.dlog(k_DEBUG,'x_SumOrderedQty', x_SumOrderedQty);
10993: rlm_core_sv.dlog(k_DEBUG,'x_DemandType', x_DemandType);
10994: END IF;
10995: --
10996: RLM_TPA_SV.ReconcileShipments(x_Group_rec,
10997: x_Key_rec,
10998: x_Key_rec.req_rec.primary_quantity);
10999: --
11000: Reconcile(x_Group_rec,

Line 11024: RLM_TPA_SV.DeleteDemand(x_Sched_rec,

11020: --
11021: IF x_Key_rec.req_rec.primary_quantity <= 0 THEN
11022: --
11023: g_del_reconcile := 'Y'; --Bugfix 6131516
11024: RLM_TPA_SV.DeleteDemand(x_Sched_rec,
11025: x_Group_rec,
11026: x_Key_rec,
11027: v_Demand_ref);
11028: --

Line 11031: RLM_TPA_SV.IncreaseDemand(x_Sched_rec,

11027: v_Demand_ref);
11028: --
11029: ELSIF x_Key_rec.req_rec.primary_quantity > x_SumOrderedQty THEN
11030: --
11031: RLM_TPA_SV.IncreaseDemand(x_Sched_rec,
11032: x_Group_rec,
11033: x_Key_rec,
11034: v_Demand_ref,
11035: x_SumOrderedQty);

Line 11039: RLM_TPA_SV.DecreaseDemand(x_Sched_rec,

11035: x_SumOrderedQty);
11036: --
11037: ELSIF x_Key_rec.req_rec.primary_quantity < x_SumOrderedQty THEN
11038: --
11039: RLM_TPA_SV.DecreaseDemand(x_Sched_rec,
11040: x_Group_rec,
11041: x_Key_rec,
11042: v_Demand_ref,
11043: x_SumOrderedQty);

Line 11047: RLM_TPA_SV.OtherDemand(x_Sched_rec,

11043: x_SumOrderedQty);
11044: --
11045: ELSIF x_Key_rec.req_rec.primary_quantity = x_SumOrderedQty THEN
11046: --
11047: RLM_TPA_SV.OtherDemand(x_Sched_rec,
11048: x_Group_rec,
11049: x_Key_rec,
11050: v_Demand_ref);
11051: --

Line 11302: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,

11298: END LOOP;
11299: --
11300: IF v_QtyDelta <> 0 AND IsSchedulePrecedence THEN
11301: --
11302: RLM_TPA_SV.InsertRequirement(x_Sched_rec, x_Group_rec,
11303: x_Key_rec, k_NORECONCILE, v_QtyDelta);
11304: --
11305: END IF;
11306: g_inc_exception := 'N'; --Bugfix 6159269

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

14410: AND line_id = x_Line_id --Bugfix 7007638
14411: ORDER BY start_date_time desc;
14412: --
14413: v_cum_key_record.create_cum_key_flag := 'N';
14414: RLM_TPA_SV.CalculateCUMKey(v_cum_key_record, v_cum_record);
14415: --
14416: v_Progress := '020';
14417: --
14418: IF v_cum_record.cum_key_id IS NULL THEN

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

15219: rlm_core_sv.dpush(k_SDEBUG, 'ProcessReleases');
15220: END IF;
15221: x_Processed := 'N';
15222: --
15223: RLM_TPA_SV.InitializeBlktGrp(x_Sched_rec, v_BlkGroup_ref, x_Group_rec);
15224: --
15225: WHILE FetchBlktGrp(v_BlkGroup_ref, v_BlkGroup_rec) LOOP
15226: --{
15227: v_BlkGroup_rec.isSourced := x_Group_rec.isSourced;