How to get or set default fiscal year value in billing doc

Hi All, my question is simple, how to get or set default fiscal year value (VBRK_GJAHR) in billing document.. is it possible.
Thanks.
Regards,
Michael

Hi Michel
If you feel that the fiscal year value should come  in the billing document then you have to use a user exit USEREXIT_NUMBER_RANGE .
As this is a related to ABAP , you should give the inputs and ABAP'ers will give the number range as per our requirement .
Regards
Srinath

Similar Messages

  • How to get start date of fiscal year?

    hi all,
    how to get the start date of fiscal year by passing fiscal year variant and fiscal year?
    please let me know.

    hi,
    See this FM
    FIRST_AND_LAST_DAY_IN_YEAR_GET  " Provides the first and last calendar date for a fiscal year
    Regards

  • How to get the same period last year value using Fiscal Calendar?

    Hi there,
    I am using DAX in a Tabular Model project but I am getting stuck trying to get the following:
    We are using a Fiscal Calendar (from 01 April to 31 March). 
    Previous Period Value
           Value
    2012
    April
    15
    May
    10
    Jun
    20
    2013
    April
    15
    30
    May
    10
    20
    Jun
    20
    25
    I have tried to use sameperiodlastyear but there is an error saying that this function cannot be used for non contiguous dates. DATEADD is given the same error...
    Could anyone help me getting the right measure expressions for [Previous Period Value]?
    Thanks and best regards,
    Joss

    Hi Joss,
    In SQL Server Analysis Services, we can can compare revenue with the hierarchy periods (year, month, day) by using the PARALLELPERIOD function, and now you want to compare with custom periods. (NOTE: We cannot compare it with the PARALLELPERIOD function
    since
    PARALLELPERIOD function returns a member from a prior period in the same relative position as a specified member. So if the first time span not equal to the second one (such as the first period is 3 days, and the second period is 2 month)).  Here
    is a sample query about PARALLELPERIOD function for your reference.
    with
    set Hotels as
    [Hotels].[Hotel ID].&[1015],
    [Hotels].[Hotel ID].&[5640],
    [Hotels].[Hotel ID].&[8800]
    set Period as [Arrival Date].[Date].[Month].&[2012]&[1]:[Arrival Date].[Date].[Month].&[2012]&[12]
    member [Arrival Date].[Date].[0] as sum({ Period })
    member [Total Amount N-1] as (PARALLELPERIOD([Arrival Date].[Date].[Year], 1, [Arrival Date].[Date].[Year].&[2012]), [Measures].[Total Amount])
    select
    [Measures].[Total Amount],
    [Measures].[Total Amount N-1]
    } on 0,
    nonemptycrossjoin
    Hotels,
    Hotels.[Hotel].children,
    *{[Arrival Date].[Date].[0]}
    } on 1
    from [Booking_Cube]
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to set the fiscal year period as default in variables

    Hi All,
    How to set the fiscal year period as default it shoud take previous period when the report is executed.
    And also I need to do the same changes in reporting agent.
    Could you please any one help me.
    Points will be given.
    Thanks!
    Best regards,
    Ajay.

    Hi Ajay,
    Create a customer exit variable.Write the code in the include 'zxrsru01' using system date.
    take the system date from the system date variable and using that you can get the current fiscal year period.use this value and using string commands, you can get period.
    subtract 1 from this value.Using this you can get the previous fiscal period..
    Please let us know, if you need the coding part
    Hope it helps
    Thanks,
    Teja

  • How to get Open Balance for the year and Total Ending Balance?

    For a given account, how to get Open Balance for the year (Cumulative Ending Balance) and Total Ending Balance (Cumulative Ending Balance)?
    Is there any function module available? or should I read from some tables? Please advice.

    Hello Paul,
    You could try calling one of the following BAPIs - see which one meets your requirement. They are documented well so shouldn't be a problem finding out the correct one for your requirements.
    BAPI_GL_GETGLACCBALANCE      
    BAPI_GL_GETGLACCCURRENTBALANCE
    BAPI_GL_ACC_GETBALANCE      
    BAPI_GL_ACC_GETCURRENTBALANCE
    BAPI_GL_ACC_GETPERIODBALANCES
    BAPI_COND_VAL_DECRE_BALANCES
    You might have to put in some of your own logic after the BAPI call to get what you want.
    Hope this helps,
    Cheers,
    Sougata.
    p.s. Also look at FM FAGL_GET_ACCOUNT_BALANCE
    Edited by: Sougata Chatterjee on May 7, 2008 11:47 AM

  • How to get Document Set property values in a SharePoint library in to a CSV file using Powershell

    Hi,
    How to get Document Set property values in a SharePoint library into a CSV file using Powershell?
    Any help would be greatly appreciated.
    Thank you.
    AA.

    Hi,
    According to your description, my understanding is that you want to you want to get document set property value in a SharePoint library and then export into a CSV file using PowerShell.
    I suggest you can get the document sets properties like the PowerShell Command below:
    [system.reflection.assembly]::loadwithpartialname("microsoft.sharepoint")
    $siteurl="http://sp2013sps/sites/test"
    $listname="Documents"
    $mysite=new-object microsoft.sharepoint.spsite($siteurl)
    $myweb=$mysite.openweb()
    $list=$myweb.lists[$listname]
    foreach($item in $list.items)
    if($item.contenttype.name -eq "Document Set")
    if($item.folder.itemcount -eq 0)
    write-host $item.title
    Then you can use Export-Csv PowerShell Command to export to a CSV file.
    More information:
    Powershell for document sets
    How to export data to CSV in PowerShell?
    Using the Export-Csv Cmdlet
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • 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 get fourthly row (row4) first column value (col1) in matrix

    Hi to all,
    In FMS, how to get fourthly row (row4) first column value (col1) in matrix in document.
    select $[$38.1.4]
    But it display the first row
    Please give me hint.
    Thank you

    Hi Eric,
    FMS may only apply to current row.  There is no way to get any other fixed row.
    Thanks,
    Gordon

  • How to get YTD sale for Last year In OBIEE 11g

    Hi All,
    I have a fact table for Sale_Amt with doc_date wise details. It is connected to Simple time_dimension table based on Date_ID(Number) field. The time_DIm Hierarchy is set on Year, Quarter, Month fields of the time_dimension table.
    One of my reporting requirement is to show show YTD sales and Last Years YTD sales.
    e.g, If user select 23 Jul 2013 as the date parameter, I need to show 1-Apr-2013 till 23 Jul 2013 Sales in YTD column and 1-Apr-2012 till 23 Jul 2012 Sales in Year_Ago_YTD column. I am able to get YTD sales but unable to derive at Year_Ago_YTD sales figures.
    Finacial Year Start from 1st April till 31 March.
    Any Help on this will be appriciated.
    Thanks.
    Narendra Shetty.

    Narendra,
        You can make use of the below two functions to get the year ago dates. You can replace current_date with a presentation variable that stores the date parameter that user selected.
    TimestampAdd(SQL_TSI_YEAR,-1,TIMESTAMPADD(SQL_TSI_MONTH, 3,TIMESTAMPADD( SQL_TSI_DAY , EXTRACT( DAY_OF_YEAR FROM CURRENT_DATE) * -(1) + 1, CURRENT_DATE))) - It will display previous year's first day of fiscal year (since I passed current_date, it gives you 1st april 2012)
    and
    TimestampAdd(SQL_TSI_YEAR,-1,current_date) - Same Day Last year
    Pls mark correct/helpful.

  • Defaulting fiscal year in GR55 reports

    Hi Experts,
    I had a requirement in defaulting the fiscal year to 2011 in our client's GR55 trial balance. What I did was, that I got the relevant variable (YEAR) and in GS12 changed the default value as 2011. Then when the report was run the fiscal year appeared as 2011.  However,   when I ran it for the second time I received the following error (when executing)
    "REPLACE_VARIABLES; SUBRC= 0; &PERLAST
    Message no. GR016"
    Could you please let me know if you have ever encountered this problem and how I could resolve this
    Thanks in advance
    Dasuni

    Hi Gaurav,
    Thanks for your feedback. We are unable to do as you have suggested. We found out that when a value for period has been entered this error doesn't come up. So now could you please let me know how to make a variable mandatory in GR55 reports.
    Thanks a lot
    Dasuni

  • How to get list of holidays in  year

    hi,
      how to get list of holidays for a calender year.
       if any body knows function modules please help me.
    thanks and regards
    sathish

    HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
    HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the
    date is a holiday by checking the parameter HOLIDAY_FOUND.
    Example: HOLIDAY_CHECK_AND_GET_INFO
    data: ld_date like scal-datum default sy-datum,
    lc_holiday_cal_id like scal-hcalid default 'CA',
    ltab_holiday_attributes like thol occurs 0 with header line,
    lc_holiday_found like scal-indicator.
    CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
    EXPORTING
    date = ld_date
    holiday_calendar_id = lc_holiday_cal_id
    WITH_HOLIDAY_ATTRIBUTES = 'X'
    IMPORTING
    HOLIDAY_FOUND = lc_holiday_found
    tables
    holiday_attributes = ltab_holiday_attributes
    EXCEPTIONS
    CALENDAR_BUFFER_NOT_LOADABLE = 1
    DATE_AFTER_RANGE = 2
    DATE_BEFORE_RANGE = 3
    DATE_INVALID = 4
    HOLIDAY_CALENDAR_ID_MISSING = 5
    HOLIDAY_CALENDAR_NOT_FOUND = 6
    OTHERS = 7.
    if sy-subrc = 0 and
    lc_holiday_found = 'X'.
    write: / ld_date, 'is a holiday'.
    else.
    write: / ld_date, 'is not a holiday, or there was an error calling the function'.
    endif.

  • OAAQ -  how to close again the reopen fiscal year in asset accounting

    hii frineds
    I have a Query that
    we have closed fiscal year 2006 and after closing we found some adjustment so reopent he same that is 2006 from T.Code OAAQ.
    Now adjustment are done and i need to close the fiscal year 2006 how can i do that???
    please Suggest...
    Points will be given
    sejal

    hi,
    first you need run t.code ajab for closing of 2006 and you need to run ajrw to open fiscal year 2007
    if it is useful pls assign the points
    Thanks & Regards
    phaneendra

  • How to get a calculated default date value as filter prompt

    Dear Colleagues,
    I would need to get a calculated date as dafault value in a query filter promp.
    I tried to use the token <%TODAY%> to set by default the current date and it works.
    But I'd need to set 6 months before the current date as default value in the filter prompt. Any idea to get it?
    I tried to set <%TODAY%> - 120 for example  but it's not working because I think the system is taking this as a DATE type value.
    Thanks in advance!
    Regards.
    Martin

    Dear Colleagues,
    I would need to get a calculated date as dafault value in a query filter promp.
    I tried to use the token <%TODAY%> to set by default the current date and it works.
    But I'd need to set 6 months before the current date as default value in the filter prompt. Any idea to get it?
    I tried to set <%TODAY%> - 120 for example  but it's not working because I think the system is taking this as a DATE type value.
    Thanks in advance!
    Regards.
    Martin

  • How to set default bind variable value to task parameter value

    Hi,
    I 'm implementing a BPEL process with a human task, and I autogenerate the task form. I have a custom sql table that stores opinions, different processes should show different opinios, so my ADF table can only show records related to that process. A custom process number is sent to the task form as a task parameter. How do I use that value as the bind variable default and only value?
    Thanks,
    I.D.

    Hi Shay and thanks for your reply,
    What I want is what you have but without the login page. I tried to start my flow with an action and for some reason it didn't work.
    Is there anything else you can tell me?
    Thanks,
    I.D.
    P.S. I was able to get it to work using the aproach Frank Nimphius described in another post.
    Re: How do I prepopulate a bind variable from a session variable?
    Anyway just out of curiosity could you please tell me if I could have done it your way?
    Thanks a lot,
    I.D.
    Edited by: user8696770 on 5/Ago/2009 7:12

  • How to Get the numeric equivalent of Year and Month with this format....

    Hi Experts!
    I just would like to know how to get the numeric equivalent of the Year and Month if the given format is like this....
       31-May-07
    where:
    31 is the Day
    May is the Month
    07 is the Year
    Is there a function in ABAP to do this? I wouldn't mind hardcoding for the Month, but what I'm after is the year.... they only gave me 2 digits for the year... and I would like to extract 4 digits from it... do ABAP still recognize it as '1907'? I think not...
    Please help me on this experts and Thank you in Advance!!!
    More Power!

    Hi Jayson,
    You can require 2007 or 2017 or 2027..
    or 1937 . or 1947 .. so on,
    so just put a logic based on this. Just hard code as
    lets say value is 31-May-07 (9 char field)
    Case field+7(1).
    WHEn 0.
    concatenate '200' field+8(1) into year.
    WHEN 1.
    WHEN 2.
    WHEN 3.
    jsut code like this and check the syntaxes.
    Reward points if useful.
    Regards,
    Atish

Maybe you are looking for

  • Report Builder 3.0 filter expression not working

    I have a dataset in ReportBuilder 3.0 that is filtering rows from a table on a DistrictNumber field of type integer. The value to be filtered is coming from a prompted parameter. The filter is [DistrictNumber] = [@OutcomeDistrictNumber] and this is w

  • I cannot have two app windows open on my late 2011 MacBook Pro.

    Say I have Pages open and I need to go to Safari for some reasearch. If I click on Safari, the Pages window will just disappear and then the Safari window will open. To make sure that this was just a settings issue, I logged out of my personal accoun

  • PTR issues once the IP address range has been delegated to our name servers

    In the past, with only a DSL line, our ISP provided our forward and reverse dns entries for our zone and we never had problems with outgoing email. Recently, we've upgraded to a managed T1 line and have decided to run our own name servers on two xser

  • Is there a selection?

    Sometimes I have a selection not visible (either out of zoom area or is hidden) that I forgot and I start to work on the area not selected, only to realize after a while nothing is happening, especially when performing subtle changes. Is there a wind

  • Using multiple transitions in slideshow

    Is there a way to use multiple transitions when creating a slideshow in idvd?