Urgent!!Calculate PERIOD frm Sytem Date or Load Date!!

Hi experts,
How to write an ABAP code in BI7 to Calculate PERIOD frm Sytem Date or Load Date???
Pls help me ASAP...
Edited by: SAP BI Learner on Jul 1, 2008 4:46 PM

Please search before you post - for starting, see one thread below.
FM to calculate fiscalyear period from current date

Similar Messages

  • Urgent: FRM - 18108: Failed to load the following objects.... in R12

    Hi,
    I am unable to open forms,
    even it opens with this following error, as well all form fields are not coming.
    anyone give information.
    Please see this following error message:
    FRM - 18108: Failed to load the following objects.
    Source Module: APPSTAND
    Source Object: STANDARD_PC_AND_VA
    Source Module: APPSTAND
    Source Object: STANDARD_TOOLBAR
    Source Module: APPSTAND
    Source Object: STANDARD_CALENDAR
    Cheers from..
    M.K.Thamaraiselvan

    Hi,
    i used to get this following error also, while connecting from windows desktop
    FRM - 18108: Failed to load the following objects.
    Source Module: APPSTAND
    Source Object: STANDARD_PC_AND_VA
    Source Module: APPSTAND
    Source Object: STANDARD_TOOLBAR
    Source Module: APPSTAND
    Source Object: STANDARD_CALENDAR
    FRM-10102: Cannot attach PL/SQL library APPCORE.pll. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library GLOBE. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library JE. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library FNDSQF. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library JA. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library JL. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library VERT. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library CUSTOM. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPDAYPK.pll. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library GHR. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library PQH_GEN. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library PSAC. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library IGILUTIL. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library GMS. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library APPCORE2. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library FV. This library attachment will be lost if the module is saved.
    FRM-10102: Cannot attach PL/SQL library OPM. This library attachment will be lost if the module is saved.

  • How to calculate the volume of data used (PI licensing limit).

    Hi,
    One of our customers has several interfases running on SAP PI. They have a license that allows them the use of PI for a quantity of Gb in message data per month (I think that's the usual way).
    They would like to know how near/far they are of their limint of data, so they would like to know how does SAP evaluate that.
    Does  anybody know wich tool(s) are used by SAP to calculate the volume of data spent in one month?. We would like to launch those tools and get this info (so we can evaluate if we can add new interfases or change the periodicity of existing ones within the limits of the current license).
    Thanks in advance for your help.
    Best Regards
    Rafa

    Hi Mark,
    I have a quick question. The links that you provided gives an idea of the way in which the volume is calculated. This is helpful.
    My question is regarding Auditing and Compliance:
    Client has bought SAP PI licence for certain GB of data per month.
    Can this report be generated automatically classified by SAP and Non SAP Systems (PI licence volume constraints are normally for data exchange for non SAP Systems)?
    Also can this data be measured at Adaptor level? How does one monitor data at Adaptor level.
    Thanks And Regards,
    Maloy

  • How to translate dashboard prompt year/period into literal date range

    I am using OBIEE 10g. I have a dashboard that prompts for a fiscal year and fiscal period (both are numeric data types). I need to use these values in the date filter for my answers request - however, to fully utilize the indexes and partitioning that have been set up on my fact table (Teradata database) I need to be able to convert fiscal year/period to a literal date range and pass literal date values (i.e. 10/01/2011 - 10/31/2011) to my answers filter. So far I have been unable to do this, I'm hoping someone has some ideas.
    Here are some things I've tried so far:
    In the dashboard prompt, set variables var_year and var_period (which would be set to 2012 and 10, respectively). Create a filter on my answers request for Date (from calendar dimension) that calculates a min/max date value based on var_year and var_period. While this works to return data, the sql is not optimized as it does not contain literal date values for the filter (10/01/2011 - 10/31/2011).
    Create a subreport that takes the year/period from the dashboard prompt and calculates 2 columns, one for the "From Date" (using min calculation) and one for the "To Date" (using max calculation). Then create a filter on my answers request that uses the results of this subreport to create the date filter. Again this works - however, instead of passing the literal date values for from and to dates, it passes the min/max calculations so that these are executed again in the answers request sql. Therefore again this is not optimized, as it is not passing literal date values for the filter.
    I have only been able to get this to work by creating a prompt for entering a from and to date directly, and using this to pass to the answers request filter. This generates optimized sql as it contains literal date values. However, this is not acceptable to the users as they want to enter fiscal year/fiscal period at the dashboard prompt, not a date range.
    I have tried to get the fiscal year/fiscal period columns in the dashboard prompt to set another dashboard prompt for a date range, thinking I could then set new presentation variables for those from/to columns to use in the answers request, but I can't figure out how to do this. Is this even possible, to use a dashboard prompt value to set a subsequent dashboard prompt value?
    Is there some other method of converting these prompt values to literal dates that I am missing?
    Thanks in advance for any help you can provide.
    Rhonda

    Disregard. I gave up and just brought in the Fiscal Period Start Date and Fiscal Period End Date to the rpd so I can use them in the dashboard prompt, created presentation variables for each, and used those in the report filter.

  • How to calculate days between 2 dates excluding public holidays over SAP ?

    Hi
    Have a universe over SAP data. Trying to calculate days between 2 dates. SAP holds Public Holiday data in various tables e.g  Thol and data is updated via scal. Using my univeres as a source I want to run  reports for different countries so need to have various bank holidays not just UK. In SAP function modules handle this. Has anyone designed a solution to cater for this situation in a universe ?
    Thanks in advance
    M

    Hi,
    I assume you mean SAP R/3 (ECC) when you write SAP and SAP BW.
    Are you using BW? If so, I would load the data into SAP BW, create a query using customer exit variables and build your universe on top of that...
    -J

  • Calculate difference between two dates/times

    Hi all,
    Is there any function module to calculate difference between two dates/times which are in TIMESTAMPL format.
    I need to know how many millisconde(second,minutes, hours... )there is between these two times.
    Please, It is urgent
    Thank you all.
    Karim

    hi,
    try the following function
    CALL FUNCTION 'CCU_TIMESTAMP_DIFFERENCE'        
          EXPORTING                                  
               timestamp1 = timestamp1               
               timestamp2 = timestamp2               
          IMPORTING                                  
               difference = diff                     
          EXCEPTIONS                                 
               OTHERS     = 1. 
    the above function gives the difference in seconds...
    try the following  code to set the resolution to milliseconds..
    SET RUN TIME CLOCK RESOLUTION LOW
    check the thread for details:
    SET RUN TIME CLOCK RESOLUTION?
    all the best!!!
    Regards,
    Aparna

  • How to derive Budget Period from Delivery date in PR/PO

    Hello Gurus,
    I have activated the Budget Period functionality in FM (BCS). I am deriving the budget period from Posting date but in case of PR/PO I want to derive it from Delivery date instead of Document/Posting Date.I know it is not possible while standard derivation. Could any one help me with some suggestion like if I can use some exit/BaDI in MM. Also I am creating a PM order and at the time of release of PM order system creates the PR in background hence I need to know some kind of exit/BADI which can be called to update the Budget Period field in PR.
    Thanks in Advance!
    Regards
    Rohit Goel

    Hello Eli,
    I have one more query to ask on the above scenario.
    The scenario is my delivery date in PO is say July but I did good issue in May hence the Budget Period should be May and not july in my GR and IV.
    Now when I am doing GR in May then system is showing the Budget Period as July in GR document but in FM Document it is populating as May. I have defined a derivation strategy to derive budget period from posting date so may be because of that.
    But when I am doing IV then it is again moving the amount from May to July. It may be right behaviour that system is deriving all the account assignment from Source document but is there any way to overwrite.
    I have defined the derivation strategy with the condition that overwrite with new value if already written (Deriving from Posting Date to Budget Period).
    Please guide me on this if possible.
    Thanks in Advance
    Regards
    Rohit

  • Forms 11g Server compilation issues: FRM-18108: Failed to load the following objects

    Attempting to upgrade to 11g (Forms 11 Version 11.1.2.1.0 on Linux) from 9i.
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - 64bit Production
    Compiling an FMB on the server (not windows PC) is giving error FRM-18108: Failed to load the following objects. The compiler is unable to find OLB files and PLL files. This seems to be a config issue but I cannot track it down.
    We have a /nhbcapps/lib for library and object library (pll, olb) files and we have a /nhbcapps/bin for executables (mmx, fmx, plx)
    We have our own envmt file, cdb.env (in same folder as default.env):
    FORMS_PATH=/nhbcapps/bin:/nhbcapps/lib:/app/oracle/Middleware/Oracle_FRHome2/forms:/app/oracle/Middleware/asinst_1/FormsComponent/forms
    PATH=/nhbcapps/bin:/nhbcapps/lib:/app/oracle/Middleware/Oracle_FRHome2/bin:/app/oracle/Middleware/Oracle_FRHome2/jdk/bin
    formsweb.cfg:
    envFile=cdb.env
    Please could anyone help get this working?

    Your module NC_REF.fmb (or NC_REF.olb), which is referenced for shared objects, cannot be found. The best way to test it is to place it in the working directory (the start-in directory of the windows shortcut from where you launch Forms Builder). That way you are independent from the FORMS60_PATH, because the working directory is searched first.

  • Function module reqd for fiscal period using current date

    Hi,
    Is there any function module which gives fiscal period using current date.
    Thnaks,
    Maheedhar

    Hi Maheedhar,
    Try the code below.
    CALL FUNCTION 'GET_CURRENT_YEAR'
      EXPORTING
        BUKRS         = '1000'     " Company Code
        DATE          = SY-DATUM   " Date to find fiscal year for
      IMPORTING
        CURRM         = w_currm    " Current Fiscal Month
        CURRY         = w_curry    " Current Fiscal Year
        PREVM         = w_prevm    " Previous Fiscal Month
        PREVY         = w_prevy.   " Previous Fiscal Year
    Regards,
    Amit.

  • Customer credit memo can't auto calculate the net due date

    Hi all,
    Our user used F-27 to entry customer credit memo (PK = 11),
    [F-27|http://www.flickr.com/photos/44956360@N08/5206144134/]
    and payment term use net 60 days,
    [F-27 - screen 2|http://www.flickr.com/photos/44956360@N08/5206144210/]
    but the system display the net due date doesn't add 60 days
    [F-27 - screen 3|http://www.flickr.com/photos/44956360@N08/5206144292/]
    To use fbl1n display the net due date doesn't add 60 days
    [FBL1N|http://www.flickr.com/photos/44956360@N08/5206144344/]
    Why the system can't auto calculate the net due date when user used PK = 11, but If user use PK = 01, the system can auto calculate the net due date.
    Best regards,
    Eric

    Hi Henri,
    I found the answer, when user enter the original document number in reference field of credit memo, the system can auto calculated the net due date!
    no reference doc
    [PIC1|http://www.flickr.com/photos/44956360@N08/5208025267/]
    input reference doc
    [PIC2|http://www.flickr.com/photos/44956360@N08/5208623198/]
    Thanks for your help.
    Best regards,
    Eric

  • Calculate average for some dates

    Hi,
    I would like to calculate average for some dates. Is there any function module or any process, please provide me.
    venkat.

    Use this FM HR_HK_DIFF_BT_2_DATES
    Example:
    DATA: DATE1 type P0001-BEGDA,
              DATE2 type P0001-BEGDA,
    YEARS type P0347-SCRYY,
    MONTHS type P0347-SCRMM,
    DAYS type P0347-SCRDD.
    DATE1 = '20070331'.
    DATE2= '20070101'.
    CALL FUNCTION 'HR_HK_DIFF_BT_2_DATES'
    EXPORTING
    DATE1 = date1
    DATE2 = date2
    OUTPUT_FORMAT = '03'
    IMPORTING
    YEARS = years
    MONTHS = months
    DAYS = days
    EXCEPTIONS
    INVALID_DATES_SPECIFIED = 1
    OTHERS = 2
    IF SY-SUBRC 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Joan

  • Function module to get the posting period based on date

    Hi to all,
    Is there any function module to get the posting period based on date?
    Regards,
    Nagesh

    hi,
    CALL FUNCTION 'FIRST_DAY_IN_PERIOD_GET'
          EXPORTING
            I_GJAHR        = GV_GJHAR
            I_PERIV        = GC_24
            I_POPER        = GV_POPER
          IMPORTING
            E_DATE         = S_FKDAT-LOW
          EXCEPTIONS
            INPUT_FALSE    = 1
            T009_NOTFOUND  = 2
            T009B_NOTFOUND = 3
            OTHERS         = 4.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        CALL FUNCTION 'LAST_DAY_IN_PERIOD_GET'
          EXPORTING
            I_GJAHR        = GV_GJHAR
            I_PERIV        = GC_24
            I_POPER        = GV_POPER
          IMPORTING
            E_DATE         = S_FKDAT-HIGH
          EXCEPTIONS
            INPUT_FALSE    = 1
            T009_NOTFOUND  = 2
            T009B_NOTFOUND = 3
            OTHERS         = 4.
        IF SY-SUBRC <> 0.
          MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
                  WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
    ags.

  • Periods between two dates .

    Hi,
    can anyone tell me any function module dat returns the no of periods between two dates .like
    if i enter 02.02.2007
                05.05.2007
    then it shud return periods .
    011
    012
    001
    002
    003
    thnx ,
    point will b assigned.

    Hi Nishu,
       I think what you are looking for in the example below is periods 02, 03,04,05 when you enter dates 02.02.2007 to 05.05.2007.
    you have to write a customer exit  on posting period.
    check the paper below on how to write customer exit and how to derive a variable from another variable.
    https://websmp210.sap-ag.de/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
    Jaya

  • OHS - Protocol (Periodic) Next due dates are not being captured properly

    Protocol (Periodic) Next due dates are not being captured properly in the Planning Cockpit (EHSH_D_PCP) report nor the Protocol report (S_SH8_7200013).  The Planned date is not resetting itself for the medical service sometimes.
    Any idea what might be causing this issue?
    Regards
    Naveen

    HI Naveen
    Have you overridden the std BADI for calculating Next due date?
    Thanks
    Jagdsh

  • Adding 21 periods to a date

    Hi all,
    I have a date say ,2-22-2007.I am following fiscal calendar.I want to add 21 periods to this date ....how to add 21 periods to the date .......can anyone tell
    your help will be appreciated...

    Hi,
    You can use FM RP_CALC_DATE_IN_INTERVAL.
    data: wa_date  like sy-datum.
    *Add 21 days to current date.
    call function 'RP_CALC_DATE_IN_INTERVAL'
             exporting
                  date      = sy-datum
                  days      = 21
                  months    = 0
                  signum    = '+'
                  years     = 0
             importing
                  calc_date = wa_date.
    write: / wa_date.
    <b>Reward points if useful</b>
    Regards
    Ashu

Maybe you are looking for

  • Connecting MBPRO to HDTV

    I am attempting to connect my 2010 MBPRO to my Samsung HDTV.  I purchased the Dynex mini display port to HDMI adapter plugged it the computer and attached the HDMI cable.  When attaching the computer screen flashed blue then goes back to normal.  Mea

  • Lining shapes up so the edges don't bleed out

    Ok, it's hard to show this in an image without zooming way in. When I insert shapes in my document and the edges aren't exactly lined up with a pixel they become blurred. So if I have a pure black object the edge may be slightly transparent. I can zo

  • MAP fiscal year as per Vikram Samvat

    Hi I have a requirement for defining the fiscal year according to Hindi Calender i.e. Vikram Samvat wherein first month starts from mid of july sometimes 16th, sometimes 17th etc. again here no. of days in a month can go up from 29 to 32 days not fix

  • Iphoto albums to new mac from old

    I have already moved my entire iphoto library to my new macpro from my old ibook. but for some reason none of the albums came with it. Is there a way to get the albums over to the new after I have already moved the library? Thanks

  • URGENT porting to Android and iOS?

    I am developing a Flash game and the deadline is by the end of this month. The game will need to be run on Android and iOS. I tried AIR, but it runs slowly due to there being frame-by-frame bitmap animations. Is there a good optimisation method for A