Ckeck for Open period in AR tables before order import - Urgent

Hi All,
I have a csv file which contains booked order information, that I need to upload into oe_order base tables. In the file there will be order date, order no and distributor no. I need to do a validation to check the order date is in an open AR period before loading into base tables.
Any help with the query or which tables to look into is of great help to me.
Thanks
Sudheer

You can use
SELECT closing_status
INTO l_period_status
FROM gl_period_statuses g,
gl_sets_of_books b
WHERE b.set_of_books_id = g.set_of_books_id
AND g.set_of_books_id = arp_global.set_of_books_id
AND g.period_type = b.accounted_period_type
AND g.application_id = 222
AND g.adjustment_period_flag = 'N'
AND closing_status <> 'C'
AND trunc(&ordered_date) between start_date and end_date;
When you set the fnd_global.apps_initialize it will take care of arp_global. You can also initialize the record by using arp_global.INIT_GLOBAL(p_org_id).
Thanks
Nagamohan

Similar Messages

  • Balance for open periods in a time series enabled cube

    Hi,
    We have a request to calculate balance for open periods in a time series enabled cube, I don’t there is any inbuilt function for this.
    Any ideas on how to calculate this without adding new members/formulae in the time dimension. Currently we compute this in the report
    EX:
    BOY(May) = Jun+Jul + … + Dec
    Thanks,

    You will have to add a member somewhere. Suppose you add it in scenario, then you could use sumrange for the current member range offsetting the current monthe by 1 and use null for the end month wich gives you the last month in the time dim.

  • T CODE FOR OPEN PERIOD.

    Dear all Guru's
                                    I know that for closing period the T.CODE is MMPV , Pl tell
    me that wat is the code for opening period . & also suggest wat is to enter when using MMPV & ( T CODE for opening period.
    rewarded if helps.
    rc

    Dear RC,
    This T-code for opening period to company.
    it means to plant reports will take every month.so we need to close plant transactions in every month ending.then only we will see the reports of every month of plant.
    in MMPV we have to give company code and opening month name and press execute button.
    this is the main uses and functions or MMPV.
    Hope this will helps you
    Prem.

  • ATP Check API before Order Import API

    Hi, All
    Does anyone have information of the following processes?
    ATP Check API before Order Import API
    I neve use ATP Check API before, It would be great help if someone can provide any inputs for this.
    Thanks,

    ATP API can be used for scheduling.
    API name: MRP_ATP_PUB.CALL_ATP
    MRP_ATP_PUB is a public API so it should have all validatations etc. Explore above API and you should be able to write some good package for scheduling or ATP.
    thanks
    Vikrant

  • Table for open periods in MM

    Hi,
    Is there any table that will show which periods in MM that are open for posting?
    The periods I mean is the ones closed by transaction MMPV, but I want to see it in a table...and if you also know IMG path (if any) it would be good.
    Thanks,
    Ola

    OK
    Thanks, I also found transaction OMSY.
    //Ola

  • Can't open period-GLOOAP try to create ccid with Seg1 invalid by Sec Rules

    Hi,
    12 months ago, we done a accounting recoding (by legal changes) in two portuguese company which belong our business group. We only change segment1 (17 value by 10... value 10 was desactived by security rules) and we create new ccid's by changing of accounts (for example,.. 10.590000.000.00.000.00000 changed to 17.561000.000.00.000.00000)... Also, we change all accounting configuration in all modules (PO, GL, AP, AR,..) for adapting to new needs.
    It hasn't had any incident about this change.
    However, now, when we try to open a new period (00-11), process for opening period fail... It only occur in one company which we did this change (in other portuguese company, it wrok fine).
    the log of process indicates that process cann't create a ccid (i think it is trying to create it dinamically) but the question is that segment1 (10) is desactived by security rules (new ccids should be created with segment1 ='17').
    My question is: Where is process extract segment1 for trying to create this new ccid? this process is Spawned and I cann't opened it.
    This problem has only occured when we try to open 00-11 period... in before periods it opened fine.
    Best Regards,
    Ricardo

    Hi Octavio,
    I have activated a trace but it indicate same error:
    SELECT /* $Header: fdfval.lc 115.46 2003/07/10 16:04:31 hgeorgi ship $ */
    U.flex_value_rule_id, R.error_message,
    L.include_exclude_indicator, L.flex_value_low,
    L.flex_value_high
    FROM
    fnd_flex_value_rule_usages U, fnd_flex_value_rule_lines L,
    fnd_flex_value_rules_VL R WHERE U.flex_value_set_id = :vsid AND
    U.application_id = :applid AND U.responsibility_id = :respid AND
    U.flex_value_rule_id = L.flex_value_rule_id AND U.flex_value_rule_id =
    R.flex_value_rule_id ORDER BY U.flex_value_rule_id,
    L.include_exclude_indicator desc
    call count cpu elapsed disk query current rows
    Parse 1 0.01 0.00 0 0 0 0
    Execute 1 0.01 0.01 0 0 0 0
    Fetch 1 0.00 0.00 0 6 0 2
    total 3 0.02 0.01 0 6 0 2
    Misses in library cache during parse: 1
    Misses in library cache during execute: 1
    Optimizer goal: CHOOSE
    Parsing user id: 181
    Rows Row Source Operation
    2 SORT ORDER BY
    2 NESTED LOOPS
    2 NESTED LOOPS
    2 NESTED LOOPS
    2 INDEX RANGE SCAN (object id 32506)
    2 INDEX UNIQUE SCAN (object id 32498)
    2 TABLE ACCESS BY INDEX ROWID FND_FLEX_VALUE_RULES_TL
    2 INDEX UNIQUE SCAN (object id 32501)
    2 INDEX RANGE SCAN (object id 32504)
    SELECT code_combination_id
    FROM GL_CODE_COMBINATIONS CC
    WHERE
    SEGMENT1 = '10'
    AND SEGMENT2 = '561000'
    AND SEGMENT3 = '000'
    AND SEGMENT4 = '00'
    AND SEGMENT5 = '000'
    AND SEGMENT6 = '00000'
    AND CHART_OF_ACCOUNTS_ID = 50235
    AND TEMPLATE_ID IS NULL
    call count cpu elapsed disk query current rows
    Parse 1 0.02 0.02 0 0 0 0
    Execute 1 0.00 0.00 0 0 0 0
    Fetch 1 0.00 0.06 14 18 0 0
    total 3 0.02 0.08 14 18 0 0
    Misses in library cache during parse: 1
    Optimizer goal: CHOOSE
    Parsing user id: 181
    Rows Row Source Operation
    0 TABLE ACCESS BY INDEX ROWID GL_CODE_COMBINATIONS
    21 INDEX RANGE SCAN (object id 850252)
    begin fnd_file.close; end;
    I have could read that Open Period program looks in the GL_BALANCES and it will attempt to use/Create the retaining account combination for each balancing segment value showing activity but retaining account combination is 17-561000-000-00-000-00000 ...
    Best Regards

  • FI - Restrict Open periods

    I am implementing FICO and we already have deployed FIGL in our company. I need to restrict open periods from displaying. I am not sure whether I should restrict at the extraction or bring in the open periods and restrict based on T001B table in ECC which stores the open and closed periods at a given point. looking for the best solution if someone has implemented this.

    Hi,
    BI system is a common system used for reporting the R3 system data. Hence it is always advisable to pull all the data to BI and at report level you can filter on those data.
    In the Reporting cube level add a field called ZPeriod apart from 0FISCPER you have , Add an attribute Validity to this Zperiod infoobject maintain them with status fields like O for Open Periods C for Closed Periods.
    In the report restrict the Validity field with C for getting only closed periods data.
    ZPERIOD infobject has to updated with status daily from T001b from ECC system so that attribute will always have correct periods and their validity status. This is a good and dyanmic method of solution which can be used at report level.
    All these loads automate thro process chain so that no manual activity will be available.
    Dont go for filtering of data and if some other users need FIGL data as of today for validating or tallying it becomes difficult.
    Hope this helps for you.
    Thanks,
    Arun

  • How to find open item in bsik table

    anyone can tell me how to find open items for vendor in bsik table or it will store only open item.
    i debug the tcode fbl1n to see . but not able to find
    Kumar

    Hi
    There is no specific field name for open item in the table BSIK.Yes BSIK include a structure named ABSIK_PSO and which is a "IS-PS: Data appendix of open items vendors".
    Yes there is a field name
    BUZEI - Line Item
    EBELP - Item
    You check with your requirement again and try to use these fields,if you still facing some probs than write back to me,i will try to give the appropriate solutions.
    Thanks
    Mrutyunjaya Tripathy

  • Warning : No Rate found in the opening period

    Hello,
    i want to make the currency translation and it works, but everytime there is one message that irritates me.
    SPRunConversion Version 7.0.114
    Warning : No Rate found in the opening period
    20081200 - 18 Rows Calulated
    20081200 - 0 Rows Updated
    What is the opening period and where can i set the parameter for each entity?
    Thx
    Dirk
    Edited by: Dirk Unkelbach on Oct 2, 2009 11:59 AM
    Edited by: Dirk Unkelbach on Oct 2, 2009 12:00 PM
    Edited by: Dirk Unkelbach on Oct 2, 2009 12:01 PM

    Hi Dirk,
    Opening period is normaly used for carry forward rules, but you get this warning in currency conversion also.
    You can set the parameters for Opening Period in the CATEGORY Dimension.
    First Parameter is OPENING_PERIOD : if its blank it uses the last month of a year (=> DEC if you use calendar year)
    Second Parameter is OPENING_YEAR: blank means previous year (same as inserting -1)
    This means, if you calculate budget for  the whole year or a month in 2009, Opening Period is 2008.DEC.
    If you dont have any rates in Time = 2008.DEC;Category=Budget (for each of your specific rates) you will get this warning.
    Gruß
    Jörg
    Edited by: Jörg Finster on Oct 6, 2009 12:34 PM

  • FM for locking n unlocking a table for update

    I have to update a table named bnka, can anyone tel me the FM for locking and unlocking a table before updating the same..
    thnkx
    amit

    you can use FM ENQUEUE_EFBNKA to lock the table vbak
    and DEQUEUE_EFBNKA to unlock it
    Example:
    call function 'ENQUEUE_EFBNKA'
    EXPORTING
       MODE_BNKA            = 'E'
       BANKS                = bnka-banks
       BANKL                = bnka-bankl
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3.
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    update BNKA .....
    call function 'DEQUEUE_EFBNKA'
    EXPORTING
       MODE_BNKA       = 'E'
       BANKS           = bnka-banks
       BANKL           = bnka-bankl.

  • MRF1 for past periods

    We want to run FIFO valuation for previous periods
    But Methods available are
    VOM: For Previous Month
    VVM: Month before last moth
    GJE: Pervious year.
    How to run FIFO valuation method for previous periods other than Month
    before last month.

    Hi,
    As you said, the normal way to do it is to post a repeat run as cummulated value in June 2006.
    But if in case you still need to allocate on monthly basis, you can use t-code ABF1 to manually adjust the 6 months difference.
    First, run the repeat run as of June, display the document as reference, manually reverse the journal via ABF1 (pk 40 reverse to 50,Pk 75 to 70, transaction type 501 to 101 or 105). Second, post 6 journal to allocate the expense from january to june.
    Hope it helps.
    regards,

  • Detemining the free space for each tables before Archiving an object.

    Hi Everyone,
    I want to know,how can i get the information about the how much space will get free from each table which is related to an archiving object <b>before</b> i perform
    archiving on that particular object.
    Are there any transactions for the same, or some transaction which can be related to these.
    eg:FI_DOCUMNT is related to lots of table, before i archive this object, i want to know that space that will be free from all the tables individually which are affected by this object.
    Regards,
    Nipun Sharma

    Hi Nipun,
    as far as I know: there is no easy tool to get this numbers. But on the other hand, you don't need exact numbers, estimations will do.
    It's a good idea to start with the biggest objects: take DB02, make a detailed analysis where you select the biggest tables -> corresponding archive objects should be your main focus (for the beginning).
    Count for the biggest tables in each objects the entries per year (or month, whatever periods you are interested in). Most tables have creation date to do so, otherwise go for number range. For some numbers you could search the creation date, the rest is estimation again.
    Then you will have an idea, which volume was created in which time frame.
    Still you need some test archive runs (in PRD or an (old) copy, at least for an example amount of data): you need to know, which % of the documents can technically be archived, how much will stay open because of missing closing. That's critical information (maybe 90% will stay in system) and can only be analyzed by SARA test runs - if you identify the missing object status, you can go on selecting this directly, but in the beginning you need the archive run.
    With the volume / time frame and the percentage, which can be deleted you should be able to give estimations based on current total object size. Make clear, that you talk about estimations: every single object will be checked for having correct status - before this isn't done (in a test run), no one can tell exact numbers.
    Hope, this will help you,
    regards,
    Christian

  • Reg:T-CODE for open and close period for materials(new plant).

    hi sap guru's
    T-code for following process
        can anybody send me , how to create calendar to new plant . and what is the T-code to be use for open and close period of materials for new plant.
    thanks
    sakthi..

    Hi Sakthi,
    I am assuming that you are asking about the factory calendars which are assigned while difing the plant.
    Factory calendars are created through transaction "SCAL".
    Opening and closing of MM periods can be done through transaction MMPV.This is based on the company code.Before using MMPV ,you can look the last opened period in the transaction MMRV.
    Reward points if it helps.
    Regards
    Karan

  • Opening Balances for Previous Periods

    Hi Experts,
    There is a client requirement of entering opening balances for GL for previous periods before going live.
    eg it is required to have OB for 2006,2007 and 2008 before live transactions are entered into the system.
    Please enlighten on how to carry out this.
    Regards,
    Asap

    Hi Asap,
    You could only have one OB for one account.  If those OB for different years are for different accounts, it is ok.  Otherwise, you have 2006 OB only. You may create JE to get something like OB for 2007 and 2008.
    Thanks,
    Gordon

  • Tables for posting period check

    Hi,
    Can somebody tell me the tables for posting period check for tcodes F-63 and MIR7. I need to check whether the posting period is open when uploading data to these tcodes.
    Arun Mohan

    Use FM <b>FI_PERIOD_CHECK</b>
    Check this out for the same
    http://sap4.com/wiki/index.php?title=FI_PERIOD_CHECK
    Regards,
    Santosh

Maybe you are looking for

  • IPad Mini Syncing Issues

    I have an iPad mini with retina display, yesterday I wanted to add some music to my iPad, I've had an iPod before so I think I am reasonably experienced with syncing using iTunes. After launching iTunes it recommended me to update to 11.1, I did so a

  • Only first page of pdfs will display in Reader for iPad?

    When I attempt to open some (not all) pdf files, only the first page of the document will display. The remaining pages show up blank, with the top toolbar also not displayed. These files are downloaded from my university's Blackboard app, with some w

  • Windows Media Center problems

    I AM HAVING THE EXACT SAME PROBLEM. EXACTLY THE SAME. I CANT ACCESS ANYTHING. WMC JUST KEEPS POPPING UP EITHER RANDOMLY OR WHEN I TRY TO OPEN ANY PROGRAM

  • Urgent Openinings For Experienced Oracle ADF guys in Oracle India

    Oracle india is looking for Oracle-ADF guys Location :: Hyderabad / Bangalore Experience :: 3-6 years sent resume:: [email protected]

  • Adobe Acrobat XI Professional does not open.

    Acrobat XI Professional does not open. Reader will not open PDF files.  Using Windows 7 Professional on Dell Reader does not open PDF Files.  I have uninstalled and re-installed twice.