YTD,QTD & MTD values for variable under 0CALMONTH
Hi Gurus,
I need to calculate YTD,QTD & MTD values for a KF based on the value that the user enters in the variable under 0CALMONTH.
I have the code for how it can be done using 0CALDAY but not sure for 0CALMONTH.
Can you share the ABAP code for this requirement.
Your help will be greatly appreciated.
Thanks
Arvind
Hi,
Based on the month entered by the user, take First day of the month in teh exit,
1. YTD : Take SY-DATUM and calculate YTD
2. QTD : Based on the Month you calculate Quarter
3. MTD : Take SY-DATUM and calculate MTD
*Note: * If they give only Month want to date meanes, only SY-DATUM will be accepeted, because they are not passing 0CALDAY
Thanks
Reddy
Similar Messages
-
Error that "specify a value for variable posting period (single value entry
hi
My query is running testing fine in RSECADMIN under some username..but when i try and open it using analyzer (under same username) it gives me error that "specify a value for variable posting period (single value entry, mandatry)" it does'nt even asks to enter variable values and gives this error message.
However the same query appears to be working fine under different username.
plz advise.Hi Abhinav,
Just do one thing compare the Roles of two different users for which Query is getting executed and not.
Check the Object S_RFC.
Compare the Objects detail for Both the Users.
Please Assign points if useful.
Regards,
Rajdeep. -
Abort Could not determine a value for variable 0DAT from the authorizations
Hi All,
I encountered an error '/ Abort Could not determine a value for variable 0DAT from the authorizations\' when executing my query on a multiprovider in BW 3.5.
Can anyone help me in finding a solutionn to this issue.
Thanks,
Kartik.Hi Kartik,
I am sorry as that note is for NW2004s. Please check if 0DAT variable installed from a business content? if not then I think thats the cause of the problem.
Hope this helps,
Bye... -
Error Specify a value for variable-Abort System error in program SAPLRRK0 a
Dear Experts,
Could anyone help me to fix this issue?
I have an Customer exit variable in my query to calulate the first week of the prior year value as per the system calendar. when i execute the query, I am receiving the following error messaged and i am throwing out from the BW server.
The error message is
Error Specify a value for variable ZR00**
Abort System error in program SAPLRRK0 and form APPEND_KHANDLE_1-01-
Many thanks in advance.
Regards.
Krishna.Hi Kishor,
try runnig the same query in RSRT, with execute and debug option.
Also check in query designer for its correctness.
Hope this helps...
Regards,
umesh -
Error-Specify a value for variable
Dear All,
We upgraded our BW system to BI 7 SP 15. We are getting following error when executing queries in Bex.
Specify a value for variable Company Code
Message no. BRAIN629
Diagnosis
The variable cannot be empty. You must make an entry in the variable
maintenance for variable Company Code.
System Response
Procedure
Enter a value. Use the search help (F4) if necessary.
Procedure for System Administration
Interesting thing is that this error is faced by only 2 users in all upgarded systems.
We created test user with same roles and we are getting error for these test users as well. All other users can run these queries without any problem. When we gave them sap_allprofile, it worked but I dont think this an authorization issue as these user can execute reports in web without any error.
Second interesting thing is that, I applied note 1085822. This solved the problem. But on next day while closing this issue formally we found it is not working again and giving the same error.
I checked other notes but these are not suitable for SP15.
Any pointer/help will be well appreciated.
Regards,
NirajHi All,
Resolved this issue by giving authorization obj S_BDS_D value display.
Regards,
Niraj -
Could not determine value for variable 0P_FVAEX (or 0P_CTPCA)
I get the below error while accessing a query on the planning Info Cube. I used the SAP Exit variable Most Current Data (Transactional InfoCube) (0S_RQTRA) in the query for the Characteristic - Request ID (0REQUID) to extract the data from the yellow request too.
I do not use the below variables as in the below eror in my query at all. Please assist.
Diagnosis
This error diagnosis is specific only to the variables 0P_FVAEX or 0P_CTPCA !
Termination message BRAIN 632 appears:
Could not determine value for variable 0P_FVAEX (or 0P_CTPCA).
System Response
1. Operation method of SAP-Exit-Variables 0P_FVAEX or 0P_CTPCA
With queries from the CO application, both SAP-Exit-Variables look for an entry for 'controlling area'. With this controlling area from the selection screen, the SAP-Exit-Variables program reads the attributes for InfoObject 0CO_AREA (controlling area).
With queries from the FI application, the SAP Exit Variable 0P_FVAEX looks for an entry for 'company code'. With this company code from the selection screen, the SAP Exit Variables program reads the attributes for InfoObject 0COMP_CODE (Company Code).
0P_FVAEX determines the fiscal year variant (attribute 0FISCVARNT) from the attributes for 0CO_AREA (CO queries) or 0COMP_CODE (FI queries). 0P_CTPCA determines the currency type of the profit center local currency (attribute 0CURTP_PCA) from the attributes for 0CO_AREA.Hello,
you need to take a closer look at your query. Somewhere you used one of the 0P_* exit variables, which work only for controlling related InfoCubes. Use your own variables.
Regards,
Marc
SAP NetWeaver RIG -
Missing substitution value for variable [dispatcher.host]
Hello,
I'm getting the error message "com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [dispatcher.host]." if I'm trying to deploy an SCA file via SDM (remotegui.bat).
It seems that the problem is a missing variable setting. But I couldn't find any hints at the available SAP web sources which values needs to be set.
It would be really great if somebody could give me a hint which steps I need to do to solve this issue.
Many thanks in advance,
Steffen Zimmermann
Here is the whole GUI log :
==========================================================================
08/11/26 21:31:15 - ***********************************************************
08/11/26 21:31:35 - Start updating EAR file...
08/11/26 21:31:35 - start-up mode is lazy
08/11/26 21:32:45 - com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [dispatcher.host].
at com.sap.engine.deploy.manager.DeployManagerImpl.makeTempEar(DeployManagerImpl.java:3747)
at com.sap.engine.deploy.manager.DeployManagerImpl.makeNewEar1(DeployManagerImpl.java:3715)
at com.sap.engine.deploy.manager.DeployManagerImpl.deployUpdateAction(DeployManagerImpl.java:529)
at com.sap.engine.deploy.manager.DeployManagerImpl.deploy(DeployManagerImpl.java:513)
at com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performDeployment(EngineApplOnlineDeployerImpl.java:186)
at com.sap.sdm.serverext.servertype.inqmy.extern.EngineDeployerImpl.deploy(EngineDeployerImpl.java:96)
at com.sap.sdm.serverext.servertype.inqmy.EngineProcessor.executeAction(EngineProcessor.java:224)
at com.sap.sdm.app.proc.deployment.impl.PhysicalDeploymentActionExecutor.execute(PhysicalDeploymentActionExecutor.java:60)
at com.sap.sdm.app.proc.deployment.impl.DeploymentActionImpl.execute(DeploymentActionImpl.java:186)
at com.sap.sdm.app.proc.deployment.controllers.internal.impl.DeploymentExecutorImpl.execute(DeploymentExecutorImpl.java:48)
at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.executeAction(ExecuteDeploymentHandler.java:83)
at com.sap.sdm.app.proc.deployment.states.eventhandler.ExecuteDeploymentHandler.handleEvent(ExecuteDeploymentHandler.java:60)
at com.sap.sdm.app.proc.deployment.states.StateBeforeNextDeployment.processEvent(StateBeforeNextDeployment.java:127)
at com.sap.sdm.app.proc.deployment.states.InstContext.processEventServerSide(InstContext.java:73)
at com.sap.sdm.app.proc.deployment.states.InstContext.processEvent(InstContext.java:59)
at com.sap.sdm.app.view.controllers.DeployEventProcessor.processEvent(DeployEventProcessor.java:11)
at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.processEvent(DeployCmdProcessor.java:264)
at com.sap.sdm.client_server.deployserver.DeployCmdProcessor.process(DeployCmdProcessor.java:108)
at com.sap.sdm.gui.server.GuiAdminRoleCmdProcessor.process(GuiAdminRoleCmdProcessor.java:72)
at com.sap.sdm.is.cs.session.server.SessionCmdProcessor.process(SessionCmdProcessor.java:67)
at com.sap.sdm.is.cs.cmd.server.CmdServer.execCommand(CmdServer.java:76)
at com.sap.sdm.client_server.launch.ServerLauncher$ConnectionHandlerImpl.handle(ServerLauncher.java:286)
at com.sap.sdm.is.cs.ncserver.NetCommServer.serve(NetCommServer.java:43)
at com.sap.sdm.is.cs.ncwrapper.impl.ServiceWrapper.serve(ServiceWrapper.java:39)
at com.sap.bc.cts.tp.net.Worker.run(Worker.java:50)
at java.lang.Thread.run(Thread.java:534)
08/11/26 21:32:45 - ***********************************************************
Nov 26, 2008 9:32:45 PM Info: End of log messages of the target system.
Nov 26, 2008 9:32:45 PM Info: ***** End of SAP J2EE Engine Deployment (J2EE Application) *****
Nov 26, 2008 9:32:45 PM Error: Aborted: development component 'Cognos8BI'/'cognos.com'/'Cog8BIFactory'/'1'/'1', grouped by software component 'Cognos8BI'/'cognos.com'/'Cog8BIFactory'/'1000.8.4.1.0.20081125093532''/'0':
Caught exception during application deployment from SAP J2EE Engine's deploy API:
com.sap.engine.deploy.manager.MissingSubstitutionException: Missing substitution value for variable [dispatcher.host].
(message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).DMEXC)
Nov 26, 2008 9:32:45 PM Info: Starting to save the repository
Nov 26, 2008 9:32:49 PM Info: Finished saving the repository
Nov 26, 2008 9:32:51 PM Info: Starting: Initial deployment: Selected software component 'Cognos8BI'/'cognos.com'/'Cog8BIFactory'/'1000.8.4.1.0.20081125093532''/'0' will be deployed.
Nov 26, 2008 9:32:51 PM Error: Aborted: software component 'Cognos8BI'/'cognos.com'/'Cog8BIFactory'/'1000.8.4.1.0.20081125093532''/'0':
Failed deployment of SDAs:
development component 'Cognos8BI'/'cognos.com'/'Cog8BIFactory'/'1'/'1' : aborted
Please, look at error logs above for more information!
Nov 26, 2008 9:32:51 PM Info: Starting to save the repository
Nov 26, 2008 9:32:52 PM Info: Finished saving the repository
Nov 26, 2008 9:32:53 PM Info: J2EE Engine is in same state (online/offline) as it has been before this deployment process.Thank you.
Yes, it was a really not a default variable.
Replacement of the variables directly at the archive with the correct value did solve the issue. -
Default value for variable are not within permitted value range (precalc)
Hello BW community
Issue:
I have created a variable (Characteristic Value/ Manual input-default value) and use the precalculated value set (details-basic settings). In the further variable definition I could select the precalculated value set in 'Default values', which I have defined beforehand in the broadcaster..
The precalculated value set in the broadcaster settings is just based on a master data query on 0CUSTOMER.
Error:
The variable gets the error E991/R9E Errors: Default values for variable 'XXX' are not within permitted value range.
The detail description of the error is: You defined default values for variable 'Sold-to party precalc value set for manuel input' that are not appropriate for the variable type; for example, a range is defined as a default value for a variable that only permits a single value.
So please has someone had the same issue and found out how to solve it? It would be excelent to get good solution for this issue.
Best regards and thanks
Christian
PS-1: System BW 701 / SAPKW70105
PS-2 : there has been a SDN entry with the same topic but not resolved too.
link: /thread/980839 [original link is broken]Hello,
Thanks for your response.
I should have mentioned that in my post. I tried this very first time. I thought that this is the place where you provide default value. But I got following exception at that time, so I thought, may be this is used for something else.
<LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase RENDER_RESPONSE 6
javax.faces.FacesException: javax.servlet.ServletException: OracleJSP error:
oracle.jbo.NameClashException: JBO-25001: Object viewAllInd of type Control Binding Definition already exists.
at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)Do I need handle something else when you put the default value?
Thanks,
Jai -
Rectrict list of possible values for variable in Bex
Hello folks!
I need to give a user possibility to choose only few value for variable in Bex report. Number of entries in master data is huge. I need to show only 7 possible values in the window with variables.Amy,
You have a tricky requirement but I can only think of one thing but it would require user training. Try the following.
You can setup a new variable with default values and define it as type multiple single values.
The user could in the variable screen would then need to take out the ones that are not needed.
Hope this helps.
-Sid -
Value for variable *** hierarchy Version is invalid
hi ALL
for one Of the user, when he tries to run the report he is freequently facing this situation. he is getting the error like : "Value for variable *** hierarchy Version is invalid" . but the same report is working for other users.
The starange part is . those variables are not mandatory selections, they are userentry optional values.
we tried with authorization team also . that is not the probelm.
how can i solve this...
any ideas?
Praveen.
Message was editedPraveen,
Please check if there is any "Personalization of variable" setting for that variable.
Raju -
SAP BEX Analyzer Set values for variables
Please help us out in sorting out this problem,
We are automating BEx Analyzer for a Testing Project with Quick Test Professional (QTP) a functional automation tool uses VB script.
Problem:
There are 5 steps in automation
Invoke BEx Application
Log in to BEx server
Run Query
Set values for Variables for Query
Display Report
We are able to do 1,2,3 steps using BEx API functions and running BEx macros but we struck up with 4th step,
1. Invoke BEx Application
Launch Excel
Dim app
Set app = createobject("Excel.Application")
Make it visible
app.Visible = true
Attach add-in to Excel file
app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SetStart")
2. Log in to BEx server
Login to Bex server
Function logonToBW(app)
Dim myConnection
Dim logonToBW2
On Error Resume Next
logonToBW2 = True
' Create logon to system with following user and system details
Set myConnection = app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! SAPBEXgetConnection")
With myConnection
.client = "600"
.User = "USERNAME"
.Password = "Welcom123"
.Language = "en"
.systemnumber = "00"
.System = "BWDCLNT600"
.systemid = "BWD"
.ApplicationServer = "156.158.7.161"
.SAProuter = ""
.Logon 0, true
If .IsConnected = 0 Then
.Logon 0, False
If .IsConnected <> 1 Then
MsgBox "Automatic logon failed. Please enter your username and password in the next screen ..."
Exit Function
End If
End If
End With
' Run connection query to see if connected
app.Run ("'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXinitConnection")
logonToBW2 = True
End Function
3. Run a Query
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'! runQuery", "ZZCCA3_M01_Q0003"
Till here the script is running fine then the Select values for Variables window is displayed.
This is where exactly we struck up; in this window we need to select values.
Name of the Fields
Field Name Technical name of characteristic Variable Name Value
1 Company Code 0COMP_CODE ZM_COMPCODE 1000
2 Cost Center Hierarchy 0COSTCENTER ZS_CCTRN 1000MDON
3 Cost Center Node 0COSTCENTER ZS_CCTRN 1000COP
4 Cost Element 0COSTELEMENT ZS_COELN 1000GDON_6999
5 Fiscal Year 0FISCYEAR 0P_FYEAR 2007
To select values for variables, we are trying below code but its giving an error,
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000, "0COMP_CODE"
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000MDON, " 0COSTCENTER "
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000COP, "0COSTCENTER"
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 1000GDON_6999, "0COSTELEMENT "
app.Run "'C:\Program Files\SAP\Business Explorer\BI\BExAnalyzer.xla'!SAPBEXSetFilterValue", 2007, " 0FISCYEAR"
Any help highly appreciated, thanks in advance.Hi Reinhard,
Pleas look at this:
Passing a range to SAPBEX.XLA!SAPBEXSetFilterValue
Best regards,
Eugene -
Copy 'Favorites' in 'Select Values for Variables' screen
I need to copy a list that I created as a 'Favorite' in the 'Select Values for Variables' screen for Customer to all the other userids so that everyone is using the same list of customers. Can someone tell me the table(s) where these values are stored? Is there a function module or program available that copies 'Favorites'.
It would be nice if you could select if the 'Favorites' you create can be 'Global'.
Thanks.the variant values are stored in RSRPARAMETRIZA. the field content stores in XML format. you can write an ABAP program to read and update it.
Edited by: Ananda Theerthan on May 26, 2010 8:56 PM -
Invalid value for variable 0calyear in planning modeller
Hi Experts,
I have an urgent requirement. In my planning modeller I have a variable for 0calyear for accepting current year and target year. If I give target year(for example, 2015) which is not present in 0calyear it is showing error that 2015 is an invalid value for 0calyear. If I give 2012 it is working fine because it is already present in 0calyear.
I would like to know how we can solve this issue. To forecast data anyway we have to enter a future year. I would really appreciate if anyone could give some information to solve the issue.
Thanking you,
Jerry.Hi Jerry,
Just a thought.
Can you load a flat file data with year values into a DSO with 0CALYEAR as key? ( SID generation as active ).
What I am expecting is this flat file load will generate SIDs for 0CALYEAR in future year as well.
Subsequently if you try to enter that in your planning variable it should work.
I understand this is not a perfect solution. But want you to try and adopt if this is a reasonable work around.
Thanks,
Krishnan -
Filter value for variable selection screen
Hi & help !,
This could be a tricky or an easy question, but it seems too hard for me !
I'm storing version in my cube, and have a report which shows informations for the version you select (with a variable = ZVERSION01).
ex : Version :
V01
V02
V03
V04
When report is executed i have my variable selection screen (for variable ZVERSION01) which give all version [V01 -> V04]. But i want users have no access to version V01 & V02.
Variable ZVERSION01 is "single selection", i tried to filter with Default Values screen or Characteristic Restriction screen but it doesn't work.
ex : caracterisitic restriction screen : VERSION = !V01 / !V02
default value screen : variable VERSION = ZVERSION01
Any idea?
ThxHi,
In BI 7.0 there is Anaylysis authorisation RSECADMIN transaction. That you can use here or normal role concept will also do.
What you need to do is grant authorisation to the users for V03 and 04 version only and create 'Authorisation' type variable on version in the query. (type of variable - it asks while creating the variable). This way users will only be able to see authorised versions only.
Note you have to make version infoobject as Authorisation relevent infoobject. ( in infoobject properties).
Let me knw if you have any doubt.
Regards,
Viren -
CR2008 and SAP BW - Technical Values for variable values not displayable ?
Hello Experts,
we have the following constellation / problem:
- SAP Query BW 7.0 with variables
- a report built upon this query with Crystal Reports 2008
- now if we execute the report and try to fill in the parameters (= SAP BW variables), only the (SAP) description of each value is displayed
Since it is common for the business users to communicate with the key instead of the description (e.g. Project 50010001 instead of Project 'something etc something'), it is necessary for us to give them the opportunity from a list that contains the key (maybe as well as the description) instead of only the description. Is there a possibility in SAP BW or Crystal Reports 2008 to make that possible ?
I tried to do it in the infoobject, in the query, in the 'options'-section of Crystal Reports and in the properties of the parameter field itself, but to no avail.
Many thanks for your help in advance !
FrankHello Experts,
I facing a problem.
I have a crystal report based on a BW Query. It has one parameter called Country.
Eg:
Until now, in BW query country variable has the following values.
USA
JAPAN
GERMANY
Now, from this fiscal year we have the following values for country variable
USA
JAPAN
INDIA
GERMANY
UK
I am trying to edit the list of values for the country variable in crystal reports. It is not getting reflected in SAP BW. I also tried refreshing it several times.
Can any one Please help.!!
Regards
NMU
Maybe you are looking for
-
Matlab 'place' command gives different result in Mathscript/Labview
Hello, I am trying to implement a order reduced observer in Labview. First I used Labview blocks for programming but it happens that I get different results when I am using Matlab. For that reason I used Mathscript to make a simple 'place' command to
-
How to securely back-up my library in iTunes for windows 7
how to securely back-up my library in iTunes for windows 7
-
CSS Slowing DW to unusable speeds...
Iv been having this issue with css slowing down the editing of a page... Its really bad if there is plain text on the page. The page is layed out with div tags and css. if i click or try to hit enter or do a line brake, any simple task. it take upwar
-
Mass generation of Derived Roles
Hello, SUPC helps me in Mass generation of Master Roles. But how do I generate Derived roles in a lot? Thanks.
-
Firefox is acting funny since updating to 9.0.1
I am having multiple problems since updating to version 9.0.1: 1. On the adam4adam.com chat site, when I try to filter my search results, Firefox crashes about 50% of the time. 2. I tried to pay a bill on westerndental.com. I entered the account info