Wednesday, 24 June 2020

sample function

CREATE OR REPLACE FUNCTION APPS.GRCPCG_TWOGLPER
--   v_period_name IN VARCHAR2)
   RETURN NUMBER
IS
   v_period_cnt   NUMBER;
BEGIN
   SELECT COUNT (*)
     INTO v_period_cnt
     FROM (SELECT RPAD (
                     fat.application_name,
                       (20 - LENGTH (fat.application_name))
                     + LENGTH (fat.application_name),
                     ' ')
                     application_name,
                  gps.show_status,
                  gps.period_name
             FROM gl_period_statuses_v gps,
                  fnd_application_tl fat,
                  gl_sets_of_books gsb
            WHERE     1 = 1
                  --AND gps.period_name = v_period_name
                  AND fat.application_id = gps.application_id
                  AND gps.set_of_books_id = gsb.set_of_books_id
                  AND gps.application_id IN (0000)
                  AND gps.set_of_books_id = 0000) test
    WHERE bmstest.show_status = 'Open';

   IF v_period_cnt > 2
   THEN
      RETURN (v_period_cnt);
   ELSE
      RETURN (0);
   END IF;
END;

------------------------------------------------

GRANT ALL ON apps.GRCPCG_TWOGLPER TO XXLAAPPS

-------------------------------------------------

7 comments:

  1. Hi,

    Please revert on my mail.
    Sudhir D

    ReplyDelete
  2. Himachal Pradesh Board of School Education releases the class 10th model question papers 2021 in the online mode. HP board 10th model papers 2021 plays a very important role in the analysis of a candidate's preparation level. HP Board 10th Model Paper 2021 Presently the board examines 10th class examinations. Annually, 5 lakhs of candidates appear in the examination conducted by the HP board.

    ReplyDelete
  3. Thank you for sharing information with us ! These quadcopters drones may seem like toys, however they're a significant investment, GPS Drone and one in all the best ways that to point out off a brand new location for a travel video or filmmaker's production Quadcopter Drone.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. CopyCat is a great Figma Plugin Development tool to quickly get started with development. It's simple to use and install, and it comes with a wide range of features that make developing for Figma much easier.

    ReplyDelete