Retrieve current period in member list

Dear all,
Is there any function in member lists to retrieve the current period? Example:
Month() = Returns current month
Many thanks for your help,
Benoit

Hi Benoit
I think you need get the actual year or month, here an example how to get them in member lists file definition.
Sub EnumMemberLists()*
'as = array of strings
Dim asYear(1)
Dim asPeriod(1)
Select Case HS.Dimension
Case "Year"
asYear(1) = "Actual Year"
HS.SetMemberLists asYear
Case "Period"
asPeriod(1) = "Actual Month"
HS.SetMemberLists asPeriod
End Select 'HS.Dimension
End Sub 'EnumMemberLists
Sub EnumMembersInList()*
Select Case HS.Dimension
Case "Year"
Select Case HS.MemberListID
Case 1 'Actual Year
HS.AddMemberToList CStr( Year( Date ) )
End Select 'HS.MemberListID Year
Case "Period"
iMonth = Month( Date )
'the label for the period is needed
If iMonth = 1 Then
sMonth = "JAN"
Else
sMonth = "DEC"
End If
Select Case HS.MemberListID
Case 1 'Mes Actual
HS.AddMemberToList sMonth
End Select 'HS.MemberListID Period
End Select 'HS.Dimension
End Sub 'EnumMembersInList

Similar Messages

  • Retrieve "Start date of Next financial Period" and "Current Period"

    Hi,
    T-code: cne5
    I would like to display 2 new fields in cne5 report result:-
    1) Start date of Next financial Period
    2) Current Period
    I can used
    CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
         EXPORTING
              I_DATE         = SY-DATUM
              I_PERIV        = 'K4'
    But what is I_PERIV ?
    How can I retrieve the above fields value? Any Function Module that I can used?
    Appreciate helps!
    THanks a lot.

    Hi,
    Yes, i_periv is Fiscal Year Variant.
    From running OB37, I can see that V3 and K4 fiscal year variant. Which one should I used when calling the function module DATE_TO_PERIOD_CONVERT?
    Thanks!

  • How to get list of company codes with current period not opened?

    Hi,
    How to get list of company codes with current period not opened?
    Is there any way we can check whether the current period is opened for all company codes.
    If not how, can we generate a report which having information of period and company code. Also please tell me, which table will have info on posting periods and company codes.
    Thanks
    Vineeth Varghese

    Hi,
    The MM periods details can be viewed In Table MARV . On the selection screen you have the option of entering the company codes , current period, year current period etc. so make the required entries and you get the all details relevant to MM periods. Also it can be downloaded as a report.Thanks

  • Unable to connect to cluster to retrieve updated CMS member list.

    Hi,
    1.We have total 3 unix servers gesprddwbo01, gesprddwbo02, gesprddwbo03
    2.We have 2 cms running on servers bo01 and bo02 and both of them
    are clustered.bo01 is main server and 02 is clustered
    3.We have shut down server 02.
    4.But when I am trying to login to CMC, I am getting error "Unable to
    connect to cluster to retrieve updated CMS member list."
    I think we need to change clsuter settings since one cms has been
    deleted which was part of clustering.
    ======================================================================
    Below are details of my environment :
    Product : BO XI R2 SP5 FP5.3
    OS : SunOS 5.10 Generic_118833-36 sun4u sparc SUNW,Sun-Fire-V440
    Database : Oracle 10g
    ======================================================================
    Thanks,
    Swapnil Rodge

    search SAP notes for your tomcat clustering or cluster.properties. You need to add your cluster members to the web.xml or the cluster.properties file (some direction is in the web.xml file to follow).
    Regards,
    Tim

  • Building a dynamic Member list in HFM

    Good day,
    I want to build a dynamic memberlist in HFM by using the function HS.GetSubmissionPhase("S#scenario.P#period.A#account.C1#custom1.C2 #custom2.C3#custom3.C4#custom4.I#icp”). For some reason it does not return the correct submission phase but always 1 (one). I need to retrieve the submission phase of a specific cell (account) because it can vary from period to period, and therefore it must be dynamic. I am using version 11.1.1.2 (not patched). Is there a way to do this?
    Please assist.
    Thanks,
    Danee

    Hi Chris,
    I understand the member lists are metadata driven and might have a problem with the submission groups per phase (data):
    But according to me the function should return me the valid phase submission for a specific account at a specific point in time. I need it on a report or web form, or need to find another way to filter.
    1. Submission groups are set on the accounts
    2. Submission groups are set per submission phase per period
    3. Want to retrieve all valid accounts for a specific submission phase at a specific point in time in a report
    4. Is there another way that I can filter these accounts dynamically?
    Regards,
    Danee

  • P & L report for current period,YTD and previous YTD

    I am trying to create a P & L report with the columns for current period,YTD and previous YTD,  I have include the measures as the key of columns, which by using period or YTD we can retrieve the current period and YTD column, is there as easy way to get the previous YTD? although I can get it  by using evtim to het every month and calculate the previous YTD.

    resolved, just need to bring both time and measures in the columns

  • Error: No depreciation  posting required in period 009 (current period)

    Hi,
      I am getting error " No depreciation posting required in period 009"  and  009 is my current period.
       The description of the error says " Do depreciation is posted, since according to the posting cycle no postings are required in this period".   In fact this is the first time i am running depreciation. I want to post the depreciation for 1st period. More over i could not able to see the planned values in asset explorer also.
       Whenever i am entering this asset in the asset explorer it is  giving the above error. But while i run the depreciation its not giving any error. When i check in spool to view the depreciation, its giving msg as "List contains no data" check error log.
      Could anyone help me in resolving this error.  what could be the reason for this error.
    Thanks
    Sabera

    Hi,
      I checked in TABA table, its showing that till 9 the period depreciation has been posted. But i have not posted the depreciation. If it is posted, then it has to show in the planned values as posted, but its showing as "No depreciation"  and its not even showing the depreciation for other periods.  Could you able to clear this query? I wonder why it is giving this kind of error.
    Regards
    Sabera

  • Current Period in DM package

    Hello Experts,
    How will we get current period in DM package? What would be the best solution to get current period in DM Package?
    We want to load ACTUAL from ECC for current month only. Hence in DM package we want to write this logic to populate current month and use this current month variable to restrict data flowing in the package.
    Thanks,
    Jim

    Hi Jim,
    Could you please clarify whether current time period should be applied to external data acquisition e.g. custom load process or current time period to be passed to BPC system logic?
    In the first scenario you would implement all logic in standard SSIS with raw SQL or other means so that the dataset made available to BPC (import or otherwise) will only supply required records.
    If the current date is needed to determine appropriate time dimension member to run some logic against then there are various options depending on the specific requirement.
    Hope this helps,
    Madis

  • Apply previous period Costing run to Current period

    Hi ,
    Is there any way I can apply a previous period costing run to the current period?
    I had done a full costing run through transaction CK40N on Oct 2010 with the following dates
    Posting Period: November 2010
    Costing Date From: Nov 1st 2010
    Costing Date To: Dec 31st 2010
    Qty Structure Date: Nov 1st 2010
    Valuation Date: Nov 1st 2010
    How can I apply the results of this costing run to December 2010? I do not want the costing run to affect November 2010 and I also do not want to re-run the costing run.
    Thanks,
    Sincerely,
    Nicky

    Hi,
    We have just completed the analysis of the November costing run which consisted of a  huge list of materials. We do not want to re-run the costing run for December because we will have to do the analysis again and we fear that we will not be able to update costing before Dec 31st 2010.
    Is there no other way to re-apply the Nov Costing run results to Dec?
    Sincerely,
    Nicky

  • Financial Reporting - Current Period Variable

    Anybody know a quick way to get the Current Period Number (eg June = 6 ) for use in a formula? Thanks.

    You'll need to restart FR studio, after you have created the substitution variables. As the studio only performs one read of the sub var database on startup.
    It also won't show up unless you assign a member to it.
    Hope this helps.
    Iain

  • Rules - Reference an entity member list and then exclude some entities

    I have rules written to extract data in a specific file format.
    I am using a dynamic member list and then want to exclude some of the entities from doing the extract.
    The member list is base of a parent - it has about 500 entities. I only want to exclude 5 entities. I don't want to have to create a member list of 500 entities just becasue 5 of them are not needed.
    I can't use
    POV_ENTITY <>
    OR If Not POV_ENTITY =
    becuause it is not the POV_ENTITY it is the entity in the member list.
    How can I write that?
    Before:
    For Each Entity in HS.Entity.List("",ListName)
    After: (gives me a Syntax error):
    For Each Entity in HS.Entity.List("",ListName) AND If Entity Not "TAX_ROLLUP.TAX_DOM" Then
    Thanks!
    Full section of the rules:
    If ListOfEntity Then
    'Flag accounts have a different name than the Entity list
    'We need to include the name of the entity list in the File name
    'as well as loop through it to extract those entities
    'List Name = "Tax Entity & the right portion of the flag account beginning after "Tax_"
    UndSco=Len(ListToXtract)
    NameR = Right(ListToXtract, UndSco - 4)
    ListName="Tax Entity " & NameR
    'File Name is the concatenation below
    'Admin has to change the path in the WriteToFile routine at the bottom of this file
    FName="HFM_RIA_" & ListName & "_" & pov_period & "_" & pov_year & "_" & XView & "_" & FDate & ".txt"
    'Below is the header of the file
    Call Writetofile("*************************************************",FName)
    Call Writetofile(pov_scenario & " " & pov_period & " " & pov_year & " " & XView,FName)
    Call Writetofile("*************************************************",FName)
    Call Writetofile("Entity" & "," & "Account" & "," & "ECT" & "," & "PCT" & "," & "CAD" & "," & "CZK" & "," & "EUR" & "," & "GBP" & "," & "PLN",FName)
    'We loop through all the entities of the list related to the current flag account
    For Each Entity in HS.Entity.List("",ListName) AND If Entity Not "TAX_ROLLUP.TAX_DOM" Then
    Edited by: user2609991 on Jan 20, 2010 6:23 AM

    Sorry, yes I did it now using the greather than and less than signs.
    I am able to load the rules file but it still writes the Tax_Dom info to the file.
    I think I am going to give up and just create a big member list of all the entities less those six.
    Thanks for responding.
    Edited by: user2609991 on Jan 20, 2010 11:33 AM

  • Unsorted member list @RELATIVE

    I am trying to copy data from one set of products to another for 2 entities. Entity1 uses Map1 products whilst Entity 2 uses Map2 My sample Product dimension structure is as follows:-
    Product
    |_ProdA
    |_ProdB
    |_ProdC
    |_ProdE
    |_ProdF
    |_Map1
    |_ProdA (shared)
    |_ProdB (Shared)
    |_ProdC (Shared)
    |_Map2
    |_ProdA (shared)
    |_ProdF (shared)
    |_ProdE (shared)
    The mapping is defined by the position of the shared products in Map1 and Map2 eg Prod A maps to ProdA, Prod B maps to Prod F etc
    I have used the MDSHIFT function but I cannot get an unsorted member list (@RELATIVE etc sorts the retrieved member list and also removes duplicates).
    Is there another way to copy data from Map1 to Map2?
    Thanks

    I suggest you not try to count on a process moving data only based on relative outline order. It would be more robust to name the items in a similar fashion and use some of the text functions to assist your business problem. You will probably also find that datacopy may not work well under certain design constraints when you are attacking this problem.
    Other thoughts from the forum?
    Regards,
    John A. Booth
    http://www.metavero.com

  • Where is stored Current Period?

    Hi all,
    I have look for this data without success. The periods list is stored in the OFPR, but havent see any field wich defines the current one.
    Thanks in advance,
    Ibai Peñ

    Hi Andrea,
    In the OADM table could be equals, and could not be equals, depending on the period indicator, and some other fields.
    I am not even trying to get current period with the DI. I want it directly from the DataBase, but looks like it is not stored anywhere. I suppose it is saved with some preferences in a encripted field or something like that, and thats why we arent able to find it.
    It is good to ear that will be avaiable in 2005.
    And I can´t read from the main manu, becouse it is for a 3rd party app, and it is not sure that SBO will be open.
    Thanks for your time,
    Ibai Peñ

  • How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    How do I retrieve my old calendar and lists from my iPad now that I've updated it?

    You're almost there. When you look in that Profiles folder, you should see one or more folders with semi-randomized names. The most recent one probably is your last active profile.
    You have a lot of options for how to recover:
    * Restore last bookmarks backup ([[Restore bookmarks from backup or move them to another computer]])
    * Manually copy over saved password files to your currently active profile folder ([[Recovering important data from an old profile]])
    * Attempt a complete "transplant" of your old settings folder to your new installation of Firefox (e.g., this thread: [https://support.mozilla.org/questions/965036 how to install and migrate info to a new laptop with Win 8])

  • Enprise JC error: series period does not match current period

    I want to make create invoice from Enprise Job Costing Contract. There are some lines in Contract Detail but I want to process only two of them. I put the amount in Invoice Now, Post Date, and Invoice Due Date. 
    The invoice is supposed to be from previous posting period (the previous month/year) so I search the correct series number in Invoice No. drop-down list in the Job Costing Contract form. But the available options are only manual and serial number of current period. If I click Process Invoice Now button, I get error message: Error creating invoice: series period does not match current period
    I tried to change the settings from Administration > System Initialization > Document Numbering to set the numbering series to previous period but so far nothing changed, and I still can not create invoice.
    I currently use SAP B1 8.8 PL 13 and Enprise Job Costing 8.8 (version 8.80.101)
    Anybody can help me? Thank you in advance for any good advice.

    Hi Sandy,
    your SAP support partner will be able to register a ticket on the Enprise Support Portal to have this investigated for you, Enprise do not answer questions directly from this forum.
    Having said that... it sounds as though the invoice numbering series you are trying to use is only valid for a specific year.  Did you make sure you also changed the Invoice Date (top right side of screen) to be in the same year?
    kind regards,
    Cathy

Maybe you are looking for

  • Bizarre date and time hang.. Hardware or software?

    Hi all, i have this totally bizarre problem that i have never seen in my 25 years of using mac's.. Since yesterday my date and time seems to hang; it doesn't really update anymore and when i hover my mouse over i get the beach ball. Also this seems t

  • Add ons do not appear in My Phone

    Can anyone confirm that Add-ons to your phone line e.g. Anytine Unlimited Calls or International Freedom do not appear under the My Phone ssection of your My BT portal and are only listed on your monthly bill?  All that I have as evidence until my ne

  • Converting Microsoft dpm Replica and RP volumes into Virtual Tape Format

    Hello All,  We need to migrate protected data-source that is from P3000 to D We purchased a HP Storeonce 2700  backup device and it does not support iSCSI disk. It support iSCSI tape, that is iscsi connection to Virtual Tape library.  The problem is

  • The browser will not keep its preferences or options.

    Every time I set them and reboot or shutdown, settings all reset back to first use (i.e. show all splash screens for extensions etc.) Happens everytime no exception. No preferences saved and reused you have to reset all items contained in the Options

  • Can't see slave drive icon on desktop

    Hi everyone, Hope this isn't too annoying for you experts out there. I am new at this installation thing. I have installed a Seagate Ultra ATA/100 200 GB internal drive to my G4. It shows on the apple profiler but I can't seem to figure out why it do