sql API

procedure create_batch_line
  (p_validate                      in     boolean  default false
  ,p_session_date                  in     date
  ,p_batch_id                      in     number
  ,p_batch_line_status             in     varchar2 default ‘U‘
  ,p_assignment_id                 in     number   default null
  ,p_assignment_number             in     varchar2 default null
  ,p_attribute_category            in     varchar2 default null
  ,p_attribute1                    in     varchar2 default null
  ,p_attribute2                    in     varchar2 default null
  ,p_attribute3                    in     varchar2 default null
  ,p_attribute4                    in     varchar2 default null
  ,p_attribute5                    in     varchar2 default null
  ,p_attribute6                    in     varchar2 default null
  ,p_attribute7                    in     varchar2 default null
  ,p_attribute8                    in     varchar2 default null
  ,p_attribute9                    in     varchar2 default null
  ,p_attribute10                   in     varchar2 default null
  ,p_attribute11                   in     varchar2 default null
  ,p_attribute12                   in     varchar2 default null
  ,p_attribute13                   in     varchar2 default null
  ,p_attribute14                   in     varchar2 default null
  ,p_attribute15                   in     varchar2 default null
  ,p_attribute16                   in     varchar2 default null
  ,p_attribute17                   in     varchar2 default null
  ,p_attribute18                   in     varchar2 default null
  ,p_attribute19                   in     varchar2 default null
  ,p_attribute20                   in     varchar2 default null
  ,p_entry_information_category    in     varchar2 default null
  ,p_entry_information1            in     varchar2 default null
  ,p_entry_information2            in     varchar2 default null
  ,p_entry_information3            in     varchar2 default null
  ,p_entry_information4            in     varchar2 default null
  ,p_entry_information5            in     varchar2 default null
  ,p_entry_information6            in     varchar2 default null
  ,p_entry_information7            in     varchar2 default null
  ,p_entry_information8            in     varchar2 default null
  ,p_entry_information9            in     varchar2 default null
  ,p_entry_information10           in     varchar2 default null
  ,p_entry_information11           in     varchar2 default null
  ,p_entry_information12           in     varchar2 default null
  ,p_entry_information13           in     varchar2 default null
  ,p_entry_information14           in     varchar2 default null
  ,p_entry_information15           in     varchar2 default null
  ,p_entry_information16           in     varchar2 default null
  ,p_entry_information17           in     varchar2 default null
  ,p_entry_information18           in     varchar2 default null
  ,p_entry_information19           in     varchar2 default null
  ,p_entry_information20           in     varchar2 default null
  ,p_entry_information21           in     varchar2 default null
  ,p_entry_information22           in     varchar2 default null
  ,p_entry_information23           in     varchar2 default null
  ,p_entry_information24           in     varchar2 default null
  ,p_entry_information25           in     varchar2 default null
  ,p_entry_information26           in     varchar2 default null
  ,p_entry_information27           in     varchar2 default null
  ,p_entry_information28           in     varchar2 default null
  ,p_entry_information29           in     varchar2 default null
  ,p_entry_information30           in     varchar2 default null
  ,p_date_earned                   in     date     default null
  ,p_personal_payment_method_id    in     number   default null
  ,p_subpriority                   in     number   default null
  ,p_batch_sequence                in     number   default null
  ,p_concatenated_segments         in     varchar2 default null
  ,p_cost_allocation_keyflex_id    in     number   default null
  ,p_effective_date                in     date     default null
  ,p_effective_start_date          in     date     default null
  ,p_effective_end_date            in     date     default null
  ,p_element_name                  in     varchar2 default null
  ,p_element_type_id               in     number   default null
  ,p_entry_type                    in     varchar2 default null
  ,p_reason                        in     varchar2 default null
  ,p_segment1                      in     varchar2 default null
  ,p_segment2                      in     varchar2 default null
  ,p_segment3                      in     varchar2 default null
  ,p_segment4                      in     varchar2 default null
  ,p_segment5                      in     varchar2 default null
  ,p_segment6                      in     varchar2 default null
  ,p_segment7                      in     varchar2 default null
  ,p_segment8                      in     varchar2 default null
  ,p_segment9                      in     varchar2 default null
  ,p_segment10                     in     varchar2 default null
  ,p_segment11                     in     varchar2 default null
  ,p_segment12                     in     varchar2 default null
  ,p_segment13                     in     varchar2 default null
  ,p_segment14                     in     varchar2 default null
  ,p_segment15                     in     varchar2 default null
  ,p_segment16                     in     varchar2 default null
  ,p_segment17                     in     varchar2 default null
  ,p_segment18                     in     varchar2 default null
  ,p_segment19                     in     varchar2 default null
  ,p_segment20                     in     varchar2 default null
  ,p_segment21                     in     varchar2 default null
  ,p_segment22                     in     varchar2 default null
  ,p_segment23                     in     varchar2 default null
  ,p_segment24                     in     varchar2 default null
  ,p_segment25                     in     varchar2 default null
  ,p_segment26                     in     varchar2 default null
  ,p_segment27                     in     varchar2 default null
  ,p_segment28                     in     varchar2 default null
  ,p_segment29                     in     varchar2 default null
  ,p_segment30                     in     varchar2 default null
  ,p_value_1                       in     varchar2 default null
  ,p_value_2                       in     varchar2 default null
  ,p_value_3                       in     varchar2 default null
  ,p_value_4                       in     varchar2 default null
  ,p_value_5                       in     varchar2 default null
  ,p_value_6                       in     varchar2 default null
  ,p_value_7                       in     varchar2 default null
  ,p_value_8                       in     varchar2 default null
  ,p_value_9                       in     varchar2 default null
  ,p_value_10                      in     varchar2 default null
  ,p_value_11                      in     varchar2 default null
  ,p_value_12                      in     varchar2 default null
  ,p_value_13                      in     varchar2 default null
  ,p_value_14                      in     varchar2 default null
  ,p_value_15                      in     varchar2 default null
  ,p_canonical_date_format         in     varchar2 default ‘Y‘
  ,p_iv_all_internal_format        in     varchar2 default ‘N‘
  ,p_batch_line_id                    out nocopy number
  ,p_object_version_number            out nocopy number
  ) is
  --
  -- Declare cursors and local variables
  --
  l_proc                   varchar2(72) := g_package||‘create_batch_line‘;
  l_batch_line_id          pay_batch_lines.batch_line_id%TYPE;
  l_object_version_number  pay_batch_lines.object_version_number%TYPE;
  l_session_date           date;
  l_effective_date         date;
  l_effective_start_date   date;
  l_effective_end_date     date;
  l_date_earned            date;
  --
  l_value_1                pay_batch_lines.value_1%TYPE := p_value_1;
  l_value_2                pay_batch_lines.value_2%TYPE := p_value_2;
  l_value_3                pay_batch_lines.value_3%TYPE := p_value_3;
  l_value_4                pay_batch_lines.value_4%TYPE := p_value_4;
  l_value_5                pay_batch_lines.value_5%TYPE := p_value_5;
  l_value_6                pay_batch_lines.value_6%TYPE := p_value_6;
  l_value_7                pay_batch_lines.value_7%TYPE := p_value_7;
  l_value_8                pay_batch_lines.value_8%TYPE := p_value_8;
  l_value_9                pay_batch_lines.value_9%TYPE := p_value_9;
  l_value_10               pay_batch_lines.value_10%TYPE := p_value_10;
  l_value_11               pay_batch_lines.value_11%TYPE := p_value_11;
  l_value_12               pay_batch_lines.value_12%TYPE := p_value_12;
  l_value_13               pay_batch_lines.value_13%TYPE := p_value_13;
  l_value_14               pay_batch_lines.value_14%TYPE := p_value_14;
  l_value_15               pay_batch_lines.value_15%TYPE := p_value_15;
  --
  l_bee_iv_upgrade  varchar2(1);
  --
begin
  hr_utility.set_location(‘Entering:‘|| l_proc, 10);
  --
  -- Issue a savepoint
  --
  savepoint create_batch_line;
  --
  -- Truncate the time portion from all IN date parameters
  --
  l_session_date         := trunc(p_session_date);
  --l_effective_date       := trunc(p_effective_date);
/*If effective date is not passed, then we are setting the session date
    passed as effective date.*/
  if (p_effective_date is null) then
      l_effective_date := trunc(p_session_date);
  else
      l_effective_date := trunc(p_effective_date);
  end if;
  l_effective_start_date := trunc(p_effective_start_date);
  l_effective_end_date   := trunc(p_effective_end_date);
  l_date_earned          := trunc(p_date_earned);
  --
  l_bee_iv_upgrade := get_upgrade_status(p_batch_id,null,‘BEE_IV_UPG‘);
  --
  -- Check whether the upgrade process is in progress.
  --
  if l_bee_iv_upgrade = ‘E‘ then
     hr_utility.set_message(800, ‘HR_449106_BEE_UPGRADING‘);
     hr_utility.raise_error;
  end if;
  --
  if p_iv_all_internal_format = ‘Y‘ and l_bee_iv_upgrade = ‘N‘ then
    fnd_message.set_name(‘PAY‘, ‘HR_7462_PLK_INVLD_VALUE‘);
    fnd_message.set_token(‘COLUMN_NAME‘,‘P_IV_ALL_INTERNAL_FORMAT‘);
    fnd_message.raise_error;
  end if;
  --
  if p_iv_all_internal_format = ‘Y‘ and p_canonical_date_format = ‘N‘ then
    fnd_message.set_name(‘PAY‘, ‘HR_7462_PLK_INVLD_VALUE‘);
    fnd_message.set_token(‘COLUMN_NAME‘,‘P_CANONICAL_DATE_FORMAT‘);
    fnd_message.raise_error;
  end if;
  --
  --
  if p_iv_all_internal_format <> ‘Y‘ then
     convert_date_to_canonical
     (p_iv1               => l_value_1
     ,p_iv2               => l_value_2
     ,p_iv3               => l_value_3
     ,p_iv4               => l_value_4
     ,p_iv5               => l_value_5
     ,p_iv6               => l_value_6
     ,p_iv7               => l_value_7
     ,p_iv8               => l_value_8
     ,p_iv9               => l_value_9
     ,p_iv10              => l_value_10
     ,p_iv11              => l_value_11
     ,p_iv12              => l_value_12
     ,p_iv13              => l_value_13
     ,p_iv14              => l_value_14
     ,p_iv15              => l_value_15
     ,p_element_type_id   => p_element_type_id
     ,p_element_name      => p_element_name
     ,p_batch_id          => p_batch_id
     ,p_effective_date    => l_effective_date
     ,p_date_cfmt         => p_canonical_date_format
     ,p_int_fmt           => l_bee_iv_upgrade
     );
  end if;
  --
  -- Call Before Process User Hook
  --
  begin
    pay_batch_element_entry_bk2.create_batch_line_b
      (p_session_date                   => l_session_date
      ,p_batch_id                       => p_batch_id
      ,p_batch_line_status              => p_batch_line_status
      ,p_assignment_id                  => p_assignment_id
      ,p_assignment_number              => p_assignment_number
      ,p_attribute_category             => p_attribute_category
      ,p_attribute1                     => p_attribute1
      ,p_attribute2                     => p_attribute2
      ,p_attribute3                     => p_attribute3
      ,p_attribute4                     => p_attribute4
      ,p_attribute5                     => p_attribute5
      ,p_attribute6                     => p_attribute6
      ,p_attribute7                     => p_attribute7
      ,p_attribute8                     => p_attribute8
      ,p_attribute9                     => p_attribute9
      ,p_attribute10                    => p_attribute10
      ,p_attribute11                    => p_attribute11
      ,p_attribute12                    => p_attribute12
      ,p_attribute13                    => p_attribute13
      ,p_attribute14                    => p_attribute14
      ,p_attribute15                    => p_attribute15
      ,p_attribute16                    => p_attribute16
      ,p_attribute17                    => p_attribute17
      ,p_attribute18                    => p_attribute18
      ,p_attribute19                    => p_attribute19
      ,p_attribute20                    => p_attribute20
      ,p_entry_information_category     => p_entry_information_category
      ,p_entry_information1             => p_entry_information1
      ,p_entry_information2             => p_entry_information2
      ,p_entry_information3             => p_entry_information3
      ,p_entry_information4             => p_entry_information4
      ,p_entry_information5             => p_entry_information5
      ,p_entry_information6             => p_entry_information6
      ,p_entry_information7             => p_entry_information7
      ,p_entry_information8             => p_entry_information8
      ,p_entry_information9             => p_entry_information9
      ,p_entry_information10            => p_entry_information10
      ,p_entry_information11            => p_entry_information11
      ,p_entry_information12            => p_entry_information12
      ,p_entry_information13            => p_entry_information13
      ,p_entry_information14            => p_entry_information14
      ,p_entry_information15            => p_entry_information15
      ,p_entry_information16            => p_entry_information16
      ,p_entry_information17            => p_entry_information17
      ,p_entry_information18            => p_entry_information18
      ,p_entry_information19            => p_entry_information19
      ,p_entry_information20            => p_entry_information20
      ,p_entry_information21            => p_entry_information21
      ,p_entry_information22            => p_entry_information22
      ,p_entry_information23            => p_entry_information23
      ,p_entry_information24            => p_entry_information24
      ,p_entry_information25            => p_entry_information25
      ,p_entry_information26            => p_entry_information26
      ,p_entry_information27            => p_entry_information27
      ,p_entry_information28            => p_entry_information28
      ,p_entry_information29            => p_entry_information29
      ,p_entry_information30            => p_entry_information30
      ,p_date_earned                    => l_date_earned
      ,p_personal_payment_method_id     => p_personal_payment_method_id
      ,p_subpriority                    => p_subpriority
      ,p_batch_sequence                 => p_batch_sequence
      ,p_concatenated_segments          => p_concatenated_segments
      ,p_cost_allocation_keyflex_id     => p_cost_allocation_keyflex_id
      ,p_effective_date                 => l_effective_date
      ,p_effective_start_date           => l_effective_start_date
      ,p_effective_end_date             => l_effective_end_date
      ,p_element_name                   => p_element_name
      ,p_element_type_id                => p_element_type_id
      ,p_entry_type                     => p_entry_type
      ,p_reason                         => p_reason
      ,p_segment1                       => p_segment1
      ,p_segment2                       => p_segment2
      ,p_segment3                       => p_segment3
      ,p_segment4                       => p_segment4
      ,p_segment5                       => p_segment5
      ,p_segment6                       => p_segment6
      ,p_segment7                       => p_segment7
      ,p_segment8                       => p_segment8
      ,p_segment9                       => p_segment9
      ,p_segment10                      => p_segment10
      ,p_segment11                      => p_segment11
      ,p_segment12                      => p_segment12
      ,p_segment13                      => p_segment13
      ,p_segment14                      => p_segment14
      ,p_segment15                      => p_segment15
      ,p_segment16                      => p_segment16
      ,p_segment17                      => p_segment17
      ,p_segment18                      => p_segment18
      ,p_segment19                      => p_segment19
      ,p_segment20                      => p_segment20
      ,p_segment21                      => p_segment21
      ,p_segment22                      => p_segment22
      ,p_segment23                      => p_segment23
      ,p_segment24                      => p_segment24
      ,p_segment25                      => p_segment25
      ,p_segment26                      => p_segment26
      ,p_segment27                      => p_segment27
      ,p_segment28                      => p_segment28
      ,p_segment29                      => p_segment29
      ,p_segment30                      => p_segment30
      ,p_value_1                        => l_value_1
      ,p_value_2                        => l_value_2
      ,p_value_3                        => l_value_3
      ,p_value_4                        => l_value_4
      ,p_value_5                        => l_value_5
      ,p_value_6                        => l_value_6
      ,p_value_7                        => l_value_7
      ,p_value_8                        => l_value_8
      ,p_value_9                        => l_value_9
      ,p_value_10                       => l_value_10
      ,p_value_11                       => l_value_11
      ,p_value_12                       => l_value_12
      ,p_value_13                       => l_value_13
      ,p_value_14                       => l_value_14
      ,p_value_15                       => l_value_15
      );
  exception
    when hr_api.cannot_find_prog_unit then
      hr_api.cannot_find_prog_unit_error
        (p_module_name => ‘create_batch_line_b‘
        ,p_hook_type   => ‘BP‘
        );
  end;
  --
  -- Validation in addition to Row Handlers
  --
  --
  -- Process Logic
  --
  pay_btl_ins.ins
      (p_session_date                => l_session_date
      ,p_batch_id                    => p_batch_id
      ,p_batch_line_status           => p_batch_line_status
      ,p_cost_allocation_keyflex_id  => p_cost_allocation_keyflex_id
      ,p_element_type_id             => p_element_type_id
      ,p_assignment_id               => p_assignment_id
      ,p_assignment_number           => p_assignment_number
      ,p_batch_sequence              => p_batch_sequence
      ,p_concatenated_segments       => p_concatenated_segments
      ,p_effective_date              => l_effective_date
      ,p_element_name                => p_element_name
      ,p_entry_type                  => p_entry_type
      ,p_reason                      => p_reason
      ,p_segment1                    => p_segment1
      ,p_segment2                    => p_segment2
      ,p_segment3                    => p_segment3
      ,p_segment4                    => p_segment4
      ,p_segment5                    => p_segment5
      ,p_segment6                    => p_segment6
      ,p_segment7                    => p_segment7
      ,p_segment8                    => p_segment8
      ,p_segment9                    => p_segment9
      ,p_segment10                   => p_segment10
      ,p_segment11                   => p_segment11
      ,p_segment12                   => p_segment12
      ,p_segment13                   => p_segment13
      ,p_segment14                   => p_segment14
      ,p_segment15                   => p_segment15
      ,p_segment16                   => p_segment16
      ,p_segment17                   => p_segment17
      ,p_segment18                   => p_segment18
      ,p_segment19                   => p_segment19
      ,p_segment20                   => p_segment20
      ,p_segment21                   => p_segment21
      ,p_segment22                   => p_segment22
      ,p_segment23                   => p_segment23
      ,p_segment24                   => p_segment24
      ,p_segment25                   => p_segment25
      ,p_segment26                   => p_segment26
      ,p_segment27                   => p_segment27
      ,p_segment28                   => p_segment28
      ,p_segment29                   => p_segment29
      ,p_segment30                   => p_segment30
      ,p_value_1                     => l_value_1
      ,p_value_2                     => l_value_2
      ,p_value_3                     => l_value_3
      ,p_value_4                     => l_value_4
      ,p_value_5                     => l_value_5
      ,p_value_6                     => l_value_6
      ,p_value_7                     => l_value_7
      ,p_value_8                     => l_value_8
      ,p_value_9                     => l_value_9
      ,p_value_10                    => l_value_10
      ,p_value_11                    => l_value_11
      ,p_value_12                    => l_value_12
      ,p_value_13                    => l_value_13
      ,p_value_14                    => l_value_14
      ,p_value_15                    => l_value_15
      ,p_attribute_category          => p_attribute_category
      ,p_attribute1                  => p_attribute1
      ,p_attribute2                  => p_attribute2
      ,p_attribute3                  => p_attribute3
      ,p_attribute4                  => p_attribute4
      ,p_attribute5                  => p_attribute5
      ,p_attribute6                  => p_attribute6
      ,p_attribute7                  => p_attribute7
      ,p_attribute8                  => p_attribute8
      ,p_attribute9                  => p_attribute9
      ,p_attribute10                 => p_attribute10
      ,p_attribute11                 => p_attribute11
      ,p_attribute12                 => p_attribute12
      ,p_attribute13                 => p_attribute13
      ,p_attribute14                 => p_attribute14
      ,p_attribute15                 => p_attribute15
      ,p_attribute16                 => p_attribute16
      ,p_attribute17                 => p_attribute17
      ,p_attribute18                 => p_attribute18
      ,p_attribute19                 => p_attribute19
      ,p_attribute20                 => p_attribute20
      ,p_entry_information_category  => p_entry_information_category
      ,p_entry_information1          => p_entry_information1
      ,p_entry_information2          => p_entry_information2
      ,p_entry_information3          => p_entry_information3
      ,p_entry_information4          => p_entry_information4
      ,p_entry_information5          => p_entry_information5
      ,p_entry_information6          => p_entry_information6
      ,p_entry_information7          => p_entry_information7
      ,p_entry_information8          => p_entry_information8
      ,p_entry_information9          => p_entry_information9
      ,p_entry_information10         => p_entry_information10
      ,p_entry_information11         => p_entry_information11
      ,p_entry_information12         => p_entry_information12
      ,p_entry_information13         => p_entry_information13
      ,p_entry_information14         => p_entry_information14
      ,p_entry_information15         => p_entry_information15
      ,p_entry_information16         => p_entry_information16
      ,p_entry_information17         => p_entry_information17
      ,p_entry_information18         => p_entry_information18
      ,p_entry_information19         => p_entry_information19
      ,p_entry_information20         => p_entry_information20
      ,p_entry_information21         => p_entry_information21
      ,p_entry_information22         => p_entry_information22
      ,p_entry_information23         => p_entry_information23
      ,p_entry_information24         => p_entry_information24
      ,p_entry_information25         => p_entry_information25
      ,p_entry_information26         => p_entry_information26
      ,p_entry_information27         => p_entry_information27
      ,p_entry_information28         => p_entry_information28
      ,p_entry_information29         => p_entry_information29
      ,p_entry_information30         => p_entry_information30
      ,p_date_earned                 => l_date_earned
      ,p_personal_payment_method_id  => p_personal_payment_method_id
      ,p_subpriority                 => p_subpriority
      ,p_effective_start_date        => l_effective_start_date
      ,p_effective_end_date          => l_effective_end_date
      ,p_batch_line_id               => l_batch_line_id
      ,p_object_version_number       => l_object_version_number);
  --
  -- Call After Process User Hook
  --
  begin
    pay_batch_element_entry_bk2.create_batch_line_a
      (p_session_date                   => l_session_date
      ,p_batch_id                       => p_batch_id
      ,p_batch_line_status              => p_batch_line_status
      ,p_assignment_id                  => p_assignment_id
      ,p_assignment_number              => p_assignment_number
      ,p_attribute_category             => p_attribute_category
      ,p_attribute1                     => p_attribute1
      ,p_attribute2                     => p_attribute2
      ,p_attribute3                     => p_attribute3
      ,p_attribute4                     => p_attribute4
      ,p_attribute5                     => p_attribute5
      ,p_attribute6                     => p_attribute6
      ,p_attribute7                     => p_attribute7
      ,p_attribute8                     => p_attribute8
      ,p_attribute9                     => p_attribute9
      ,p_attribute10                    => p_attribute10
      ,p_attribute11                    => p_attribute11
      ,p_attribute12                    => p_attribute12
      ,p_attribute13                    => p_attribute13
      ,p_attribute14                    => p_attribute14
      ,p_attribute15                    => p_attribute15
      ,p_attribute16                    => p_attribute16
      ,p_attribute17                    => p_attribute17
      ,p_attribute18                    => p_attribute18
      ,p_attribute19                    => p_attribute19
      ,p_attribute20                    => p_attribute20
      ,p_entry_information_category     => p_entry_information_category
      ,p_entry_information1             => p_entry_information1
      ,p_entry_information2             => p_entry_information2
      ,p_entry_information3             => p_entry_information3
      ,p_entry_information4             => p_entry_information4
      ,p_entry_information5             => p_entry_information5
      ,p_entry_information6             => p_entry_information6
      ,p_entry_information7             => p_entry_information7
      ,p_entry_information8             => p_entry_information8
      ,p_entry_information9             => p_entry_information9
      ,p_entry_information10            => p_entry_information10
      ,p_entry_information11            => p_entry_information11
      ,p_entry_information12            => p_entry_information12
      ,p_entry_information13            => p_entry_information13
      ,p_entry_information14            => p_entry_information14
      ,p_entry_information15            => p_entry_information15
      ,p_entry_information16            => p_entry_information16
      ,p_entry_information17            => p_entry_information17
      ,p_entry_information18            => p_entry_information18
      ,p_entry_information19            => p_entry_information19
      ,p_entry_information20            => p_entry_information20
      ,p_entry_information21            => p_entry_information21
      ,p_entry_information22            => p_entry_information22
      ,p_entry_information23            => p_entry_information23
      ,p_entry_information24            => p_entry_information24
      ,p_entry_information25            => p_entry_information25
      ,p_entry_information26            => p_entry_information26
      ,p_entry_information27            => p_entry_information27
      ,p_entry_information28            => p_entry_information28
      ,p_entry_information29            => p_entry_information29
      ,p_entry_information30            => p_entry_information30
      ,p_date_earned                    => l_date_earned
      ,p_personal_payment_method_id     => p_personal_payment_method_id
      ,p_subpriority                    => p_subpriority
      ,p_batch_sequence                 => p_batch_sequence
      ,p_concatenated_segments          => p_concatenated_segments
      ,p_cost_allocation_keyflex_id     => p_cost_allocation_keyflex_id
      ,p_effective_date                 => l_effective_date
      ,p_effective_start_date           => l_effective_start_date
      ,p_effective_end_date             => l_effective_end_date
      ,p_element_name                   => p_element_name
      ,p_element_type_id                => p_element_type_id
      ,p_entry_type                     => p_entry_type
      ,p_reason                         => p_reason
      ,p_segment1                       => p_segment1
      ,p_segment2                       => p_segment2
      ,p_segment3                       => p_segment3
      ,p_segment4                       => p_segment4
      ,p_segment5                       => p_segment5
      ,p_segment6                       => p_segment6
      ,p_segment7                       => p_segment7
      ,p_segment8                       => p_segment8
      ,p_segment9                       => p_segment9
      ,p_segment10                      => p_segment10
      ,p_segment11                      => p_segment11
      ,p_segment12                      => p_segment12
      ,p_segment13                      => p_segment13
      ,p_segment14                      => p_segment14
      ,p_segment15                      => p_segment15
      ,p_segment16                      => p_segment16
      ,p_segment17                      => p_segment17
      ,p_segment18                      => p_segment18
      ,p_segment19                      => p_segment19
      ,p_segment20                      => p_segment20
      ,p_segment21                      => p_segment21
      ,p_segment22                      => p_segment22
      ,p_segment23                      => p_segment23
      ,p_segment24                      => p_segment24
      ,p_segment25                      => p_segment25
      ,p_segment26                      => p_segment26
      ,p_segment27                      => p_segment27
      ,p_segment28                      => p_segment28
      ,p_segment29                      => p_segment29
      ,p_segment30                      => p_segment30
      ,p_value_1                        => l_value_1
      ,p_value_2                        => l_value_2
      ,p_value_3                        => l_value_3
      ,p_value_4                        => l_value_4
      ,p_value_5                        => l_value_5
      ,p_value_6                        => l_value_6
      ,p_value_7                        => l_value_7
      ,p_value_8                        => l_value_8
      ,p_value_9                        => l_value_9
      ,p_value_10                       => l_value_10
      ,p_value_11                       => l_value_11
      ,p_value_12                       => l_value_12
      ,p_value_13                       => l_value_13
      ,p_value_14                       => l_value_14
      ,p_value_15                       => l_value_15
      ,p_batch_line_id                  => l_batch_line_id
      ,p_object_version_number          => l_object_version_number
      );
  exception
    when hr_api.cannot_find_prog_unit then
      hr_api.cannot_find_prog_unit_error
        (p_module_name => ‘create_batch_line_a‘
        ,p_hook_type   => ‘AP‘
        );
  end;
  --
  -- When in validation only mode raise the Validate_Enabled exception
  --
  if p_validate then
    raise hr_api.validate_enabled;
  end if;
  --
  -- Set all output arguments
  --
  p_batch_line_id          := l_batch_line_id;
  p_object_version_number  := l_object_version_number;
  --
  hr_utility.set_location(‘ Leaving:‘||l_proc, 70);
exception
  when hr_api.validate_enabled then
    --
    -- As the Validate_Enabled exception has been raised
    -- we must rollback to the savepoint
    --
    rollback to create_batch_line;
    --
    -- Only set output warning arguments
    -- (Any key or derived arguments must be set to null
    -- when validation only mode is being used.)
    --
    p_batch_line_id          := null;
    p_object_version_number  := null;
    hr_utility.set_location(‘ Leaving:‘||l_proc, 80);
  when others then
    --
    -- A validation or unexpected error has occured
    --
    rollback to create_batch_line;
    p_batch_line_id          := null;
    p_object_version_number  := null;
    hr_utility.set_location(‘ Leaving:‘||l_proc, 90);
    raise;
end create_batch_line;
--
时间: 2024-08-09 17:01:05

sql API的相关文章

【翻译】Flink Table 和 SQL API 概念与通用API

本文翻译自官网:https://ci.apache.org/projects/flink/flink-docs-release-1.9/dev/table/common.html Table API和SQL集成在共同API中.该API的中心概念是Table,用作查询的输入和输出.本文档介绍了使用Table API和SQL查询的程序的通用结构,如何注册 Table,如何查询Table以及如何发出 Table(数据). 两个 planner 之间的主要区别 表API和SQL程序的结构 创建一个Tab

【翻译】Flink Table Api &amp; SQL — 配置

本文翻译自官网:Configuration https://ci.apache.org/projects/flink/flink-docs-release-1.9/dev/table/config.html 默认情况下,Table&SQL API已预先配置为产生具有可接受性能的准确结果. 根据表程序的要求,可能需要调整某些参数以进行优化.例如,无界流程序可能需要确保所需的状态大小是有上限的(请参阅流概念). 总览 执行选项 优化器选项 总览 在每个表环境中,TableConfig提供了用于配置当

LINQ To SQL 语法及实例大全

LINQ to SQL语句(1)之Where Where操作 适用场景:实现过滤,查询等功能. 说明:与SQL命令中的Where作用相似,都是起到范围限定也就是过滤作用的,而判断条件就是它后面所接的子句. Where操作包括3种形式,分别为简单形式.关系条件形式.First()形式.下面分别用实例举例下: 1.简单形式: 例如:使用where筛选在伦敦的客户 var q = from c in db.Customers where c.City == "London" select c

Qt SQL Programming 部分翻译

简介: Qt SQL 是 Qt 的重要模块之一,为了方便,Qt 对 SQL 进行了一系列的封装,并将 SQL API 分为如下三层: (1)驱动层 (2)SQL API 层 (3)用户接口层 目录: 一.使用前提 二.数据库类 三.连接到数据库 · SQL 数据库驱动 四.执行 SQL 语句 · Qt 支持的数据库系统的数据类型 五.使用 SQL Model 类 一.使用前提: (1)在C++文件中加入相应头文件 #include <QtSql> (2)在Qt 工程文件中加入Qt SQL 模块

详解Spark sql用户自定义函数:UDF与UDAF

UDAF = USER DEFINED AGGREGATION FUNCTION Spark sql提供了丰富的内置函数供猿友们使用,辣为何还要用户自定义函数呢?实际的业务场景可能很复杂,内置函数hold不住,所以Spark sql提供了可扩展的内置函数接口:哥们,你的业务太变态了,我满足不了你,自己按照我的规范去定义一个sql函数,该怎么折腾就怎么折腾! 例如,MySQL数据库中有一张task表,共两个字段taskid (任务ID)与taskParam(JSON格式的任务请求参数).简单起见,

spark sql简单示例

运行环境 集群环境:CDH5.3.0 具体JAR版本如下: spark版本:1.2.0-cdh5.3.0 hive版本:0.13.1-cdh5.3.0 hadoop版本:2.5.0-cdh5.3.0 spark sql的JAVA版简单示例 spark sql直接查询JSON格式的数据 spark sql的自定义函数 spark sql查询hive上面的表 import java.util.ArrayList; import java.util.List; import org.apache.sp

c# LINQ to SQL

list例: List<result_1> list = get_lately_fifty_data(); List<int> number_count = (from c in list orderby c.Number ascending select c.Count).ToList(); datatable例: var q = from p in dt.AsEnumerable() where p.Field<string>("username"

LINQ to SQL语句(1)之Where(抄的好)

Where操作 适用场景:实现过滤,查询等功能. 说明:与SQL命令中的Where作用相似,都是起到范围限定也就是过滤作用的,而判断条件就是它后面所接的子句. Where操作包括3种形式,分别为简单形式.关系条件形式.First()形式.下面分别用实例举例下: 1.简单形式: 例如:使用where筛选在伦敦的客户 var q = from c in db.Customers where c.City == "London" select c; 再如:筛选1994 年或之后雇用的雇员:

3 分钟的高速体验 Apache Spark SQL

"War of the Hadoop SQL engines. And the winner is -?" 这是一个非常好的问题.只要.无论答案是什么.我们都值花一点时间找出 Spark SQL 这个 Spark 里面的家庭成员. 原本Apache Spark SQL 官网上的代码片断(Spark官网上的样例有个通病:不提供完整代码)已经写得算比較清楚,但假设用户全然把它的代码拷贝下来,可能会碰到编译不通过的问题.另外,Spark官网上的样例还有另外一个通病:不提供test data.