DBA Data[Home] [Help]

APPS.WSMPLBMI dependencies on FND_MESSAGE

Line 73: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');

69: End if;
70: if (l_charges_exist=1) then
71: if ((l_manually_added_resource = 1) or (l_issued_resource = 1)) then
72:
73: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
74: fnd_message.set_token('ELEMENT', 'Resources');
75: x_err_buf := FND_MESSAGE.GET;
76: fnd_file.put_line(fnd_file.log, x_err_buf);
77: end if;

Line 74: fnd_message.set_token('ELEMENT', 'Resources');

70: if (l_charges_exist=1) then
71: if ((l_manually_added_resource = 1) or (l_issued_resource = 1)) then
72:
73: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
74: fnd_message.set_token('ELEMENT', 'Resources');
75: x_err_buf := FND_MESSAGE.GET;
76: fnd_file.put_line(fnd_file.log, x_err_buf);
77: end if;
78:

Line 75: x_err_buf := FND_MESSAGE.GET;

71: if ((l_manually_added_resource = 1) or (l_issued_resource = 1)) then
72:
73: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
74: fnd_message.set_token('ELEMENT', 'Resources');
75: x_err_buf := FND_MESSAGE.GET;
76: fnd_file.put_line(fnd_file.log, x_err_buf);
77: end if;
78:
79: if (l_manually_added_comp = 2) then

Line 80: FND_MESSAGE.Set_Name('WSM','WSM_PHANTOM_COMPONENTS_EXIST');

76: fnd_file.put_line(fnd_file.log, x_err_buf);
77: end if;
78:
79: if (l_manually_added_comp = 2) then
80: FND_MESSAGE.Set_Name('WSM','WSM_PHANTOM_COMPONENTS_EXIST');
81: x_err_buf := FND_MESSAGE.GET;
82: fnd_file.put_line(fnd_file.log, x_err_buf);
83: end if;
84:

Line 81: x_err_buf := FND_MESSAGE.GET;

77: end if;
78:
79: if (l_manually_added_comp = 2) then
80: FND_MESSAGE.Set_Name('WSM','WSM_PHANTOM_COMPONENTS_EXIST');
81: x_err_buf := FND_MESSAGE.GET;
82: fnd_file.put_line(fnd_file.log, x_err_buf);
83: end if;
84:
85: if ((l_manually_added_comp = 1) or (l_issued_material = 1)) then

Line 86: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');

82: fnd_file.put_line(fnd_file.log, x_err_buf);
83: end if;
84:
85: if ((l_manually_added_comp = 1) or (l_issued_material = 1)) then
86: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
87: fnd_message.set_token('ELEMENT', 'Materials');
88: x_err_buf := FND_MESSAGE.GET;
89: fnd_file.put_line(fnd_file.log, x_err_buf);
90: end if;

Line 87: fnd_message.set_token('ELEMENT', 'Materials');

83: end if;
84:
85: if ((l_manually_added_comp = 1) or (l_issued_material = 1)) then
86: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
87: fnd_message.set_token('ELEMENT', 'Materials');
88: x_err_buf := FND_MESSAGE.GET;
89: fnd_file.put_line(fnd_file.log, x_err_buf);
90: end if;
91:

Line 88: x_err_buf := FND_MESSAGE.GET;

84:
85: if ((l_manually_added_comp = 1) or (l_issued_material = 1)) then
86: fnd_message.set_name('WSM', 'WSM_MANUAL_CHARGES_EXIST');
87: fnd_message.set_token('ELEMENT', 'Materials');
88: x_err_buf := FND_MESSAGE.GET;
89: fnd_file.put_line(fnd_file.log, x_err_buf);
90: end if;
91:
92: end if;

Line 351: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

347: --***VJ Added for Performance Upgrade***--
348: IF (p_txn_type < 1) OR (p_txn_type > 4) THEN
349: x_return_code := 1;
350:
351: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
352: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
353: x_err_buf := FND_MESSAGE.GET;
354:
355: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 352: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');

348: IF (p_txn_type < 1) OR (p_txn_type > 4) THEN
349: x_return_code := 1;
350:
351: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
352: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
353: x_err_buf := FND_MESSAGE.GET;
354:
355: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
356: return(x_return_code);

Line 353: x_err_buf := FND_MESSAGE.GET;

349: x_return_code := 1;
350:
351: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
352: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
353: x_err_buf := FND_MESSAGE.GET;
354:
355: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
356: return(x_return_code);
357: END IF;

Line 382: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

378: from mtl_parameters
379: where organization_id = p_org_id;
380: EXCEPTION
381: when no_data_found then
382: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
383: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Organization_id');
384: x_err_buf := FND_MESSAGE.GET;
385:
386: fnd_file.put_line(fnd_file.log,

Line 383: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Organization_id');

379: where organization_id = p_org_id;
380: EXCEPTION
381: when no_data_found then
382: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
383: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Organization_id');
384: x_err_buf := FND_MESSAGE.GET;
385:
386: fnd_file.put_line(fnd_file.log,
387: 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 384: x_err_buf := FND_MESSAGE.GET;

380: EXCEPTION
381: when no_data_found then
382: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
383: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Organization_id');
384: x_err_buf := FND_MESSAGE.GET;
385:
386: fnd_file.put_line(fnd_file.log,
387: 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
388: x_return_code := 1;

Line 397: FND_MESSAGE.SET_NAME('WSM', 'WSM_NON_WSM_ORG');

393:
394: IF ( (x_return_code = 0) OR (l_retcode<>0) ) THEN
395: x_return_code := 1;
396:
397: FND_MESSAGE.SET_NAME('WSM', 'WSM_NON_WSM_ORG');
398: x_err_buf := FND_MESSAGE.GET;
399:
400: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
401:

Line 398: x_err_buf := FND_MESSAGE.GET;

394: IF ( (x_return_code = 0) OR (l_retcode<>0) ) THEN
395: x_return_code := 1;
396:
397: FND_MESSAGE.SET_NAME('WSM', 'WSM_NON_WSM_ORG');
398: x_err_buf := FND_MESSAGE.GET;
399:
400: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
401:
402: return(x_return_code);

Line 458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');

454: p_date => p_txn_date);
455:
456: IF (l_err_code <> 0) THEN
457: x_return_code := 1;
458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
460: x_err_buf := FND_MESSAGE.GET;
461:
462: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');

455:
456: IF (l_err_code <> 0) THEN
457: x_return_code := 1;
458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
460: x_err_buf := FND_MESSAGE.GET;
461:
462: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
463: return(x_return_code);

Line 460: x_err_buf := FND_MESSAGE.GET;

456: IF (l_err_code <> 0) THEN
457: x_return_code := 1;
458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
460: x_err_buf := FND_MESSAGE.GET;
461:
462: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
463: return(x_return_code);
464: END IF;

Line 482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

478: WHERE header_id = p_header_id;
479:
480: IF (l_wip_entity_id IS NULL) THEN
481: x_return_code := 1;
482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name/wip_entity_id');
484: x_err_buf := FND_MESSAGE.GET;
485: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
486: return(x_return_code);

Line 483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name/wip_entity_id');

479:
480: IF (l_wip_entity_id IS NULL) THEN
481: x_return_code := 1;
482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name/wip_entity_id');
484: x_err_buf := FND_MESSAGE.GET;
485: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
486: return(x_return_code);
487: END IF;

Line 484: x_err_buf := FND_MESSAGE.GET;

480: IF (l_wip_entity_id IS NULL) THEN
481: x_return_code := 1;
482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name/wip_entity_id');
484: x_err_buf := FND_MESSAGE.GET;
485: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
486: return(x_return_code);
487: END IF;
488:

Line 502: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');

498:
499: IF (l_entity_type <> 5) THEN
500: x_return_code := 1;
501:
502: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
503: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
504: x_err_buf := FND_MESSAGE.GET;
505:
506: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 503: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');

499: IF (l_entity_type <> 5) THEN
500: x_return_code := 1;
501:
502: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
503: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
504: x_err_buf := FND_MESSAGE.GET;
505:
506: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
507: return(x_return_code);

Line 504: x_err_buf := FND_MESSAGE.GET;

500: x_return_code := 1;
501:
502: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
503: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
504: x_err_buf := FND_MESSAGE.GET;
505:
506: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
507: return(x_return_code);
508: END IF;

Line 516: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

512: UPDATE wsm_lot_move_txn_interface
513: SET wip_entity_name = l_wip_entity_name_temp
514: WHERE header_id = p_header_id;
515:
516: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
518: x_err_buf := FND_MESSAGE.GET;
519:
520: EXCEPTION

Line 517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');

513: SET wip_entity_name = l_wip_entity_name_temp
514: WHERE header_id = p_header_id;
515:
516: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
518: x_err_buf := FND_MESSAGE.GET;
519:
520: EXCEPTION
521: WHEN NO_DATA_FOUND THEN

Line 518: x_err_buf := FND_MESSAGE.GET;

514: WHERE header_id = p_header_id;
515:
516: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
518: x_err_buf := FND_MESSAGE.GET;
519:
520: EXCEPTION
521: WHEN NO_DATA_FOUND THEN
522: x_return_code := 1;

Line 523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

519:
520: EXCEPTION
521: WHEN NO_DATA_FOUND THEN
522: x_return_code := 1;
523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
525: x_err_buf := FND_MESSAGE.GET;
526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
527: return(x_return_code);

Line 524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');

520: EXCEPTION
521: WHEN NO_DATA_FOUND THEN
522: x_return_code := 1;
523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
525: x_err_buf := FND_MESSAGE.GET;
526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
527: return(x_return_code);
528:

Line 525: x_err_buf := FND_MESSAGE.GET;

521: WHEN NO_DATA_FOUND THEN
522: x_return_code := 1;
523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
525: x_err_buf := FND_MESSAGE.GET;
526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
527: return(x_return_code);
528:
529: WHEN OTHERS THEN

Line 553: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');

549:
550: IF (l_entity_type <> 5) THEN
551: x_return_code := 1;
552:
553: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
554: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
555: x_err_buf := FND_MESSAGE.GET;
556:
557: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 554: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');

550: IF (l_entity_type <> 5) THEN
551: x_return_code := 1;
552:
553: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
554: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
555: x_err_buf := FND_MESSAGE.GET;
556:
557: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
558: return(x_return_code);

Line 555: x_err_buf := FND_MESSAGE.GET;

551: x_return_code := 1;
552:
553: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
554: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entities');
555: x_err_buf := FND_MESSAGE.GET;
556:
557: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
558: return(x_return_code);
559: END IF;

Line 564: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

560:
561: EXCEPTION
562: WHEN NO_DATA_FOUND THEN
563: x_return_code := 1;
564: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
565: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
566: x_err_buf := FND_MESSAGE.GET;
567: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
568: return(x_return_code);

Line 565: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');

561: EXCEPTION
562: WHEN NO_DATA_FOUND THEN
563: x_return_code := 1;
564: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
565: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
566: x_err_buf := FND_MESSAGE.GET;
567: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
568: return(x_return_code);
569: END;

Line 566: x_err_buf := FND_MESSAGE.GET;

562: WHEN NO_DATA_FOUND THEN
563: x_return_code := 1;
564: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
565: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
566: x_err_buf := FND_MESSAGE.GET;
567: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
568: return(x_return_code);
569: END;
570: --***VJ End Changes***--

Line 577: fnd_message.set_name(

573: --bug 3512105
574: l_stmt_num := 34;
575: IF ((g_aps_wps_profile = 'Y')
576: AND (WSMPUTIL.get_internal_copy_type(l_wip_entity_id)=3)) THEN
577: fnd_message.set_name(
578: application => 'WSM',
579: name => 'WSM_NO_VALID_COPY');
580: x_err_buf := FND_MESSAGE.GET;
581:

Line 580: x_err_buf := FND_MESSAGE.GET;

576: AND (WSMPUTIL.get_internal_copy_type(l_wip_entity_id)=3)) THEN
577: fnd_message.set_name(
578: application => 'WSM',
579: name => 'WSM_NO_VALID_COPY');
580: x_err_buf := FND_MESSAGE.GET;
581:
582: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
583: return(x_return_code);
584: END IF;

Line 618: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');

614: l_stmt_num := 43;
615: if (l_current_intraop_step <> 5) then
616: x_return_code := 1;
617:
618: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
619: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
620: x_err_buf := FND_MESSAGE.GET;
621:
622: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 619: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);

615: if (l_current_intraop_step <> 5) then
616: x_return_code := 1;
617:
618: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
619: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
620: x_err_buf := FND_MESSAGE.GET;
621:
622: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
623: return(x_return_code);

Line 620: x_err_buf := FND_MESSAGE.GET;

616: x_return_code := 1;
617:
618: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
619: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
620: x_err_buf := FND_MESSAGE.GET;
621:
622: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
623: return(x_return_code);
624: end if;

Line 635: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RET_JOB_STATUS');

631: -- ST : Bug fix : 4454300 : Instead of the message WSM_NOT_RELEASED_JOB use a new message
632: -- for assembly return transaction
633: IF p_txn_type = 3 THEN
634: -- Assembly return txn
635: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RET_JOB_STATUS');
636: FND_MESSAGE.SET_TOKEN('JOB', p_wip_entity_name);
637: ELSE
638: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);

Line 636: FND_MESSAGE.SET_TOKEN('JOB', p_wip_entity_name);

632: -- for assembly return transaction
633: IF p_txn_type = 3 THEN
634: -- Assembly return txn
635: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RET_JOB_STATUS');
636: FND_MESSAGE.SET_TOKEN('JOB', p_wip_entity_name);
637: ELSE
638: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
640: END IF;

Line 638: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');

634: -- Assembly return txn
635: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RET_JOB_STATUS');
636: FND_MESSAGE.SET_TOKEN('JOB', p_wip_entity_name);
637: ELSE
638: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
640: END IF;
641: -- ST : Bug fix : 4454300 : End
642:

Line 639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);

635: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RET_JOB_STATUS');
636: FND_MESSAGE.SET_TOKEN('JOB', p_wip_entity_name);
637: ELSE
638: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_RELEASED_JOB');
639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
640: END IF;
641: -- ST : Bug fix : 4454300 : End
642:
643: x_err_buf := FND_MESSAGE.GET;

Line 643: x_err_buf := FND_MESSAGE.GET;

639: FND_MESSAGE.SET_TOKEN('FLD_NAME', p_wip_entity_name);
640: END IF;
641: -- ST : Bug fix : 4454300 : End
642:
643: x_err_buf := FND_MESSAGE.GET;
644:
645: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
646: return(x_return_code);
647: END IF;

Line 662: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

658:
659: l_stmt_num := 55;
660: IF (l_wlmti_wip_entity_id = -1) THEN
661:
662: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
663: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
664: x_err_buf := FND_MESSAGE.GET;
665: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
666: -- CZH.BUG2135538

Line 663: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');

659: l_stmt_num := 55;
660: IF (l_wlmti_wip_entity_id = -1) THEN
661:
662: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
663: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
664: x_err_buf := FND_MESSAGE.GET;
665: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
666: -- CZH.BUG2135538
667: update wsm_lot_move_txn_interface

Line 664: x_err_buf := FND_MESSAGE.GET;

660: IF (l_wlmti_wip_entity_id = -1) THEN
661:
662: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
663: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
664: x_err_buf := FND_MESSAGE.GET;
665: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
666: -- CZH.BUG2135538
667: update wsm_lot_move_txn_interface
668: set wip_entity_id = l_wip_entity_id,

Line 680: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

676: ELSIF (l_wlmti_wip_entity_id <> l_wip_entity_id) THEN
677:
678: x_return_code := 1;
679:
680: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
681: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
682: x_err_buf := FND_MESSAGE.GET;
683:
684: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 681: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');

677:
678: x_return_code := 1;
679:
680: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
681: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
682: x_err_buf := FND_MESSAGE.GET;
683:
684: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
685: return(x_return_code);

Line 682: x_err_buf := FND_MESSAGE.GET;

678: x_return_code := 1;
679:
680: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
681: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_id');
682: x_err_buf := FND_MESSAGE.GET;
683:
684: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
685: return(x_return_code);
686:

Line 754: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');

750:
751: IF (l_entity_type <> 5) THEN
752: x_return_code := 1;
753:
754: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
755: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wsm_lot_move_txn_interface');
756: x_err_buf := FND_MESSAGE.GET;
757:
758: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 755: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wsm_lot_move_txn_interface');

751: IF (l_entity_type <> 5) THEN
752: x_return_code := 1;
753:
754: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
755: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wsm_lot_move_txn_interface');
756: x_err_buf := FND_MESSAGE.GET;
757:
758: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
759: return(x_return_code);

Line 756: x_err_buf := FND_MESSAGE.GET;

752: x_return_code := 1;
753:
754: FND_MESSAGE.SET_NAME('WSM', 'WSM_NOT_WSM_LOT_JOB');
755: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wsm_lot_move_txn_interface');
756: x_err_buf := FND_MESSAGE.GET;
757:
758: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
759: return(x_return_code);
760: END IF;

Line 764: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

760: END IF;
761:
762: l_stmt_num := 70;
763: IF (l_wlmti_primary_item_id = -1) THEN
764: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
765: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
766: x_err_buf := FND_MESSAGE.GET;
767: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
768: -- CZH.BUG2135538

Line 765: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');

761:
762: l_stmt_num := 70;
763: IF (l_wlmti_primary_item_id = -1) THEN
764: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
765: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
766: x_err_buf := FND_MESSAGE.GET;
767: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
768: -- CZH.BUG2135538
769: update wsm_lot_move_txn_interface

Line 766: x_err_buf := FND_MESSAGE.GET;

762: l_stmt_num := 70;
763: IF (l_wlmti_primary_item_id = -1) THEN
764: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
765: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
766: x_err_buf := FND_MESSAGE.GET;
767: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
768: -- CZH.BUG2135538
769: update wsm_lot_move_txn_interface
770: set primary_item_id = l_primary_item_id,

Line 780: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

776: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
777: ELSIF (l_wlmti_primary_item_id <> l_primary_item_id) THEN
778: x_return_code := 1;
779:
780: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
781: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
782: x_err_buf := FND_MESSAGE.GET;
783:
784: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 781: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');

777: ELSIF (l_wlmti_primary_item_id <> l_primary_item_id) THEN
778: x_return_code := 1;
779:
780: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
781: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
782: x_err_buf := FND_MESSAGE.GET;
783:
784: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
785: return(x_return_code);

Line 782: x_err_buf := FND_MESSAGE.GET;

778: x_return_code := 1;
779:
780: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
781: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_item_id');
782: x_err_buf := FND_MESSAGE.GET;
783:
784: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
785: return(x_return_code);
786: END IF;

Line 789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

785: return(x_return_code);
786: END IF;
787:
788: IF (l_wlmti_org_code IS NULL) THEN
789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'organization_code');
791: x_err_buf := FND_MESSAGE.GET;
792: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
793: -- CZH.BUG2135538

Line 790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'organization_code');

786: END IF;
787:
788: IF (l_wlmti_org_code IS NULL) THEN
789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'organization_code');
791: x_err_buf := FND_MESSAGE.GET;
792: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
793: -- CZH.BUG2135538
794: update wsm_lot_move_txn_interface

Line 791: x_err_buf := FND_MESSAGE.GET;

787:
788: IF (l_wlmti_org_code IS NULL) THEN
789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'organization_code');
791: x_err_buf := FND_MESSAGE.GET;
792: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
793: -- CZH.BUG2135538
794: update wsm_lot_move_txn_interface
795: set organization_code = g_prev_org_code, --l_org_code,

Line 806: FND_MESSAGE.SET_NAME('WSM', 'WSM_ORG_ID-CODE_COMB_INVALID');

802:
803: ELSIF (l_wlmti_org_code <> g_prev_org_code) THEN --***VJ Changed for Performance Upgrade***--
804: x_return_code := 1;
805:
806: FND_MESSAGE.SET_NAME('WSM', 'WSM_ORG_ID-CODE_COMB_INVALID');
807: x_err_buf := FND_MESSAGE.GET;
808:
809: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
810: return(x_return_code);

Line 807: x_err_buf := FND_MESSAGE.GET;

803: ELSIF (l_wlmti_org_code <> g_prev_org_code) THEN --***VJ Changed for Performance Upgrade***--
804: x_return_code := 1;
805:
806: FND_MESSAGE.SET_NAME('WSM', 'WSM_ORG_ID-CODE_COMB_INVALID');
807: x_err_buf := FND_MESSAGE.GET;
808:
809: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
810: return(x_return_code);
811: END IF;

Line 847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

843: EXCEPTION
844: WHEN NO_DATA_FOUND THEN
845: x_return_code := 1;
846:
847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
848: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by');
849: x_err_buf := FND_MESSAGE.GET;
850:
851: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 848: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by');

844: WHEN NO_DATA_FOUND THEN
845: x_return_code := 1;
846:
847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
848: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by');
849: x_err_buf := FND_MESSAGE.GET;
850:
851: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
852: return(x_return_code);

Line 849: x_err_buf := FND_MESSAGE.GET;

845: x_return_code := 1;
846:
847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
848: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by');
849: x_err_buf := FND_MESSAGE.GET;
850:
851: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
852: return(x_return_code);
853: END;

Line 876: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

872: p_run_log_level => l_log_level
873: );
874: END IF;
875: IF (l_wlmti_last_upd_name IS NULL) THEN
876: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
877: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
878: x_err_buf := FND_MESSAGE.GET;
879: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
880: -- CZH.BUG2135538

Line 877: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');

873: );
874: END IF;
875: IF (l_wlmti_last_upd_name IS NULL) THEN
876: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
877: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
878: x_err_buf := FND_MESSAGE.GET;
879: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
880: -- CZH.BUG2135538
881: update wsm_lot_move_txn_interface

Line 878: x_err_buf := FND_MESSAGE.GET;

874: END IF;
875: IF (l_wlmti_last_upd_name IS NULL) THEN
876: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
877: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
878: x_err_buf := FND_MESSAGE.GET;
879: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
880: -- CZH.BUG2135538
881: update wsm_lot_move_txn_interface
882: set last_updated_by_name = g_prev_upd_user_name, --l_user_name,

Line 894: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

890: ELSIF (l_wlmti_last_upd_name <> g_prev_upd_user_name) THEN
891: --***VJ Changed for Performance Upgrade***--
892: x_return_code := 1;
893:
894: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
895: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
896: x_err_buf := FND_MESSAGE.GET;
897:
898: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 895: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');

891: --***VJ Changed for Performance Upgrade***--
892: x_return_code := 1;
893:
894: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
895: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
896: x_err_buf := FND_MESSAGE.GET;
897:
898: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
899: return(x_return_code);

Line 896: x_err_buf := FND_MESSAGE.GET;

892: x_return_code := 1;
893:
894: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
895: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'last_updated_by_name');
896: x_err_buf := FND_MESSAGE.GET;
897:
898: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
899: return(x_return_code);
900: END IF;

Line 918: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

914: EXCEPTION
915: WHEN NO_DATA_FOUND THEN
916: x_return_code := 1;
917:
918: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
919: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by');
920: x_err_buf := FND_MESSAGE.GET;
921:
922: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='

Line 919: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by');

915: WHEN NO_DATA_FOUND THEN
916: x_return_code := 1;
917:
918: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
919: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by');
920: x_err_buf := FND_MESSAGE.GET;
921:
922: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
923: ||l_stmt_num||'): '||x_err_buf);

Line 920: x_err_buf := FND_MESSAGE.GET;

916: x_return_code := 1;
917:
918: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
919: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by');
920: x_err_buf := FND_MESSAGE.GET;
921:
922: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
923: ||l_stmt_num||'): '||x_err_buf);
924: return(x_return_code);

Line 935: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

931:
932: l_stmt_num := 105;
933:
934: IF (l_wlmti_created_by_name IS NULL) THEN
935: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
936: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
937: x_err_buf := FND_MESSAGE.GET;
938: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
939: -- CZH.BUG2135538

Line 936: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');

932: l_stmt_num := 105;
933:
934: IF (l_wlmti_created_by_name IS NULL) THEN
935: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
936: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
937: x_err_buf := FND_MESSAGE.GET;
938: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
939: -- CZH.BUG2135538
940: update wsm_lot_move_txn_interface

Line 937: x_err_buf := FND_MESSAGE.GET;

933:
934: IF (l_wlmti_created_by_name IS NULL) THEN
935: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
936: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
937: x_err_buf := FND_MESSAGE.GET;
938: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
939: -- CZH.BUG2135538
940: update wsm_lot_move_txn_interface
941: set created_by_name = g_prev_cr_user_name, --l_user_name,

Line 953: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

949: ELSIF (l_wlmti_created_by_name <> g_prev_cr_user_name) THEN
950: --***VJ Changed for Performance Upgrade***--
951: x_return_code := 1;
952:
953: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
954: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
955: x_err_buf := FND_MESSAGE.GET;
956:
957: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 954: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');

950: --***VJ Changed for Performance Upgrade***--
951: x_return_code := 1;
952:
953: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
954: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
955: x_err_buf := FND_MESSAGE.GET;
956:
957: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
958: return(x_return_code);

Line 955: x_err_buf := FND_MESSAGE.GET;

951: x_return_code := 1;
952:
953: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
954: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'created_by_name');
955: x_err_buf := FND_MESSAGE.GET;
956:
957: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
958: return(x_return_code);
959: END IF;

Line 1000: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

996: WHEN NO_DATA_FOUND THEN
997: ***/
998: x_return_code := 1;
999:
1000: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1001: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
1002: x_err_buf := FND_MESSAGE.GET;
1003:
1004: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1001: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');

997: ***/
998: x_return_code := 1;
999:
1000: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1001: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
1002: x_err_buf := FND_MESSAGE.GET;
1003:
1004: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1005: return(x_return_code);

Line 1002: x_err_buf := FND_MESSAGE.GET;

998: x_return_code := 1;
999:
1000: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1001: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
1002: x_err_buf := FND_MESSAGE.GET;
1003:
1004: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1005: return(x_return_code);
1006: -- END;

Line 1023: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1019: EXCEPTION
1020: WHEN NO_DATA_FOUND THEN
1021: x_return_code := 1;
1022:
1023: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1024: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_id');
1025: x_err_buf := FND_MESSAGE.GET;
1026:
1027: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1024: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_id');

1020: WHEN NO_DATA_FOUND THEN
1021: x_return_code := 1;
1022:
1023: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1024: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_id');
1025: x_err_buf := FND_MESSAGE.GET;
1026:
1027: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1028: return(x_return_code);

Line 1025: x_err_buf := FND_MESSAGE.GET;

1021: x_return_code := 1;
1022:
1023: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1024: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_id');
1025: x_err_buf := FND_MESSAGE.GET;
1026:
1027: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1028: return(x_return_code);
1029: END;

Line 1038: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

1034: -- Validate/Populate reason_name
1035: --***VJ Added for Performance Upgrade***--
1036: IF (l_reason_name IS NULL) THEN
1037:
1038: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1040: x_err_buf := FND_MESSAGE.GET;
1041: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1042: -- CZH.BUG2135538

Line 1039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');

1035: --***VJ Added for Performance Upgrade***--
1036: IF (l_reason_name IS NULL) THEN
1037:
1038: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1040: x_err_buf := FND_MESSAGE.GET;
1041: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1042: -- CZH.BUG2135538
1043: update wsm_lot_move_txn_interface

Line 1040: x_err_buf := FND_MESSAGE.GET;

1036: IF (l_reason_name IS NULL) THEN
1037:
1038: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1040: x_err_buf := FND_MESSAGE.GET;
1041: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1042: -- CZH.BUG2135538
1043: update wsm_lot_move_txn_interface
1044: set reason_name = l_mtr_reason_name,

Line 1053: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

1049: l_stmt_num := 130;
1050: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1051: --***VJ End Additions***--
1052: ELSIF (l_reason_name <> l_mtr_reason_name) THEN
1053: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1054: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1055: x_err_buf := FND_MESSAGE.GET;
1056: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1057: -- CZH.BUG2135538

Line 1054: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');

1050: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1051: --***VJ End Additions***--
1052: ELSIF (l_reason_name <> l_mtr_reason_name) THEN
1053: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1054: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1055: x_err_buf := FND_MESSAGE.GET;
1056: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1057: -- CZH.BUG2135538
1058: update wsm_lot_move_txn_interface

Line 1055: x_err_buf := FND_MESSAGE.GET;

1051: --***VJ End Additions***--
1052: ELSIF (l_reason_name <> l_mtr_reason_name) THEN
1053: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1054: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'reason_name');
1055: x_err_buf := FND_MESSAGE.GET;
1056: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1057: -- CZH.BUG2135538
1058: update wsm_lot_move_txn_interface
1059: set reason_name = l_mtr_reason_name,

Line 1082: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');

1078: p_org_id); -- ADD: CZH
1079: IF ( (l_res_rows > 0) OR (x_return_code <> 0) ) THEN
1080: x_return_code := 1;
1081:
1082: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1083: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
1084: x_err_buf := FND_MESSAGE.GET;
1085:
1086: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1083: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');

1079: IF ( (l_res_rows > 0) OR (x_return_code <> 0) ) THEN
1080: x_return_code := 1;
1081:
1082: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1083: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
1084: x_err_buf := FND_MESSAGE.GET;
1085:
1086: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1087: return(x_return_code);

Line 1084: x_err_buf := FND_MESSAGE.GET;

1080: x_return_code := 1;
1081:
1082: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1083: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
1084: x_err_buf := FND_MESSAGE.GET;
1085:
1086: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1087: return(x_return_code);
1088: END IF;

Line 1103: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');

1099:
1100: IF ( (l_res_rows > 0) OR (x_return_code <> 0) ) THEN
1101: x_return_code := 1;
1102:
1103: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1104: FND_MESSAGE.SET_TOKEN('TABLE', 'wsm_split_merge_transactions');
1105: x_err_buf := FND_MESSAGE.GET;
1106:
1107: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1104: FND_MESSAGE.SET_TOKEN('TABLE', 'wsm_split_merge_transactions');

1100: IF ( (l_res_rows > 0) OR (x_return_code <> 0) ) THEN
1101: x_return_code := 1;
1102:
1103: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1104: FND_MESSAGE.SET_TOKEN('TABLE', 'wsm_split_merge_transactions');
1105: x_err_buf := FND_MESSAGE.GET;
1106:
1107: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1108:

Line 1105: x_err_buf := FND_MESSAGE.GET;

1101: x_return_code := 1;
1102:
1103: FND_MESSAGE.SET_NAME('WSM', 'WSM_PENDING_TXN');
1104: FND_MESSAGE.SET_TOKEN('TABLE', 'wsm_split_merge_transactions');
1105: x_err_buf := FND_MESSAGE.GET;
1106:
1107: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1108:
1109: return(x_return_code);

Line 1122: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_LAST_OP');

1118: --IF(p_fm_intraop_step_type = 3 AND p_fm_op_seq_num = g_prev_last_op) THEN
1119: --***VJ Changed for Performance Upgrade***--
1120: -- x_return_code := 1;
1121:
1122: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_LAST_OP');
1123: -- x_err_buf := FND_MESSAGE.GET;
1124:
1125: -- fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1126: -- return(x_return_code);

Line 1123: -- x_err_buf := FND_MESSAGE.GET;

1119: --***VJ Changed for Performance Upgrade***--
1120: -- x_return_code := 1;
1121:
1122: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_LAST_OP');
1123: -- x_err_buf := FND_MESSAGE.GET;
1124:
1125: -- fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1126: -- return(x_return_code);
1127: --END IF;

Line 1135: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1131: --***VJ Added for Performance Upgrade***--
1132: IF (p_jump_flag IS NOT NULL) AND (p_jump_flag <> 'Y') AND (p_jump_flag <> 'N') THEN
1133: x_return_code := 1;
1134:
1135: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1136: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
1137: x_err_buf := FND_MESSAGE.GET;
1138:
1139: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1136: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');

1132: IF (p_jump_flag IS NOT NULL) AND (p_jump_flag <> 'Y') AND (p_jump_flag <> 'N') THEN
1133: x_return_code := 1;
1134:
1135: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1136: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
1137: x_err_buf := FND_MESSAGE.GET;
1138:
1139: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1140: return(x_return_code);

Line 1137: x_err_buf := FND_MESSAGE.GET;

1133: x_return_code := 1;
1134:
1135: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1136: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
1137: x_err_buf := FND_MESSAGE.GET;
1138:
1139: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1140: return(x_return_code);
1141: END IF;

Line 1165: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

1161: -- ST : Serial Support Project ---
1162: l_stmt_num := 155;
1163:
1164: IF (p_primary_uom IS NULL) THEN
1165: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1166: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_primary_uom');
1167: x_err_buf := FND_MESSAGE.GET;
1168: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1169: -- CZH.BUG2135538

Line 1166: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_primary_uom');

1162: l_stmt_num := 155;
1163:
1164: IF (p_primary_uom IS NULL) THEN
1165: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1166: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_primary_uom');
1167: x_err_buf := FND_MESSAGE.GET;
1168: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1169: -- CZH.BUG2135538
1170: update wsm_lot_move_txn_interface

Line 1167: x_err_buf := FND_MESSAGE.GET;

1163:
1164: IF (p_primary_uom IS NULL) THEN
1165: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1166: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_primary_uom');
1167: x_err_buf := FND_MESSAGE.GET;
1168: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1169: -- CZH.BUG2135538
1170: update wsm_lot_move_txn_interface
1171: set primary_uom = l_primary_uom,

Line 1182: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');

1178: ELSE
1179: IF (p_primary_uom <> l_primary_uom) THEN
1180: x_return_code := 1;
1181:
1182: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
1183: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_uom');
1184: x_err_buf := FND_MESSAGE.GET;
1185:
1186: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1183: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_uom');

1179: IF (p_primary_uom <> l_primary_uom) THEN
1180: x_return_code := 1;
1181:
1182: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
1183: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_uom');
1184: x_err_buf := FND_MESSAGE.GET;
1185:
1186: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1187: return(x_return_code);

Line 1184: x_err_buf := FND_MESSAGE.GET;

1180: x_return_code := 1;
1181:
1182: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
1183: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_uom');
1184: x_err_buf := FND_MESSAGE.GET;
1185:
1186: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1187: return(x_return_code);
1188: END IF;

Line 1218: fnd_message.set_name(

1214: and nvl(wsc.disable_date, sysdate + 1) > sysdate;
1215:
1216: if l_dummy = 1 then
1217: x_return_code := 1;
1218: fnd_message.set_name(
1219: application => 'WIP',
1220: name => 'WIP_STATUS_NO_TXN1');
1221: l_err_buf := fnd_message.get;
1222: x_err_buf := substrb(l_err_buf,1,150);

Line 1221: l_err_buf := fnd_message.get;

1217: x_return_code := 1;
1218: fnd_message.set_name(
1219: application => 'WIP',
1220: name => 'WIP_STATUS_NO_TXN1');
1221: l_err_buf := fnd_message.get;
1222: x_err_buf := substrb(l_err_buf,1,150);
1223:
1224: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):');
1225: fnd_file.put_line(fnd_file.log, 'ERROR :' ||l_err_buf);

Line 1313: fnd_message.set_name(

1309: p_to_intraop_step_type /* to_intraoperation_step_type */
1310: ) > 0)
1311: then
1312: x_return_code := 1;
1313: fnd_message.set_name(
1314: application => 'WIP',
1315: name => 'WIP_NO_MOVE_SF_STATUS_BETWEEN');
1316: l_err_buf := fnd_message.get;
1317: x_err_buf := substrb(l_err_buf,1,150);

Line 1316: l_err_buf := fnd_message.get;

1312: x_return_code := 1;
1313: fnd_message.set_name(
1314: application => 'WIP',
1315: name => 'WIP_NO_MOVE_SF_STATUS_BETWEEN');
1316: l_err_buf := fnd_message.get;
1317: x_err_buf := substrb(l_err_buf,1,150);
1318:
1319: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):');
1320: fnd_file.put_line(fnd_file.log, 'ERROR :' ||l_err_buf);

Line 1340: FND_MESSAGE.SET_NAME('WSM', 'WSM_TXN_FOR_SCR');

1336: IF ( (l_txn_type = 2) AND -- Move and Completion
1337: (p_to_intraop_step_type = WIP_CONSTANTS.SCRAP) ) THEN
1338: x_return_code := 1;
1339:
1340: FND_MESSAGE.SET_NAME('WSM', 'WSM_TXN_FOR_SCR');
1341: x_err_buf := FND_MESSAGE.GET;
1342:
1343: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1344: return(x_return_code);

Line 1341: x_err_buf := FND_MESSAGE.GET;

1337: (p_to_intraop_step_type = WIP_CONSTANTS.SCRAP) ) THEN
1338: x_return_code := 1;
1339:
1340: FND_MESSAGE.SET_NAME('WSM', 'WSM_TXN_FOR_SCR');
1341: x_err_buf := FND_MESSAGE.GET;
1342:
1343: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1344: return(x_return_code);
1345: END IF;

Line 1364: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1360: WHEN NO_DATA_FOUND THEN
1361: x_return_code := 1;
1362:
1363: -- CZH: this should be an invalid LBJ
1364: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1365: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'from_operation_seq_num/code/intraoperation_step');
1366: x_err_buf := FND_MESSAGE.GET;
1367:
1368: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1365: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'from_operation_seq_num/code/intraoperation_step');

1361: x_return_code := 1;
1362:
1363: -- CZH: this should be an invalid LBJ
1364: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1365: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'from_operation_seq_num/code/intraoperation_step');
1366: x_err_buf := FND_MESSAGE.GET;
1367:
1368: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1369:

Line 1366: x_err_buf := FND_MESSAGE.GET;

1362:
1363: -- CZH: this should be an invalid LBJ
1364: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1365: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'from_operation_seq_num/code/intraoperation_step');
1366: x_err_buf := FND_MESSAGE.GET;
1367:
1368: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1369:
1370: return(x_return_code);

Line 1449: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1445: -- p_fm_op_seq_num must be l_wo_op_seq_num
1446: IF (p_fm_op_seq_num <> l_wo_op_seq_num) THEN
1447: x_return_code := 1;
1448:
1449: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1450: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num');
1451: x_err_buf := FND_MESSAGE.GET;
1452:
1453: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1450: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num');

1446: IF (p_fm_op_seq_num <> l_wo_op_seq_num) THEN
1447: x_return_code := 1;
1448:
1449: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1450: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num');
1451: x_err_buf := FND_MESSAGE.GET;
1452:
1453: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1454: return(x_return_code);

Line 1451: x_err_buf := FND_MESSAGE.GET;

1447: x_return_code := 1;
1448:
1449: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1450: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num');
1451: x_err_buf := FND_MESSAGE.GET;
1452:
1453: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1454: return(x_return_code);
1455: END IF;

Line 1472: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');

1468: null; -- do nothing
1469:
1470: elsif (p_fm_op_code is not null and l_wo_op_code is null) then
1471: x_return_code := 1;
1472: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1473: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1474: x_err_buf := fnd_message.get;
1475: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1476: return(x_return_code);

Line 1473: fnd_message.set_token('FLD_NAME', 'fm_op_code');

1469:
1470: elsif (p_fm_op_code is not null and l_wo_op_code is null) then
1471: x_return_code := 1;
1472: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1473: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1474: x_err_buf := fnd_message.get;
1475: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1476: return(x_return_code);
1477:

Line 1474: x_err_buf := fnd_message.get;

1470: elsif (p_fm_op_code is not null and l_wo_op_code is null) then
1471: x_return_code := 1;
1472: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1473: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1474: x_err_buf := fnd_message.get;
1475: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1476: return(x_return_code);
1477:
1478: elsif (p_fm_op_code is null and l_wo_op_code is not null) then

Line 1483: fnd_message.set_name('WSM', 'WSM_MODIFIED_FIELD');

1479: UPDATE wsm_lot_move_txn_interface
1480: SET fm_operation_code = l_wo_op_code
1481: WHERE header_id = p_header_id;
1482:
1483: fnd_message.set_name('WSM', 'WSM_MODIFIED_FIELD');
1484: fnd_message.set_token('FLD_NAME', 'fm_operation_code');
1485: x_err_buf := fnd_message.get;
1486:
1487: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 1484: fnd_message.set_token('FLD_NAME', 'fm_operation_code');

1480: SET fm_operation_code = l_wo_op_code
1481: WHERE header_id = p_header_id;
1482:
1483: fnd_message.set_name('WSM', 'WSM_MODIFIED_FIELD');
1484: fnd_message.set_token('FLD_NAME', 'fm_operation_code');
1485: x_err_buf := fnd_message.get;
1486:
1487: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1488:

Line 1485: x_err_buf := fnd_message.get;

1481: WHERE header_id = p_header_id;
1482:
1483: fnd_message.set_name('WSM', 'WSM_MODIFIED_FIELD');
1484: fnd_message.set_token('FLD_NAME', 'fm_operation_code');
1485: x_err_buf := fnd_message.get;
1486:
1487: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1488:
1489: -- henceforth, if p_fm_op_code is NULL, use l_fm_op_code_temp instead.

Line 1494: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');

1490: l_fm_op_code_temp := l_wo_op_code;
1491:
1492: elsif ((p_fm_op_code is not null and l_wo_op_code is not null) and (p_fm_op_code <> l_wo_op_code) ) then
1493: x_return_code := 1;
1494: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1495: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1496: x_err_buf := fnd_message.get;
1497: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1498: return(x_return_code);

Line 1495: fnd_message.set_token('FLD_NAME', 'fm_op_code');

1491:
1492: elsif ((p_fm_op_code is not null and l_wo_op_code is not null) and (p_fm_op_code <> l_wo_op_code) ) then
1493: x_return_code := 1;
1494: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1495: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1496: x_err_buf := fnd_message.get;
1497: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1498: return(x_return_code);
1499:

Line 1496: x_err_buf := fnd_message.get;

1492: elsif ((p_fm_op_code is not null and l_wo_op_code is not null) and (p_fm_op_code <> l_wo_op_code) ) then
1493: x_return_code := 1;
1494: fnd_message.set_name('WSM', 'WSM_INVALID_FIELD');
1495: fnd_message.set_token('FLD_NAME', 'fm_op_code');
1496: x_err_buf := fnd_message.get;
1497: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1498: return(x_return_code);
1499:
1500: end if;

Line 1507: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1503: -- Check if p_fm_intraop_step_type is l_wo_qty_iop_step
1504: IF (p_fm_intraop_step_type <> l_wo_qty_iop_step) THEN
1505: x_return_code := 1;
1506:
1507: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1508: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type');
1509: x_err_buf := FND_MESSAGE.GET;
1510:
1511: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1508: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type');

1504: IF (p_fm_intraop_step_type <> l_wo_qty_iop_step) THEN
1505: x_return_code := 1;
1506:
1507: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1508: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type');
1509: x_err_buf := FND_MESSAGE.GET;
1510:
1511: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1512: return(x_return_code);

Line 1509: x_err_buf := FND_MESSAGE.GET;

1505: x_return_code := 1;
1506:
1507: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1508: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type');
1509: x_err_buf := FND_MESSAGE.GET;
1510:
1511: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1512: return(x_return_code);
1513: END IF;

Line 1520: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_SCRAP');

1516: IF ( (p_fm_intraop_step_type = WIP_CONSTANTS.SCRAP) AND
1517: (l_txn_type <> 4) ) THEN -- Added condition as a part of fix for bug #2083671
1518: x_return_code := 1;
1519:
1520: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_SCRAP');
1521: x_err_buf := FND_MESSAGE.GET;
1522:
1523: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1524: return(x_return_code);

Line 1521: x_err_buf := FND_MESSAGE.GET;

1517: (l_txn_type <> 4) ) THEN -- Added condition as a part of fix for bug #2083671
1518: x_return_code := 1;
1519:
1520: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_FM_SCRAP');
1521: x_err_buf := FND_MESSAGE.GET;
1522:
1523: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1524: return(x_return_code);
1525: END IF;

Line 1586: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1582:
1583: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
1584: x_return_code := 1;
1585:
1586: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1587: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
1588: x_err_buf := FND_MESSAGE.GET;
1589:
1590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1587: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token

1583: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
1584: x_return_code := 1;
1585:
1586: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1587: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
1588: x_err_buf := FND_MESSAGE.GET;
1589:
1590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1591: return(x_return_code);

Line 1588: x_err_buf := FND_MESSAGE.GET;

1584: x_return_code := 1;
1585:
1586: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1587: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
1588: x_err_buf := FND_MESSAGE.GET;
1589:
1590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1591: return(x_return_code);
1592: ELSE

Line 1593: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

1589:
1590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1591: return(x_return_code);
1592: ELSE
1593: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1594: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
1595: x_err_buf := FND_MESSAGE.GET;
1596:
1597: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 1594: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');

1590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1591: return(x_return_code);
1592: ELSE
1593: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1594: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
1595: x_err_buf := FND_MESSAGE.GET;
1596:
1597: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1598: END IF;

Line 1595: x_err_buf := FND_MESSAGE.GET;

1591: return(x_return_code);
1592: ELSE
1593: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1594: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
1595: x_err_buf := FND_MESSAGE.GET;
1596:
1597: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1598: END IF;
1599:

Line 1616: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');

1612: l_end_op_seq_id,
1613: x_return_code,
1614: x_err_buf);
1615: IF (x_return_code <> 0) THEN
1616: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');
1617: x_err_buf := FND_MESSAGE.GET;
1618:
1619: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1620: return(x_return_code);

Line 1617: x_err_buf := FND_MESSAGE.GET;

1613: x_return_code,
1614: x_err_buf);
1615: IF (x_return_code <> 0) THEN
1616: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');
1617: x_err_buf := FND_MESSAGE.GET;
1618:
1619: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1620: return(x_return_code);
1621: ELSE

Line 1650: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');

1646: -- CZH: l_iop_move_out_rtg = FALSE means this is NOT an intraop move @ an op outside routing.
1647: -- AND this is not a JUMP, hence, p_to_op_seq_num must be specified
1648:
1649: x_return_code := 1;
1650: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
1651: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
1652: x_err_buf := FND_MESSAGE.GET;
1653: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1654: return(x_return_code);

Line 1651: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');

1647: -- AND this is not a JUMP, hence, p_to_op_seq_num must be specified
1648:
1649: x_return_code := 1;
1650: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
1651: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
1652: x_err_buf := FND_MESSAGE.GET;
1653: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1654: return(x_return_code);
1655:

Line 1652: x_err_buf := FND_MESSAGE.GET;

1648:
1649: x_return_code := 1;
1650: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
1651: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
1652: x_err_buf := FND_MESSAGE.GET;
1653: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1654: return(x_return_code);
1655:
1656: END IF;

Line 1672: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_EFFECTIVE_NEXT_OP');

1668: p_end_op_seq_id => l_end_op_seq_id, -- CZH.I_9999
1669: x_err_code => x_return_code,
1670: x_err_msg => x_err_buf) = 0)
1671: THEN
1672: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_EFFECTIVE_NEXT_OP');
1673: x_err_buf := FND_MESSAGE.GET;
1674: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1675: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1676: END IF;

Line 1673: x_err_buf := FND_MESSAGE.GET;

1669: x_err_code => x_return_code,
1670: x_err_msg => x_err_buf) = 0)
1671: THEN
1672: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_EFFECTIVE_NEXT_OP');
1673: x_err_buf := FND_MESSAGE.GET;
1674: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
1675: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1676: END IF;
1677: -- EA: CZH.I_OED-1

Line 1703: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1699:
1700: EXCEPTION
1701: WHEN NO_DATA_FOUND THEN
1702: x_return_code := 1;
1703: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1705: x_err_buf := FND_MESSAGE.GET;
1706: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1707: return(x_return_code);

Line 1704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

1700: EXCEPTION
1701: WHEN NO_DATA_FOUND THEN
1702: x_return_code := 1;
1703: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1705: x_err_buf := FND_MESSAGE.GET;
1706: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1707: return(x_return_code);
1708: END;

Line 1705: x_err_buf := FND_MESSAGE.GET;

1701: WHEN NO_DATA_FOUND THEN
1702: x_return_code := 1;
1703: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1705: x_err_buf := FND_MESSAGE.GET;
1706: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1707: return(x_return_code);
1708: END;
1709: --***VJ End Changes***--

Line 1715: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');

1711: --bug 3463128 give a message if the current operation has been replaced and the user is trying a
1712: --intraop move
1713: IF ((l_wo_rtg_op_seq_num = p_to_op_seq_num) AND (l_wo_op_seq_id <> l_op_seq_id)) THEN
1714: x_return_code := 1;
1715: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');
1716: x_err_buf := FND_MESSAGE.GET;
1717: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1718: return(x_return_code);
1719: END IF;

Line 1716: x_err_buf := FND_MESSAGE.GET;

1712: --intraop move
1713: IF ((l_wo_rtg_op_seq_num = p_to_op_seq_num) AND (l_wo_op_seq_id <> l_op_seq_id)) THEN
1714: x_return_code := 1;
1715: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');
1716: x_err_buf := FND_MESSAGE.GET;
1717: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1718: return(x_return_code);
1719: END IF;
1720: --end bug 3463128

Line 1746: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1742: set to_operation_code = l_op_code
1743: where header_id = p_header_id;
1744: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
1745: x_return_code := 1;
1746: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1747: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1748: x_err_buf := FND_MESSAGE.GET;
1749: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1750: return(x_return_code);

Line 1747: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

1743: where header_id = p_header_id;
1744: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
1745: x_return_code := 1;
1746: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1747: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1748: x_err_buf := FND_MESSAGE.GET;
1749: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1750: return(x_return_code);
1751: end if;

Line 1748: x_err_buf := FND_MESSAGE.GET;

1744: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
1745: x_return_code := 1;
1746: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1747: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1748: x_err_buf := FND_MESSAGE.GET;
1749: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1750: return(x_return_code);
1751: end if;
1752:

Line 1760: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1756: l_to_op_seq_num := NULL; -- CZH: !!!!
1757:
1758: if (p_to_op_code is null) then
1759: x_return_code := 1;
1760: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1761: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1762: x_err_buf := FND_MESSAGE.GET;
1763: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1764: return(x_return_code);

Line 1761: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

1757:
1758: if (p_to_op_code is null) then
1759: x_return_code := 1;
1760: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1761: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1762: x_err_buf := FND_MESSAGE.GET;
1763: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1764: return(x_return_code);
1765: else

Line 1762: x_err_buf := FND_MESSAGE.GET;

1758: if (p_to_op_code is null) then
1759: x_return_code := 1;
1760: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1761: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1762: x_err_buf := FND_MESSAGE.GET;
1763: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1764: return(x_return_code);
1765: else
1766: -- BA: CZH.bug 2362225, because we use l_op_code later on

Line 1782: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1778: and operation_code = p_to_op_code;
1779: exception
1780: when no_data_found then
1781: x_return_code := 1;
1782: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1783: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1784: x_err_buf := FND_MESSAGE.GET;
1785: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1786: ||l_stmt_num||'): ' ||x_err_buf);

Line 1783: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

1779: exception
1780: when no_data_found then
1781: x_return_code := 1;
1782: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1783: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1784: x_err_buf := FND_MESSAGE.GET;
1785: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1786: ||l_stmt_num||'): ' ||x_err_buf);
1787: return(x_return_code);

Line 1784: x_err_buf := FND_MESSAGE.GET;

1780: when no_data_found then
1781: x_return_code := 1;
1782: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1783: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
1784: x_err_buf := FND_MESSAGE.GET;
1785: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1786: ||l_stmt_num||'): ' ||x_err_buf);
1787: return(x_return_code);
1788: end;

Line 1800: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1796: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_dept_id) THEN -- Fix bug #1501376
1797: -- Bugfix 1587295: added nvl since p_to_dept_id could be null. If null, derive it.
1798: x_return_code := 1;
1799:
1800: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1801: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
1802: x_err_buf := FND_MESSAGE.GET;
1803:
1804: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1801: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

1797: -- Bugfix 1587295: added nvl since p_to_dept_id could be null. If null, derive it.
1798: x_return_code := 1;
1799:
1800: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1801: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
1802: x_err_buf := FND_MESSAGE.GET;
1803:
1804: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1805: return(x_return_code);

Line 1802: x_err_buf := FND_MESSAGE.GET;

1798: x_return_code := 1;
1799:
1800: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1801: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
1802: x_err_buf := FND_MESSAGE.GET;
1803:
1804: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1805: return(x_return_code);
1806: END IF;

Line 1822: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1818: -- x_return_code := SQLCODE;
1819: x_return_code := 1; -- Bugfix 1587295: we should return 1 instead of SQLCODE since
1820: -- even if the above update updates 0 records, sqlcode will be 0.
1821:
1822: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1823: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
1824: x_err_buf := FND_MESSAGE.GET;
1825:
1826: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 1823: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');

1819: x_return_code := 1; -- Bugfix 1587295: we should return 1 instead of SQLCODE since
1820: -- even if the above update updates 0 records, sqlcode will be 0.
1821:
1822: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1823: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
1824: x_err_buf := FND_MESSAGE.GET;
1825:
1826: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1827: return(x_return_code);

Line 1824: x_err_buf := FND_MESSAGE.GET;

1820: -- even if the above update updates 0 records, sqlcode will be 0.
1821:
1822: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1823: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
1824: x_err_buf := FND_MESSAGE.GET;
1825:
1826: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1827: return(x_return_code);
1828: ELSE

Line 1829: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

1825:
1826: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1827: return(x_return_code);
1828: ELSE
1829: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1830: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
1831: x_err_buf := FND_MESSAGE.GET;
1832:
1833: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 1830: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');

1826: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1827: return(x_return_code);
1828: ELSE
1829: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1830: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
1831: x_err_buf := FND_MESSAGE.GET;
1832:
1833: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1834: END IF;

Line 1831: x_err_buf := FND_MESSAGE.GET;

1827: return(x_return_code);
1828: ELSE
1829: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
1830: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
1831: x_err_buf := FND_MESSAGE.GET;
1832:
1833: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1834: END IF;
1835:

Line 1898: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1894: -- EC: CZH.I_OED-1
1895: exception
1896: when others then
1897: x_return_code := 1;
1898: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1899: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
1900: x_err_buf := FND_MESSAGE.GET;
1901: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1902: ||l_stmt_num||'): '||x_err_buf);

Line 1899: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');

1895: exception
1896: when others then
1897: x_return_code := 1;
1898: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1899: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
1900: x_err_buf := FND_MESSAGE.GET;
1901: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1902: ||l_stmt_num||'): '||x_err_buf);
1903: return(x_return_code);

Line 1900: x_err_buf := FND_MESSAGE.GET;

1896: when others then
1897: x_return_code := 1;
1898: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1899: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
1900: x_err_buf := FND_MESSAGE.GET;
1901: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
1902: ||l_stmt_num||'): '||x_err_buf);
1903: return(x_return_code);
1904: end;

Line 1910: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1906:
1907: l_stmt_num := 240;
1908: if p_to_intraop_step_type <= l_wo_qty_iop_step then
1909: x_return_code := -1;
1910: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1911: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
1912: x_err_buf := FND_MESSAGE.GET;
1913: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1914: return(x_return_code);

Line 1911: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');

1907: l_stmt_num := 240;
1908: if p_to_intraop_step_type <= l_wo_qty_iop_step then
1909: x_return_code := -1;
1910: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1911: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
1912: x_err_buf := FND_MESSAGE.GET;
1913: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1914: return(x_return_code);
1915: end if;

Line 1912: x_err_buf := FND_MESSAGE.GET;

1908: if p_to_intraop_step_type <= l_wo_qty_iop_step then
1909: x_return_code := -1;
1910: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1911: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
1912: x_err_buf := FND_MESSAGE.GET;
1913: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
1914: return(x_return_code);
1915: end if;
1916:

Line 1952: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1948:
1949: EXCEPTION
1950: WHEN NO_DATA_FOUND THEN
1951: x_return_code := 1;
1952: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1953: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1954: x_err_buf := FND_MESSAGE.GET;
1955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1956: return(x_return_code);

Line 1953: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

1949: EXCEPTION
1950: WHEN NO_DATA_FOUND THEN
1951: x_return_code := 1;
1952: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1953: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1954: x_err_buf := FND_MESSAGE.GET;
1955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1956: return(x_return_code);
1957:

Line 1954: x_err_buf := FND_MESSAGE.GET;

1950: WHEN NO_DATA_FOUND THEN
1951: x_return_code := 1;
1952: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1953: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1954: x_err_buf := FND_MESSAGE.GET;
1955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1956: return(x_return_code);
1957:
1958: WHEN TOO_MANY_ROWS THEN

Line 1960: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1956: return(x_return_code);
1957:
1958: WHEN TOO_MANY_ROWS THEN
1959: x_return_code := 1;
1960: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1961: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1962: x_err_buf := FND_MESSAGE.GET;
1963: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1964: return(x_return_code);

Line 1961: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

1957:
1958: WHEN TOO_MANY_ROWS THEN
1959: x_return_code := 1;
1960: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1961: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1962: x_err_buf := FND_MESSAGE.GET;
1963: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1964: return(x_return_code);
1965:

Line 1962: x_err_buf := FND_MESSAGE.GET;

1958: WHEN TOO_MANY_ROWS THEN
1959: x_return_code := 1;
1960: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
1961: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
1962: x_err_buf := FND_MESSAGE.GET;
1963: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
1964: return(x_return_code);
1965:
1966: END;

Line 2001: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

1997: l_stmt_num := 260;
1998: elsif (p_to_op_code <> nvl(l_jmp_op_code, '@@**')) THEN
1999: x_return_code := 1;
2000:
2001: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2002: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2003: x_err_buf := FND_MESSAGE.GET;
2004:
2005: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2002: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

1998: elsif (p_to_op_code <> nvl(l_jmp_op_code, '@@**')) THEN
1999: x_return_code := 1;
2000:
2001: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2002: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2003: x_err_buf := FND_MESSAGE.GET;
2004:
2005: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2006: return(x_return_code);

Line 2003: x_err_buf := FND_MESSAGE.GET;

1999: x_return_code := 1;
2000:
2001: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2002: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2003: x_err_buf := FND_MESSAGE.GET;
2004:
2005: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2006: return(x_return_code);
2007: end if;

Line 2012: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2008: -- NSO Modification by abedajna: additions end
2009:
2010: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2011: x_return_code := 1;
2012: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2014: x_err_buf := FND_MESSAGE.GET;
2015: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2016: return(x_return_code);

Line 2013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2009:
2010: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2011: x_return_code := 1;
2012: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2014: x_err_buf := FND_MESSAGE.GET;
2015: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2016: return(x_return_code);
2017: END IF;

Line 2014: x_err_buf := FND_MESSAGE.GET;

2010: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2011: x_return_code := 1;
2012: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2014: x_err_buf := FND_MESSAGE.GET;
2015: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2016: return(x_return_code);
2017: END IF;
2018:

Line 2038: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2034: EXCEPTION
2035: WHEN NO_DATA_FOUND THEN
2036: x_return_code := 1;
2037:
2038: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2040: x_err_buf := FND_MESSAGE.GET;
2041:
2042: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='

Line 2039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2035: WHEN NO_DATA_FOUND THEN
2036: x_return_code := 1;
2037:
2038: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2040: x_err_buf := FND_MESSAGE.GET;
2041:
2042: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2043: ||l_stmt_num||'):'||x_err_buf);

Line 2040: x_err_buf := FND_MESSAGE.GET;

2036: x_return_code := 1;
2037:
2038: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2039: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2040: x_err_buf := FND_MESSAGE.GET;
2041:
2042: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2043: ||l_stmt_num||'):'||x_err_buf);
2044: return(x_return_code);

Line 2057: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2053:
2054: IF (l_jmp_std_op_id = -1) OR (l_jmp_dept_id = -1) THEN
2055: x_return_code := 1;
2056:
2057: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2058: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2059: x_err_buf := FND_MESSAGE.GET;
2060:
2061: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='

Line 2058: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2054: IF (l_jmp_std_op_id = -1) OR (l_jmp_dept_id = -1) THEN
2055: x_return_code := 1;
2056:
2057: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2058: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2059: x_err_buf := FND_MESSAGE.GET;
2060:
2061: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2062: ||l_stmt_num||'):'||x_err_buf);

Line 2059: x_err_buf := FND_MESSAGE.GET;

2055: x_return_code := 1;
2056:
2057: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2058: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2059: x_err_buf := FND_MESSAGE.GET;
2060:
2061: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2062: ||l_stmt_num||'):'||x_err_buf);
2063: return(x_return_code);

Line 2070: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2066:
2067: IF (nvl(p_to_dept_id,-1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2068: x_return_code := 1;
2069:
2070: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2071: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2072: x_err_buf := FND_MESSAGE.GET;
2073:
2074: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2071: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2067: IF (nvl(p_to_dept_id,-1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2068: x_return_code := 1;
2069:
2070: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2071: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2072: x_err_buf := FND_MESSAGE.GET;
2073:
2074: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2075: return(x_return_code);

Line 2072: x_err_buf := FND_MESSAGE.GET;

2068: x_return_code := 1;
2069:
2070: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2071: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2072: x_err_buf := FND_MESSAGE.GET;
2073:
2074: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2075: return(x_return_code);
2076: END IF;

Line 2084: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2080: --CZH: one cannot jump to a non-std op outside routing !!!!
2081: --Added to remove non-std-ops functionality.
2082: x_return_code := 1;
2083:
2084: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2085: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2086: x_err_buf := FND_MESSAGE.GET;
2087:
2088: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2085: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2081: --Added to remove non-std-ops functionality.
2082: x_return_code := 1;
2083:
2084: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2085: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2086: x_err_buf := FND_MESSAGE.GET;
2087:
2088: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2089: return(x_return_code);

Line 2086: x_err_buf := FND_MESSAGE.GET;

2082: x_return_code := 1;
2083:
2084: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2085: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2086: x_err_buf := FND_MESSAGE.GET;
2087:
2088: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2089: return(x_return_code);
2090: --End additions

Line 2105: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');

2101: if (g_param_jump_fm_q = 2 and
2102: p_fm_intraop_step_type=1) then
2103:
2104: if (l_wo_qty_in_scrap <> 0 ) then
2105: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');
2106: x_err_buf := FND_MESSAGE.GET;
2107: fnd_file.put_line(fnd_file.log, x_err_buf);
2108: if (l_debug = 'Y') then
2109: fnd_file.put_line(fnd_file.log, 'Jump from Queue is set to FALSE');

Line 2106: x_err_buf := FND_MESSAGE.GET;

2102: p_fm_intraop_step_type=1) then
2103:
2104: if (l_wo_qty_in_scrap <> 0 ) then
2105: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');
2106: x_err_buf := FND_MESSAGE.GET;
2107: fnd_file.put_line(fnd_file.log, x_err_buf);
2108: if (l_debug = 'Y') then
2109: fnd_file.put_line(fnd_file.log, 'Jump from Queue is set to FALSE');
2110: end if;

Line 2148: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2144: --x_return_code := SQLCODE;
2145: x_return_code := 1; -- Bugfix 1587295: Set it to 1. Setting to SQLCODE is incorrect
2146: -- since it will have a value of 0 in this case.
2147:
2148: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2149: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2150: x_err_buf := FND_MESSAGE.GET;
2151:
2152: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2149: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2145: x_return_code := 1; -- Bugfix 1587295: Set it to 1. Setting to SQLCODE is incorrect
2146: -- since it will have a value of 0 in this case.
2147:
2148: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2149: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2150: x_err_buf := FND_MESSAGE.GET;
2151:
2152: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2153: return(x_return_code);

Line 2150: x_err_buf := FND_MESSAGE.GET;

2146: -- since it will have a value of 0 in this case.
2147:
2148: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2149: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2150: x_err_buf := FND_MESSAGE.GET;
2151:
2152: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2153: return(x_return_code);
2154: ELSE

Line 2155: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2151:
2152: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2153: return(x_return_code);
2154: ELSE
2155: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2156: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2157: x_err_buf := FND_MESSAGE.GET;
2158:
2159: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2156: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');

2152: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2153: return(x_return_code);
2154: ELSE
2155: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2156: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2157: x_err_buf := FND_MESSAGE.GET;
2158:
2159: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2160: END IF;

Line 2157: x_err_buf := FND_MESSAGE.GET;

2153: return(x_return_code);
2154: ELSE
2155: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2156: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2157: x_err_buf := FND_MESSAGE.GET;
2158:
2159: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2160: END IF;
2161:

Line 2202: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2198:
2199: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
2200: x_return_code := 1;
2201:
2202: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2203: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
2204: x_err_buf := FND_MESSAGE.GET;
2205:
2206: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2203: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token

2199: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
2200: x_return_code := 1;
2201:
2202: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2203: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
2204: x_err_buf := FND_MESSAGE.GET;
2205:
2206: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2207: return(x_return_code);

Line 2204: x_err_buf := FND_MESSAGE.GET;

2200: x_return_code := 1;
2201:
2202: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2203: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wo_dept_id'); --bugfix 1587295: changed the token
2204: x_err_buf := FND_MESSAGE.GET;
2205:
2206: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2207: return(x_return_code);
2208: ELSE

Line 2209: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2205:
2206: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2207: return(x_return_code);
2208: ELSE
2209: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2210: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
2211: x_err_buf := FND_MESSAGE.GET;
2212:
2213: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2210: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');

2206: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2207: return(x_return_code);
2208: ELSE
2209: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2210: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
2211: x_err_buf := FND_MESSAGE.GET;
2212:
2213: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2214: END IF;

Line 2211: x_err_buf := FND_MESSAGE.GET;

2207: return(x_return_code);
2208: ELSE
2209: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2210: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_id/fm_department_code');
2211: x_err_buf := FND_MESSAGE.GET;
2212:
2213: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2214: END IF;
2215:

Line 2234: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');

2230: AND WCO.network_start_end='E';
2231: EXCEPTION
2232: WHEN no_data_found THEN
2233: x_return_code := 1;
2234: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');
2235: x_err_buf := FND_MESSAGE.GET;
2236:
2237: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2238: return(x_return_code);

Line 2235: x_err_buf := FND_MESSAGE.GET;

2231: EXCEPTION
2232: WHEN no_data_found THEN
2233: x_return_code := 1;
2234: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_RTG_END');
2235: x_err_buf := FND_MESSAGE.GET;
2236:
2237: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2238: return(x_return_code);
2239: END;

Line 2261: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');

2257: -- CZH: l_iop_move_out_rtg = FALSE means this is NOT an intraop move @ an op outside routing.
2258: -- AND this is not a JUMP, hence, p_to_op_seq_num must be specified
2259:
2260: x_return_code := 1;
2261: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
2262: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
2263: x_err_buf := FND_MESSAGE.GET;
2264: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2265: return(x_return_code);

Line 2262: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');

2258: -- AND this is not a JUMP, hence, p_to_op_seq_num must be specified
2259:
2260: x_return_code := 1;
2261: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
2262: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
2263: x_err_buf := FND_MESSAGE.GET;
2264: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2265: return(x_return_code);
2266:

Line 2263: x_err_buf := FND_MESSAGE.GET;

2259:
2260: x_return_code := 1;
2261: FND_MESSAGE.SET_NAME('WSM', 'WSM_NULL_FIELD');
2262: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'p_to_op_seq_num');
2263: x_err_buf := FND_MESSAGE.GET;
2264: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2265: return(x_return_code);
2266:
2267: END IF;

Line 2295: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2291: AND WCO.operation_seq_num = p_to_op_seq_num;
2292: EXCEPTION
2293: WHEN no_data_found THEN
2294: x_return_code := 1;
2295: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2296: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2297: x_err_buf := FND_MESSAGE.GET;
2298: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2299: return(x_return_code);

Line 2296: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

2292: EXCEPTION
2293: WHEN no_data_found THEN
2294: x_return_code := 1;
2295: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2296: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2297: x_err_buf := FND_MESSAGE.GET;
2298: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2299: return(x_return_code);
2300: END;

Line 2297: x_err_buf := FND_MESSAGE.GET;

2293: WHEN no_data_found THEN
2294: x_return_code := 1;
2295: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2296: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2297: x_err_buf := FND_MESSAGE.GET;
2298: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2299: return(x_return_code);
2300: END;
2301:

Line 2306: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');

2302: --bug 3463128 give a message if the current operation has been replaced and the user is trying a
2303: --intraop move
2304: IF ((l_wo_rtg_op_seq_num = p_to_op_seq_num) AND (l_wo_op_seq_id <> l_op_seq_id)) THEN
2305: x_return_code := 1;
2306: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');
2307: x_err_buf := FND_MESSAGE.GET;
2308: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2309: return(x_return_code);
2310: END IF;

Line 2307: x_err_buf := FND_MESSAGE.GET;

2303: --intraop move
2304: IF ((l_wo_rtg_op_seq_num = p_to_op_seq_num) AND (l_wo_op_seq_id <> l_op_seq_id)) THEN
2305: x_return_code := 1;
2306: FND_MESSAGE.SET_NAME('WSM', 'WSM_MOVE_CURR_OP_REPLACED');
2307: x_err_buf := FND_MESSAGE.GET;
2308: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2309: return(x_return_code);
2310: END IF;
2311: --end bug 3463128

Line 2324: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2320: set to_operation_code = l_op_code
2321: where header_id = p_header_id;
2322: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
2323: x_return_code := 1;
2324: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2325: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2326: x_err_buf := FND_MESSAGE.GET;
2327: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2328: return(x_return_code);

Line 2325: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2321: where header_id = p_header_id;
2322: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
2323: x_return_code := 1;
2324: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2325: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2326: x_err_buf := FND_MESSAGE.GET;
2327: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2328: return(x_return_code);
2329: end if;

Line 2326: x_err_buf := FND_MESSAGE.GET;

2322: elsif nvl(l_op_code, '@@**') <> nvl(p_to_op_code, '@@**') then
2323: x_return_code := 1;
2324: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2325: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2326: x_err_buf := FND_MESSAGE.GET;
2327: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2328: return(x_return_code);
2329: end if;
2330:

Line 2338: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2334: l_to_op_seq_num := NULL; -- CZH: !!!!
2335:
2336: if (p_to_op_code is null) then
2337: x_return_code := 1;
2338: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2339: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2340: x_err_buf := FND_MESSAGE.GET;
2341: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2342: return(x_return_code);

Line 2339: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2335:
2336: if (p_to_op_code is null) then
2337: x_return_code := 1;
2338: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2339: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2340: x_err_buf := FND_MESSAGE.GET;
2341: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2342: return(x_return_code);
2343: else

Line 2340: x_err_buf := FND_MESSAGE.GET;

2336: if (p_to_op_code is null) then
2337: x_return_code := 1;
2338: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2339: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2340: x_err_buf := FND_MESSAGE.GET;
2341: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2342: return(x_return_code);
2343: else
2344: -- BA: CZH.bug 2362225, because we use l_op_code later on

Line 2360: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2356: and operation_code = p_to_op_code;
2357: exception
2358: when no_data_found then
2359: x_return_code := 1;
2360: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2361: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2362: x_err_buf := FND_MESSAGE.GET;
2363: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2364: ||l_stmt_num||'): ' ||x_err_buf);

Line 2361: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2357: exception
2358: when no_data_found then
2359: x_return_code := 1;
2360: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2361: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2362: x_err_buf := FND_MESSAGE.GET;
2363: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2364: ||l_stmt_num||'): ' ||x_err_buf);
2365: return(x_return_code);

Line 2362: x_err_buf := FND_MESSAGE.GET;

2358: when no_data_found then
2359: x_return_code := 1;
2360: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2361: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2362: x_err_buf := FND_MESSAGE.GET;
2363: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2364: ||l_stmt_num||'): ' ||x_err_buf);
2365: return(x_return_code);
2366: end;

Line 2378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2374: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_dept_id) THEN -- Fix bug #1501376
2375: -- Bugfix 1587295: added nvl since p_to_dept_id could be null. If null, derive it.
2376: x_return_code := 1;
2377:
2378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2380: x_err_buf := FND_MESSAGE.GET;
2381:
2382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2375: -- Bugfix 1587295: added nvl since p_to_dept_id could be null. If null, derive it.
2376: x_return_code := 1;
2377:
2378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2380: x_err_buf := FND_MESSAGE.GET;
2381:
2382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2383: return(x_return_code);

Line 2380: x_err_buf := FND_MESSAGE.GET;

2376: x_return_code := 1;
2377:
2378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2380: x_err_buf := FND_MESSAGE.GET;
2381:
2382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2383: return(x_return_code);
2384: END IF;

Line 2404: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2400: -- x_return_code := SQLCODE;
2401: x_return_code := 1; -- Bugfix 1587295: we should return 1 instead of SQLCODE since
2402: -- even if the above update updates 0 records, sqlcode will be 0.
2403:
2404: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2405: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
2406: x_err_buf := FND_MESSAGE.GET;
2407:
2408: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2405: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');

2401: x_return_code := 1; -- Bugfix 1587295: we should return 1 instead of SQLCODE since
2402: -- even if the above update updates 0 records, sqlcode will be 0.
2403:
2404: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2405: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
2406: x_err_buf := FND_MESSAGE.GET;
2407:
2408: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2409: return(x_return_code);

Line 2406: x_err_buf := FND_MESSAGE.GET;

2402: -- even if the above update updates 0 records, sqlcode will be 0.
2403:
2404: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2405: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'dept_id');
2406: x_err_buf := FND_MESSAGE.GET;
2407:
2408: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2409: return(x_return_code);
2410: ELSE

Line 2411: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2407:
2408: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2409: return(x_return_code);
2410: ELSE
2411: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2412: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2413: x_err_buf := FND_MESSAGE.GET;
2414:
2415: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2412: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');

2408: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2409: return(x_return_code);
2410: ELSE
2411: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2412: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2413: x_err_buf := FND_MESSAGE.GET;
2414:
2415: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2416: END IF;

Line 2413: x_err_buf := FND_MESSAGE.GET;

2409: return(x_return_code);
2410: ELSE
2411: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2412: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2413: x_err_buf := FND_MESSAGE.GET;
2414:
2415: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2416: END IF;
2417: ELSE --(l_to_dept_code IS NOT NULL)

Line 2458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2454:
2455: exception
2456: when others then
2457: x_return_code := 1;
2458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
2460: x_err_buf := FND_MESSAGE.GET;
2461: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation( stmt_num=' ||l_stmt_num||'): '||x_err_buf);
2462: return(x_return_code);

Line 2459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');

2455: exception
2456: when others then
2457: x_return_code := 1;
2458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
2460: x_err_buf := FND_MESSAGE.GET;
2461: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation( stmt_num=' ||l_stmt_num||'): '||x_err_buf);
2462: return(x_return_code);
2463: end;

Line 2460: x_err_buf := FND_MESSAGE.GET;

2456: when others then
2457: x_return_code := 1;
2458: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2459: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code');
2460: x_err_buf := FND_MESSAGE.GET;
2461: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation( stmt_num=' ||l_stmt_num||'): '||x_err_buf);
2462: return(x_return_code);
2463: end;
2464: END IF;

Line 2471: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2467:
2468: l_stmt_num := 240;
2469: if p_to_intraop_step_type <= l_wo_qty_iop_step then
2470: x_return_code := -1;
2471: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2472: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2473: x_err_buf := FND_MESSAGE.GET;
2474: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2475: return(x_return_code);

Line 2472: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');

2468: l_stmt_num := 240;
2469: if p_to_intraop_step_type <= l_wo_qty_iop_step then
2470: x_return_code := -1;
2471: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2472: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2473: x_err_buf := FND_MESSAGE.GET;
2474: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2475: return(x_return_code);
2476: end if;

Line 2473: x_err_buf := FND_MESSAGE.GET;

2469: if p_to_intraop_step_type <= l_wo_qty_iop_step then
2470: x_return_code := -1;
2471: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2472: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2473: x_err_buf := FND_MESSAGE.GET;
2474: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2475: return(x_return_code);
2476: end if;
2477:

Line 2515: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2511: AND WCO.operation_seq_num = p_to_op_seq_num;
2512: EXCEPTION
2513: WHEN no_data_found THEN
2514: x_return_code := 1;
2515: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2516: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2517: x_err_buf := FND_MESSAGE.GET;
2518: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2519: return(x_return_code);

Line 2516: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

2512: EXCEPTION
2513: WHEN no_data_found THEN
2514: x_return_code := 1;
2515: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2516: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2517: x_err_buf := FND_MESSAGE.GET;
2518: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2519: return(x_return_code);
2520:

Line 2517: x_err_buf := FND_MESSAGE.GET;

2513: WHEN no_data_found THEN
2514: x_return_code := 1;
2515: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2516: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2517: x_err_buf := FND_MESSAGE.GET;
2518: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2519: return(x_return_code);
2520:
2521: WHEN TOO_MANY_ROWS THEN

Line 2523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2519: return(x_return_code);
2520:
2521: WHEN TOO_MANY_ROWS THEN
2522: x_return_code := 1;
2523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2525: x_err_buf := FND_MESSAGE.GET;
2526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2527: return(x_return_code);

Line 2524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');

2520:
2521: WHEN TOO_MANY_ROWS THEN
2522: x_return_code := 1;
2523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2525: x_err_buf := FND_MESSAGE.GET;
2526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2527: return(x_return_code);
2528: END;

Line 2525: x_err_buf := FND_MESSAGE.GET;

2521: WHEN TOO_MANY_ROWS THEN
2522: x_return_code := 1;
2523: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2524: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num');
2525: x_err_buf := FND_MESSAGE.GET;
2526: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2527: return(x_return_code);
2528: END;
2529:

Line 2547: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2543: l_stmt_num := 260;
2544: elsif (p_to_op_code <> nvl(l_jmp_op_code, '@@**')) THEN
2545: x_return_code := 1;
2546:
2547: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2548: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2549: x_err_buf := FND_MESSAGE.GET;
2550:
2551: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2548: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2544: elsif (p_to_op_code <> nvl(l_jmp_op_code, '@@**')) THEN
2545: x_return_code := 1;
2546:
2547: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2548: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2549: x_err_buf := FND_MESSAGE.GET;
2550:
2551: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2552: return(x_return_code);

Line 2549: x_err_buf := FND_MESSAGE.GET;

2545: x_return_code := 1;
2546:
2547: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2548: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2549: x_err_buf := FND_MESSAGE.GET;
2550:
2551: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2552: return(x_return_code);
2553: end if;

Line 2558: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2554: -- NSO Modification by abedajna: additions end
2555:
2556: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2557: x_return_code := 1;
2558: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2559: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2560: x_err_buf := FND_MESSAGE.GET;
2561: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2562: return(x_return_code);

Line 2559: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2555:
2556: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2557: x_return_code := 1;
2558: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2559: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2560: x_err_buf := FND_MESSAGE.GET;
2561: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2562: return(x_return_code);
2563: END IF;

Line 2560: x_err_buf := FND_MESSAGE.GET;

2556: IF ( nvl(p_to_dept_id, -1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2557: x_return_code := 1;
2558: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2559: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2560: x_err_buf := FND_MESSAGE.GET;
2561: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2562: return(x_return_code);
2563: END IF;
2564:

Line 2584: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2580: EXCEPTION
2581: WHEN NO_DATA_FOUND THEN
2582: x_return_code := 1;
2583:
2584: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2585: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2586: x_err_buf := FND_MESSAGE.GET;
2587:
2588: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='

Line 2585: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2581: WHEN NO_DATA_FOUND THEN
2582: x_return_code := 1;
2583:
2584: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2585: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2586: x_err_buf := FND_MESSAGE.GET;
2587:
2588: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2589: ||l_stmt_num||'):'||x_err_buf);

Line 2586: x_err_buf := FND_MESSAGE.GET;

2582: x_return_code := 1;
2583:
2584: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2585: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2586: x_err_buf := FND_MESSAGE.GET;
2587:
2588: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2589: ||l_stmt_num||'):'||x_err_buf);
2590: return(x_return_code);

Line 2603: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2599:
2600: IF (l_jmp_std_op_id = -1) OR (l_jmp_dept_id = -1) THEN
2601: x_return_code := 1;
2602:
2603: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2604: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2605: x_err_buf := FND_MESSAGE.GET;
2606:
2607: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='

Line 2604: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2600: IF (l_jmp_std_op_id = -1) OR (l_jmp_dept_id = -1) THEN
2601: x_return_code := 1;
2602:
2603: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2604: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2605: x_err_buf := FND_MESSAGE.GET;
2606:
2607: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2608: ||l_stmt_num||'):'||x_err_buf);

Line 2605: x_err_buf := FND_MESSAGE.GET;

2601: x_return_code := 1;
2602:
2603: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2604: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2605: x_err_buf := FND_MESSAGE.GET;
2606:
2607: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='
2608: ||l_stmt_num||'):'||x_err_buf);
2609: return(x_return_code);

Line 2616: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2612:
2613: IF (nvl(p_to_dept_id,-1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2614: x_return_code := 1;
2615:
2616: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2617: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2618: x_err_buf := FND_MESSAGE.GET;
2619:
2620: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2617: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2613: IF (nvl(p_to_dept_id,-1) <> -1) AND (nvl(p_to_dept_id,-1) <> l_jmp_dept_id) THEN
2614: x_return_code := 1;
2615:
2616: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2617: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2618: x_err_buf := FND_MESSAGE.GET;
2619:
2620: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2621: return(x_return_code);

Line 2618: x_err_buf := FND_MESSAGE.GET;

2614: x_return_code := 1;
2615:
2616: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2617: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2618: x_err_buf := FND_MESSAGE.GET;
2619:
2620: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2621: return(x_return_code);
2622: END IF;

Line 2630: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2626: --CZH: one cannot jump to a non-std op outside routing !!!!
2627: --Added to remove non-std-ops functionality.
2628: x_return_code := 1;
2629:
2630: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2631: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2632: x_err_buf := FND_MESSAGE.GET;
2633:
2634: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2631: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');

2627: --Added to remove non-std-ops functionality.
2628: x_return_code := 1;
2629:
2630: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2631: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2632: x_err_buf := FND_MESSAGE.GET;
2633:
2634: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2635: return(x_return_code);

Line 2632: x_err_buf := FND_MESSAGE.GET;

2628: x_return_code := 1;
2629:
2630: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2631: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_code');
2632: x_err_buf := FND_MESSAGE.GET;
2633:
2634: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2635: return(x_return_code);
2636: --End additions

Line 2650: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');

2646: if (g_param_jump_fm_q = 2 and
2647: p_fm_intraop_step_type=1) then
2648:
2649: if (l_wo_qty_in_scrap <> 0 ) then
2650: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');
2651: x_err_buf := FND_MESSAGE.GET;
2652: fnd_file.put_line(fnd_file.log, x_err_buf);
2653: if (l_debug = 'Y') then
2654: fnd_file.put_line(fnd_file.log, 'Jump from Queue is set to FALSE');

Line 2651: x_err_buf := FND_MESSAGE.GET;

2647: p_fm_intraop_step_type=1) then
2648:
2649: if (l_wo_qty_in_scrap <> 0 ) then
2650: fnd_message.set_name('WSM', 'WSM_SCRAP_EXISTS');
2651: x_err_buf := FND_MESSAGE.GET;
2652: fnd_file.put_line(fnd_file.log, x_err_buf);
2653: if (l_debug = 'Y') then
2654: fnd_file.put_line(fnd_file.log, 'Jump from Queue is set to FALSE');
2655: end if;

Line 2696: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2692: --x_return_code := SQLCODE;
2693: x_return_code := 1; -- Bugfix 1587295: Set it to 1. Setting to SQLCODE is incorrect
2694: -- since it will have a value of 0 in this case.
2695:
2696: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2697: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2698: x_err_buf := FND_MESSAGE.GET;
2699:
2700: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2697: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');

2693: x_return_code := 1; -- Bugfix 1587295: Set it to 1. Setting to SQLCODE is incorrect
2694: -- since it will have a value of 0 in this case.
2695:
2696: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2697: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2698: x_err_buf := FND_MESSAGE.GET;
2699:
2700: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2701: return(x_return_code);

Line 2698: x_err_buf := FND_MESSAGE.GET;

2694: -- since it will have a value of 0 in this case.
2695:
2696: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2697: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id');
2698: x_err_buf := FND_MESSAGE.GET;
2699:
2700: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2701: return(x_return_code);
2702: ELSE

Line 2703: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2699:
2700: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2701: return(x_return_code);
2702: ELSE
2703: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2705: x_err_buf := FND_MESSAGE.GET;
2706:
2707: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');

2700: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2701: return(x_return_code);
2702: ELSE
2703: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2705: x_err_buf := FND_MESSAGE.GET;
2706:
2707: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2708: END IF;

Line 2705: x_err_buf := FND_MESSAGE.GET;

2701: return(x_return_code);
2702: ELSE
2703: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2704: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_id/to_department_code');
2705: x_err_buf := FND_MESSAGE.GET;
2706:
2707: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2708: END IF;
2709: END IF; --l_to_dept_code IS NULL

Line 2727: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2723: --move enh move and scrap
2724:
2725: IF (l_scrap_qty < 0) THEN
2726: x_return_code := 1;
2727: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2728: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'SCRAP QUANTITY-CAP');
2729: /* fnd_message.set_name(
2730: application => 'WIP',
2731: name => 'WIP_GREATER_THAN');

Line 2728: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'SCRAP QUANTITY-CAP');

2724:
2725: IF (l_scrap_qty < 0) THEN
2726: x_return_code := 1;
2727: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2728: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'SCRAP QUANTITY-CAP');
2729: /* fnd_message.set_name(
2730: application => 'WIP',
2731: name => 'WIP_GREATER_THAN');
2732: fnd_message.set_token(

Line 2729: /* fnd_message.set_name(

2725: IF (l_scrap_qty < 0) THEN
2726: x_return_code := 1;
2727: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2728: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'SCRAP QUANTITY-CAP');
2729: /* fnd_message.set_name(
2730: application => 'WIP',
2731: name => 'WIP_GREATER_THAN');
2732: fnd_message.set_token(
2733: token => 'ENTITY1',

Line 2732: fnd_message.set_token(

2728: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'SCRAP QUANTITY-CAP');
2729: /* fnd_message.set_name(
2730: application => 'WIP',
2731: name => 'WIP_GREATER_THAN');
2732: fnd_message.set_token(
2733: token => 'ENTITY1',
2734: value => 'SCRAP QUANTITY-CAP',
2735: translate => TRUE);
2736: fnd_message.set_token(

Line 2736: fnd_message.set_token(

2732: fnd_message.set_token(
2733: token => 'ENTITY1',
2734: value => 'SCRAP QUANTITY-CAP',
2735: translate => TRUE);
2736: fnd_message.set_token(
2737: token => 'ENTITY2',
2738: value => 'zero',
2739: translate => TRUE); */
2740: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_NOT_LESS_THAN_ZERO');

Line 2740: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_NOT_LESS_THAN_ZERO');

2736: fnd_message.set_token(
2737: token => 'ENTITY2',
2738: value => 'zero',
2739: translate => TRUE); */
2740: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_NOT_LESS_THAN_ZERO');
2741: x_err_buf := FND_MESSAGE.GET;
2742: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2743: return(x_return_code);
2744: END IF;

Line 2741: x_err_buf := FND_MESSAGE.GET;

2737: token => 'ENTITY2',
2738: value => 'zero',
2739: translate => TRUE); */
2740: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_NOT_LESS_THAN_ZERO');
2741: x_err_buf := FND_MESSAGE.GET;
2742: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2743: return(x_return_code);
2744: END IF;
2745:

Line 2748: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2744: END IF;
2745:
2746: IF (p_txn_qty < 0) THEN
2747: x_return_code := 1;
2748: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2749: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
2750: fnd_message.set_name(
2751: application => 'WIP',
2752: name => 'WIP_GREATER_THAN');

Line 2749: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');

2745:
2746: IF (p_txn_qty < 0) THEN
2747: x_return_code := 1;
2748: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2749: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
2750: fnd_message.set_name(
2751: application => 'WIP',
2752: name => 'WIP_GREATER_THAN');
2753: fnd_message.set_token(

Line 2750: fnd_message.set_name(

2746: IF (p_txn_qty < 0) THEN
2747: x_return_code := 1;
2748: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2749: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
2750: fnd_message.set_name(
2751: application => 'WIP',
2752: name => 'WIP_GREATER_THAN');
2753: fnd_message.set_token(
2754: token => 'ENTITY1',

Line 2753: fnd_message.set_token(

2749: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
2750: fnd_message.set_name(
2751: application => 'WIP',
2752: name => 'WIP_GREATER_THAN');
2753: fnd_message.set_token(
2754: token => 'ENTITY1',
2755: value => 'TRANSACTION QUANTITY-CAP',
2756: translate => TRUE);
2757: fnd_message.set_token(

Line 2757: fnd_message.set_token(

2753: fnd_message.set_token(
2754: token => 'ENTITY1',
2755: value => 'TRANSACTION QUANTITY-CAP',
2756: translate => TRUE);
2757: fnd_message.set_token(
2758: token => 'ENTITY2',
2759: value => 'zero',
2760: translate => TRUE);
2761: x_err_buf := FND_MESSAGE.GET;

Line 2761: x_err_buf := FND_MESSAGE.GET;

2757: fnd_message.set_token(
2758: token => 'ENTITY2',
2759: value => 'zero',
2760: translate => TRUE);
2761: x_err_buf := FND_MESSAGE.GET;
2762: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2763: return(x_return_code);
2764: END IF;
2765:

Line 2768: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2764: END IF;
2765:
2766: IF ((l_scrap_qty = 0) AND (p_txn_qty = 0)) THEN
2767: x_return_code := 1;
2768: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2769: --move enh? get the meaning of /
2770: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2771: x_err_buf := FND_MESSAGE.GET;
2772: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2770: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');

2766: IF ((l_scrap_qty = 0) AND (p_txn_qty = 0)) THEN
2767: x_return_code := 1;
2768: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2769: --move enh? get the meaning of /
2770: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2771: x_err_buf := FND_MESSAGE.GET;
2772: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2773: return(x_return_code);
2774: END IF;

Line 2771: x_err_buf := FND_MESSAGE.GET;

2767: x_return_code := 1;
2768: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2769: --move enh? get the meaning of /
2770: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2771: x_err_buf := FND_MESSAGE.GET;
2772: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2773: return(x_return_code);
2774: END IF;
2775:

Line 2779: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2775:
2776: IF ((p_to_intraop_step_type = 5)) THEN
2777: IF ((l_scrap_qty > 0) AND (p_txn_qty > 0)) THEN
2778: x_return_code := 1;
2779: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2780: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2781: x_err_buf := FND_MESSAGE.GET;
2782: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2783: return(x_return_code);

Line 2780: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');

2776: IF ((p_to_intraop_step_type = 5)) THEN
2777: IF ((l_scrap_qty > 0) AND (p_txn_qty > 0)) THEN
2778: x_return_code := 1;
2779: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2780: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2781: x_err_buf := FND_MESSAGE.GET;
2782: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2783: return(x_return_code);
2784:

Line 2781: x_err_buf := FND_MESSAGE.GET;

2777: IF ((l_scrap_qty > 0) AND (p_txn_qty > 0)) THEN
2778: x_return_code := 1;
2779: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2780: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/transaction_quantity');
2781: x_err_buf := FND_MESSAGE.GET;
2782: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2783: return(x_return_code);
2784:
2785: END IF;

Line 2789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2785: END IF;
2786:
2787: IF (l_scrap_at_operation_flag IS NOT NULL) THEN
2788: l_scrap_at_operation_flag := null;
2789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2791: x_err_buf := FND_MESSAGE.GET;
2792:
2793: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');

2786:
2787: IF (l_scrap_at_operation_flag IS NOT NULL) THEN
2788: l_scrap_at_operation_flag := null;
2789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2791: x_err_buf := FND_MESSAGE.GET;
2792:
2793: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2794: END IF;

Line 2791: x_err_buf := FND_MESSAGE.GET;

2787: IF (l_scrap_at_operation_flag IS NOT NULL) THEN
2788: l_scrap_at_operation_flag := null;
2789: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2790: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2791: x_err_buf := FND_MESSAGE.GET;
2792:
2793: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2794: END IF;
2795:

Line 2802: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2798: IF ((nvl(p_jump_flag, 'N')='Y') OR (nvl(l_wo_op_seq_id, -1) <> nvl(l_op_seq_id, -1))) THEN
2799:
2800: IF (nvl(l_scrap_at_operation_flag, -1) NOT IN (1, 2)) THEN
2801: x_return_code := 1;
2802: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2803: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2804: x_err_buf := FND_MESSAGE.GET;
2805: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2806: return(x_return_code);

Line 2803: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');

2799:
2800: IF (nvl(l_scrap_at_operation_flag, -1) NOT IN (1, 2)) THEN
2801: x_return_code := 1;
2802: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2803: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2804: x_err_buf := FND_MESSAGE.GET;
2805: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2806: return(x_return_code);
2807: END IF;

Line 2804: x_err_buf := FND_MESSAGE.GET;

2800: IF (nvl(l_scrap_at_operation_flag, -1) NOT IN (1, 2)) THEN
2801: x_return_code := 1;
2802: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2803: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2804: x_err_buf := FND_MESSAGE.GET;
2805: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2806: return(x_return_code);
2807: END IF;
2808: ELSE

Line 2811: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

2807: END IF;
2808: ELSE
2809: IF (nvl(l_scrap_at_operation_flag, -1) <> 1) THEN
2810: l_scrap_at_operation_flag := null;
2811: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2812: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2813: x_err_buf := FND_MESSAGE.GET;
2814:
2815: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 2812: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');

2808: ELSE
2809: IF (nvl(l_scrap_at_operation_flag, -1) <> 1) THEN
2810: l_scrap_at_operation_flag := null;
2811: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2812: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2813: x_err_buf := FND_MESSAGE.GET;
2814:
2815: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2816: END IF;

Line 2813: x_err_buf := FND_MESSAGE.GET;

2809: IF (nvl(l_scrap_at_operation_flag, -1) <> 1) THEN
2810: l_scrap_at_operation_flag := null;
2811: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
2812: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
2813: x_err_buf := FND_MESSAGE.GET;
2814:
2815: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
2816: END IF;
2817: END IF;

Line 2825: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_AT_TO_ONLY');

2821: -- IF ((p_jump_flag='Y') AND ((l_scrap_qty>0) AND (l_scrap_at_operation_flag=1)) AND (g_param_jump_fm_q = 2)) THEN
2822: IF ((nvl(p_jump_flag,'N')='Y') AND ((l_scrap_qty>0) AND (nvl(l_scrap_at_operation_flag, -1)=1))
2823: AND (g_param_jump_fm_q = 2)) THEN
2824: x_return_code := 1;
2825: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_AT_TO_ONLY');
2826: x_err_buf := FND_MESSAGE.GET;
2827: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2828: return(x_return_code);
2829: END IF;

Line 2826: x_err_buf := FND_MESSAGE.GET;

2822: IF ((nvl(p_jump_flag,'N')='Y') AND ((l_scrap_qty>0) AND (nvl(l_scrap_at_operation_flag, -1)=1))
2823: AND (g_param_jump_fm_q = 2)) THEN
2824: x_return_code := 1;
2825: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_AT_TO_ONLY');
2826: x_err_buf := FND_MESSAGE.GET;
2827: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2828: return(x_return_code);
2829: END IF;
2830:

Line 2836: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

2832: IF ((p_to_intraop_step_type > 5) OR (p_to_intraop_step_type is NULL) OR
2833: (p_to_intraop_step_type = WIP_CONSTANTS.REJECT)) THEN
2834: x_return_code := 1;
2835:
2836: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2837: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2838: x_err_buf := FND_MESSAGE.GET;
2839:
2840: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 2837: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');

2833: (p_to_intraop_step_type = WIP_CONSTANTS.REJECT)) THEN
2834: x_return_code := 1;
2835:
2836: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2837: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2838: x_err_buf := FND_MESSAGE.GET;
2839:
2840: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2841: return(x_return_code);

Line 2838: x_err_buf := FND_MESSAGE.GET;

2834: x_return_code := 1;
2835:
2836: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
2837: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_intraop_step_type');
2838: x_err_buf := FND_MESSAGE.GET;
2839:
2840: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2841: return(x_return_code);
2842: END IF;

Line 2856: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_FUTURE_SCR');

2852: ) THEN
2853: -- EC: CZH.bug2362225
2854: x_return_code := 1;
2855:
2856: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_FUTURE_SCR');
2857: x_err_buf := FND_MESSAGE.GET;
2858:
2859: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2860: return(x_return_code);

Line 2857: x_err_buf := FND_MESSAGE.GET;

2853: -- EC: CZH.bug2362225
2854: x_return_code := 1;
2855:
2856: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_FUTURE_SCR');
2857: x_err_buf := FND_MESSAGE.GET;
2858:
2859: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2860: return(x_return_code);
2861: END IF;

Line 2880: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_NEXT_MAND_STEP');

2876: l_next_mand_step,
2877: x_return_code,
2878: x_err_buf);
2879: IF (x_return_code <> 0) THEN
2880: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_NEXT_MAND_STEP');
2881: x_err_buf := FND_MESSAGE.GET;
2882: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2883: return(x_return_code);
2884: ELSE

Line 2881: x_err_buf := FND_MESSAGE.GET;

2877: x_return_code,
2878: x_err_buf);
2879: IF (x_return_code <> 0) THEN
2880: FND_MESSAGE.SET_NAME('WSM', 'WSM_CANNOT_GET_NEXT_MAND_STEP');
2881: x_err_buf := FND_MESSAGE.GET;
2882: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2883: return(x_return_code);
2884: ELSE
2885: if (l_debug = 'Y') then

Line 2957: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_INTRAOP_VALUE');

2953: x_return_code,
2954: x_err_buf);
2955: --move enh end
2956: IF (x_return_code <> 0) THEN
2957: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_INTRAOP_VALUE');
2958: x_err_buf := FND_MESSAGE.GET;
2959:
2960: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2961: return(x_return_code);

Line 2958: x_err_buf := FND_MESSAGE.GET;

2954: x_err_buf);
2955: --move enh end
2956: IF (x_return_code <> 0) THEN
2957: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_INTRAOP_VALUE');
2958: x_err_buf := FND_MESSAGE.GET;
2959:
2960: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2961: return(x_return_code);
2962: ELSE

Line 2995: FND_MESSAGE.SET_NAME('WSM', 'WSM_MAND_STEP');

2991: IF (l_err_condition = 1) THEN
2992: l_err_condition := 0;
2993: x_return_code := 1;
2994:
2995: FND_MESSAGE.SET_NAME('WSM', 'WSM_MAND_STEP');
2996: x_err_buf := FND_MESSAGE.GET;
2997:
2998: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2999: return(x_return_code);

Line 2996: x_err_buf := FND_MESSAGE.GET;

2992: l_err_condition := 0;
2993: x_return_code := 1;
2994:
2995: FND_MESSAGE.SET_NAME('WSM', 'WSM_MAND_STEP');
2996: x_err_buf := FND_MESSAGE.GET;
2997:
2998: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
2999: return(x_return_code);
3000: END IF;

Line 3011: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3007: if (l_wo_op_seq_id = l_op_seq_id) and (p_jump_flag <> 'Y') then -- i.e. intra op move
3008:
3009: if (p_to_intraop_step_type <= p_fm_intraop_step_type) then
3010: x_return_code := 1;
3011: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3012: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type/to_intraop_step_type');
3013: x_err_buf := FND_MESSAGE.GET;
3014: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3015: return(x_return_code);

Line 3012: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type/to_intraop_step_type');

3008:
3009: if (p_to_intraop_step_type <= p_fm_intraop_step_type) then
3010: x_return_code := 1;
3011: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3012: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type/to_intraop_step_type');
3013: x_err_buf := FND_MESSAGE.GET;
3014: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3015: return(x_return_code);
3016: end if;

Line 3013: x_err_buf := FND_MESSAGE.GET;

3009: if (p_to_intraop_step_type <= p_fm_intraop_step_type) then
3010: x_return_code := 1;
3011: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3012: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_intraop_step_type/to_intraop_step_type');
3013: x_err_buf := FND_MESSAGE.GET;
3014: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3015: return(x_return_code);
3016: end if;
3017:

Line 3047: FND_MESSAGE.SET_NAME('INV', 'INV_INVALID_UOM_CONV');

3043:
3044: --bug 5496297 throw a message if api returns -99999 which means that no valid conversion exists
3045: if (l_converted_txn_qty = -99999) then
3046: x_return_code := 1;
3047: FND_MESSAGE.SET_NAME('INV', 'INV_INVALID_UOM_CONV');
3048: FND_MESSAGE.SET_TOKEN('VALUE1', p_txn_uom);
3049: FND_MESSAGE.SET_TOKEN('VALUE2', l_primary_uom);
3050: x_err_buf := FND_MESSAGE.GET;
3051: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 3048: FND_MESSAGE.SET_TOKEN('VALUE1', p_txn_uom);

3044: --bug 5496297 throw a message if api returns -99999 which means that no valid conversion exists
3045: if (l_converted_txn_qty = -99999) then
3046: x_return_code := 1;
3047: FND_MESSAGE.SET_NAME('INV', 'INV_INVALID_UOM_CONV');
3048: FND_MESSAGE.SET_TOKEN('VALUE1', p_txn_uom);
3049: FND_MESSAGE.SET_TOKEN('VALUE2', l_primary_uom);
3050: x_err_buf := FND_MESSAGE.GET;
3051: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3052: return(x_return_code);

Line 3049: FND_MESSAGE.SET_TOKEN('VALUE2', l_primary_uom);

3045: if (l_converted_txn_qty = -99999) then
3046: x_return_code := 1;
3047: FND_MESSAGE.SET_NAME('INV', 'INV_INVALID_UOM_CONV');
3048: FND_MESSAGE.SET_TOKEN('VALUE1', p_txn_uom);
3049: FND_MESSAGE.SET_TOKEN('VALUE2', l_primary_uom);
3050: x_err_buf := FND_MESSAGE.GET;
3051: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3052: return(x_return_code);
3053: end if;

Line 3050: x_err_buf := FND_MESSAGE.GET;

3046: x_return_code := 1;
3047: FND_MESSAGE.SET_NAME('INV', 'INV_INVALID_UOM_CONV');
3048: FND_MESSAGE.SET_TOKEN('VALUE1', p_txn_uom);
3049: FND_MESSAGE.SET_TOKEN('VALUE2', l_primary_uom);
3050: x_err_buf := FND_MESSAGE.GET;
3051: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3052: return(x_return_code);
3053: end if;
3054: --end bug 5496297

Line 3065: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

3061: floor(l_converted_txn_qty) <> l_converted_txn_qty
3062: )
3063: THEN
3064: x_return_code := 1;
3065: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
3066: x_err_buf := FND_MESSAGE.GET;
3067:
3068: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3069: return(x_return_code);

Line 3066: x_err_buf := FND_MESSAGE.GET;

3062: )
3063: THEN
3064: x_return_code := 1;
3065: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
3066: x_err_buf := FND_MESSAGE.GET;
3067:
3068: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3069: return(x_return_code);
3070:

Line 3098: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

3094: floor(l_converted_scrap_qty) <> l_converted_scrap_qty
3095: )
3096: THEN
3097: x_return_code := 1;
3098: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
3099: x_err_buf := FND_MESSAGE.GET;
3100:
3101: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3102: return(x_return_code);

Line 3099: x_err_buf := FND_MESSAGE.GET;

3095: )
3096: THEN
3097: x_return_code := 1;
3098: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
3099: x_err_buf := FND_MESSAGE.GET;
3100:
3101: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3102: return(x_return_code);
3103:

Line 3111: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3107: end if;
3108: IF (l_converted_txn_qty > l_operation_qty) THEN
3109: x_return_code := 1;
3110:
3111: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3112: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
3113: x_err_buf := FND_MESSAGE.GET;
3114:
3115: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 3112: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');

3108: IF (l_converted_txn_qty > l_operation_qty) THEN
3109: x_return_code := 1;
3110:
3111: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3112: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
3113: x_err_buf := FND_MESSAGE.GET;
3114:
3115: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3116: return(x_return_code);

Line 3113: x_err_buf := FND_MESSAGE.GET;

3109: x_return_code := 1;
3110:
3111: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3112: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
3113: x_err_buf := FND_MESSAGE.GET;
3114:
3115: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3116: return(x_return_code);
3117: END IF;

Line 3122: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3118:
3119: IF (l_converted_scrap_qty > l_operation_qty) THEN
3120: x_return_code := 1;
3121:
3122: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3123: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
3124: x_err_buf := FND_MESSAGE.GET;
3125:
3126: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 3123: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');

3119: IF (l_converted_scrap_qty > l_operation_qty) THEN
3120: x_return_code := 1;
3121:
3122: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3123: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
3124: x_err_buf := FND_MESSAGE.GET;
3125:
3126: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3127: return(x_return_code);

Line 3124: x_err_buf := FND_MESSAGE.GET;

3120: x_return_code := 1;
3121:
3122: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3123: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
3124: x_err_buf := FND_MESSAGE.GET;
3125:
3126: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3127: return(x_return_code);
3128: END IF;

Line 3211: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

3207: END IF;
3208: --end bug 3571019
3209: l_stmt_num := 320;
3210: IF (l_wlmti_scrap_acct_id <> -1) THEN
3211: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3212: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3213: x_err_buf := FND_MESSAGE.GET;
3214: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3215: -- CZH.BUG2135538

Line 3212: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3208: --end bug 3571019
3209: l_stmt_num := 320;
3210: IF (l_wlmti_scrap_acct_id <> -1) THEN
3211: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3212: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3213: x_err_buf := FND_MESSAGE.GET;
3214: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3215: -- CZH.BUG2135538
3216: update wsm_lot_move_txn_interface

Line 3213: x_err_buf := FND_MESSAGE.GET;

3209: l_stmt_num := 320;
3210: IF (l_wlmti_scrap_acct_id <> -1) THEN
3211: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3212: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3213: x_err_buf := FND_MESSAGE.GET;
3214: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3215: -- CZH.BUG2135538
3216: update wsm_lot_move_txn_interface
3217: set scrap_account_id = l_wlmti_scrap_acct_id,

Line 3227: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');

3223: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3224: ELSE
3225: x_return_code := 1;
3226: -- abb changed the message
3227: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3228: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3229: x_err_buf := FND_MESSAGE.GET;
3230: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3231: return(x_return_code);

Line 3228: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));

3224: ELSE
3225: x_return_code := 1;
3226: -- abb changed the message
3227: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3228: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3229: x_err_buf := FND_MESSAGE.GET;
3230: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3231: return(x_return_code);
3232: END IF;

Line 3229: x_err_buf := FND_MESSAGE.GET;

3225: x_return_code := 1;
3226: -- abb changed the message
3227: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3228: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3229: x_err_buf := FND_MESSAGE.GET;
3230: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3231: return(x_return_code);
3232: END IF;
3233: END IF;

Line 3253: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3249: EXCEPTION
3250: WHEN NO_DATA_FOUND THEN
3251: x_return_code := 1;
3252:
3253: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3254: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3255: x_err_buf := FND_MESSAGE.GET;
3256:
3257: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||

Line 3254: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3250: WHEN NO_DATA_FOUND THEN
3251: x_return_code := 1;
3252:
3253: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3254: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3255: x_err_buf := FND_MESSAGE.GET;
3256:
3257: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3258: l_stmt_num||'): '||x_err_buf);

Line 3255: x_err_buf := FND_MESSAGE.GET;

3251: x_return_code := 1;
3252:
3253: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3254: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3255: x_err_buf := FND_MESSAGE.GET;
3256:
3257: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3258: l_stmt_num||'): '||x_err_buf);
3259: return(x_return_code);

Line 3279: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3275:
3276: EXCEPTION
3277: WHEN NO_DATA_FOUND THEN
3278: x_return_code := 1;
3279: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3280: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3281: x_err_buf := FND_MESSAGE.GET;
3282: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3283: return(x_return_code);

Line 3280: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3276: EXCEPTION
3277: WHEN NO_DATA_FOUND THEN
3278: x_return_code := 1;
3279: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3280: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3281: x_err_buf := FND_MESSAGE.GET;
3282: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3283: return(x_return_code);
3284: END;

Line 3281: x_err_buf := FND_MESSAGE.GET;

3277: WHEN NO_DATA_FOUND THEN
3278: x_return_code := 1;
3279: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3280: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3281: x_err_buf := FND_MESSAGE.GET;
3282: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3283: return(x_return_code);
3284: END;
3285:

Line 3344: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

3340: END IF;
3341:
3342: l_stmt_num := 320;
3343: IF (l_wlmti_scrap_acct_id <> -1) THEN
3344: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3345: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3346: x_err_buf := FND_MESSAGE.GET;
3347: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3348:

Line 3345: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3341:
3342: l_stmt_num := 320;
3343: IF (l_wlmti_scrap_acct_id <> -1) THEN
3344: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3345: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3346: x_err_buf := FND_MESSAGE.GET;
3347: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3348:
3349: update wsm_lot_move_txn_interface

Line 3346: x_err_buf := FND_MESSAGE.GET;

3342: l_stmt_num := 320;
3343: IF (l_wlmti_scrap_acct_id <> -1) THEN
3344: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3345: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3346: x_err_buf := FND_MESSAGE.GET;
3347: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3348:
3349: update wsm_lot_move_txn_interface
3350: set scrap_account_id = l_wlmti_scrap_acct_id,

Line 3358: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');

3354: l_stmt_num := 325;
3355: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3356: ELSE
3357: x_return_code := 1;
3358: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3359: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3360: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3361: ELSE
3362: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));

Line 3360: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));

3356: ELSE
3357: x_return_code := 1;
3358: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3359: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3360: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3361: ELSE
3362: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3363: END IF;
3364: x_err_buf := FND_MESSAGE.GET;

Line 3362: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));

3358: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3359: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3360: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3361: ELSE
3362: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3363: END IF;
3364: x_err_buf := FND_MESSAGE.GET;
3365: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3366: return(x_return_code);

Line 3364: x_err_buf := FND_MESSAGE.GET;

3360: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3361: ELSE
3362: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3363: END IF;
3364: x_err_buf := FND_MESSAGE.GET;
3365: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3366: return(x_return_code);
3367: END IF;
3368:

Line 3378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3374: EXCEPTION
3375: WHEN NO_DATA_FOUND THEN
3376: x_return_code := 1;
3377:
3378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3380: x_err_buf := FND_MESSAGE.GET;
3381:
3382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||

Line 3379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3375: WHEN NO_DATA_FOUND THEN
3376: x_return_code := 1;
3377:
3378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3380: x_err_buf := FND_MESSAGE.GET;
3381:
3382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3383: l_stmt_num||'): '||x_err_buf);

Line 3380: x_err_buf := FND_MESSAGE.GET;

3376: x_return_code := 1;
3377:
3378: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3379: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3380: x_err_buf := FND_MESSAGE.GET;
3381:
3382: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3383: l_stmt_num||'): '||x_err_buf);
3384: return(x_return_code);

Line 3416: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3412: EXCEPTION
3413: WHEN NO_DATA_FOUND THEN
3414: x_return_code := 1;
3415:
3416: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3417: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3418: x_err_buf := FND_MESSAGE.GET;
3419:
3420: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||

Line 3417: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3413: WHEN NO_DATA_FOUND THEN
3414: x_return_code := 1;
3415:
3416: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3417: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3418: x_err_buf := FND_MESSAGE.GET;
3419:
3420: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3421: l_stmt_num||'): '||x_err_buf);

Line 3418: x_err_buf := FND_MESSAGE.GET;

3414: x_return_code := 1;
3415:
3416: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3417: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3418: x_err_buf := FND_MESSAGE.GET;
3419:
3420: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3421: l_stmt_num||'): '||x_err_buf);
3422: return(x_return_code);

Line 3448: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

3444: END IF;
3445:
3446: l_stmt_num := 320;
3447: IF (l_wlmti_scrap_acct_id <> -1) THEN
3448: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3449: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3450: x_err_buf := FND_MESSAGE.GET;
3451: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3452:

Line 3449: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3445:
3446: l_stmt_num := 320;
3447: IF (l_wlmti_scrap_acct_id <> -1) THEN
3448: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3449: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3450: x_err_buf := FND_MESSAGE.GET;
3451: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3452:
3453: update wsm_lot_move_txn_interface

Line 3450: x_err_buf := FND_MESSAGE.GET;

3446: l_stmt_num := 320;
3447: IF (l_wlmti_scrap_acct_id <> -1) THEN
3448: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3449: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3450: x_err_buf := FND_MESSAGE.GET;
3451: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3452:
3453: update wsm_lot_move_txn_interface
3454: set scrap_account_id = l_wlmti_scrap_acct_id,

Line 3462: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');

3458: l_stmt_num := 325;
3459: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3460: ELSE
3461: x_return_code := 1;
3462: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3463: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3464: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3465: ELSE
3466: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));

Line 3464: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));

3460: ELSE
3461: x_return_code := 1;
3462: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3463: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3464: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3465: ELSE
3466: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3467: END IF;
3468: x_err_buf := FND_MESSAGE.GET;

Line 3466: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));

3462: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
3463: IF (nvl(l_scrap_at_operation_flag, 1) = 1) THEN
3464: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3465: ELSE
3466: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3467: END IF;
3468: x_err_buf := FND_MESSAGE.GET;
3469: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3470: return(x_return_code);

Line 3468: x_err_buf := FND_MESSAGE.GET;

3464: fnd_message.set_token('DEPT_ID',to_char(l_wo_dept_id));
3465: ELSE
3466: fnd_message.set_token('DEPT_ID',to_char(l_to_dept_id));
3467: END IF;
3468: x_err_buf := FND_MESSAGE.GET;
3469: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3470: return(x_return_code);
3471: END IF;
3472:

Line 3482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3478: EXCEPTION
3479: WHEN NO_DATA_FOUND THEN
3480: x_return_code := 1;
3481:
3482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3484: x_err_buf := FND_MESSAGE.GET;
3485:
3486: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||

Line 3483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3479: WHEN NO_DATA_FOUND THEN
3480: x_return_code := 1;
3481:
3482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3484: x_err_buf := FND_MESSAGE.GET;
3485:
3486: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3487: l_stmt_num||'): '||x_err_buf);

Line 3484: x_err_buf := FND_MESSAGE.GET;

3480: x_return_code := 1;
3481:
3482: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3483: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3484: x_err_buf := FND_MESSAGE.GET;
3485:
3486: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3487: l_stmt_num||'): '||x_err_buf);
3488: return(x_return_code);

Line 3506: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3502: EXCEPTION
3503: WHEN NO_DATA_FOUND THEN
3504: x_return_code := 1;
3505:
3506: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3507: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3508: x_err_buf := FND_MESSAGE.GET;
3509:
3510: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||

Line 3507: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3503: WHEN NO_DATA_FOUND THEN
3504: x_return_code := 1;
3505:
3506: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3507: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3508: x_err_buf := FND_MESSAGE.GET;
3509:
3510: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3511: l_stmt_num||'): '||x_err_buf);

Line 3508: x_err_buf := FND_MESSAGE.GET;

3504: x_return_code := 1;
3505:
3506: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3507: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3508: x_err_buf := FND_MESSAGE.GET;
3509:
3510: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||
3511: l_stmt_num||'): '||x_err_buf);
3512: return(x_return_code);

Line 3533: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3529:
3530: EXCEPTION
3531: WHEN NO_DATA_FOUND THEN
3532: x_return_code := 1;
3533: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3534: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3535: x_err_buf := FND_MESSAGE.GET;
3536: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3537: return(x_return_code);

Line 3534: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3530: EXCEPTION
3531: WHEN NO_DATA_FOUND THEN
3532: x_return_code := 1;
3533: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3534: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3535: x_err_buf := FND_MESSAGE.GET;
3536: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3537: return(x_return_code);
3538: END;

Line 3535: x_err_buf := FND_MESSAGE.GET;

3531: WHEN NO_DATA_FOUND THEN
3532: x_return_code := 1;
3533: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3534: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3535: x_err_buf := FND_MESSAGE.GET;
3536: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='|| l_stmt_num||'): '||x_err_buf);
3537: return(x_return_code);
3538: END;
3539:

Line 3556: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3552: (l_converted_txn_qty < 0) )
3553: THEN
3554: x_return_code := 1;
3555:
3556: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3557: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
3558: x_err_buf := FND_MESSAGE.GET;
3559:
3560: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 3557: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');

3553: THEN
3554: x_return_code := 1;
3555:
3556: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3557: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
3558: x_err_buf := FND_MESSAGE.GET;
3559:
3560: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3561: return(x_return_code);

Line 3558: x_err_buf := FND_MESSAGE.GET;

3554: x_return_code := 1;
3555:
3556: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3557: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
3558: x_err_buf := FND_MESSAGE.GET;
3559:
3560: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3561: return(x_return_code);
3562: END IF;*/

Line 3569: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_MOVE_QTY_INCORRECT');

3565: IF ((p_to_intraop_step_type <> WIP_CONSTANTS.SCRAP)
3566: AND (nvl(l_converted_txn_qty, 0)+nvl(l_converted_scrap_qty, 0) <> l_operation_qty)) THEN
3567: x_return_code := 1;
3568:
3569: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_MOVE_QTY_INCORRECT');
3570: x_err_buf := FND_MESSAGE.GET;
3571:
3572: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3573: return(x_return_code);

Line 3570: x_err_buf := FND_MESSAGE.GET;

3566: AND (nvl(l_converted_txn_qty, 0)+nvl(l_converted_scrap_qty, 0) <> l_operation_qty)) THEN
3567: x_return_code := 1;
3568:
3569: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_MOVE_QTY_INCORRECT');
3570: x_err_buf := FND_MESSAGE.GET;
3571:
3572: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3573: return(x_return_code);
3574: END IF;

Line 3587: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_TXN_QTY');

3583: IF (l_converted_txn_qty <> l_operation_qty) THEN
3584:
3585: x_return_code := 1;
3586:
3587: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_TXN_QTY');
3588: x_err_buf := FND_MESSAGE.GET;
3589:
3590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3591: return(x_return_code);

Line 3588: x_err_buf := FND_MESSAGE.GET;

3584:
3585: x_return_code := 1;
3586:
3587: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_TXN_QTY');
3588: x_err_buf := FND_MESSAGE.GET;
3589:
3590: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3591: return(x_return_code);
3592: END IF;

Line 3634: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

3630: --**VJ: End Changes for removal of 9999 **--
3631: --***VJ Changed for Performance Upgrade***--
3632: x_return_code := 1;
3633:
3634: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3635: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
3636: x_err_buf := FND_MESSAGE.GET;
3637:
3638: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 3635: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');

3631: --***VJ Changed for Performance Upgrade***--
3632: x_return_code := 1;
3633:
3634: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3635: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
3636: x_err_buf := FND_MESSAGE.GET;
3637:
3638: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3639:

Line 3636: x_err_buf := FND_MESSAGE.GET;

3632: x_return_code := 1;
3633:
3634: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
3635: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'jump_flag');
3636: x_err_buf := FND_MESSAGE.GET;
3637:
3638: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3639:
3640: return(x_return_code);

Line 3686: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');

3682: --bugfix 3632605
3683: if (l_cmp_subinv is NULL) then
3684: x_return_code := 1;
3685:
3686: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');
3687: x_err_buf := fnd_message.get;
3688:
3689: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3690:

Line 3687: x_err_buf := fnd_message.get;

3683: if (l_cmp_subinv is NULL) then
3684: x_return_code := 1;
3685:
3686: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');
3687: x_err_buf := fnd_message.get;
3688:
3689: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3690:
3691: return(x_return_code);

Line 3742: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');

3738: --bugfix 3632605
3739: if (l_cmp_subinv is NULL) then
3740: x_return_code := 1;
3741:
3742: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');
3743: x_err_buf := fnd_message.get;
3744:
3745: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3746:

Line 3743: x_err_buf := fnd_message.get;

3739: if (l_cmp_subinv is NULL) then
3740: x_return_code := 1;
3741:
3742: fnd_message.set_name('WIP', 'WIP_EZ_NO_SUBINV_DEFAULT1');
3743: x_err_buf := fnd_message.get;
3744:
3745: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
3746:
3747: return(x_return_code);

Line 3806: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_SCRAP_BKFLSH_OFF');

3802: (nvl(l_scrap_at_operation_flag, 0) = 1))))
3803: THEN
3804: l_stmt_num := 371;
3805: x_return_code := 1;
3806: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_SCRAP_BKFLSH_OFF');
3807: x_err_buf := FND_MESSAGE.GET;
3808: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3809: return(x_return_code);
3810: END IF;

Line 3807: x_err_buf := FND_MESSAGE.GET;

3803: THEN
3804: l_stmt_num := 371;
3805: x_return_code := 1;
3806: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_SCRAP_BKFLSH_OFF');
3807: x_err_buf := FND_MESSAGE.GET;
3808: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3809: return(x_return_code);
3810: END IF;
3811:

Line 3844: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');

3840:
3841: EXCEPTION
3842: WHEN NO_DATA_FOUND THEN
3843: x_return_code := 1;
3844: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');
3845: x_err_buf := FND_MESSAGE.GET;
3846:
3847: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3848: return(x_return_code);

Line 3845: x_err_buf := FND_MESSAGE.GET;

3841: EXCEPTION
3842: WHEN NO_DATA_FOUND THEN
3843: x_return_code := 1;
3844: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');
3845: x_err_buf := FND_MESSAGE.GET;
3846:
3847: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3848: return(x_return_code);
3849: END;

Line 3855: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');

3851:
3852: l_stmt_num := 377;
3853: IF (nvl(l_max_txn_id, -1) = -1) THEN
3854: x_return_code := 1;
3855: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');
3856: x_err_buf := FND_MESSAGE.GET;
3857:
3858: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3859: return(x_return_code);

Line 3856: x_err_buf := FND_MESSAGE.GET;

3852: l_stmt_num := 377;
3853: IF (nvl(l_max_txn_id, -1) = -1) THEN
3854: x_return_code := 1;
3855: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_COMPLETION');
3856: x_err_buf := FND_MESSAGE.GET;
3857:
3858: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3859: return(x_return_code);
3860: END IF;

Line 3898: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');

3894: IF ((nvl(x_undo_source_code, 'interface') IN ('move in oa page', 'move out oa page', 'jump oa page',
3895: 'move to next op oa page')) AND (nvl(l_source_code, 'interface') = 'interface'))
3896: THEN
3897: x_return_code := 1;
3898: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');
3899: x_err_buf := FND_MESSAGE.GET;
3900: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3901: return(x_return_code);
3902: END IF;

Line 3899: x_err_buf := FND_MESSAGE.GET;

3895: 'move to next op oa page')) AND (nvl(l_source_code, 'interface') = 'interface'))
3896: THEN
3897: x_return_code := 1;
3898: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');
3899: x_err_buf := FND_MESSAGE.GET;
3900: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
3901: return(x_return_code);
3902: END IF;
3903: --mes end

Line 3926: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

3922: --bug 5185751 get scrap account id from scrap txn only. Moved this validation after getting
3923: --scrap account id from scrap txn
3924: /*************
3925: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
3926: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3927: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3928: x_err_buf := FND_MESSAGE.GET;
3929: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3930:

Line 3927: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

3923: --scrap account id from scrap txn
3924: /*************
3925: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
3926: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3927: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3928: x_err_buf := FND_MESSAGE.GET;
3929: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3930:
3931: update wsm_lot_move_txn_interface

Line 3928: x_err_buf := FND_MESSAGE.GET;

3924: /*************
3925: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
3926: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3927: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
3928: x_err_buf := FND_MESSAGE.GET;
3929: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3930:
3931: update wsm_lot_move_txn_interface
3932: set scrap_account_id = l_wmt_scrap_acc,

Line 3962: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

3958: ) then
3959:
3960: --NSO modification by abedajna end
3961:
3962: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3963: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/to_operation_code/to_intraoperation_step_type/transaction_quantity');
3964: x_err_buf := FND_MESSAGE.GET;
3965: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3966: -- CZH.BUG2135538

Line 3963: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/to_operation_code/to_intraoperation_step_type/transaction_quantity');

3959:
3960: --NSO modification by abedajna end
3961:
3962: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3963: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/to_operation_code/to_intraoperation_step_type/transaction_quantity');
3964: x_err_buf := FND_MESSAGE.GET;
3965: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3966: -- CZH.BUG2135538
3967: update wsm_lot_move_txn_interface

Line 3964: x_err_buf := FND_MESSAGE.GET;

3960: --NSO modification by abedajna end
3961:
3962: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
3963: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/to_operation_code/to_intraoperation_step_type/transaction_quantity');
3964: x_err_buf := FND_MESSAGE.GET;
3965: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
3966: -- CZH.BUG2135538
3967: update wsm_lot_move_txn_interface
3968: set TO_OPERATION_SEQ_NUM = l_cmp_fm_op_seq_num,

Line 4012: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4008: --bug 4090866 get scrap_account_id from WMT and update WLMTI
4009: --bug 5185751 get scrap account id from scrap txn only. Moved this validation after getting
4010: --scrap account id from scrap txn
4011: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
4012: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4014: x_err_buf := FND_MESSAGE.GET;
4015: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4016:

Line 4013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

4009: --bug 5185751 get scrap account id from scrap txn only. Moved this validation after getting
4010: --scrap account id from scrap txn
4011: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
4012: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4014: x_err_buf := FND_MESSAGE.GET;
4015: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4016:
4017: update wsm_lot_move_txn_interface

Line 4014: x_err_buf := FND_MESSAGE.GET;

4010: --scrap account id from scrap txn
4011: IF (nvl(l_wmt_scrap_acc, -1) <> nvl(l_wlmti_scrap_acct_id, -1)) THEN
4012: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4013: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4014: x_err_buf := FND_MESSAGE.GET;
4015: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4016:
4017: update wsm_lot_move_txn_interface
4018: set scrap_account_id = l_wmt_scrap_acc,

Line 4118: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

4114: floor(l_converted_txn_qty) <> l_converted_txn_qty
4115: )
4116: THEN
4117: x_return_code := 1;
4118: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4119: x_err_buf := FND_MESSAGE.GET;
4120:
4121: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4122: return(x_return_code);

Line 4119: x_err_buf := FND_MESSAGE.GET;

4115: )
4116: THEN
4117: x_return_code := 1;
4118: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4119: x_err_buf := FND_MESSAGE.GET;
4120:
4121: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4122: return(x_return_code);
4123:

Line 4146: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4142:
4143: IF (nvl(l_scrap_qty, -1) <> nvl(l_wmt_scrap_qty, -1)) THEN
4144: l_scrap_qty := l_wmt_scrap_qty;
4145: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4146: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4147: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
4148: x_err_buf := FND_MESSAGE.GET;
4149: END IF;
4150:

Line 4147: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');

4143: IF (nvl(l_scrap_qty, -1) <> nvl(l_wmt_scrap_qty, -1)) THEN
4144: l_scrap_qty := l_wmt_scrap_qty;
4145: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4146: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4147: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
4148: x_err_buf := FND_MESSAGE.GET;
4149: END IF;
4150:
4151: IF (nvl(l_scrap_at_operation_flag, -1) <> nvl(l_wmt_scrap_at_op_flag, -1)) THEN

Line 4148: x_err_buf := FND_MESSAGE.GET;

4144: l_scrap_qty := l_wmt_scrap_qty;
4145: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4146: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4147: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity');
4148: x_err_buf := FND_MESSAGE.GET;
4149: END IF;
4150:
4151: IF (nvl(l_scrap_at_operation_flag, -1) <> nvl(l_wmt_scrap_at_op_flag, -1)) THEN
4152: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;

Line 4153: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4149: END IF;
4150:
4151: IF (nvl(l_scrap_at_operation_flag, -1) <> nvl(l_wmt_scrap_at_op_flag, -1)) THEN
4152: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4153: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4154: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
4155: x_err_buf := FND_MESSAGE.GET;
4156: END IF;
4157:

Line 4154: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');

4150:
4151: IF (nvl(l_scrap_at_operation_flag, -1) <> nvl(l_wmt_scrap_at_op_flag, -1)) THEN
4152: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4153: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4154: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
4155: x_err_buf := FND_MESSAGE.GET;
4156: END IF;
4157:
4158: update wsm_lot_move_txn_interface

Line 4155: x_err_buf := FND_MESSAGE.GET;

4151: IF (nvl(l_scrap_at_operation_flag, -1) <> nvl(l_wmt_scrap_at_op_flag, -1)) THEN
4152: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4153: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4154: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_at_operation_flag');
4155: x_err_buf := FND_MESSAGE.GET;
4156: END IF;
4157:
4158: update wsm_lot_move_txn_interface
4159: set FM_OPERATION_SEQ_NUM = l_cmp_to_op_seq_num,

Line 4175: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4171:
4172: -- if (l_onhand_qty <> p_txn_qty) OR -- CZH: BUG 2154720
4173: if (l_onhand_qty <> NVL(l_converted_txn_qty,0)) OR -- CZH: BUG 2154720
4174: ((l_onhand_qty) <> l_qty_completed) then -- Added 2nd condition to fix bug #2095267
4175: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4176: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction quantity');
4177: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RETURN'); -- Fix for bug #2095267
4178: x_return_code := 1;
4179: x_err_buf := FND_MESSAGE.GET;

Line 4176: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction quantity');

4172: -- if (l_onhand_qty <> p_txn_qty) OR -- CZH: BUG 2154720
4173: if (l_onhand_qty <> NVL(l_converted_txn_qty,0)) OR -- CZH: BUG 2154720
4174: ((l_onhand_qty) <> l_qty_completed) then -- Added 2nd condition to fix bug #2095267
4175: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4176: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction quantity');
4177: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RETURN'); -- Fix for bug #2095267
4178: x_return_code := 1;
4179: x_err_buf := FND_MESSAGE.GET;
4180:

Line 4177: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RETURN'); -- Fix for bug #2095267

4173: if (l_onhand_qty <> NVL(l_converted_txn_qty,0)) OR -- CZH: BUG 2154720
4174: ((l_onhand_qty) <> l_qty_completed) then -- Added 2nd condition to fix bug #2095267
4175: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4176: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction quantity');
4177: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RETURN'); -- Fix for bug #2095267
4178: x_return_code := 1;
4179: x_err_buf := FND_MESSAGE.GET;
4180:
4181: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 4179: x_err_buf := FND_MESSAGE.GET;

4175: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4176: -- FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction quantity');
4177: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_RETURN'); -- Fix for bug #2095267
4178: x_return_code := 1;
4179: x_err_buf := FND_MESSAGE.GET;
4180:
4181: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4182: return(x_return_code);
4183: end if;

Line 4190: FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');

4186: l_stmt_num := 406;
4187:
4188: -- when returning, if the job has a kanban reference, just provide a warning...
4189: if l_kanban_card_id is not null then
4190: FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');
4191: x_warning_mesg := fnd_message.get;
4192: fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4193: fnd_file.put_line(fnd_file.log, x_warning_mesg);
4194: fnd_file.put_line(fnd_file.log, '******** WARNING *********');

Line 4191: x_warning_mesg := fnd_message.get;

4187:
4188: -- when returning, if the job has a kanban reference, just provide a warning...
4189: if l_kanban_card_id is not null then
4190: FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');
4191: x_warning_mesg := fnd_message.get;
4192: fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4193: fnd_file.put_line(fnd_file.log, x_warning_mesg);
4194: fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4195: end if; --kanban card is not null

Line 4213: ** FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');

4209: ** where kanban_card_id = l_kanban_card_id);
4210: **
4211: **l_stmt_num := 406.1;
4212: ** if l_cur_supply_status = 5 then
4213: ** FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');
4214: ** x_warning_mesg := fnd_message.get;
4215: ** fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4216: ** fnd_file.put_line(fnd_file.log, x_warning_mesg);
4217: ** fnd_file.put_line(fnd_file.log, '******** WARNING *********');

Line 4214: ** x_warning_mesg := fnd_message.get;

4210: **
4211: **l_stmt_num := 406.1;
4212: ** if l_cur_supply_status = 5 then
4213: ** FND_MESSAGE.set_name('WSM', 'WSM_KNBN_RET_ISSUES');
4214: ** x_warning_mesg := fnd_message.get;
4215: ** fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4216: ** fnd_file.put_line(fnd_file.log, x_warning_mesg);
4217: ** fnd_file.put_line(fnd_file.log, '******** WARNING *********');
4218: ** else

Line 4225: ** FND_MESSAGE.SET_NAME('WSM', 'WSM_KNBN_CARD_STS_FAIL');

4221: ** p_Kanban_Card_Id => l_kanban_card_id,
4222: ** p_Supply_Status => inv_kanban_pvt.g_supply_status_InProcess);
4223: **
4224: ** if ( l_returnStatus <> fnd_api.g_ret_sts_success) then
4225: ** FND_MESSAGE.SET_NAME('WSM', 'WSM_KNBN_CARD_STS_FAIL');
4226: ** fnd_message.set_token('STATUS','InProcess');
4227: ** x_return_code := 1;
4228: ** x_err_buf := FND_MESSAGE.GET;
4229: ** fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 4226: ** fnd_message.set_token('STATUS','InProcess');

4222: ** p_Supply_Status => inv_kanban_pvt.g_supply_status_InProcess);
4223: **
4224: ** if ( l_returnStatus <> fnd_api.g_ret_sts_success) then
4225: ** FND_MESSAGE.SET_NAME('WSM', 'WSM_KNBN_CARD_STS_FAIL');
4226: ** fnd_message.set_token('STATUS','InProcess');
4227: ** x_return_code := 1;
4228: ** x_err_buf := FND_MESSAGE.GET;
4229: ** fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4230: ** return(x_return_code);

Line 4228: ** x_err_buf := FND_MESSAGE.GET;

4224: ** if ( l_returnStatus <> fnd_api.g_ret_sts_success) then
4225: ** FND_MESSAGE.SET_NAME('WSM', 'WSM_KNBN_CARD_STS_FAIL');
4226: ** fnd_message.set_token('STATUS','InProcess');
4227: ** x_return_code := 1;
4228: ** x_err_buf := FND_MESSAGE.GET;
4229: ** fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4230: ** return(x_return_code);
4231: ** end if;
4232: ** end if;

Line 4259: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_WAC_SCRAP_ACC');

4255: and organization_id = p_org_id;
4256:
4257: if p_est_scrap_account is null or p_est_scrap_var_account is null then
4258: if l_est_scrap_acc = 1 then
4259: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_WAC_SCRAP_ACC');
4260: fnd_message.set_token('CC', l_class_code);
4261: x_return_code := 1;
4262: x_err_buf := FND_MESSAGE.GET;
4263: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 4260: fnd_message.set_token('CC', l_class_code);

4256:
4257: if p_est_scrap_account is null or p_est_scrap_var_account is null then
4258: if l_est_scrap_acc = 1 then
4259: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_WAC_SCRAP_ACC');
4260: fnd_message.set_token('CC', l_class_code);
4261: x_return_code := 1;
4262: x_err_buf := FND_MESSAGE.GET;
4263: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4264: return(x_return_code);

Line 4262: x_err_buf := FND_MESSAGE.GET;

4258: if l_est_scrap_acc = 1 then
4259: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_WAC_SCRAP_ACC');
4260: fnd_message.set_token('CC', l_class_code);
4261: x_return_code := 1;
4262: x_err_buf := FND_MESSAGE.GET;
4263: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4264: return(x_return_code);
4265: end if;
4266: end if;

Line 4280: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');

4276: where department_id = l_cmp_to_dept_id;
4277:
4278: if l_scrap_account is null or l_est_scrap_abs_account is null then
4279: if l_est_scrap_acc = 1 then
4280: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
4281: fnd_message.set_token('DEPT_ID',to_char(l_cmp_to_dept_id));
4282: x_return_code := 1;
4283: x_err_buf := FND_MESSAGE.GET;
4284: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 4281: fnd_message.set_token('DEPT_ID',to_char(l_cmp_to_dept_id));

4277:
4278: if l_scrap_account is null or l_est_scrap_abs_account is null then
4279: if l_est_scrap_acc = 1 then
4280: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
4281: fnd_message.set_token('DEPT_ID',to_char(l_cmp_to_dept_id));
4282: x_return_code := 1;
4283: x_err_buf := FND_MESSAGE.GET;
4284: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4285: return(x_return_code);

Line 4283: x_err_buf := FND_MESSAGE.GET;

4279: if l_est_scrap_acc = 1 then
4280: fnd_message.set_name('WSM','WSM_NO_SCRAP_ACC');
4281: fnd_message.set_token('DEPT_ID',to_char(l_cmp_to_dept_id));
4282: x_return_code := 1;
4283: x_err_buf := FND_MESSAGE.GET;
4284: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4285: return(x_return_code);
4286: end if;
4287: end if;

Line 4325: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4321:
4322: if (g_allow_bkw_move <> 1) then
4323: x_return_code := 1;
4324: --bug 4202723
4325: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4326: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Backward Move Flag');
4327: FND_MESSAGE.SET_NAME('WSM', 'WSM_UNDO_NOT_ENABLED');
4328: --end bug 4202723
4329: x_err_buf := FND_MESSAGE.GET;

Line 4326: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Backward Move Flag');

4322: if (g_allow_bkw_move <> 1) then
4323: x_return_code := 1;
4324: --bug 4202723
4325: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4326: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Backward Move Flag');
4327: FND_MESSAGE.SET_NAME('WSM', 'WSM_UNDO_NOT_ENABLED');
4328: --end bug 4202723
4329: x_err_buf := FND_MESSAGE.GET;
4330:

Line 4327: FND_MESSAGE.SET_NAME('WSM', 'WSM_UNDO_NOT_ENABLED');

4323: x_return_code := 1;
4324: --bug 4202723
4325: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4326: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Backward Move Flag');
4327: FND_MESSAGE.SET_NAME('WSM', 'WSM_UNDO_NOT_ENABLED');
4328: --end bug 4202723
4329: x_err_buf := FND_MESSAGE.GET;
4330:
4331: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4329: x_err_buf := FND_MESSAGE.GET;

4325: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4326: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'Backward Move Flag');
4327: FND_MESSAGE.SET_NAME('WSM', 'WSM_UNDO_NOT_ENABLED');
4328: --end bug 4202723
4329: x_err_buf := FND_MESSAGE.GET;
4330:
4331: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4332:
4333: return(x_return_code);

Line 4353: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4349: EXCEPTION
4350: WHEN NO_DATA_FOUND THEN
4351: x_return_code := 1;
4352:
4353: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4354: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4355: x_err_buf := FND_MESSAGE.GET;
4356:
4357: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4354: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');

4350: WHEN NO_DATA_FOUND THEN
4351: x_return_code := 1;
4352:
4353: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4354: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4355: x_err_buf := FND_MESSAGE.GET;
4356:
4357: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4358: return(x_return_code);

Line 4355: x_err_buf := FND_MESSAGE.GET;

4351: x_return_code := 1;
4352:
4353: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4354: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4355: x_err_buf := FND_MESSAGE.GET;
4356:
4357: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4358: return(x_return_code);
4359: END;

Line 4390: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4386: EXCEPTION
4387: WHEN NO_DATA_FOUND THEN
4388: x_return_code := 1;
4389:
4390: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4391: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4392: x_err_buf := FND_MESSAGE.GET;
4393:
4394: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4391: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');

4387: WHEN NO_DATA_FOUND THEN
4388: x_return_code := 1;
4389:
4390: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4391: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4392: x_err_buf := FND_MESSAGE.GET;
4393:
4394: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4395: return(x_return_code);

Line 4392: x_err_buf := FND_MESSAGE.GET;

4388: x_return_code := 1;
4389:
4390: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4391: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'wip_entity_name');
4392: x_err_buf := FND_MESSAGE.GET;
4393:
4394: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4395: return(x_return_code);
4396: END;

Line 4440: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');

4436:
4437: IF (l_txn_id IS NULL) THEN
4438: x_return_code := 1;
4439:
4440: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');
4441: x_err_buf := FND_MESSAGE.GET;
4442:
4443: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4444:

Line 4441: x_err_buf := FND_MESSAGE.GET;

4437: IF (l_txn_id IS NULL) THEN
4438: x_return_code := 1;
4439:
4440: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');
4441: x_err_buf := FND_MESSAGE.GET;
4442:
4443: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4444:
4445: return(x_return_code);

Line 4451: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');

4447: EXCEPTION
4448: WHEN NO_DATA_FOUND THEN
4449: x_return_code := 1;
4450:
4451: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');
4452: x_err_buf := FND_MESSAGE.GET;
4453:
4454: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4455: return(x_return_code);

Line 4452: x_err_buf := FND_MESSAGE.GET;

4448: WHEN NO_DATA_FOUND THEN
4449: x_return_code := 1;
4450:
4451: FND_MESSAGE.SET_NAME('WSM', 'WSM_NO_MOVE_TXNS');
4452: x_err_buf := FND_MESSAGE.GET;
4453:
4454: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4455: return(x_return_code);
4456: END;

Line 4484: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4480: EXCEPTION
4481: WHEN NO_DATA_FOUND THEN
4482: x_return_code := 1;
4483:
4484: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4485: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/transaction_quantity');
4486: x_err_buf := FND_MESSAGE.GET;
4487:
4488: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4485: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/transaction_quantity');

4481: WHEN NO_DATA_FOUND THEN
4482: x_return_code := 1;
4483:
4484: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4485: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/transaction_quantity');
4486: x_err_buf := FND_MESSAGE.GET;
4487:
4488: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4489: return(x_return_code);

Line 4486: x_err_buf := FND_MESSAGE.GET;

4482: x_return_code := 1;
4483:
4484: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4485: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_operation_seq_num/transaction_quantity');
4486: x_err_buf := FND_MESSAGE.GET;
4487:
4488: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4489: return(x_return_code);
4490: END;

Line 4495: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_MOVE_CAND');

4491:
4492: -- abb changes for bug 2427171 begin
4493: if l_txn_id is null then
4494: x_return_code := 1;
4495: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_MOVE_CAND');
4496: x_err_buf := FND_MESSAGE.GET;
4497: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf) ;
4498: return(x_return_code);
4499: end if;

Line 4496: x_err_buf := FND_MESSAGE.GET;

4492: -- abb changes for bug 2427171 begin
4493: if l_txn_id is null then
4494: x_return_code := 1;
4495: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_MOVE_CAND');
4496: x_err_buf := FND_MESSAGE.GET;
4497: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf) ;
4498: return(x_return_code);
4499: end if;
4500: -- abb changes for bug 2427171 end

Line 4545: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');

4541: IF ((x_undo_source_code IN ('move in oa page', 'move out oa page', 'jump oa page',
4542: 'move to next op oa page')) AND (nvl(l_source_code, 'interface') = 'interface'))
4543: THEN
4544: x_return_code := 1;
4545: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');
4546: x_err_buf := FND_MESSAGE.GET;
4547: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4548: return(x_return_code);
4549: END IF;

Line 4546: x_err_buf := FND_MESSAGE.GET;

4542: 'move to next op oa page')) AND (nvl(l_source_code, 'interface') = 'interface'))
4543: THEN
4544: x_return_code := 1;
4545: FND_MESSAGE.SET_NAME('WSM', 'WSM_MES_UNDO_OA_FORMSINTERFACE');
4546: x_err_buf := FND_MESSAGE.GET;
4547: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4548: return(x_return_code);
4549: END IF;
4550:

Line 4655: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4651: (NVL(p_fm_op_code, l_fm_op_code) <> l_to_op_code) ) or -- Fix for bug #2081442
4652: ( (nvl(p_fm_intraop_step_type,-1) <> -1) AND
4653: (nvl(p_fm_intraop_step_type,-1) <> l_to_intraop_step) ) )
4654: THEN
4655: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4656: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_op_code/fm_intraop_step_type');
4657: x_err_buf := FND_MESSAGE.GET;
4658: --ELSIF( (nvl(p_fm_op_seq_num,-1) = -1) AND
4659: ELSIF( (nvl(p_fm_op_seq_num_orig,-1) = -1) AND --bug 5349187

Line 4656: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_op_code/fm_intraop_step_type');

4652: ( (nvl(p_fm_intraop_step_type,-1) <> -1) AND
4653: (nvl(p_fm_intraop_step_type,-1) <> l_to_intraop_step) ) )
4654: THEN
4655: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4656: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_op_code/fm_intraop_step_type');
4657: x_err_buf := FND_MESSAGE.GET;
4658: --ELSIF( (nvl(p_fm_op_seq_num,-1) = -1) AND
4659: ELSIF( (nvl(p_fm_op_seq_num_orig,-1) = -1) AND --bug 5349187
4660: (NVL(p_fm_op_code, l_fm_op_code_temp) IS NULL) AND -- Fix for bug #2081442

Line 4657: x_err_buf := FND_MESSAGE.GET;

4653: (nvl(p_fm_intraop_step_type,-1) <> l_to_intraop_step) ) )
4654: THEN
4655: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4656: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_op_code/fm_intraop_step_type');
4657: x_err_buf := FND_MESSAGE.GET;
4658: --ELSIF( (nvl(p_fm_op_seq_num,-1) = -1) AND
4659: ELSIF( (nvl(p_fm_op_seq_num_orig,-1) = -1) AND --bug 5349187
4660: (NVL(p_fm_op_code, l_fm_op_code_temp) IS NULL) AND -- Fix for bug #2081442
4661: (nvl(p_fm_intraop_step_type,-1) = -1)

Line 4664: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4660: (NVL(p_fm_op_code, l_fm_op_code_temp) IS NULL) AND -- Fix for bug #2081442
4661: (nvl(p_fm_intraop_step_type,-1) = -1)
4662: ) THEN
4663:
4664: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4665: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num,fm_op_code,fm_intraop_step_type');
4666: x_err_buf := FND_MESSAGE.GET;
4667: END IF;
4668:

Line 4665: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num,fm_op_code,fm_intraop_step_type');

4661: (nvl(p_fm_intraop_step_type,-1) = -1)
4662: ) THEN
4663:
4664: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4665: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num,fm_op_code,fm_intraop_step_type');
4666: x_err_buf := FND_MESSAGE.GET;
4667: END IF;
4668:
4669: --move enh 115.135 added the l_to_intraop_step condn after perf check

Line 4666: x_err_buf := FND_MESSAGE.GET;

4662: ) THEN
4663:
4664: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4665: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num,fm_op_code,fm_intraop_step_type');
4666: x_err_buf := FND_MESSAGE.GET;
4667: END IF;
4668:
4669: --move enh 115.135 added the l_to_intraop_step condn after perf check
4670: IF ((l_to_intraop_step <> g_scrap) AND ((nvl(l_scrap_qty, -1)<>nvl(l_wmt_scrap_qty, -1))

Line 4675: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4671: OR (nvl(l_scrap_at_operation_flag, -1)<>nvl(l_wmt_scrap_at_op_flag, -1)))) THEN
4672: l_scrap_qty := l_wmt_scrap_qty;
4673: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4674: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4675: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4676: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/scrap_at_operation_flag');
4677: x_err_buf := x_err_buf || FND_MESSAGE.GET;
4678: END IF;
4679:

Line 4676: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/scrap_at_operation_flag');

4672: l_scrap_qty := l_wmt_scrap_qty;
4673: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4674: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4675: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4676: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/scrap_at_operation_flag');
4677: x_err_buf := x_err_buf || FND_MESSAGE.GET;
4678: END IF;
4679:
4680: if (l_debug = 'Y') then

Line 4677: x_err_buf := x_err_buf || FND_MESSAGE.GET;

4673: l_converted_scrap_qty := l_wmt_pri_scrap_qty;
4674: l_scrap_at_operation_flag := l_wmt_scrap_at_op_flag;
4675: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4676: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_quantity/scrap_at_operation_flag');
4677: x_err_buf := x_err_buf || FND_MESSAGE.GET;
4678: END IF;
4679:
4680: if (l_debug = 'Y') then
4681: fnd_file.put_line(fnd_file.log, 'VALUES FETCHED FROM WMT TABLE '||

Line 4742: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4738: ( (nvl(p_to_dept_id,-1) <> -1) AND
4739: (nvl(p_to_dept_id,-1) <> l_fm_dept_id) )
4740: ) THEN
4741:
4742: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4743: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code/to_intraop_step_type/to_dept_id');
4744: x_err_buf := FND_MESSAGE.GET;
4745:
4746: ELSIF( (nvl(p_to_op_seq_num,-1) = -1) AND

Line 4743: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code/to_intraop_step_type/to_dept_id');

4739: (nvl(p_to_dept_id,-1) <> l_fm_dept_id) )
4740: ) THEN
4741:
4742: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4743: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code/to_intraop_step_type/to_dept_id');
4744: x_err_buf := FND_MESSAGE.GET;
4745:
4746: ELSIF( (nvl(p_to_op_seq_num,-1) = -1) AND
4747: (p_to_op_code IS NULL) AND

Line 4744: x_err_buf := FND_MESSAGE.GET;

4740: ) THEN
4741:
4742: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4743: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num/to_op_code/to_intraop_step_type/to_dept_id');
4744: x_err_buf := FND_MESSAGE.GET;
4745:
4746: ELSIF( (nvl(p_to_op_seq_num,-1) = -1) AND
4747: (p_to_op_code IS NULL) AND
4748: (nvl(p_to_intraop_step_type,-1) = -1) AND

Line 4751: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4747: (p_to_op_code IS NULL) AND
4748: (nvl(p_to_intraop_step_type,-1) = -1) AND
4749: (nvl(p_to_dept_id,-1) = -1) ) THEN
4750:
4751: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4752: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num,to_op_code,to_intraop_step_type,to_dept_id');
4753: x_err_buf := FND_MESSAGE.GET;
4754:
4755: END IF;

Line 4752: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num,to_op_code,to_intraop_step_type,to_dept_id');

4748: (nvl(p_to_intraop_step_type,-1) = -1) AND
4749: (nvl(p_to_dept_id,-1) = -1) ) THEN
4750:
4751: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4752: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num,to_op_code,to_intraop_step_type,to_dept_id');
4753: x_err_buf := FND_MESSAGE.GET;
4754:
4755: END IF;
4756:

Line 4753: x_err_buf := FND_MESSAGE.GET;

4749: (nvl(p_to_dept_id,-1) = -1) ) THEN
4750:
4751: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4752: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_op_seq_num,to_op_code,to_intraop_step_type,to_dept_id');
4753: x_err_buf := FND_MESSAGE.GET;
4754:
4755: END IF;
4756:
4757: IF (x_err_buf IS NOT NULL) THEN

Line 4798: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

4794: floor(l_converted_txn_qty) <> l_converted_txn_qty
4795: )
4796: THEN
4797: x_return_code := 1;
4798: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4799: x_err_buf := FND_MESSAGE.GET;
4800:
4801: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4802: return(x_return_code);

Line 4799: x_err_buf := FND_MESSAGE.GET;

4795: )
4796: THEN
4797: x_return_code := 1;
4798: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4799: x_err_buf := FND_MESSAGE.GET;
4800:
4801: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4802: return(x_return_code);
4803:

Line 4847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

4843: floor(l_converted_scrap_qty) <> l_converted_scrap_qty
4844: )
4845: THEN
4846: x_return_code := 1;
4847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4848: x_err_buf := FND_MESSAGE.GET;
4849:
4850: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4851: return(x_return_code);

Line 4848: x_err_buf := FND_MESSAGE.GET;

4844: )
4845: THEN
4846: x_return_code := 1;
4847: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
4848: x_err_buf := FND_MESSAGE.GET;
4849:
4850: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4851: return(x_return_code);
4852:

Line 4869: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_QTY_INCORRECT');

4865: /* IF ((l_to_intraop_step = 5) AND (nvl(l_converted_txn_qty, nvl(l_converted_scrap_qty, 0))
4866: <> l_wmt_pri_scrap_qty)) THEN
4867: -- OR ((l_to_intraop_step <> 5) AND (nvl(l_converted_scrap_qty, 0)) <> nvl(l_wmt_scrap_qty, 0))) THEN
4868: x_return_code := 1;
4869: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_QTY_INCORRECT');
4870: x_err_buf := FND_MESSAGE.GET;
4871:
4872: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):
4873: '||x_err_buf);

Line 4870: x_err_buf := FND_MESSAGE.GET;

4866: <> l_wmt_pri_scrap_qty)) THEN
4867: -- OR ((l_to_intraop_step <> 5) AND (nvl(l_converted_scrap_qty, 0)) <> nvl(l_wmt_scrap_qty, 0))) THEN
4868: x_return_code := 1;
4869: FND_MESSAGE.SET_NAME('WSM', 'WSM_SCRAP_QTY_INCORRECT');
4870: x_err_buf := FND_MESSAGE.GET;
4871:
4872: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):
4873: '||x_err_buf);
4874:

Line 4887: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4883: --if (p_txn_qty <> l_wo_qty) then -- CZH: BUG 2154720
4884: if (NVL(l_converted_txn_qty,0) <> l_wo_qty) then -- CZH: BUG 2154720*/
4885: x_return_code := 1;
4886:
4887: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4888: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
4889: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
4890: x_err_buf := FND_MESSAGE.GET;
4891:

Line 4888: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');

4884: if (NVL(l_converted_txn_qty,0) <> l_wo_qty) then -- CZH: BUG 2154720*/
4885: x_return_code := 1;
4886:
4887: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4888: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
4889: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
4890: x_err_buf := FND_MESSAGE.GET;
4891:
4892: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4889: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253

4885: x_return_code := 1;
4886:
4887: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4888: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
4889: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
4890: x_err_buf := FND_MESSAGE.GET;
4891:
4892: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4893: return(x_return_code);

Line 4890: x_err_buf := FND_MESSAGE.GET;

4886:
4887: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4888: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
4889: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
4890: x_err_buf := FND_MESSAGE.GET;
4891:
4892: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4893: return(x_return_code);
4894: end if;

Line 4933: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4929:
4930: --abb H optional scrap acc begin
4931: if (l_wlmti_scrap_acct_id = -1) then -- Changed to fix bug #2083671
4932:
4933: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4934: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4935: x_err_buf := FND_MESSAGE.GET;
4936: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4937: -- CZH.BUG2135538

Line 4934: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');

4930: --abb H optional scrap acc begin
4931: if (l_wlmti_scrap_acct_id = -1) then -- Changed to fix bug #2083671
4932:
4933: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4934: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4935: x_err_buf := FND_MESSAGE.GET;
4936: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4937: -- CZH.BUG2135538
4938: update wsm_lot_move_txn_interface

Line 4935: x_err_buf := FND_MESSAGE.GET;

4931: if (l_wlmti_scrap_acct_id = -1) then -- Changed to fix bug #2083671
4932:
4933: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4934: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account_id');
4935: x_err_buf := FND_MESSAGE.GET;
4936: l_error_msg := substr(l_error_msg||'WARNING: '||x_err_buf||'| ', 1, 2000);
4937: -- CZH.BUG2135538
4938: update wsm_lot_move_txn_interface
4939: set scrap_account_id = l_wmt_scrap_acct_id,

Line 4951: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4947: --elsif (l_wmt_scrap_acct_id <> l_wlmti_scrap_acct_id) then
4948: elsif (nvl(l_wmt_scrap_acct_id, -1) <> l_wlmti_scrap_acct_id) then
4949: x_return_code := 1;
4950:
4951: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4952: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account');
4953: x_err_buf := FND_MESSAGE.GET;
4954:
4955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4952: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account');

4948: elsif (nvl(l_wmt_scrap_acct_id, -1) <> l_wlmti_scrap_acct_id) then
4949: x_return_code := 1;
4950:
4951: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4952: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account');
4953: x_err_buf := FND_MESSAGE.GET;
4954:
4955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4956:

Line 4953: x_err_buf := FND_MESSAGE.GET;

4949: x_return_code := 1;
4950:
4951: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4952: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'scrap_account');
4953: x_err_buf := FND_MESSAGE.GET;
4954:
4955: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4956:
4957: return(x_return_code);

Line 4976: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4972: --***VJ Added for Performance Upgrade***--
4973: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
4974: x_return_code := 1;
4975:
4976: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4977: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id'); --bugfix 1587295: changed the token
4978: x_err_buf := FND_MESSAGE.GET;
4979:
4980: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 4977: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id'); --bugfix 1587295: changed the token

4973: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
4974: x_return_code := 1;
4975:
4976: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4977: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id'); --bugfix 1587295: changed the token
4978: x_err_buf := FND_MESSAGE.GET;
4979:
4980: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4981: return(x_return_code);

Line 4978: x_err_buf := FND_MESSAGE.GET;

4974: x_return_code := 1;
4975:
4976: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
4977: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_dept_id'); --bugfix 1587295: changed the token
4978: x_err_buf := FND_MESSAGE.GET;
4979:
4980: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4981: return(x_return_code);
4982: ELSE

Line 4983: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

4979:
4980: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4981: return(x_return_code);
4982: ELSE
4983: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4984: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_code');
4985: x_err_buf := FND_MESSAGE.GET;
4986:
4987: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 4984: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_code');

4980: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
4981: return(x_return_code);
4982: ELSE
4983: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4984: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_code');
4985: x_err_buf := FND_MESSAGE.GET;
4986:
4987: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4988: END IF;

Line 4985: x_err_buf := FND_MESSAGE.GET;

4981: return(x_return_code);
4982: ELSE
4983: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
4984: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_department_code');
4985: x_err_buf := FND_MESSAGE.GET;
4986:
4987: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
4988: END IF;
4989: --***VJ End Additions***--

Line 5002: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

4998: --***VJ Added for Performance Upgrade***--
4999: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
5000: x_return_code := 1;
5001:
5002: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5003: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_dept_id'); --bugfix 1587295: changed the token
5004: x_err_buf := FND_MESSAGE.GET;
5005:
5006: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 5003: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_dept_id'); --bugfix 1587295: changed the token

4999: IF (SQL%ROWCOUNT = 0) OR (SQL%NOTFOUND) THEN
5000: x_return_code := 1;
5001:
5002: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5003: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_dept_id'); --bugfix 1587295: changed the token
5004: x_err_buf := FND_MESSAGE.GET;
5005:
5006: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5007: return(x_return_code);

Line 5004: x_err_buf := FND_MESSAGE.GET;

5000: x_return_code := 1;
5001:
5002: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5003: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_dept_id'); --bugfix 1587295: changed the token
5004: x_err_buf := FND_MESSAGE.GET;
5005:
5006: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5007: return(x_return_code);
5008: ELSE

Line 5009: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');

5005:
5006: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5007: return(x_return_code);
5008: ELSE
5009: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
5010: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_code');
5011: x_err_buf := FND_MESSAGE.GET;
5012:
5013: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);

Line 5010: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_code');

5006: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5007: return(x_return_code);
5008: ELSE
5009: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
5010: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_code');
5011: x_err_buf := FND_MESSAGE.GET;
5012:
5013: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
5014: END IF;

Line 5011: x_err_buf := FND_MESSAGE.GET;

5007: return(x_return_code);
5008: ELSE
5009: FND_MESSAGE.SET_NAME('WSM', 'WSM_MODIFIED_FIELD');
5010: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'to_department_code');
5011: x_err_buf := FND_MESSAGE.GET;
5012:
5013: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'):'||x_err_buf);
5014: END IF;
5015: --***VJ End Additions***--

Line 5069: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');

5065: l_stmt_num := 490;
5066: IF (SQL%ROWCOUNT = 0) THEN
5067: x_return_code := 1;
5068:
5069: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
5070: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
5071: x_err_buf := FND_MESSAGE.GET;
5072:
5073: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 5070: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');

5066: IF (SQL%ROWCOUNT = 0) THEN
5067: x_return_code := 1;
5068:
5069: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
5070: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
5071: x_err_buf := FND_MESSAGE.GET;
5072:
5073: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5074: return(x_return_code);

Line 5071: x_err_buf := FND_MESSAGE.GET;

5067: x_return_code := 1;
5068:
5069: FND_MESSAGE.SET_NAME('WSM', 'WSM_INFO_NOT_FOUND');
5070: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'acct_period_id');
5071: x_err_buf := FND_MESSAGE.GET;
5072:
5073: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5074: return(x_return_code);
5075: END IF;

Line 5096: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');

5092:
5093: IF l_uom <> p_primary_uom THEN
5094: x_return_code := 1;
5095:
5096: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
5097: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_intraop_step_type');
5098: x_err_buf := FND_MESSAGE.GET;
5099:
5100: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 5097: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_intraop_step_type');

5093: IF l_uom <> p_primary_uom THEN
5094: x_return_code := 1;
5095:
5096: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
5097: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_intraop_step_type');
5098: x_err_buf := FND_MESSAGE.GET;
5099:
5100: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5101: return(x_return_code);

Line 5098: x_err_buf := FND_MESSAGE.GET;

5094: x_return_code := 1;
5095:
5096: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_PRI_UOM');
5097: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'fm_op_seq_num/fm_intraop_step_type');
5098: x_err_buf := FND_MESSAGE.GET;
5099:
5100: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5101: return(x_return_code);
5102: END IF;

Line 5126: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');

5122: (-- ST : Demo issue : Commenting out : floor(p_txn_qty) <> p_txn_qty OR
5123: floor(l_converted_txn_qty) <> l_converted_txn_qty)
5124: THEN
5125: x_return_code := 1;
5126: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
5127: x_err_buf := FND_MESSAGE.GET;
5128:
5129: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5130: return(x_return_code);

Line 5127: x_err_buf := FND_MESSAGE.GET;

5123: floor(l_converted_txn_qty) <> l_converted_txn_qty)
5124: THEN
5125: x_return_code := 1;
5126: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_JOB_TXN_QTY');
5127: x_err_buf := FND_MESSAGE.GET;
5128:
5129: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5130: return(x_return_code);
5131:

Line 5168: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');

5164: l_stmt_num := 510;
5165: IF (SQL%ROWCOUNT = 0) THEN
5166: x_return_code := 1;
5167:
5168: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
5169: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
5170: x_err_buf := FND_MESSAGE.GET;
5171:
5172: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);

Line 5169: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');

5165: IF (SQL%ROWCOUNT = 0) THEN
5166: x_return_code := 1;
5167:
5168: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
5169: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
5170: x_err_buf := FND_MESSAGE.GET;
5171:
5172: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5173: return(x_return_code);

Line 5170: x_err_buf := FND_MESSAGE.GET;

5166: x_return_code := 1;
5167:
5168: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
5169: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'primary_quantity');
5170: x_err_buf := FND_MESSAGE.GET;
5171:
5172: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5173: return(x_return_code);
5174: END IF;

Line 5224: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_DISABLE_OPS_FAILED');

5220: -- x_return_code,
5221: -- x_err_buf);
5222: --
5223: -- IF (x_return_code <> 0) THEN
5224: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_DISABLE_OPS_FAILED');
5225: -- x_err_buf := FND_MESSAGE.GET;
5226: --
5227: -- fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5228: -- return(x_return_code);

Line 5225: -- x_err_buf := FND_MESSAGE.GET;

5221: -- x_err_buf);
5222: --
5223: -- IF (x_return_code <> 0) THEN
5224: -- FND_MESSAGE.SET_NAME('WSM', 'WSM_DISABLE_OPS_FAILED');
5225: -- x_err_buf := FND_MESSAGE.GET;
5226: --
5227: -- fnd_file.put_line(fnd_file.log, 'WSMPLBMI.custom_validation(stmt_num='||l_stmt_num||'): '||x_err_buf);
5228: -- return(x_return_code);
5229: -- ELSE

Line 5306: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');

5302: -- OSP FP I begin chages : added if condition 'if x_err_buf is null'
5303:
5304: IF (x_return_code <> 0) THEN
5305: if x_err_buf is null then
5306: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
5307: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_operations');
5308: x_err_buf := FND_MESSAGE.GET;
5309: end if;
5310:

Line 5307: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_operations');

5303:
5304: IF (x_return_code <> 0) THEN
5305: if x_err_buf is null then
5306: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
5307: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_operations');
5308: x_err_buf := FND_MESSAGE.GET;
5309: end if;
5310:
5311: -- OSP FP I end changes

Line 5308: x_err_buf := FND_MESSAGE.GET;

5304: IF (x_return_code <> 0) THEN
5305: if x_err_buf is null then
5306: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
5307: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_operations');
5308: x_err_buf := FND_MESSAGE.GET;
5309: end if;
5310:
5311: -- OSP FP I end changes
5312:

Line 5475: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

5471: -- Check if the transaction is a backward move, if not, error out
5472:
5473: IF (p_txn_type <> 4) THEN
5474: x_return_code := 1;
5475: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5476: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
5477: x_err_buf := FND_MESSAGE.GET;
5478: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5479: ||l_stmt_num||'): '||x_err_buf);

Line 5476: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');

5472:
5473: IF (p_txn_type <> 4) THEN
5474: x_return_code := 1;
5475: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5476: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
5477: x_err_buf := FND_MESSAGE.GET;
5478: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5479: ||l_stmt_num||'): '||x_err_buf);
5480: return(x_return_code);

Line 5477: x_err_buf := FND_MESSAGE.GET;

5473: IF (p_txn_type <> 4) THEN
5474: x_return_code := 1;
5475: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5476: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_type');
5477: x_err_buf := FND_MESSAGE.GET;
5478: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5479: ||l_stmt_num||'): '||x_err_buf);
5480: return(x_return_code);
5481: END IF;

Line 5516: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

5512: and TO_INTRAOPERATION_STEP_TYPE = p_from_intraop_step_type;
5513: EXCEPTION
5514: WHEN NO_DATA_FOUND THEN
5515: x_return_code := 1;
5516: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'move');
5518: x_err_buf := FND_MESSAGE.GET;
5519: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5520: || l_stmt_num||'): '||x_err_buf);

Line 5517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'move');

5513: EXCEPTION
5514: WHEN NO_DATA_FOUND THEN
5515: x_return_code := 1;
5516: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'move');
5518: x_err_buf := FND_MESSAGE.GET;
5519: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5520: || l_stmt_num||'): '||x_err_buf);
5521: return(x_return_code);

Line 5518: x_err_buf := FND_MESSAGE.GET;

5514: WHEN NO_DATA_FOUND THEN
5515: x_return_code := 1;
5516: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5517: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'move');
5518: x_err_buf := FND_MESSAGE.GET;
5519: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5520: || l_stmt_num||'): '||x_err_buf);
5521: return(x_return_code);
5522: END;

Line 5548: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

5544: -- Check if the original move qty is the same as the given txn qty. If not, error out
5545:
5546: IF (l_orig_mv_txn_qty <> p_txn_qty) THEN
5547: x_return_code := 1;
5548: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5549: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
5550: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
5551: x_err_buf := FND_MESSAGE.GET;
5552: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='

Line 5549: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');

5545:
5546: IF (l_orig_mv_txn_qty <> p_txn_qty) THEN
5547: x_return_code := 1;
5548: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5549: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
5550: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
5551: x_err_buf := FND_MESSAGE.GET;
5552: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5553: ||l_stmt_num||'): '||x_err_buf);

Line 5550: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253

5546: IF (l_orig_mv_txn_qty <> p_txn_qty) THEN
5547: x_return_code := 1;
5548: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5549: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
5550: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
5551: x_err_buf := FND_MESSAGE.GET;
5552: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5553: ||l_stmt_num||'): '||x_err_buf);
5554: return(x_return_code);

Line 5551: x_err_buf := FND_MESSAGE.GET;

5547: x_return_code := 1;
5548: --FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
5549: --FND_MESSAGE.SET_TOKEN('FLD_NAME', 'transaction_quantity');
5550: FND_MESSAGE.SET_NAME('WSM', 'WSM_LOT_INVALID_CANDIDATE'); -- Fix for bug #2095253
5551: x_err_buf := FND_MESSAGE.GET;
5552: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.validate_lot_txn_for_bk_move(stmt_num='
5553: ||l_stmt_num||'): '||x_err_buf);
5554: return(x_return_code);
5555: END IF;

Line 5710: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');

5706:
5707: EXCEPTION
5708: WHEN NO_DATA_FOUND THEN
5709: x_return_code := 1;
5710: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');
5711: x_err_buf := FND_MESSAGE.GET;
5712: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.set_undo_txn_id(stmt_num=' ||
5713: l_stmt_num || '): ' ||x_err_buf);
5714: return(x_return_code);

Line 5711: x_err_buf := FND_MESSAGE.GET;

5707: EXCEPTION
5708: WHEN NO_DATA_FOUND THEN
5709: x_return_code := 1;
5710: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');
5711: x_err_buf := FND_MESSAGE.GET;
5712: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.set_undo_txn_id(stmt_num=' ||
5713: l_stmt_num || '): ' ||x_err_buf);
5714: return(x_return_code);
5715:

Line 5763: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');

5759:
5760: EXCEPTION
5761: WHEN NO_DATA_FOUND THEN
5762: x_return_code := 1;
5763: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');
5764: x_err_buf := FND_MESSAGE.GET;
5765: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.set_undo_txn_id(stmt_num=' ||
5766: l_stmt_num || '): ' ||x_err_buf);
5767: return(x_return_code);

Line 5764: x_err_buf := FND_MESSAGE.GET;

5760: EXCEPTION
5761: WHEN NO_DATA_FOUND THEN
5762: x_return_code := 1;
5763: FND_MESSAGE.SET_NAME('WSM', 'WSM_SET_UNDO_TXN_ID_FAILED');
5764: x_err_buf := FND_MESSAGE.GET;
5765: fnd_file.put_line(fnd_file.log, 'WSMPLBMI.set_undo_txn_id(stmt_num=' ||
5766: l_stmt_num || '): ' ||x_err_buf);
5767: return(x_return_code);
5768:

Line 5985: FND_MESSAGE.SET_NAME('WSM','WSM_MES_INS_ERR_INFO');

5981: and bre.resource_id = p_resource_id
5982: and bre.instance_id = p_resource_instance_id
5983: and bre.organization_id = p_organization_id;
5984:
5985: FND_MESSAGE.SET_NAME('WSM','WSM_MES_INS_ERR_INFO');
5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);
5988: ELSE
5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');

Line 5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);

5982: and bre.instance_id = p_resource_instance_id
5983: and bre.organization_id = p_organization_id;
5984:
5985: FND_MESSAGE.SET_NAME('WSM','WSM_MES_INS_ERR_INFO');
5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);
5988: ELSE
5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');
5990: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);

Line 5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);

5983: and bre.organization_id = p_organization_id;
5984:
5985: FND_MESSAGE.SET_NAME('WSM','WSM_MES_INS_ERR_INFO');
5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);
5988: ELSE
5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');
5990: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5991: END IF;

Line 5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');

5985: FND_MESSAGE.SET_NAME('WSM','WSM_MES_INS_ERR_INFO');
5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);
5988: ELSE
5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');
5990: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5991: END IF;
5992:
5993: FND_MSG_PUB.add;

Line 5990: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);

5986: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5987: FND_MESSAGE.SET_TOKEN('INSTANCE', l_resource_instance);
5988: ELSE
5989: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RES_ERR_INFO');
5990: FND_MESSAGE.SET_TOKEN('RESOURCE', l_resource_code);
5991: END IF;
5992:
5993: FND_MSG_PUB.add;
5994: END add_Resource_error_info;

Line 6325: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');

6321: AND wlmti.status = WIP_CONSTANTS.PENDING
6322: AND wlmti.transaction_date <= SYSDATE+1;
6323:
6324: IF (SQL%ROWCOUNT = 0) THEN
6325: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
6326: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'STATUS');
6327: errbuf := FND_MESSAGE.GET;
6328: fnd_file.put_line(fnd_file.log, errbuf);
6329: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);

Line 6326: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'STATUS');

6322: AND wlmti.transaction_date <= SYSDATE+1;
6323:
6324: IF (SQL%ROWCOUNT = 0) THEN
6325: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
6326: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'STATUS');
6327: errbuf := FND_MESSAGE.GET;
6328: fnd_file.put_line(fnd_file.log, errbuf);
6329: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);
6330: return;

Line 6327: errbuf := FND_MESSAGE.GET;

6323:
6324: IF (SQL%ROWCOUNT = 0) THEN
6325: FND_MESSAGE.SET_NAME('WSM', 'WSM_UPDATE_INVALID');
6326: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'STATUS');
6327: errbuf := FND_MESSAGE.GET;
6328: fnd_file.put_line(fnd_file.log, errbuf);
6329: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);
6330: return;
6331: ELSE

Line 6341: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');

6337: COMMIT;
6338: END IF;
6339: END IF;
6340: ELSE
6341: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
6342: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'GROUP_ID');
6343: errbuf := FND_MESSAGE.GET;
6344: fnd_file.put_line(fnd_file.log, errbuf);
6345: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);

Line 6342: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'GROUP_ID');

6338: END IF;
6339: END IF;
6340: ELSE
6341: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
6342: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'GROUP_ID');
6343: errbuf := FND_MESSAGE.GET;
6344: fnd_file.put_line(fnd_file.log, errbuf);
6345: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);
6346: return;

Line 6343: errbuf := FND_MESSAGE.GET;

6339: END IF;
6340: ELSE
6341: FND_MESSAGE.SET_NAME('WSM', 'WSM_INVALID_FIELD');
6342: FND_MESSAGE.SET_TOKEN('FLD_NAME', 'GROUP_ID');
6343: errbuf := FND_MESSAGE.GET;
6344: fnd_file.put_line(fnd_file.log, errbuf);
6345: l_conc_status := FND_CONCURRENT.SET_COMPLETION_STATUS('ERROR', errbuf);
6346: return;
6347: END IF;

Line 6352: FND_MESSAGE.SET_NAME('WSM', 'WSM_ERRORS_IN_WIE');

6348:
6349: l_stmt_num := 30;
6350:
6351: --move enh getting the generic message to be used in all errors and warnings
6352: FND_MESSAGE.SET_NAME('WSM', 'WSM_ERRORS_IN_WIE');
6353: g_fnd_generic_err_msg := FND_MESSAGE.GET;
6354:
6355: --move enh
6356: LOOP /* outer loop */

Line 6353: g_fnd_generic_err_msg := FND_MESSAGE.GET;

6349: l_stmt_num := 30;
6350:
6351: --move enh getting the generic message to be used in all errors and warnings
6352: FND_MESSAGE.SET_NAME('WSM', 'WSM_ERRORS_IN_WIE');
6353: g_fnd_generic_err_msg := FND_MESSAGE.GET;
6354:
6355: --move enh
6356: LOOP /* outer loop */
6357: IF (l_debug = 'Y') THEN

Line 6613: fnd_message.set_name('WSM','WSM_OP_PURCHASE_REQ');

6609: NULL,
6610: l_organization_id,
6611: l_fm_op_seq_num,
6612: 5 ))) then
6613: fnd_message.set_name('WSM','WSM_OP_PURCHASE_REQ');
6614: l_error_msg := fnd_message.get;
6615: --move enh? consider warnings
6616: error_handler(p_header_id => l_header_id
6617: , p_transaction_id => l_transaction_id

Line 6614: l_error_msg := fnd_message.get;

6610: l_organization_id,
6611: l_fm_op_seq_num,
6612: 5 ))) then
6613: fnd_message.set_name('WSM','WSM_OP_PURCHASE_REQ');
6614: l_error_msg := fnd_message.get;
6615: --move enh? consider warnings
6616: error_handler(p_header_id => l_header_id
6617: , p_transaction_id => l_transaction_id
6618: , p_error_msg => l_error_msg

Line 6799: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAP_YIELD_LIMIT');

6795: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6796: p_run_log_level => l_log_level
6797: );
6798:
6799: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAP_YIELD_LIMIT');
6800: FND_MSG_PUB.add;
6801: *************************No need to throw error************************************/
6802: END IF;
6803:

Line 6863: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');

6859: p_wsm_warning => NULL,
6860: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6861: p_run_log_level => l_log_level
6862: );
6863: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');
6864: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6865: FND_MSG_PUB.add;
6866: ROLLBACK TO validation;
6867: RAISE FND_API.G_EXC_ERROR;

Line 6864: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);

6860: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6861: p_run_log_level => l_log_level
6862: );
6863: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');
6864: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6865: FND_MSG_PUB.add;
6866: ROLLBACK TO validation;
6867: RAISE FND_API.G_EXC_ERROR;
6868:

Line 6905: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAP_CODE_MAX_QTY');

6901: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6902: p_run_log_level => l_log_level
6903: );
6904:
6905: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAP_CODE_MAX_QTY');
6906: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6907: FND_MSG_PUB.add;
6908: *************************No need to throw error***********************************/
6909: END IF;

Line 6906: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);

6902: p_run_log_level => l_log_level
6903: );
6904:
6905: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAP_CODE_MAX_QTY');
6906: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6907: FND_MSG_PUB.add;
6908: *************************No need to throw error***********************************/
6909: END IF;
6910: l_total_scrap_code_qty := l_total_scrap_code_qty + nvl(p_scrap_code_qty_tbls(l_header_id)(i), 0);

Line 6929: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAPCODEQTY_MISMATCH');

6925: p_wsm_warning => NULL,
6926: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6927: p_run_log_level => l_log_level
6928: );
6929: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAPCODEQTY_MISMATCH');
6930: FND_MSG_PUB.add;
6931: ROLLBACK TO validation;
6932: RAISE FND_API.G_EXC_ERROR;
6933:

Line 6987: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');

6983: p_wsm_warning => NULL,
6984: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6985: p_run_log_level => l_log_level
6986: );
6987: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');
6988: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6989: FND_MSG_PUB.add;
6990: ROLLBACK TO validation;
6991: RAISE FND_API.G_EXC_ERROR;

Line 6988: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);

6984: p_fnd_log_level => G_LOG_LEVEL_ERROR,
6985: p_run_log_level => l_log_level
6986: );
6987: FND_MESSAGE.SET_NAME('WSM','WSM_MES_FIELD_NEGATIVE');
6988: FND_MESSAGE.SET_TOKEN('FIELD_NAME', l_msg_tokens(0).TokenValue);
6989: FND_MSG_PUB.add;
6990: ROLLBACK TO validation;
6991: RAISE FND_API.G_EXC_ERROR;
6992:

Line 7016: FND_MESSAGE.SET_NAME('WSM','WSM_MES_BONUSCODEQTY_MISMATCH');

7012: p_wsm_warning => NULL,
7013: p_fnd_log_level => G_LOG_LEVEL_ERROR,
7014: p_run_log_level => l_log_level
7015: );
7016: FND_MESSAGE.SET_NAME('WSM','WSM_MES_BONUSCODEQTY_MISMATCH');
7017: FND_MSG_PUB.add;
7018: ROLLBACK TO validation;
7019: RAISE FND_API.G_EXC_ERROR;
7020:

Line 7083: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAPSERIAL_QTY');

7079: p_wsm_warning => NULL,
7080: p_fnd_log_level => G_LOG_LEVEL_ERROR,
7081: p_run_log_level => l_log_level
7082: );
7083: FND_MESSAGE.SET_NAME('WSM','WSM_MES_SCRAPSERIAL_QTY');
7084: FND_MSG_PUB.add;
7085: ROLLBACK TO validation;
7086: RAISE FND_API.G_EXC_ERROR;
7087: END IF;

Line 7148: FND_MESSAGE.SET_NAME('WSM','WSM_MES_BONUSSERIAL_QTY');

7144: p_wsm_warning => NULL,
7145: p_fnd_log_level => G_LOG_LEVEL_ERROR,
7146: p_run_log_level => l_log_level
7147: );
7148: FND_MESSAGE.SET_NAME('WSM','WSM_MES_BONUSSERIAL_QTY');
7149: FND_MSG_PUB.add;
7150: ROLLBACK TO validation;
7151: RAISE FND_API.G_EXC_ERROR;
7152:

Line 7232: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>CURRENTDATE');

7228: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7229: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7230: , p_organization_id => l_organization_id
7231: );
7232: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>CURRENTDATE');
7233: FND_MSG_PUB.add;
7234: ROLLBACK TO validation;
7235: RAISE FND_API.G_EXC_ERROR;
7236:

Line 7265: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RESCOMPL

7261: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7262: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7263: , p_organization_id => l_organization_id
7264: );
7265: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RESCOMPL 7266: FND_MSG_PUB.add;
7267: ROLLBACK TO validation;
7268: RAISE FND_API.G_EXC_ERROR;
7269: END IF;

Line 7357: FND_MESSAGE.SET_NAME('WSM','WSM_MES_OVERLAP_RES_DATES');

7353: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7354: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7355: , p_organization_id => l_organization_id
7356: );
7357: FND_MESSAGE.SET_NAME('WSM','WSM_MES_OVERLAP_RES_DATES');
7358: FND_MSG_PUB.add;
7359: ROLLBACK TO validation;
7360: RAISE FND_API.G_EXC_ERROR;
7361:

Line 7390: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>RESSTARTDATE');

7386: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7387: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7388: , p_organization_id => l_organization_id
7389: );
7390: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>RESSTARTDATE');
7391: FND_MSG_PUB.add;
7392: ROLLBACK TO validation;
7393: RAISE FND_API.G_EXC_ERROR;
7394:

Line 7421: FND_MESSAGE.SET_NAME('WSM','WSM_MES_COMPL

7417: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7418: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7419: , p_organization_id => l_organization_id
7420: );
7421: FND_MESSAGE.SET_NAME('WSM','WSM_MES_COMPL 7422: FND_MSG_PUB.add;
7423: ROLLBACK TO validation;
7424: RAISE FND_API.G_EXC_ERROR;
7425: END IF;

Line 7459: FND_MESSAGE.SET_NAME('WSM','WSM_MES_COMPL

7455: p_wsm_warning => NULL,
7456: p_fnd_log_level => G_LOG_LEVEL_ERROR,
7457: p_run_log_level => l_log_level
7458: );
7459: FND_MESSAGE.SET_NAME('WSM','WSM_MES_COMPL 7460: FND_MSG_PUB.add;
7461: ROLLBACK TO validation;
7462: RAISE FND_API.G_EXC_ERROR;
7463:

Line 7557: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>CURRENTDATE');

7553: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7554: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7555: , p_organization_id => l_organization_id
7556: );
7557: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>CURRENTDATE');
7558: FND_MSG_PUB.add;
7559: ROLLBACK TO validation;
7560: RAISE FND_API.G_EXC_ERROR;
7561: END IF;

Line 7584: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RESPROJCOMPL

7580: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7581: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7582: , p_organization_id => l_organization_id
7583: );
7584: FND_MESSAGE.SET_NAME('WSM','WSM_MES_RESPROJCOMPL 7585: FND_MSG_PUB.add;
7586: ROLLBACK TO validation;
7587: RAISE FND_API.G_EXC_ERROR;
7588: END IF;

Line 7610: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>RESSTARTDATE');

7606: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7607: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7608: , p_organization_id => l_organization_id
7609: );
7610: FND_MESSAGE.SET_NAME('WSM','WSM_MES_START>RESSTARTDATE');
7611: FND_MSG_PUB.add;
7612: ROLLBACK TO validation;
7613: RAISE FND_API.G_EXC_ERROR;
7614: END IF;

Line 7638: FND_MESSAGE.SET_NAME('WSM','WSM_MES_PROJCOMPL

7634: , p_resource_instance_id => p_jobop_resource_usages_tbls(l_header_id)(i).instance_id
7635: , p_resource_serial_number => p_jobop_resource_usages_tbls(l_header_id)(i).serial_number
7636: , p_organization_id => l_organization_id
7637: );
7638: FND_MESSAGE.SET_NAME('WSM','WSM_MES_PROJCOMPL 7639: FND_MSG_PUB.add;
7640: ROLLBACK TO validation;
7641: RAISE FND_API.G_EXC_ERROR;
7642:

Line 7664: FND_MESSAGE.SET_NAME('WSM','WSM_MES_PROJCOMPL

7660: p_fnd_log_level => G_LOG_LEVEL_ERROR,
7661: p_run_log_level => l_log_level
7662: );
7663:
7664: FND_MESSAGE.SET_NAME('WSM','WSM_MES_PROJCOMPL 7665: FND_MSG_PUB.add;
7666: ROLLBACK TO validation;
7667: RAISE FND_API.G_EXC_ERROR;
7668:

Line 8679: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');

8675: IF (l_count = 0) THEN
8676: fnd_file.put_line(fnd_file.log, 'WARNING: Could not insert into WMTI');
8677:
8678: l_stmt_num := 230;
8679: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
8680: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
8681: l_error_msg := FND_MESSAGE.GET;
8682: ROLLBACK TO VALIDATION;
8683:

Line 8680: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');

8676: fnd_file.put_line(fnd_file.log, 'WARNING: Could not insert into WMTI');
8677:
8678: l_stmt_num := 230;
8679: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
8680: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
8681: l_error_msg := FND_MESSAGE.GET;
8682: ROLLBACK TO VALIDATION;
8683:
8684: error_handler(p_header_id => l_header_id

Line 8681: l_error_msg := FND_MESSAGE.GET;

8677:
8678: l_stmt_num := 230;
8679: FND_MESSAGE.SET_NAME('WSM', 'WSM_INS_TBL_FAILED');
8680: FND_MESSAGE.SET_TOKEN('TABLE', 'wip_move_txn_interface');
8681: l_error_msg := FND_MESSAGE.GET;
8682: ROLLBACK TO VALIDATION;
8683:
8684: error_handler(p_header_id => l_header_id
8685: , p_transaction_id => l_transaction_id

Line 11610: fnd_message.set_name('WIP', 'WIP_TMPINSERT_ERR');

11606: and mti.inventory_item_id = msik.inventory_item_id
11607: and mti.organization_id = msik.organization_id;
11608:
11609: for i in 1..l_itemNameTbl.count loop
11610: fnd_message.set_name('WIP', 'WIP_TMPINSERT_ERR');
11611: fnd_message.set_token('ITEM_NAME', l_itemNameTbl(i));
11612: fnd_message.set_token('ERR_MSG', l_errExplTbl(i));
11613: fnd_msg_pub.add;
11614: fnd_msg_pub.get

Line 11611: fnd_message.set_token('ITEM_NAME', l_itemNameTbl(i));

11607: and mti.organization_id = msik.organization_id;
11608:
11609: for i in 1..l_itemNameTbl.count loop
11610: fnd_message.set_name('WIP', 'WIP_TMPINSERT_ERR');
11611: fnd_message.set_token('ITEM_NAME', l_itemNameTbl(i));
11612: fnd_message.set_token('ERR_MSG', l_errExplTbl(i));
11613: fnd_msg_pub.add;
11614: fnd_msg_pub.get
11615: ( p_msg_index => fnd_msg_pub.G_NEXT - 1,

Line 11612: fnd_message.set_token('ERR_MSG', l_errExplTbl(i));

11608:
11609: for i in 1..l_itemNameTbl.count loop
11610: fnd_message.set_name('WIP', 'WIP_TMPINSERT_ERR');
11611: fnd_message.set_token('ITEM_NAME', l_itemNameTbl(i));
11612: fnd_message.set_token('ERR_MSG', l_errExplTbl(i));
11613: fnd_msg_pub.add;
11614: fnd_msg_pub.get
11615: ( p_msg_index => fnd_msg_pub.G_NEXT - 1,
11616: p_encoded => 'T',

Line 11957: FND_MESSAGE.set_encoded(l_err_msg_tbl(i));

11953: CLOSE C_WIE;
11954:
11955: LOOP
11956: IF l_err_msg_tbl.exists(i) THEN
11957: FND_MESSAGE.set_encoded(l_err_msg_tbl(i));
11958: FND_MSG_PUB.add;
11959: i := i+1;
11960: ELSE
11961: EXIT;