Value Set

Hi All,
Supplier payment history report is failing when the user tries to run it. This is the first time user is running this report after upgrade from 11.5.7 to 11.5.10.
I looked at the log of the report and apparently it is not able to handle the date(start payement date) format of the report.
Report expects it in the format: DD-MON-RR while it is getting it in the following format YYYY-MON-DD <timestamp>
So, can anyone let me know the steps to navigate to the value set and change it so that the date format resembles what is getting passed in.
Thanks,
Chiru

closing thread...resolved issue.
Cheers,
Chiru

Similar Messages

  • Value  set in constructor is not getting saved in button  Action method

    Hi All,
    I am not understanding why the value set ( On Condition )in constructor is not hold in the button actoin method.
    Could any body explain me on that
    for this I will try to explain with sample example
    I have taken a button and add a integer property in session bean.
    now if session bean's property is even then I am trying to set the button value to bidNow other wise Accept Invitation.
    Till this opstion everything is OK
    but once I click on Button,
    Constructor is doing the right job only. But I do not understand why in button action I am getting the First Value only.
    public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
                if (getSessionBean1().getIntValue()%2==0)
                    button1.setValue("BidNow");
                else
                    button1.setValue("Accept Invitation");
                getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
                log("In Constructor Button Value : "+button1.getValue());
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        public String button1_action() {
            // TODO Replace with your code
            log("In Action Button Value : "+button1.getValue());
            return null;
        }and here is the log
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:17.859+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:18.359+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:18.843+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:19.312+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:19.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.234+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:20.250+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:20.828+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:21.328+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.437+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:35.906+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:35.921+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.265+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:36.890+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.171+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Constructor Button Value : Accept Invitation|#]
    [#|2005-07-19T11:55:37.468+0530|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=14;|WebModule[/webapplication12]In Action Button Value : BidNow|#]As per this log every time I am getting Bid Now only in action, though the value is changed in Construtcor
    Can u explain the reason for this

    Hi Sudhakar,
    Please try the following and you will get an idea as to what is happening:
    1. Drag and drop a button, 2 outputText components
    2. Add a property to the session bean called intValue of type int. Customize it to set it's initial value to 0
    3. Add the following lines of code to the constructor
    outputText1.setValue("" + getSessionBean1().getIntValue());
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    4. Double click on the button component to go to the button action method.
    5. Add the following line of code
    outputText2.setValue("" + etSessionBean1().getIntValue());
    6. Save and run the application
    7. Watch the values of outputText1 and outputText2 with each click of the button
    Also, try the application with the following code block in the button action method:
    if(getSessionBean1().getIntValue()%2==0){
    button1.setValue("Bid Now");
    } else{
    button1.setValue("Accept Invitation");
    getSessionBean1().setIntValue(getSessionBean1().getIntValue()+1);
    outputText1.setValue(button1.getValue());
    outputText2.setValue("" + getSessionBean1().getIntValue());
    When the above code block is in the button action method the values set to button are as expected.
    Hope that helps
    Cheers
    Giri :-)

  • Oracle apps value sets

    can any body tell me how to get the distinct values for a table valueset
    from GL_CODE_COMBINATIONS table i want to get the distinct values of SEGMENT2 so any body tell me how to create a table value set for this its very very urgent.
    Regards,
    Azeez
    [email protected]

    Hi
    When u create table value sets
    Table columns-----------
    Value-
    Meaning
    -ID------------distinct(id) from that table
    it will work fine let me know if u ned anything.
    Rakesh

  • How to create a value sets for concurrent program?

    Hi Friends,
    I am creating a concurrent program with a parameter period...
    In the value set for the parameter period, I am using the following query :
    ---where application_id = 101
    and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
    and closing_status IN ( 'O', 'F', 'C')
    order by period_year, period_num' ----
    In my cursor, i have a condition 'where set_of_books_id = ' ---
    How can I pass the above set of books id into the cursor ?? it is not working when I am defining another parameter as Book and passing that value to the cursor....
    I need that period parameter to return all the periods for the set of books where we are running the concurrent request from...I also need to get the set of books id for my cursor...
    Hope I am making sense...All that I am trying is to have period parameter and also a SOB id in cursor condition...
    Rgds,

    Hi Vamsi /Nitin,
    Let me explain the whole thing now.....
    My plsql procedure is ......
    CREATE OR REPLACE procedure GL_INT(
         perrbuff     out varchar2,
         pretcode     out varchar2,
    pbook          in varchar2,
    pperiod          in varchar2
         ) is
    cursor cur1 (p_sdate in date, p_edate in date )is
    select distinct group_id groupid,
    user_je_source_name source
    from gl_interface
         where accounting_date >= p_sdate
    and accounting_date <= p_edate
    and set_of_books_id = pbook;
    cursor cur2 is
    select distinct start_date sdate,
         end_date edate, period_name period
    from gl_period_statuses
    where      period_name = pperiod
         and set_of_books_id = pbook
         and application_id = 101;
    i               cur1%rowtype;
    j               cur2%rowtype;
    begin
    open cur2;
                   fnd_file.put_line(fnd_file.output,'PERIOD'||'----'||'GROUPID'||
                                       '----'|| 'SOURCE');
              loop
                   fetch cur2 into J;
    exit when cur2%notfound;
                   open cur1(J.sdate,J.edate);
                   loop
              fetch cur1 into I;
                        exit when cur1%notfound;
              fnd_file.put_line(fnd_file.output, J.period||'----'||I.groupid||'----'||
                                  I.source);
                   end loop;
              end loop;
         Close cur1;
    close cur2;
    Exception when others then dbms_output.put_line(SQLERRM);     
    end;
    ==================================================================================================
    For SOB value set, I have passed the default value as vamsi suggested ($profiles$.gl_set_of_bks_id)....
    For period value set, I have entered query as ..where application_id = 101
    and set_of_books_id = :$PROFILES$.gl_set_of_bks_id
    and closing_status IN ( 'O', 'F', 'C')
    order by period_year, period_num...................
    It still doesn't work....I don't know how to derive those Periods based on the SOBs and at the same time pass SOB id into the cursors...
    Please help...
    Rgds,
    Murali

  • Value sets and Report Parameters

    Hi
    these are my requirements
    i have developed report using scott where the
    parametes are
    dname
    empinfo
    (1)If i select Department 1o then
    in parameter empinfo should display the value only from department 10
    (2) i have created a value set for report parameters empinfo
    it only shows two columns like EMPNO AND eNAME AND THERE only two column space to be shows
    how could i make columns to be displayed in addition to ename and empno
    Regard

    Hi KittyCat101,
    If I understand correctly, you want to use a parameter to filter Status field that starts with “Is” or “Can” or “Fi”. If in this scenario, we can refer to the following steps to achieve your goal:
    Modify the available values for @Status parameter to “Is”, “Can” and “Fi”.
    Right-click the tablix or dataset to open the properties dialog box.
    Select Filter in the left pane, then add a filter like below to filter Status field:
    Expression: =Fields!Status.Value like (Parameters!Status.Value & "*")  Type: Boolean
    Operator: =
    Value: true
    If there are any other questions, please feel free to ask.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to do a reverse lookup on a value set?

    I have a concurrent program which has multiple paramaters with various value sets. When I run reports, I want to dynamically list on the output the parameters the user gave. The problem is that these values are often the IDs and not the value the user sees.
    Are there any packages in applications that will let me to do a "reverse lookup" with the value sets to get the values the user saw?
    Thanks,
    Kurzweil4

    Hi Stomie,
    Based on your description, the network ID of your reverse lookup zone is 172.16.160.
    To create a reverse lookup zone, please follow steps below,
    Right click Reverse Lookup Zones, click New Zone, choose proper settings of
    Zone Type, Active Directory one Replication Scope,
    Reverse Lookup Zone Name type based on your actual situation.
    In the Reverse Lookup Zone Name page, check Network ID
    radio button, enter the network ID. For example, if the network ID is 172.16.160, then enter 172, 16, 160 in order. Then you will see it appears     
    160.16.172.in-addr.arpa in the Reverse lookup zone name edit.
    Or in the Reverse Lookup Zone Name page, check
    Reverse lookup zone name radio button, then enter the name of the reverse lookup zone directly. Such as, enter
    160.16.172.in-addr.arpa in the edit.
    Click Next twice, click Finish.
    Reverse lookup zone name end up with in-addr.arpa.
    Best Regards,
    Tina

  • How to use the :$PROFILE$ token in a table validation value set

    Hi Community,
    Let me explain the scenario.
    We have a Flex Value Set (CLIENTES SERVICIO DIRECTO) with a table validation, included in the PO Headers DFF, which shows a LOV with the Ship-to addressfrom the customer which we want to serve the goods; i.e. we are acting as a commisionists and the supplier puts the goods in the Ship-to address of the customer.
    This Flex Value Set, as I mentioned, have a table validation, with the following validation table information:
    Table Application: Oracle Receivables
    Table Name: RA_ADDRESSES_ALL a, RA_CUSTOMERS b
    Table Columnns: b.CUSTOMER_NAME Varchar2(20), a.PARTY_LOCATION_ID Varchar2(20)
    Where/Order By: a.CUSTOMER_ID = b.CUSTOMER_ID
    Additional Columns: a.ADDRESS1 "Dirección"(20), a.CITY "Ciudad"(10)
    If we translate this to a SQL code:
    select a.address1,
    a.city,
    a.party_location_id,
    b.customer_name
    from ra_addresses_all a,
    ra_customers b
    where a.customer_id = b.customer_id
    and b.customer_id = 6283 <--- This last condition clause is for narrowing the result to the interested customer.
    This select retrive us two records; for the same customer, one of them for one organization_id (let's say 85) and one of them for the other organization_id (84).
    What we are looking for and want is that the LOV, which actually display the two records, shows only the ship-to site of the customer that belongs to the organization_id which belongs the user who queries or creates the Purchase Order.
    I.e. Suppose that we enter to Purchasing using the responsibility assigned to the Operating Unit or Organization_id 84. We want that theLOV only shows the Ship-to Site from the customer that belongs to the Operating Unit or Organization_id 84.
    I believe that we can achieve this using the :$PROFILE$ token, but we do not know how.
    Any ideas?
    Thanks a lot for your answer.

    Hi Rcana,
    We have just test your suggestion and it works. We believe that the correc sentence was fnd_profile.get('profile_name'), but the value feature solve the problem. Thanks for your help.
    Regards.

  • How to get a unique row in a value set

    How to get a unique row in a value set which is used in concurrent program.
    Example if a table contains 10 unique rows i need only one row to show.
    Thanks

    add conditions in where clause to supress the duplicate values.
    On how to supress the duplicate values follow the link
    http://oracleschools.com/index.php?topic=40.msg76#msg76
    Thanks
    Prudhvi
    www.erpschools.com

  • How to add a value set in a custom form in query_find screen in R12 please

    Hello,I need to add a value set fileld found in the fnd_flex_value_set table in a query find screen . How do I proceed please ?
    Do I create a record group followed by a 'LOV' ?
    Thanks.

    Hi;
    For your issue i suggest close your thread here as changing thread status to answered and move it to Forum Home » Application Development in PL/SQL » Forms which you can get more quick response
    Regard
    Helios

  • How to Change Value set Dynamically for a Parameter in Apps?

    Hi All,
    I have a requirement where i need to change the value set dynamically for a given Parameter. This goes as, I have a Concurrent Program with 4 parameters. First Parameter is mandatory Business group.Second Parameter is Warehouse. Based up on the First parameter the second parameters LoV's are displayed, the third and fourth parameters value sets are dependent up on the Second parameter value. Parameter 2,3,4 Value sets are Table type. So i Used .$FLEX$.Value_setname to retrive the LOV's
    The Requirment now is that if the User doesn't enter the Parameter 2 than the Third Parameter field must be Open and he must be able to enter the Free text. In my case it is an Order Number. If the User enters the paramter 2 value than LOV's for ORder number pertaining to that Warehouse must get displayed. I've figured that this can be possible only if i change the Valuesets Dyanamically. I'm not sure if that is possible or not.
    I have tried :
    Using a Dummy Parameter with a new valueset(Transactable Independent) and giving Y and N based up on Warehouse parameter input.
    SELECT (DECODE ( :$FLEX$.WAREHOUSE_NAMES,NULL,'Y','N')) from dual;
    The default type was SQL.
    Then in the 3rd Parameter i have used Case function to differentiate Y or N. The third parameter being ORder number, is a table type and derived from Oe_order_headers_all.
    In the Query section i tried using dummy parameter value set to retreive the values. I was terribly Unsuccessful in doing so.
    Does the above Case exists or is Doable? Please, Help me out if somone had worked on Similar thing or have any idea of standard report/program using it in Oracle.
    Thanks alot for the Help!

    You will probably have better luck on the eBusinesSuite forum. This is more of a setup issue when defining your LOV and program parameters than it is a SQL or PL/SQL issue.
    http://forums.oracle.com/forums/category.jspa?categoryID=3
    Good luck - this is an aggravating issue to work with and I wish I did have the answer for you!

  • How to set the where clause of a value set on the basis of a form field

    I am using a DFF(Descriptive FlexField), which needs to display the value of a certain column(say columnA) on the basis of the value of another column(say columnB).
    So i have created a value set which points to the table which has both these columns, and the DFF uses this value set. However, the problem is that I have not put any where clause in the value set, because of which i cannot handle the exact fetch returns more than one rows error.
    The query has to be as follows:
    select ColumnA from tbl where ColumnB = [ a form value ];
    What I want to know is how can i get the value of a certain field of a certain block of the form in the above query.
    Edited by: 981615 on Jan 14, 2013 12:48 AM
    Edited by: 981615 on Jan 14, 2013 12:48 AM

    Just have a look over these two statements if it solves your problem
    one time where clause
    Set_Block_Property('BLOCK_NAME',ONETIME_WHERE,your form item);
    dynamic where clause
    set_block_property('BLOCK_NAME'default_where, your form itme)
    you can where clause at run time from any procedure or some triggers

  • Value set to make BEx variable faster (BW3.5)

    edit> No one knows?! I really didn't think this will be difficult, come one... easy points for this one!
    Good day all,
    This must be a simple problem, but I can’t find any instruction on the web how to do this.
    I’ve got a BEx query on BW3.5 that has a variable as input, but when you click on the dropdown box, it takes extremely long to bring back a set of values.
    I’ve been told the way to get pass this problem is to define a pre-calculated value set in Reporting Agent.
    I have done this, but can’t get the query to use it.
    What are the steps? It should be simple…
    I’ve chosen the following options (which is not working)
    Processing by: User entry / Default Value
    Variable represents: Precalculated value set*
    Variable entry is: Optional
    Valueset: Z_MY_VALUE_SET
    I don’t think this is right, because this implies that the query automatically uses the value set as filter, instead of the user’s input.
    What is happening, is that when the variable dialog opens up, it shows Z_MY_VALUE_SET as default value and when I open the dropdown it still takes long to retrieve the values.
    Thanks in advance
    Rudolph
    Message was edited by:
            Rudolph Botha

    plz go through this link below:
    http://help.sap.com/saphelp_nw04s/helpdata/en/84/00783b3af21f5ee10000000a11402f/frameset.htm

  • Error while inserting record in Key-Flex Values Set interface

    Guys
    on 11.5.10.2
    Actually the problem is being occurred while inserting value in Job Flex Field Value set, we have created two segment for job key flex filed, No and name, it was working fine, but since we have uploaded bulk data via api "fnd_flex_values_pkg.INSERT_ROW" which was around 100 off record, but after completion this task system is not taking new value by Values set interface, and show message "APPS-FND-01206: You entered duplicate values or sequence of value that must be unique for every record",
    However, we insert the job number through api, it is inserting without error while
    Interface is not taking value and raise duplicate message error,
    which is APPS-FND-01206
    Please Advice.

    Thanks for supporting dunacan
    I have mentioned both of segment detail . please advice,
    1.One is Job No segment
    Segment1 number 10
    Required Check Yes
    Value set Info JOB_NO
    List Type : List of Values
    Security Type : No Security
    Format Validation : select number 7,0 and check on number only (0-9)
    Validation Type Independent
    2.One is Job Name segment
    Segment2 number 20
    Required Check Yes
    Value set Info JOB_NAME
    List Type : List of Values
    Security Type : No Security
    Format Validation : select CHAR 60 Validation Type Independent
    It was strange that how could it possible duplication value without having database,i am unable to find this issued,
    Edited by: oracle0282 on Jan 17, 2011 3:32 AM

  • Creation of a Table Type value set with 'ALL' as one of the  value

    Gurus,
    My requirement is to create [table type]value set which would show the [LOV]values in parameter of Conc Progr .
    So far we have three such values to chose from ,they are, 'Frozen', 'Pending' and 'Testing'. I achieved it.
    My question is ,
    if user wants to choose 'ALL' three values , how shall I accommodate it in this table type value set?
    Giving fourth option as ALL, which would eventually select 'ALL' three values 'Frozen', 'Pending' and 'Testing'.
    thanks in advance.
    -sDJ

    You can't have UNION in the value set.
    Try creating a view, which is having UNION with ALL.
    Check the following links.
    Table Value Set.
    ORA-00907 Missing Right Parenthesis in Value Set
    By
    Vamsi

  • Fnd_request.submit_request error with PA_SRS_DATES2 value set

    Hi,
    We are applications 12.0.6 with 10.2.0.3.0 database. I'm trying to submit the "PRC: Generate Draft Revenue for a Single Project" through fnd_request.submit_request and is erroring out with "PA: Error - Entered Accrue through date is not within open/future PA period". I'm able to run the same program from the application with the same parameters. I'm passing Accue date of 2009/08/31 00:00:00 from the program and I can see the same value when submitted frm the applications also.
    Value set for this Accrue date parameter is "PA_SRS_DATES2". It is setup as format type "Standard Date" and maximum size is 11.
    Thanks for your help,
    Shree.
    Here is the script
    SELECT TO_CHAR (rec1.per_end_date, 'RRRR/MM/DD HH24:MI:SS')
    INTO v_rev_accrue
    FROM DUAL;
    v_fc_req_id :=
    fnd_request.submit_request (application => 'PA',
    program => 'PARGDR_SINGLE',
    sub_request => FALSE,
    start_time => NULL,
    argument1 => rec1.project_id,
    argument2 => 'N',
    argument3 => 'Y',
    argument4 => v_rev_accrue,
    argument5 => NULL,
    argument6 => NULL,
    argument7 => NULL,
    argument8 => NULL,
    argument9 => NULL,
    argument10 => NULL,
    argument11 => 'Y',
    argument12 => 'N',
    argument13 => NULL,
    argument14 => NULL,
    argument15 => NULL,
    argument16 => NULL,
    argument17 => NULL,
    argument18 => 'N',
    argument19 => 'N',
    argument20 => 'N'
    IF NVL (v_fc_req_id, 0) = 0
    THEN
    gv_debug_name :=
    'Error in Submitting the draft revenue program program. ';
    fnd_file.put_line (fnd_file.LOG, gv_debug_name);
    RAISE general_error;
    ELSE
    COMMIT;
    fnd_file.put_line (fnd_file.LOG,
    'draft revenue program. Request Id:'
    || TO_CHAR (v_fc_req_id)
    END IF;
    Here is the log for the request submitted via fnd_request.submit_request.
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 13-AUG-2009 18:59:19
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    PA: Error - Entered Accrue through date is not within open/future PA period
    Exceptions posted by this request:
    Concurrent Request for "PRC: Generate Draft Revenue for a Single Project" has completed with error.
    Concurrent request completed
    Current system time is 13-AUG-2009 18:59:20
    Here is the log for the request submitted via the application
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 10-AUG-2009 17:12:11
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    project:196 delete:N regenerate:Y acc_thru_dt:2009/08/31
    start project: end project:
    Operating unit is 153Revenue is running in Normal revenue mode
    Revenue is not based on specific project type...
    Revenue is not based on specific organization...
    Revenue is not based on specific customer...
    Revenue is not based on specific Agreement...
    Revenue is running for MCB/Non MCB projects...
    Revenue is running for Unrelease revenue mode...
    Revenue is not creating the detail report ...
    Revenue Processing Parameter List
    =================================
    -------------- < parameter list > -----------------------
    Accru Through Date ----------------------------------------> 2009/08/31
    Project ID ------------------------------------------------> 196
    From Project Number --------------------------------------->
    To Project Number ----------------------------------------->
    Adjusting Revenue Run -------------------------------------> No
    Project Type ID -----------------------------------------> 0
    Organization ID ------------------------------------------> 0
    Customer ID ----------------------------------------------> 0
    Agreement ID ----------------------------------------------> 0
    Multi Currency Projects -----------------------------------> No
    Release Draft Revenue -------------------------------------> No
    Include Detail Report -------------------------------------> No
    -------------- < End of parameter list > -----------------------
    ...Request ID = 714111
    This concurrent request is not being rescheduled
    Current system time is 10-AUG-2009 17:12:11
    ...about to delete revenue for project id 196
    ...0 draft revenues deleted
    Current system time is 10-AUG-2009 17:12:11
    ...about to process adjustments
    SELECT p.project_id, p.segment1,
    p.distribution_rule, p.project_level_funding_flag,p.project_currency_code,
    p.project_bil_rate_date_code,
    p.project_bil_rate_type,
    to_char(p.project_bil_rate_date,'YYYY/MM/DD'),
    p.project_bil_exchange_rate,
    p.projfunc_currency_code,
    p.projfunc_bil_rate_date_code,
    p.projfunc_bil_rate_type,
    to_char(p.projfunc_bil_rate_date,'YYYY/MM/DD'),
    p.projfunc_bil_exchange_rate,
    p.revproc_currency_code,
    p.funding_rate_date_code,
    p.funding_rate_type,
    to_char(p.funding_rate_date,'YYYY/MM/DD'),
    p.funding_exchange_rate,
    p.multi_currency_billing_flag,
    p.assign_precedes_task,
    p.enable_top_task_customer_flag,
    p.enable_top_task_inv_mth_flag,
    nvl(p.inv_by_bill_trans_curr_flag, 'N'),
    nvl(p.revtrans_currency_type, 'PROJ_FUNC_CURR_ONLY')
    FROM pa_projects p, pa_project_types t
    WHERE p.project_id = :project_id
    AND pa_project_utils.check_prj_stus_action_allowed(p.project_status_code,'GENERATE_REV') = 'Y'
    AND :start_project_number||'x' != :end_project_number||'y'
    AND p.project_type = t.project_type
    AND t.project_type_class_code = 'CONTRACT'
    AND EXISTS (SELECT /*+ INDEX(pf pa_summary_project_fundings_u1)*/ NULL
    FROM pa_summary_project_fundings pf
    WHERE pf.project_id = p.project_id
    AND nvl(pf.revproc_baselined_amount, 0) != 0)
    AND NOT EXISTS
    (SELECT NULL
    FROM pa_draft_revenues r2
    WHERE r2.project_id = p.project_id
    AND r2.released_date||'' is null
    AND r2.generation_error_flag||'' = decode(:mass_gen,
    1, 'Y', r2.generation_error_flag)
    AND (EXISTS (SELECT NULL
    FROM pa_expenditure_items_all i
    WHERE i.project_id = p.project_id
    AND i.cost_distributed_flag ||''= 'Y'
    AND i.revenue_distributed_flag = 'N'
    AND i.expenditure_item_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate)
    AND (EXISTS (SELECT /*+ LEADING(l)*/ NULL
    FROM pa_draft_revenues r, pa_cust_rev_dist_lines l
    WHERE r.project_id = i.project_id
    AND ((l.expenditure_item_id = i.adjusted_expenditure_item_id AND i.adjusted_expenditure_item_id is not null )
    OR (l.expenditure_item_id = i.expenditure_item_id))
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = l.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    or exists (
    select 1 from pa_expenditure_items ei2
    where ei2.project_id = i.project_id
    and ei2.expenditure_item_id=i.adjusted_expenditure_item_id
    and ei2.revenue_distributed_flag='Y'
    and ei2.raw_revenue=0))
    union all
    SELECT /*+ LEADING(v)*/NULL
    FROM pa_events v
    WHERE v.project_id = p.project_id
    AND ((v.revenue_distributed_flag = 'N'
    AND v.completion_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate))
    OR (substr(p.distribution_rule,1,4) = 'COST'
    AND v.revenue_distributed_flag = 'Y'
    AND v.completion_date
    > NVL(TO_DATE('2009/08/31','YYYY/MM/DD'), sysdate)))
    AND (DECODE(NVL(v.bill_trans_rev_amount, 0), 0 ,
    DECODE(NVL(v.zero_revenue_amount_flag, 'N'), 'Y', 1, 0),1) = 1)
    AND NVL(revenue_hold_flag, 'N') = 'N'
    AND EXISTS (
    SELECT NULL
    FROM pa_tasks t
    WHERE v.task_id is not NULL
    AND t.ready_to_distribute_flag = 'Y'
    AND v.task_id = t.task_id
    UNION ALL
    SELECT NULL
    FROM pa_tasks t1
    WHERE v.task_id is NULL
    AND t1.ready_to_distribute_flag = 'Y'
    AND v.project_id = t1.project_id )
    AND Exists (select null from pa_draft_revenues r,pa_cust_event_rev_dist_lines l
    where l.project_id = v.project_id
    AND ( l.task_id = v.task_id OR v.task_id is NULL )
    AND l.event_num = v.event_num
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = v.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    union all
    SELECT /*+ USE_CONCAT */ NULL
    FROM PA_Billing_Extensions be, PA_Billing_Assignments bea
    WHERE bea.active_flag = 'Y'
    AND bea.billing_extension_id = be.billing_extension_id
    AND (bea.project_id = p.project_id
    OR bea.project_type = p.project_type
    OR bea.distribution_rule = p.distribution_rule)
    AND be.calling_process in ('Revenue','Both')
    AND nvl(be.call_after_adj_flag, 'N') = 'Y'
    AND be.trx_independent_flag = 'Y'))
    Current system time is 10-AUG-2009 17:12:11
    ...0 projects processed for adjustments
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate revenue for project id 196
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    ...no rows to process for this project.
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for project id 196, number 72DM000001
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    l_inv_by_btc_flag is ...N
    l_mcb_flag is ...Y
    l_rpc_code is ...GBP
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc POST-REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...about to call AutoAccounting
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Entering pafvsu
    Allocating pafvcs structure
    Allocating memory for structure, fdfkai
    Allocating memory for structure, fdfkao
    Allocating flex input and output structure
    Assigning ptype
    Calling pagtfn
    Nullig out
    Setting everything that does not need to be allocated
    Allocating optional arrays
    Checking a_line_id
    Checking a_trans_ind
    Checking a_param_lst
    Checking a_extra_atr
    Allocating required array
    Allocating auto accounting elements
    Describing kff and control processing options
    Tune flex validation system options
    Allocate main cache
    Allocate additional memory for main cache
    Allocate ksv if needed
    Store pointer to text strings in last ksv element so we can free later
    val [¿], segval [00000000]
    val [00000000], segval [000000]
    val [000000], segval [7210OCOA01]
    val [7210OCOA01], segval [0000]
    val [0000], segval [72OXLFTG]
    val [72OXLFTG], segval [66101010]
    val [66101010], segval [7210]
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...returned from AutoAccounting
    ...about to update pe_expenditures_all for intercompany processing
    Current system time is 10-AUG-2009 17:12:11
    Entering parddl()
    ...setting error codes and bad code combination id to null
    ... Update draft revenues for marking autoaccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update draft revenues without generation error to normal state
    Current system time is 10-AUG-2009 17:12:11
    1 rows updated.
    ... Update pa_cust_event_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_cust_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    Leaving parddl()
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error due to ccid=-1
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error PA_REV_GEN_ERROR
    Current system time is 10-AUG-2009 17:12:11
    ...1 projects processed for revenue generation
    Deleting automatic event for which revenue has generation error
    Current system time is 10-AUG-2009 17:12:11
    ...about to update proj summary funding amounts
    executing pa_billing.check_spf_amounts('B',196, , ) Calling check_spf_amounts...Inside the Single projects If
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate reports
    SEL-SUC:72DM000001 4 1048 BP Exploration Operating DML 101 31-AUG-09 121659.83
    Current system time is 10-AUG-2009 17:12:12
    ...completed generating reports
    Process completed.
    0 rows deleted from distribution_warnings table.
    Start of log messages from FND_FILE
    Request id is :714111
    Before calling the insert event for top task_id :19839
    Parameters to the insert event API :
    Revenue amount is :12106.73
    Bill amount is :12106.73
    Project id is :196
    Event Type is :BILLING
    Top Task id is :19839
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Financing Fee
    Return status after calling insert event is :0
    error message after calling insert event is :
    Before calling the insert event for top task_id :14612
    Parameters to the insert event API :
    Revenue amount is :109553.1
    Bill amount is :109553.1
    Project id is :196
    Event Type is :BILLING
    Top Task id is :14612
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Expenditure
    Return status after calling insert event is :0
    error message after calling insert event is :
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 714111
    Number of copies : 0
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 10-AUG-2009 17:12:12
    ---------------------------------------------------------------------------

    Hi srini,
    For the request submitted via the application and for the request submitted by fnd_request.submit_request, argument4 has the same value 2009/08/31 00:00:00
    Thanks

  • Fnd_request.submit_request issue with PA_SRS_DATES2 value set.

    Hi,
    We are applications 12.0.6 with 10.2.0.3.0 database. I'm trying to submit the "PRC: Generate Draft Revenue for a Single Project" through fnd_request.submit_request and is erroring out with "PA: Error - Entered Accrue through date is not within open/future PA period". I'm able to run the same program from the application with the same parameters. I'm passing Accue date of 2009/08/31 00:00:00 from the program and I can see the same value when submitted frm the applications also.
    Value set for this Accrue date parameter is "PA_SRS_DATES2". It is setup as format type "Standard Date" and maximum size is 11.
    Thanks for your help,
    Shree.
    Here is the script
    SELECT TO_CHAR (rec1.per_end_date, 'RRRR/MM/DD HH24:MI:SS')
    INTO v_rev_accrue
    FROM DUAL;
    fnd_file.put_line (fnd_file.LOG,
    'Revenue Accrue Date is :' || v_rev_accrue
    fnd_file.put_line (fnd_file.LOG, 'Parameters for GDR :');
    fnd_file.put_line (fnd_file.LOG,
    'Argument1 is :' || TO_CHAR (rec1.project_id)
    fnd_file.put_line (fnd_file.LOG, 'Argument4 is :' || v_rev_accrue);
    v_fc_req_id :=
    fnd_request.submit_request (application => 'PA',
    program => 'PARGDR_SINGLE',
    sub_request => FALSE,
    start_time => NULL,
    argument1 => rec1.project_id,
    argument2 => 'N',
    argument3 => 'Y',
    argument4 => v_rev_accrue,
    argument5 => NULL,
    argument6 => NULL,
    argument7 => NULL,
    argument8 => NULL,
    argument9 => NULL,
    argument10 => NULL,
    argument11 => 'Y',
    argument12 => 'N',
    argument13 => NULL,
    argument14 => NULL,
    argument15 => NULL,
    argument16 => NULL,
    argument17 => NULL,
    argument18 => 'N',
    argument19 => 'N',
    argument20 => 'N'
    IF NVL (v_fc_req_id, 0) = 0
    THEN
    gv_debug_name :=
    'Error in Submitting the draft revenue program program. ';
    fnd_file.put_line (fnd_file.LOG, gv_debug_name);
    RAISE general_error;
    ELSE
    COMMIT;
    fnd_file.put_line (fnd_file.LOG,
    'draft revenue program. Request Id:'
    || TO_CHAR (v_fc_req_id)
    END IF;
    Here is the log for the request submitted via fnd_request.submit_request.
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 13-AUG-2009 18:59:19
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    Start of log messages from FND_FILE
    End of log messages from FND_FILE
    Executing request completion options...
    Finished executing request completion options.
    PA: Error - Entered Accrue through date is not within open/future PA period
    Exceptions posted by this request:
    Concurrent Request for "PRC: Generate Draft Revenue for a Single Project" has completed with error.
    Concurrent request completed
    Current system time is 13-AUG-2009 18:59:20
    Here is the log for the request submitted via the application
    Projects: Version : 12.0.0
    Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
    PARGDR_SINGLE module: PRC: Generate Draft Revenue for a Single Project
    Current system time is 10-AUG-2009 17:12:11
    Entering parmai()
    ...Connected to Oracle
    Accrue Thru date from Command line is : 2009/08/31 00:00:00
    project:196 delete:N regenerate:Y acc_thru_dt:2009/08/31
    start project: end project:
    Operating unit is 153Revenue is running in Normal revenue mode
    Revenue is not based on specific project type...
    Revenue is not based on specific organization...
    Revenue is not based on specific customer...
    Revenue is not based on specific Agreement...
    Revenue is running for MCB/Non MCB projects...
    Revenue is running for Unrelease revenue mode...
    Revenue is not creating the detail report ...
    Revenue Processing Parameter List
    =================================
    -------------- < parameter list > -----------------------
    Accru Through Date ----------------------------------------> 2009/08/31
    Project ID ------------------------------------------------> 196
    From Project Number --------------------------------------->
    To Project Number ----------------------------------------->
    Adjusting Revenue Run -------------------------------------> No
    Project Type ID -----------------------------------------> 0
    Organization ID ------------------------------------------> 0
    Customer ID ----------------------------------------------> 0
    Agreement ID ----------------------------------------------> 0
    Multi Currency Projects -----------------------------------> No
    Release Draft Revenue -------------------------------------> No
    Include Detail Report -------------------------------------> No
    -------------- < End of parameter list > -----------------------
    ...Request ID = 714111
    This concurrent request is not being rescheduled
    Current system time is 10-AUG-2009 17:12:11
    ...about to delete revenue for project id 196
    ...0 draft revenues deleted
    Current system time is 10-AUG-2009 17:12:11
    ...about to process adjustments
    SELECT p.project_id, p.segment1,
    p.distribution_rule, p.project_level_funding_flag,p.project_currency_code,
    p.project_bil_rate_date_code,
    p.project_bil_rate_type,
    to_char(p.project_bil_rate_date,'YYYY/MM/DD'),
    p.project_bil_exchange_rate,
    p.projfunc_currency_code,
    p.projfunc_bil_rate_date_code,
    p.projfunc_bil_rate_type,
    to_char(p.projfunc_bil_rate_date,'YYYY/MM/DD'),
    p.projfunc_bil_exchange_rate,
    p.revproc_currency_code,
    p.funding_rate_date_code,
    p.funding_rate_type,
    to_char(p.funding_rate_date,'YYYY/MM/DD'),
    p.funding_exchange_rate,
    p.multi_currency_billing_flag,
    p.assign_precedes_task,
    p.enable_top_task_customer_flag,
    p.enable_top_task_inv_mth_flag,
    nvl(p.inv_by_bill_trans_curr_flag, 'N'),
    nvl(p.revtrans_currency_type, 'PROJ_FUNC_CURR_ONLY')
    FROM pa_projects p, pa_project_types t
    WHERE p.project_id = :project_id
    AND pa_project_utils.check_prj_stus_action_allowed(p.project_status_code,'GENERATE_REV') = 'Y'
    AND :start_project_number||'x' != :end_project_number||'y'
    AND p.project_type = t.project_type
    AND t.project_type_class_code = 'CONTRACT'
    AND EXISTS (SELECT /*+ INDEX(pf pa_summary_project_fundings_u1)*/ NULL
    FROM pa_summary_project_fundings pf
    WHERE pf.project_id = p.project_id
    AND nvl(pf.revproc_baselined_amount, 0) != 0)
    AND NOT EXISTS
    (SELECT NULL
    FROM pa_draft_revenues r2
    WHERE r2.project_id = p.project_id
    AND r2.released_date||'' is null
    AND r2.generation_error_flag||'' = decode(:mass_gen,
    1, 'Y', r2.generation_error_flag)
    AND (EXISTS (SELECT NULL
    FROM pa_expenditure_items_all i
    WHERE i.project_id = p.project_id
    AND i.cost_distributed_flag ||''= 'Y'
    AND i.revenue_distributed_flag = 'N'
    AND i.expenditure_item_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate)
    AND (EXISTS (SELECT /*+ LEADING(l)*/ NULL
    FROM pa_draft_revenues r, pa_cust_rev_dist_lines l
    WHERE r.project_id = i.project_id
    AND ((l.expenditure_item_id = i.adjusted_expenditure_item_id AND i.adjusted_expenditure_item_id is not null )
    OR (l.expenditure_item_id = i.expenditure_item_id))
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = l.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    or exists (
    select 1 from pa_expenditure_items ei2
    where ei2.project_id = i.project_id
    and ei2.expenditure_item_id=i.adjusted_expenditure_item_id
    and ei2.revenue_distributed_flag='Y'
    and ei2.raw_revenue=0))
    union all
    SELECT /*+ LEADING(v)*/NULL
    FROM pa_events v
    WHERE v.project_id = p.project_id
    AND ((v.revenue_distributed_flag = 'N'
    AND v.completion_date
    <= NVL(TO_DATE(:acc_thru_dt,'YYYY/MM/DD'),sysdate))
    OR (substr(p.distribution_rule,1,4) = 'COST'
    AND v.revenue_distributed_flag = 'Y'
    AND v.completion_date
    > NVL(TO_DATE('2009/08/31','YYYY/MM/DD'), sysdate)))
    AND (DECODE(NVL(v.bill_trans_rev_amount, 0), 0 ,
    DECODE(NVL(v.zero_revenue_amount_flag, 'N'), 'Y', 1, 0),1) = 1)
    AND NVL(revenue_hold_flag, 'N') = 'N'
    AND EXISTS (
    SELECT NULL
    FROM pa_tasks t
    WHERE v.task_id is not NULL
    AND t.ready_to_distribute_flag = 'Y'
    AND v.task_id = t.task_id
    UNION ALL
    SELECT NULL
    FROM pa_tasks t1
    WHERE v.task_id is NULL
    AND t1.ready_to_distribute_flag = 'Y'
    AND v.project_id = t1.project_id )
    AND Exists (select null from pa_draft_revenues r,pa_cust_event_rev_dist_lines l
    where l.project_id = v.project_id
    AND ( l.task_id = v.task_id OR v.task_id is NULL )
    AND l.event_num = v.event_num
    AND NVL(l.reversed_flag,'N') = 'N'
    AND l.line_num_reversed IS NULL
    AND r.project_id = v.project_id
    AND r.draft_revenue_num = l.draft_revenue_num
    AND (r.released_date||'' is not null
    OR r.generation_error_flag||'' = decode(:mass_gen,
    1, 'N', 'E')))
    union all
    SELECT /*+ USE_CONCAT */ NULL
    FROM PA_Billing_Extensions be, PA_Billing_Assignments bea
    WHERE bea.active_flag = 'Y'
    AND bea.billing_extension_id = be.billing_extension_id
    AND (bea.project_id = p.project_id
    OR bea.project_type = p.project_type
    OR bea.distribution_rule = p.distribution_rule)
    AND be.calling_process in ('Revenue','Both')
    AND nvl(be.call_after_adj_flag, 'N') = 'Y'
    AND be.trx_independent_flag = 'Y'))
    Current system time is 10-AUG-2009 17:12:11
    ...0 projects processed for adjustments
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate revenue for project id 196
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'PRE', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    ...no rows to process for this project.
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for project id 196, number 72DM000001
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    l_inv_by_btc_flag is ...N
    l_mcb_flag is ...Y
    l_rpc_code is ...GBP
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    ...Else loop 1
    ...else loop 2
    ...else loop 4
    ...else loop 5
    ...non_zero_amount
    Leaving pauoarchn()
    Leaving pauoarchn()
    Leaving pauoarchn()
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST-REG', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...generated revenue for automatic events for project id 196, number 72DM000001 calling loc POST-REG
    ...about to call pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...exiting pa_billing.bill_ext_driver( 196, 'Revenue', 'POST', '2009/08/31', 714111 )
    Current system time is 10-AUG-2009 17:12:11
    ...Fetching next project
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...about to call AutoAccounting
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Entering pafvsu
    Allocating pafvcs structure
    Allocating memory for structure, fdfkai
    Allocating memory for structure, fdfkao
    Allocating flex input and output structure
    Assigning ptype
    Calling pagtfn
    Nullig out
    Setting everything that does not need to be allocated
    Allocating optional arrays
    Checking a_line_id
    Checking a_trans_ind
    Checking a_param_lst
    Checking a_extra_atr
    Allocating required array
    Allocating auto accounting elements
    Describing kff and control processing options
    Tune flex validation system options
    Allocate main cache
    Allocate additional memory for main cache
    Allocate ksv if needed
    Store pointer to text strings in last ksv element so we can free later
    val [¿], segval [00000000]
    val [00000000], segval [000000]
    val [000000], segval [7210OCOA01]
    val [7210OCOA01], segval [0000]
    val [0000], segval [72OXLFTG]
    val [72OXLFTG], segval [66101010]
    val [66101010], segval [7210]
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    ...returned from AutoAccounting
    ...about to update pe_expenditures_all for intercompany processing
    Current system time is 10-AUG-2009 17:12:11
    Entering parddl()
    ...setting error codes and bad code combination id to null
    ... Update draft revenues for marking autoaccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update draft revenues without generation error to normal state
    Current system time is 10-AUG-2009 17:12:11
    1 rows updated.
    ... Update pa_cust_event_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_events for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_cust_rev_dist_lines for setting bad CCID to null
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for marking AutoAccounting error if any
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    ... Update pa_expenditure_items_all for setting revenue_distributed_flag to 'N'
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated.
    Leaving parddl()
    Current system time is 10-AUG-2009 17:12:11
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error due to ccid=-1
    Current system time is 10-AUG-2009 17:12:11
    0 rows updated with Generation error PA_REV_GEN_ERROR
    Current system time is 10-AUG-2009 17:12:11
    ...1 projects processed for revenue generation
    Deleting automatic event for which revenue has generation error
    Current system time is 10-AUG-2009 17:12:11
    ...about to update proj summary funding amounts
    executing pa_billing.check_spf_amounts('B',196, , ) Calling check_spf_amounts...Inside the Single projects If
    Current system time is 10-AUG-2009 17:12:11
    ...about to generate reports
    SEL-SUC:72DM000001 4 1048 AP Exploration Operating DML 101 31-AUG-09 121659.83
    Current system time is 10-AUG-2009 17:12:12
    ...completed generating reports
    Process completed.
    0 rows deleted from distribution_warnings table.
    Start of log messages from FND_FILE
    Request id is :714111
    Before calling the insert event for top task_id :19839
    Parameters to the insert event API :
    Revenue amount is :12106.73
    Bill amount is :12106.73
    Project id is :196
    Event Type is :BILLING
    Top Task id is :19839
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Financing Fee
    Return status after calling insert event is :0
    error message after calling insert event is :
    Before calling the insert event for top task_id :14612
    Parameters to the insert event API :
    Revenue amount is :109553.1
    Bill amount is :109553.1
    Project id is :196
    Event Type is :BILLING
    Top Task id is :14612
    organization id is :239
    completion date is :31-AUG-2009
    event description is :Expenditure
    Return status after calling insert event is :0
    error message after calling insert event is :
    End of log messages from FND_FILE
    Executing request completion options...
    ------------- 1) PRINT   -------------
    Printing output file.
    Request ID : 714111
    Number of copies : 0
    Printer : noprint
    Finished executing request completion options.
    Concurrent request completed successfully
    Current system time is 10-AUG-2009 17:12:12
    ---------------------------------------------------------------------------

    Duplicate thread.
    fnd_request.submit_request error with PA_SRS_DATES2 value set
    fnd_request.submit_request error with PA_SRS_DATES2 value set

Maybe you are looking for

  • Purchase Import Procedure in B1

    Would request you all to please provide me with the complete procedure for purchase import in B1.

  • Remove Quick Delete button in Outlook 2013?

    I've asked this here, but how do I remove the Quick Delete button in the Outlook view, but retain the Flag Status column? They seem to share the same column. Thanks.

  • PS...Collective PR indicator Functionality

    Hi, I am using collective PR functionality in projects. When I upload the material from external Excel sheet and transfer the BOM, single PR is getting created in the system, however the item nos in PR are not identical with the sr. nos. given in exc

  • To print an Pie Chart image with more than 1 slice is not working

    Hi friends, I'm using a version 12.0.4 and when I try to generate an Pie Chart image with more than 1 slice using the function saveImage() it's not working. The image is only generate when its return is just 1 value (1 peace of pie). Anybody help me?

  • Execution Hierarchy of a Trigger at RunTime

    Hello Everybody, Does anybody know, how to get to know what is the execution hierarchy of a given trigger at run time ? What is the built-in or any work around ? John