Fiscal YearDeriving from Current System Date

Hi Experts,
As per my requirement i need to derive fiscal year.
My client financial year is 2011-the year starts from July -2010  and ends on June 2011.
Could you pelase let me know how can i start the code in CMOD as i am not femiliar with ABAP code.
ANy sample code would be great appreciated.
Thanks in advance.
Regards,
Talluri
Edited by: Talluribi on Jul 12, 2010 5:22 AM
Edited by: Talluribi on Jul 12, 2010 5:23 AM

Hi,
UMC_CALYEAR_TO_FISCPER
I_PERIV                           =    V3
I_CALYEAR                    =     2010
If you use above FM and give the inputs like above V3 as per Indian Period, and normal Year 2010, in the same way you give as per your Client Country and then execute in SE37 and you can find 12 Entries, here take First and Last Entry and use that in Report, you need to use Customer Exits for this.
You need some ABAP code to declare and take the values from above FM.
For Customer Exits See..
http://wiki.sdn.sap.com/wiki/display/profile/Surendra+Reddy
Thanks
Reddy

Similar Messages

  • How to get current system date and store in db

    may i know how to get the current system date so that i can store it into the database

    java.util.Date is NOT deprecated, just most of its methods are.
    Use
    new java.sql.Date(System.currentTimeMillis());to get the current date. Note that the date in a client machine
    may differ from the clock of the server!
    BTW: java.sql.Date extends java.util.Date.
    Fritz

  • Creating a field or workflow that responds to the Current System Date.

    In our activities/tasks we have a field that is the Expected Completion Date or Required Completion Date. Based on that date, and the current date, I want a workflow to trigger when the required completion date is less than 30 days away, sending daily reminders to the owner/manager that they have a activity/task due.
    The way I see it I have two options.
    1. Customize a field to be the system date. Create a workflow that says every time that field changes, and the date is within 30 days of required completion date, send out an email.
    2. Create a workflow that somehow incorporates the current/system date, and do the same thing as above, substituting the field with the actual date.
    I don't know how to make either of those options happen. Does anyone either have other options or advice on how to make this work?
    Thank you in advance!

    Hello Cyril,
    Here is an idea that could be done:
    You could create a dynamic step by having a step that holds all the properties for both configurations (the superset of the necessary variables) and an extra one that indicates which 'mode' the step is in.  Then you create the main Edit substep in whichever language you desire.  That substep window will then have a box/dropdown/etc. at the top you can use to choose between modes A & B.  When the user changes the value, you would dynamically change the rest of the window to contain the appropriate properties for mode A or B.  You then copy the property values in that window to the Step properties, and copy the mode to your variable and you can run the step in that mode.  When the step then runs, it checks the mode variable, and depending on its value, it will run the step in mode A or B.
    Now we could add a dialog that allows us to choose when we put a step down but we should still allow the user to change later via the Edit substep we create.
    I don't think we can create something that inserts a completely different step, but we can have one step that has the ability to do both and we can pick which one we execute.  Also note we still don't have the ability to edit the Panels for a step, so we have to use a new window that we call from our Edit substep to complete the step.
    Hope this helps.
    Regards,
    Olivier L. | Certified LabVIEW Developer

  • Current System Date is not an open or authorised accounting period

    Hi
    Has anyone come across this system error message when running a Manual Internal Recon for a Supplier from Business Partners Module:
    "Current System Date is not an open or authorised accounting period"
    I couldn't find a post on it in the forum.
    The scenario:
    December 2010 Posting Period is Unlocked
    November 2010 & January 2011 Posting Period are Locked
    Suppliers transactions to be reconciled average between August 2010 to December 2010, the Suppliers Currency is USD, the Recon Date is 25/01/2011 (todays date), the database LC = ZAR, SC = ZAR therefore making the USD = FC, Recon total = zero (after ticking relevant postings) > Reconcile > Gives above error message
    I tested x3 scenarios:
    - Change Recon Date to 31/12/2010 (as December 2010 period is Unlocked) = Recon reconciles
    - Open the January 2011 Posting Period = Recon Reconciles
    - Reconcile any Local supplier = LC (ZAR) Supplier with the same Recon Date (25/01/2011) = Recon Reconciles
    With the above mentioned it looks like something to do with Exchange Rates based off Recon Date trying to pull from January 2011 but can't because Jan 2011 Posting Period is Locked.
    Any ideas on the error message or why this may happen.
    Regards
    Kurt Walters

    Hi Rakesh
    Thanks very much for the reply, your answer has agreed to what I have said so I will consider this message closed now, thanks for the help much appreciated.
    Gordon - I am aware of this as per my post, just wanted to check as LC can post fine with the Period being closed but the FC will not based on the Recon Date, as per Rakesh agreement due to the FC looking at the Recon Date as well as Exchange Rate for that recon date and Period not open it will gives an error message.
    Thanks both for your replies, much appreciated.
    Regards
    Kurt Walters

  • Urgent ! Exit code to calculate End Date (31/12/9999) to Current system Dat

    Dear All,
    I have a scenario where i need to calculate Position time hold by an employee in an organisation.
    I have 2 date Char ( DATE FROM & DATE TO), the problem is that is , If an employee is having
    2/3 position in an organisation its current position End Date is always 31.12.999 as its End date is
    not know. For previous position End Date is maintained.
    My requirement is to calculate Position hold time including Current position.
    I have created 2 Formula Variable on Date From & Date To,
    The issue is that Date To is having both Values Previous Position Date thats ok as its not 31/12/9999
    I am geting those values in Forumla in addition its also having Date For Current position as 31/12/9999
    which should be converdet in to current system date.
    I need to write a User Exit on End Date Forumla Variable which should only convert if Date = 31/12/9999
    else leave it as it.
    For EX,
    EndDate
    1/1/2005
    1/1/2006
    31/12/9999(Only this value need to convert as current system date and leave above valuse as it)
    Can any one please provide me the code for this, this is v urgent.
    Thanks V V much.
    Regards,

    Hi Dilek,
    I now understand what you were writing.
    I played around a bit and it still doesn't work like I want to.
    The really strange thing is when I adapt an existing (SAP - standard) dynamic action (for another IT)  the 'calculation part' is performed and with my own attempt it doesn't substract the day.
    0442              BEGDA     06     10     P     T001P-MOLGA='05'
    0442              BEGDA     06     20     I     MOD,0014,1539
    0442              BEGDA     06     30     W     P0014-ENDDA=P0442-BEGDA
    0442              BEGDA     06     50     W     P0014-VTROP='-'
    0442              BEGDA     06     55     W     P0014-VTRAN='1'
    0442              BEGDA     06     60     W     P0014-VTRZH='010'
    If IT0442 is created or changed, IT0014 with subtype/wagetype 1539 should be delimited with enddate = (startdate IT0442 -/- 1 day)
    If you can have a look whether I mak e an obvious mistake, it's appreciated.
    In the meantime I'll fiddle around as well at my end.....
    Thanks,
    Wilfred.

  • Display current system date and time in a form

    Hello experts from around the world,
    I have this little minor challenge that i am having difficulty cornering.
    I have a form and i want to display the current system date and time so that when i save the form its saves it with the date displayed.
    I have tried sysdate, &sysdate and &sysdate. in the default part with static text with sessions state submissions.
    So any help or suggestions would be of great help :)
    Thanks

    hi kevin
    write the below script in HTML header.
    <script type="text/javascript">
    <!--
    var d = new Date();
    var curr_hour = d.getHours();
    var curr_min = d.getMinutes();
    document.write(curr_hour + " : " + curr_min);
    </script>
    it will give the time u can assign this variable to text box item variable.
    or else check the below java script link
    http://www.mcfedries.com/JavaScript/datetime.asp
    cheers,
    Shan

  • How to display current system Date in the Date Input field ?

    Hi,
    I am having a Date Input field( binded to Data type). On load, i would like to display the current system date filled in that input field.
    How do i achieve this ?
    Reg/Venkat

    Hi Venkatesan,
    In your view in your init() method add the following code:
    wdContext.currentContextElement().setOrderDate(new Date(System.currentTimeMillis()));
    this is if your Date-attribute is in the root of the context.
    else you have to set the date in the node where the date-attribute is present with:
    IYOURNODEElement node = wdContext.createYOURNODEElement();
    node.setOrderDate(new Date(System.currentTimeMillis()));
    regards,
    Björn

  • I need to get the Current System Date and time in the format

    I need to get the Current System Date and time in the format
    *6/24/2009 11:30:29 AM*
    How do i do it ?

    I seem to be saying this a lot lately.
    Google is your friend.
    I googled "java current date format" and SimpleDateFormat featured prominently in the results.

  • Want to shedule a report in background with current system date

    Dear All,
    I want to schedule a report which is having date parameters in the  selection screen.
    What i want is that , every time in the schedulling period the report should run in current system date only with a variant.
    Would it be possible.
    Thanks in Advance.
    With Regards
    Shantanu

    Yes possible by 2 ways.
    I) This way you can use the current date dynamically
    Go to your variants in change mode,
    1. Check the box 'Selection Variable' for date.
    2. Click on selection variables
    3. Choose 'D' for dynamic date calc
    4. Choose current date and save.
    II)Default it in code
    Default sy-datum for the selection variable.
    Hope this helps.

  • Assign current system date to the existing variant of date field

    Hi Experts,
       I am working with BDC for data uploading. Here I have a different requirement that how to assign the current system date to the existing variant of the  date field .
    The date field is defined as:   select-options s_date type sy-datum.
    Anybody have an idea, pls let me know.
    please help me .
    appreciate your valuable suggestions.
    Thanks.
    Prasad.

    Hi,
    try like this...
    SELECT-OPTIONS: s_date FOR sy-datum DEFAULT sy-datum.
    Arunima

  • Current System date in report

    Hi,
    Iam working on BW reports. Currently iam with report which needs to get the current system date automatically in reports.
    Can anybody help me on how to get the current system date in report automatically.
    I tried in layout but it gives all info. But i need only current system date.
    I even tried variable of type sapexit under 0calday. but as it is an variable it filters values with reg to current system date.

    Hi Ucas,
    U have to write the code for the variable as follows:
    1) Go to transaction SMOD
    2) Enter 'RSR00001' in Enhancement field. Also select the 'Components' radio button. And press 'Display'.
    3) Double click on the function module 'EXIT_SAPLRRS0_001'
    4) Then, double click on code text 'INCLUDE ZXRSRU01'
    5) Now, u reach a screen, where u can write ur include program. U have to write, for example, 'INCLUDE my_code'. Then double click on this to include ur code inside.
    6) The code can be :
    CASE i_vnam.
        WHEN '<write ur variable name>'.
        CHECK i_step = 2.
        s_range-sign = 'I'.
        s_range-opt  = 'EQ'.
        s_range-low  = sy-datum.
        APPEND s_range TO e_t_range.
    ENDCASE.
    Assign points if u find the above info useful.
    Message was edited by: Vishesh Pahariya

  • How to access current system date???

    Hi Experts,
    I am working on a process wherein a user creates a proposal and a notification is sent to the manager for approval.
    Now i need to send the date of creation as a attribute to the manager.
    Can anyone guide me as to how to get the current system date???
    Thanks a lot.
    Cheers
    Gaurav Raghav

    Hi Wojciech Matulewicz,
    I have tried using this before and i faced this problem.
    When i click on create proposal, the screen just refreshes and the CO execution doesnt ends.
    Without ending this field, however things work fine.
    here is the code:
    Method technicalDescription()
    IGPAttributeInfo date = output.addAttribute("DATE", IGPAttributeInfo.BASE_DATE);
                date.setMultiplicity(IGPAttributeInfo.MULITIPLICITY_1_1);
    Method execute()
    Date currDate = new Date(System.currentTimeMillis());
              contextElement.setDate(currDate);
    Method complete()
    output.setAttributeValue("Date", wdContext.currentContextElement().getDate());
    If i comment out this code, the CO execution works out fine, but on addition of this code the screen refreshes and CO execution doesnt end.
    Am i doing something wrong???
    please help me out with this.
    Thanks.
    Cheers
    Gaurav Raghav

  • Set current system date in a field on load of a page

    Hi APEX users,
    I read about a similar thread on the subject but I am just as confused.
    Simply I need assistance with the following:
    I have a page that has many fields and one of those fields is DATE_RESOLVED. This is a DATE Picker field but I want this field to show the current system date every time the form loads/reloads BUT yet give the user the ability to change the date if they should choose to do so by way of the DATE Picker calendar.
    How would I achieve this?
    Any help will be greatly appreciated. My form is functioning just fine but I just need to achieve this one last date function.
    Thanks in anticipation for your assistancel.
    Rick

    Hi Ric,
    the follwing should cover your requirements.
    a)
    On you main page screen, if you click on your particuar date item, say P1_MY_DATE
    set the follwing:
    #1 under Source,
    Source Used: only when current value in session state is null
    Source Type: Plsql expression or function
    Source value or expression: sysdate
    #2 under default
    default value: sysdate
    default value type: plsql expression
    b)
    On your main page screen, create a new page computation by clicking on the '+' icon next to computation on the left hand side (page rendering)
    location- item on this page (default) -> next ->
    compute item: select your item (P1_MY-DATE) -> computation point: Before regions ->computation type: plsql expression -> next ->
    computation: sysdate -> next
    (leave blank, unless you want this to be conditional) -> create
    done...

  • Export Preset to Rename with Current system Date?

    Hi All,
    I'm trying to build some export presets with a naming convention to include the current system date, eg: YYYYMMM-Title-Custom Text. This convention is oftened required for photo club, local, national & international photo competitions. The only date function I can find is the 'capture date'. Is there a way to modify the Export Filename Template Editor to include 'current system date' ??
    Edit:
    Sorry forgot to add, LR5.3, Mas OS 10.9.1
    Regards
    Craig

    You need to click the 'Define' button and choose Date/Time Now (Custom Metadata):
    If you need more help, please contact me outside the forum - thanks.
    Rob

  • Text label to show current system date?

    I'm totally new to Flex Builder 2. To help me get off the
    runway, here's a simple question I'm almost embarrassed to ask:
    How can I get a text label to display the current system date
    please? <hides head in shame>

    http://livedocs.adobe.com/flex/2/langref/Date.html

Maybe you are looking for

  • Material group with classification

    Dear Friends     I have a requirement like below: For a Plant ABCD I have 5000 materials in which i maitained 30 material groups. under each material group again i classified into sub material groups. also need an authorisation control based on mater

  • Exporting after editing

    how do i after editing my photos can i then add them to a disk or save them on my computer in c drive. i am using the trial version and have edited my photos but it keeps telling me when i try to export them that the original file cannot be found?  p

  • Hi can you make a podcast  without an apple computer

    hi i was just wondering if you can make a pod cast without a apple computer if any one could answer it would be cool thanks

  • Will apple replace broken ibook with macbook

    I don't know if Apple will replace my iBook G4 12" with a MacBook? I think that that won't happen for another 6 months or a year, is that true. iBook G4, Dell 4550, Dell 2200, Toshiba AS257, iPod 3G 15 GB, 2, iPod G4 20GB, iPod Mini 1G 4GB   Mac OS X

  • No sound after reconnect toTerminal Services

    Terminal Services Windows 2012R2. If user disconnected from server  (not logoff) and reconnected again sound isn't work. If restarted service "Windows Audio" or user logoff from server and connected again (new session) sound is work. This problem onl