699: g_progress := '306';
700: IF g_debug_stmt THEN
701: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
702: p_token => g_progress,
703: p_message => 'Before calling PO_LINE_LOCATIONS_SV1.val_location_id for Ship to location');
704: END IF;
705:
706: is_valid := PO_LINE_LOCATIONS_SV1.val_location_id(
707: X_location_id => g_cpa_csr.ship_to_location_id,
702: p_token => g_progress,
703: p_message => 'Before calling PO_LINE_LOCATIONS_SV1.val_location_id for Ship to location');
704: END IF;
705:
706: is_valid := PO_LINE_LOCATIONS_SV1.val_location_id(
707: X_location_id => g_cpa_csr.ship_to_location_id,
708: X_location_type => 'SHIP_TO');
709: g_progress := '307';
710: IF g_debug_stmt THEN
709: g_progress := '307';
710: IF g_debug_stmt THEN
711: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
712: p_token => g_progress,
713: p_message => 'After calling PO_LINE_LOCATIONS_SV1.val_location_id for Ship to Location');
714: END IF;
715: IF (is_valid = FALSE) THEN
716: g_progress := '308';
717: IF g_debug_stmt THEN
728: g_progress := '309';
729: IF g_debug_stmt THEN
730: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
731: p_token => g_progress,
732: p_message => 'Before calling PO_LINE_LOCATIONS_SV1.val_location_id for Bill to location');
733: END IF;
734:
735: is_valid := PO_LINE_LOCATIONS_SV1.val_location_id(
736: X_location_id => g_cpa_csr.bill_to_location_id,
731: p_token => g_progress,
732: p_message => 'Before calling PO_LINE_LOCATIONS_SV1.val_location_id for Bill to location');
733: END IF;
734:
735: is_valid := PO_LINE_LOCATIONS_SV1.val_location_id(
736: X_location_id => g_cpa_csr.bill_to_location_id,
737: X_location_type => 'BILL_TO');
738: g_progress := '310';
739: IF g_debug_stmt THEN
738: g_progress := '310';
739: IF g_debug_stmt THEN
740: PO_DEBUG.debug_stmt(p_log_head => g_log_head||l_api_name,
741: p_token => g_progress,
742: p_message => 'After calling PO_LINE_LOCATIONS_SV1.val_location_id for Bill to location');
743: END IF;
744:
745: IF (is_valid = FALSE) THEN
746: g_progress := '311';