Find first date of open FI periode

Hi gurus!
I want to check if the FI period is closed or not. If it is closed I want to find the open period, and then the first date in this period. How would you solve this?
check if FI period is closed.
If period is closed.
- find open period.
- find first date of open period.
endif.
<removed_by_moderator>
Kind regards,
Oyvind
Edited by: Julius Bussche on Oct 27, 2008 12:22 PM

use fm's FI_PERIOD_DETERMINE and PERIOD_CHECK
use the result for first date:
concatenate e_gjahr e_monat '01' into xdate.
A.

Similar Messages

  • Find first day of open posting period

    Hi all experts,
    my problem:
    I neded to find the first day of the open posting period in my report.
    You know any FM or other?
    thank you all, points for all.

    Hi..
    Try the FM
    <b>G_POSTING_DATE_OF_PERIOD_GET</b>
    If not:
    Check the Function modules in the Same Function group GUPD.
    <b>Reward if Helpful</b>

  • Function : Next date (from first date + duration + open capacity)

    Hello the community,
    I am looking for an ABAP function in order to obtain the u201Cfinished dateu201D if I know the u201Cfirst date/timeu201D, the duration and the work center (Production).
    My aim is the following one:
    I know the u201Creal date/timeu201D (related to the confirmation) related to the particular item of my routing. I would like to create a specific report with the expected u201Cfinished dateu201D of the next step of my routing.
    Data:
    -     first date/time(= real confirmation of the previous step of my routing)
    -     duration
    -     work center (open date related to the capacity)
    Result:
    -     finished date/time (or next date)
    Example:
    First date/time = 13/10/2009    13h00
    Duration = 75 min
    Work center = ROBOT1   (open time => 13h00 to 14h00 and 16h00 to 17h00)
    Result expected => 13/10/2009  16h15
    Thanks in advance for your feedback.
    Best regards,
    Sylvain.

    Hello the community,
    I am looking for an ABAP function in order to obtain the u201Cfinished dateu201D if I know the u201Cfirst date/timeu201D, the duration and the work center (Production).
    My aim is the following one:
    I know the u201Creal date/timeu201D (related to the confirmation) related to the particular item of my routing. I would like to create a specific report with the expected u201Cfinished dateu201D of the next step of my routing.
    Data:
    -     first date/time(= real confirmation of the previous step of my routing)
    -     duration
    -     work center (open date related to the capacity)
    Result:
    -     finished date/time (or next date)
    Example:
    First date/time = 13/10/2009    13h00
    Duration = 75 min
    Work center = ROBOT1   (open time => 13h00 to 14h00 and 16h00 to 17h00)
    Result expected => 13/10/2009  16h15
    Thanks in advance for your feedback.
    Best regards,
    Sylvain.

  • How do we find first date of a month and last date of month?

    is it required long caluculation or is there any simple method?

    hi,
    try this FM -> 'HR_JP_MONTH_BEGIN_END_DATE'
    chk this also
    CALL FUNCTION 'LAST_DAY_OF_MONTHS'
    EXPORTING
    DAY_IN = sy-datum
    IMPORTING
    LAST_DAY_OF_MONTH = v_lastdate. <--Gives you the last day of a Month
    Other FM
    SG_PS_GET_LAST_DAY_OF_MONTH
    HRVE_LAST_DAY_OF_MONTH
    SLS_MISC_GET_LAST_DAY_OF_MONTH
    rgds
    anver
    if hklped mark points

  • How to calculate First Date of Posting Period in BEx Query

    Hi,
             I have  2 reporting requirements as follows:
    1) User will either enter a single posting period in a fiscal year or can enter a range of posting periods.
    Based on user selection I need to display three key figures in a report.
    Key figure 1 and Key Figure2 should be the summarized values for each posting period.
    key Figure 3 should be the value on the first date of that particular posting period (in case user selects multiple posting periods i should derive the value of the first date of each posting period).
    2) Also, in another report I need to display only top 8 values  for one key figure in the report.
    Please let me know the method or code required to get this Functionality.
    Thanks in advance.

    First Report
    1. Create Restricted KeyFigure 1 & 2 for the summarized values.
    2. Create a Customer Exit Variable for getting the first date of the posting period, this should be of type Interval. Write code using FM FIRST_DAY_IN_PERIOD_GET to get. Read the selection variable to see the range of posting period and you have to insert that many first dates into this variable.
    3. Create a new Restricted KeyFigure 3 and use the Customer Exit variable created in Step 2
    Second Report
    Use the Top N functionality of BEx and create a workbook. You can set the option Refresh query when the workbook is open so that the data is current when opened.
    Hope this helps.

  • How can I save first data before data logging in a regular period?

    Hi,
    I need some help to see what's wrong with my VI. I want to save the first data when I launch my VI until reach the first minute, after I want save data minute by minute, but in this fisrt period my VI does't save this data in the .lvm file.
    Could someone help me?
    Thanks.
    Attachments:
    savefirstdata.vi ‏76 KB

    Thanks MoReese, but I can't open again. Well, I think I figured out what you have said last post and it worked fine, I will attach the new VI. So, I got another question right now. Why when data acquisiton has start collecting data with timestamp after some time it's incremented 1 second in the time stamp inside the lvm file or same in txt file? I'll attach the file to exemplify.
    Thanks for the responses.
    Diego 
    Attachments:
    savefirstdata3.vi ‏53 KB
    incrementsecond.png ‏19 KB

  • Looking for a query to find first/last dates in overlapping dates...

    Hi,
    I'm looking for a query to find the first dates and last dates in a table conaining overlapping dates.
    I have a subscription table which has for each Customer start and end date for different subscriptions.
    I want to know the different ranges of date where there is subscriptions active.
    so if the table has this:
    CustID, Start date, end date
    1, 2008-01-01, 2012-06-06
    1 ,2009-01-01, 2011-01-01
    1, 2011-01-01, 2013-02-02
    1, 2013-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    I want to produce this result:
    custid, range start, range end
    1, 2008-01-01, 2013-08-08
    1, 2014-01-01, 2014-04-04
    the first row is the range identified from the 4 rows in my subscription table.
    thanks :)

    I think I found it...
    http://stackoverflow.com/questions/5213484/eliminate-and-reduce-overlapping-date-ranges
    let me try this method
    Hi,
    m writing to follow up with you on this post. Thanks for you posting a reply to share your workground. Was the problem resolved after performing the above link? If you are satisfied with the above solution, I’d like to mark this issue as "Answered".
    Please also feel free to unmark the issue, with any new findings or concerns you may have.
    Thanks,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Finder, modified date on file opening

    Hi, I'm using PowerPoint for a .ppt file.
    When I open this file finder make a change of the modified date with the date of opening...PowerPoint has a loading bar just few moment before opening this file, and then I can see the new modified date.....but if I don't make changes in this file why the date change??
    This doesn't happen whit word or office.....I also tried to see if there are strange options on powerpoint that do this but whit no results.

    Karin,
    a Java class on the server and on the client form could do this by calling File.lastModified and comparing the long numbers returned.
    WebUtil does not provide this functionality - as far as I can see from a quick scan - so thi smay be a valid enhancement request.
    Frank

  • Check whether the order date is open in AR period - 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
    Edited by: user2138419 on Nov 12, 2009 4:54 PM

    Hi;
    Please see below notes:
    RVTPT-098: ORA-01086: savepoint 'START_TRX' never established [ID 987686.1]
    APP-PO-14230 Or APP-PO-14376 : When Saving Receipts [ID 552244.1]
    Run Masscancel Error App-Po-14230: The GL Date Is Not In An Open Period. [ID 1131265.1]
    Mass Cancel Error APP-PO-14230 GL Date Not In an Open Period, But Can Manually Cancel The Same Purchase Orders [ID 882329.1]
    Hope it helps
    Regard
    Helios

  • Query to find first and last call made by selected number for date range

    Hi,
    query to find first and last call made by selected number for date range
    according to filter:
    mobile_no : 989.....
    call_date_from : 25-april-2013
    call_date_to : 26-april-2013
    Please help

    Hi,
    It sounds like you want a Top-N Query , something like this:
    WITH    got_nums   AS
         SELECT     table_x.*     -- or list columns wanted
         ,     ROW_NUMBER () OVER (ORDER BY  call_date      ) AS a_num
         ,     ROW_NUMBER () OVER (ORDER BY  call_date  DESC) AS d_num
         FROM     table_x
         WHERE     mobile_no     = 989
         AND     call_date     >= DATE '2013-04-25'
         AND     call_date     <  DATE '2013-04-26' + 1
    SELECT  *     -- or list all columns except a_num and d_num
    FROM     got_nums
    WHERE     1     IN (a_num, d_num)
    ;This forum is devoted to the SQL*Plus and iSQL*Plus front ends. This question doesn't have anything to do with any front end, does it? In the future, you'll get better response if you post questions like this in the PL/SQL.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the SQL forum FAQ {message:id=9360002}

  • How to find FIRST and the LAST date of the month.

    Hello,
    I want to find the first and the last date of the current month through query. How is it possible please help.
    For example if the current month is july. The first date should be 01-JUL-2006 and the last date would be 31-JUL-2006.
    Please help me.
    Regards,
    Imran Baig

    Like this?
    SQL> select trunc(sysdate,'MM') "First_Day",
      2        last_day(sysdate) "Last_Day" from dual;
    First_Day Last_Day
    01-JUL-06 31-JUL-06
    SQL> select trunc(to_date('10-FEB-04'),'MM' ) "First_Day",
      2       last_day(to_date('10-FEB-04')) "Last_Day" from dual;
    First_Day Last_Day
    01-FEB-04 29-FEB-04

  • APP-WIP-25039 Unable to find an open accounting period ??

    when make job order status released and save this error appear ??

    Have a look at the following notes:
    Note: 467404.1 - APP-SQLAP-10006 when trying to create new payment in APXPAWKB and using a Folder
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=467404.1
    Note: 316797.1 - Apxpawkb App-Sqlap-10006 The Date You Entered Is Not In Open Accting Period
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=316797.1
    Note: 228622.1 - APXINWKB APP-SQLAP-10006 : The Date You Entered Is Not In An Open Accounting Period
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=228622.1

  • I changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna i

    i changed my system on my mac 10.6.8 by doing a migration of my data and now i do find issues when i open logic, like i cant close it anymore (need to use the force quit option) if i ll bounce anything it will crash and same thing will happen if i wanna import something, if anybody has a idea??

    Hi
    This any help?
    http://support.apple.com/kb/TS3968
    CCT

  • Lion: Finder: Column View: Date Last Opened is not show correctly

    Hi Folks,
    I have upgrade my macs from 10.6.8 to 10.7.
    I am using the column view in the finder and I noticed that the
    Date Last Opened is not show correctly in the preview column.
    If I use the the list view and show the column Date Last Opened
    all dates are correct. Using the column view, the Date Last Opened
    allways matches the Date Last Modified.
    The attached screenshot shows an example with the same
    file at in both views mentiond above.
    I have noticed this problem with internal and external drives
    using the filesystem Mac OS Extended (Journaled).
    Is there way known to fix this behavior. In Snow Leopard it worked fine.
    Thank you for your support.

    Same here, however I found a strange work around.
    Go to your applications folder, for instance. Click the gear icon, go to Arrange By, then select Date Last Opened. It will correctly show the last opened time and arrange them accordingly. Switch back to arrange by name and the last opened date reverts back.
    It's not a bug, it's a feature!

  • Very easy question - How to find out the first date of year

    Hi Experts,
    I have created Web Dynpro program. I have to set one field "start_date" as first date of year. For example if current date is 04/10/2009, then program should set value of field "start_date" as 01/01/2009.
    If suppose program is used on 12/12/2012, then program should set the value of "start_date" as 01/01/2012.
    Please peovide me some code.
    Regards,
    Gary

    Hi,
    This line should give you the current year.
    Calendar.getInstance().get(Calendar.YEAR);
    Prefix 01/01/ to this will give you the first day of that year.
    Thanks,
    Venkat

Maybe you are looking for

  • Export from Crystal Reports to .ttx takes long time

    We have multiple sites running the same Crystal report. The report can run and present data in an hour resulting in thousands of records. Then we need the report to be exported into tab-separated text. The export can take 10-12 hours for some of the

  • Cannot boot with Perc /2 raid controller

    I have just built a system with K7D + 2 2400 MP, and the system hangs when I try to boot with my Perc/2 raid controller in. I have stripped down to just the following components; 2 2400 MP Perc 2 1GB ECC ram Sapphire ATI Radeon 9000 When I try to boo

  • Utilities:IC Agent, View MainWindow of the UI-Component IUOCTXTNAVSRV error

    Hallo, I upgraded my crm 2007 system on crm 7.0. My system is integrated with ERP 6.0 / ECC 6.0 (with IS-UT). The roles "marketing" and "Utilities Sales" are working, but not "IC Agent". If i call the role "ic agent", I get the error: Cannot display

  • Object Libraries

    Hi All We have got around 50 forms using olb named 'abc.olb'. The olb contains defined property classes for text items , display items etc. Is it possible to change the reference from 'abc.olb' to '123.olb' without going to each object subclass infor

  • NOKIA 8800 CARBON ARTE HELP!!!!!

    Hi I have a Nokia 8800 Carbon Arte, cannot seem to get predictive text messaging in English, its only Chinese and other languages. Can anyone help with this please. Also, when I download my software and pit my USB cable in, nothing happens. Help plea