MDXLIB Logic file in Dimension
Hi.
We are trying to make use of the functions available in SAP Provided MDXLIB.LGF file in our DImensin Member formula.
We tried using AVGBAL() and GROWTH() funtions in our system and we get error during Processing dimension with that formula.
We raised a OSS with SAP and heared back that this is out of scope of SAP support and they wanted us to check with SAP consultants.
Is there any one who have successfully used this functionality in your BPC implementation.
Note:
Our System is BPC NW 7.0 SP 06
Please help us solving this issue.
Thanks in Advance,
Regards,
G.Vijaya Kumar
Hi Nilanjan,
Thanks for your reply.
My Objective was very simple to know how the basic functions given by SAP in MDXLIB.LGF works.
What i did was,
1) Included *SYSLIB MDLIB.LGF in Options tab of my Account Dimension.
2) Included formula for the Account member AVG with
AVGBAL([ACCCOUNT].[ACC1])
3) Saved and Processed.
4) Error stating that LEVEL02 is not a valid MDX statement.
the MDX formula for AVGBAL function in my system is,
*function AvgBal(%ACCOUNT%)
((CLOSINGPERIOD([%TIME_DIM%].[LEVEL02],ANCESTOR([%TIME_DIM%].CURRENTMEMBER, [%TIME_DIM%].[LEVEL00]).PREVMEMBER), [%ACCOUNT_DIM%].[%ACCOUNT%])+[%TIME_DIM%].CURRENTMEMBER,[%ACCOUNT_DIM%].[%ACCOUNT%]))/2
*endfunction
Hope this informations helps. Please let me know for anymore information required.
Note:
I have did this test in different Appsets and in different Systems and have same Problem.
Regards,
G.Vijaya Kumar
Similar Messages
-
Test script logic file - Errror "Invalid Dimension Account"
Hi BPC Experts,
I am a new bee in BPC and have developed HCM applicaton in BPC 5.1. The Appset contains Finance, Rate & HCM applications.
I am working on HCM and wants to write a script logic file for HCM and it is giving an ERROR "Invalid Dimensin Account".
I have following dimensions in HCM Application:
account_hc --> type A
category_hc --> type C
company_hc --> type E
time_hc --> time t
costcenter_hc --> type u
datasrc_hc --> type d
employerole_hc --> type u
geography_hc --> type u
rptcurrency_hc --> type r.
I had defined Dimensions in system_cnstants file as mentioned below.
// application constants
*FUNCTION CATEGORYDIM =CATEGORY_HC
*FUNCTION TIMEDIM =TIME_HC
*FUNCTION CURRENCYDIM =RPTCURRENCY_HC
*FUNCTION ENTITYDIM =COMPANY_HC
*FUNCTION ACCOUNTDIM =ACCOUNT_HC
*FUNCTION INTCODIM =INTCO
*FUNCTION CATEGORYDIM =CATEGORY
*FUNCTION TIMEDIM =TIME
*FUNCTION CURRENCYDIM =RPTCURRENCY
*FUNCTION ENTITYDIM =ENTITY
*FUNCTION ACCOUNTDIM =ACCOUNT
// This part is needed when a RATE cube
// is associated to the application
// (FX = single or multi currency)
*FUNCTION THISAPP =HCM
*FUNCTION RATEAPP =RATE
*FUNCTION RATEENTITYDIM =RATESRC
*FUNCTION RATEACCOUNTDIM =RATE
*FUNCTION INPUTCURRENCYDIM =INPUTCURRENCY
*FUNCTION RATEENTITYMBR =RATEINPUT
*FUNCTION RATESRCCALCMBR =RATECALC
*FUNCTION AVGRATEID=AVG
*FUNCTION ENDRATEID=END
I tried to validate and save standard default script logic. But it gives me an error " NO match defined for lookup dimension Category"
So I could not use default logic file to write my script logic. Hence I have created HCM logic file. and Given the following script logic.
*XDIM_MEMBERSET ACCOUNT = XYZ_INC_RetPlan
*WHEN ACCOUNT
*IS XYZ_INC_RetPlan
*REC(FACTOR = 1.1, ACCOUNT)
*ENDWHEN
*COMMIT
While validat & save, I get an error "Invalid Dimension Account".
I do not understand why these errors occuring.
I have checked Category & Account dimensions checked. Every thing is ok. I have created Input schedules and they are working ok. It means the dimensions are fine.
Then why the error ?
Can you guys please guide me.
Appreciate your kind help.Eswara,
try to close down BPC for ExCEl in case your IS/Reports are trying to access the APPlication.And also any other BPC ADmin screens accessing the same Application/Dimension.
1)try to only do a "process " on the account dimension without including the processing for Applications...
2)then try to do a process on the application.
Now your script should be able to recognize Account dimension and validate fine..
hope this helps... -
Hi,
I face this error message when I try to 'process update' a dimention, sometime it works but sometime it failed with the error below:
Description: File system error: The record ID is incorrect. Physical file: . Logical file: .
My environment: Window Server 2008 R2+SQL Server 2008 R2.
Note: this issue can be resolved by full cube process, but I can't to that every time if it failed, just want to know what happen at backend of SSAS, It block me neary 2 week without any finding, really appreciate that someone can help on this.
I have do some research with google, I think the root cause here is not TopCount function(It may be a problem with SQL Server2005), also not the size limitation of 4GB size of .astore file.(I check the size of my cube under 'Data\XXX.db\' folder, which only
have few MB size).
Thanks,
TomHi Tom,
Here is a microsoft fix
FIX: "File system error" occurs when you try to run a process update operation on a dimension in Microsoft SQL Server 2008 Analysis Services and in Microsoft SQL Server 2008 R2 Analysis Services
In your acenario, in order to fix this issue, please apply the latest Cumulative update and Service Pack according to your SQL Server version. Besides, there are two workarounds in that fix, plese try it and check if it works or not.
http://support.microsoft.com/default.aspx?scid=kb;en-US;2276495
Regards,
Charlie Liao
TechNet Community Support -
Greater Than Function in Script Logic File
BPC Experts,
I've got a pretty simple script logic file to calculate salary amounts, overtime, etc. The purpose of this logic is for forecasting. I have two referenced dimensions, TIME and SCENARIO, where TIME.MONTHNUM is equal to its relative month number (eg: Jan monthnum = 1), and SCENARIO.CURRMONTH is equal to the relative amount of actual months data, (eg Jan currmonth = 0, Feb = 1) because if you are completing a February forecast, you have one month of actual.
The ACTUAL scenario is never touched, but after a month closes, we copy the ACTUAL data to, for example, FEB_FCST. So, after January closes, its actuals are copied to the FEB_FCST scenario so we can complete an actual/forecast (one month actual, 11 months forecast).
Currently, the default logic skips anything in the ACTUAL scenario, by stating "*WHEN SCENARIO, *IS <> "ACTUAL" yada yada yada.
However, when the default logic runs on the forecast scenarios, it takes the same inputs from the months that are copied over from the ACTUAL scenario and adds to the original amount, essentially doubling the value--ultimately causing an incorrect actuals number in the forecast scenario.
My script right now looks like this:
*XDIM_MEMBERSET DATASRC=INPUT
*XDIM_MEMBERSET PRODUCT=NO_PRODUCT
*XDIM_MEMBERSET SHIFT=NO_SHIFTS
*XDIM_MEMBERSET MEASURES=PERIODIC
*WHEN SCENARIO
*IS <> "ACTUAL"
*WHEN TIME.MONTHNUM
*IS > SCENARIO.CURRENTMNTH
*WHEN ACCOUNT
*IS "SALARIED_MANPOWER"
*REC(EXPRESSION=((([ACCOUNT].[SALARIED_AVG_WAGE] * (1 + [ACCOUNT].[SALARY_TIMEAHALF]))* [ACCOUNT].[SALARIED_MANPOWER])),ACCOUNT="01100")
*ENDWHEN
*ENDWHEN
*ENDWHEN
*COMMIT
When it hits line 9 (*IS > SCENARIO.CURRENTMNTH) during validation, it errors. How can I use a "greater than" function to dictate whether or not a given scenario should run default logic on a specific month?
If not, is there a different/better way to do it?
Thank you!
ABFHi Alex
Take this sample logic, check the properties in your Time dimension to trouble shoot your issue.
*SELECT(%CAT_VAR%, "ID", CATEGORY, ID= PLAN_APRIL)
*XDIM_MEMBERSET CATEGORY = ACTUAL, PLAN, %CAT_VAR%
*SELECT(%CATMTH%, "STARTMTH", CATEGORY, ID= %CAT_VAR%)
*SELECT(%ACT_PERIOD%, "ID", TIME, MONTHNUM < %CATMTH% AND LEVEL = MONTH AND YEAR = 2010)
*SELECT(%PLAN_PERIOD%, "ID", TIME, MONTHNUM >= %CATMTH% AND LEVEL = MONTH AND YEAR = 2010)
*XDIM_MEMBERSET TIME= %ACT_PERIOD%
*XDIM_MEMBERSET CATEGORY=ACTUAL
*WHEN CATEGORY
*IS ACTUAL
*REC(EXPRESSION=%VALUE%, CATEGORY = %CAT_VAR%)
*ENDWHEN
*XDIM_MEMBERSET TIME= %PLAN_PERIOD%
*XDIM_MEMBERSET CATEGORY=PLAN
*WHEN CATEGORY
*IS PLAN
*REC(EXPRESSION=%VALUE%, CATEGORY = %CAT_VAR%)
*ENDWHEN
Thanks -
Error when compiling logic file
Hi there folks,
I have a strange problem when compiling a logic file that I haven't seen before, and I can't seem to find an answer for it anywhere so I'm hoping you can help.
I have a simply piece of script logic that begins with the normal *XDIM_MEMBERSET section, specifically one line:
*XDIM_MEMBERSET DATASRC = INPUT
I have a dimension called DATASRC, and a member in that dimension called INPUT, so there is nothing strange here.
However, when I try to validate the script I get the following error message:
"Error: Unlimited recursion using a user defined function in line : *XDIM_MEMBERSET DATASRC=INPUT"
There is nothing wrong with this line, and it certainly isn't a user-defined function!
I can't find anything about this in the SAP Notes, and have never seen this error before - any ideas that could help?
Thanks very much in advance.
JasonFirst, always define your version, so we can isolate our test or idea in a similar version.
Next, If you modify the statement for any other combination of both DataSrc=[someothermember] and otherDIm=[othermember] and run the validation, does it fail? If you were to run say Account=Input, would that fail? If you rename INPUT to INPUTS, does it then V&P?
Is there any statement in a constants file that use INPUT?
My idea is to try to isolate if the issue is with the member, or dimension or both, or neither and related to BPC code. Then if the problem doesn't resolve, you have tests for teh BPC Support team.
Hope that helps. -
Hi Guys,
When I try to Brows Cube (SSAS 2005), I get below error (Sometimes):
TITLE: Microsoft SQL Server 2005 Analysis Services
Server: The operation has been cancelled.
The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\674.fact.data', Logical file: '' : Insufficient
system resources exist to complete the requested service. .
The following system error occurred from a call to GetOverlappedResult for Physical file: '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q23.0.prt\385.fact.data', Logical file: '' : Insufficient
system resources exist to complete the requested service. .
BUTTONS:
OK
and I think due to above Error, Index on a Particular Attribute (EMP_ID) of a DIMENSION DIM_EMP is getting dropped from FEW of the Partitions (Folders) and started getting new error:
TITLE: Microsoft SQL Server 2005 Analysis Services
File system error: The following error occurred while opening the file '\\?\F:\Program Files\Microsoft SQL Server\MSSQL.2\OLAP\Data\XXX_2012.0.db\XXX DC.0.cub\FACT_XXX.0.det\PARTITION_2013Q31.0.prt\688.DIM_EMO.EMP_ID.fact.map'.
BUTTONS:
OK
I followed the above path and did not find file 688.DIM_EMO.EMP_ID.fact.map in folder PARTITION_2013Q31.0.prt. Once I rebuild the Index (ProcessIndex) for this partition, I am able to See file 688.DIM_EMO.EMP_ID.fact.map.
But again when next time I get error "Insufficient system resources exist to complete the requested service", Then 688.DIM_EMO.EMP_ID.fact.map will be dropped and will not be available in folder PARTITION_2013Q31.0.prt.
Anyone had similar issue. Could you please share your experience and resolution if any.
Thanks Shiven:) If Answer is Helpful, Please VoteHi Shiven,
In your scenario, the issue occur at sometimes, right? Base on my research, the issue can be caused by that calculation estimate exceeded available memory. Possibly due to possible number of dimension members and sizes of keys. And 32bit environment didn’t
allow for any expansion to the SSAS memory space.
To avoid this issue, please try to use userva to fine tune the 3GB setting down to 2900 since /3GB is the likely
cause (has been for most other customers who encountered the same problem before). The KB Articles below discuss that setting in detail.
How to use the /userva switch with the /3GB switch to tune the User-mode space to a value between 2 GB and 3 GB
Regards,
Charlie Liao
TechNet Community Support -
Using a Logical File definition in LSMW
Hi all,
is there any way that we can use a Logical File (defined in transaction FILE) as an application server file in the "specify files" step, instead of having to enter the physical path/file?
Thanks in advance,
JustinHello,
Check pages 46 and 47 of the following document :
[http://sapabap.iespana.es/manuales/pdf/lsmw.pdf|http://sapabap.iespana.es/manuales/pdf/lsmw.pdf]
You can only use a logical filename for subsequent programs (example direct input programs) not for the actual input file of your LSMW.
Wim -
In Answers am seeing "Folder is Empty" for Logical Fact and Dimension Table
Hi All,
Am working on OBIEE Answers, on of sudden when i clicked on Logical Fact table it showed me as "folder is empty". I restarted all the services and then tried still showing same for Logical Fact and Dimension tables but am able to see all my reports in Shared Folders. I restarted the machine too but no change. Please help me out to resolve this issue.
Thanks in Advance.
Regards,
Rajkumar.First of all, follow the forum etiquette :
http://forums.oracle.com/forums/ann.jspa?annID=939
React or mark as anwser the post that the user gave.
And for your question, you must check the log for a possible corrupt catalog :
OracleBIData_Home\web\log\sawlog0.log -
Open Hub: How-to doc "How to Extract data with Open Hub to a Logical File"
Hi all,
We are using open hub to download transaction files from infocubes to application server, and would like to have filename which is dynamic based period and year, i.e. period and year of the transaction data to be downloaded.
I understand we could use logical file for this purpose. However we are not sure how to have the period and year to be dynamically derived in filename.
I have read in sdn a number of posted messages on a similar topic and many have suggested a 'How-to' paper titled "How to Extract data with Open Hub to a Logical Filename". However i could not seem to be able to get document from the link given.
Just wonder if anyone has the correct or latest link to the document, or would appreciate if you could share the document with all in sdn if you have a copy.
Many thanks and best regards,
VictoriaHi,
After creating open hub press F1 in Application server file name text box from the help window there u Click on Maintain 'Client independent file names and file paths' then u will be taken to the Implementation guide screen > click on Cross client maintanance of file name > create a logical file path by clicking on new entiries > after creating logical file path now go to Logical file name definition there give your Logical file , name , physical file (ur file name followed by month or year what ever is applicable (press f1 for more info)) , data format (ASC) , application area (BW) and logical path (choose from F4 selection which u have created first), now goto Assignment of physical path to logical path > give syntax group >physical path is the path u gave at logical file name definition.
however we have created a logical path file name to identify the file by sys date but ur requirement seems to be of dynamic date of tranaction data...may u can achieve this by creating a variable. U can see the help from F1 that would be of much help to u. All the above steps i have explained will help u create a dynamic logical file.
hope this helps u to some extent.
Regards -
How to create the logical file name
Hi All,
I have requirement where i need to post the Inventory Management data. for this i need to execute std. program RM07MMBL which is having logical file name in the selection screen. but i have placed my input file in application server.
Can any one tell how to create the Logical filename which refers the physical path. I also tried <b>t-code SF01 & Table - FILENAMEC</b>I and found that we need to add an entry in this table but i really dont know how we have to do since this table cannot be maintained in SM30 also..
Help Me.
Thanks in Advance!...
Regards,
RamkumarHi Ram,
Try using FILE transaction code...
Follow these steps to create:::
Double click on Logical file Path Definition
Click on New Entries,
Give Logical file Path name as Z_LOGICAL PATH and save it
now choose this path and double click on Assignemt of Physical path to Logical path
double click on the OS name
Give some description and give some Physical path name from AL11 transaction and save it
Now Double click on Logical File Name Definition,
Click on New Entries,
Give some logical file name: Z_LOGICAL_FILENAME
Physical file: test
Data Format: BIN
Logical Path: Z_LOGICAL PATH
Hope this helps
Regards,
Phani
Message was edited by:
Sivapuram Phani Kumar -
Deleting the data from logical file/unix file
Hi all.
I need to delete the all the data from logical file (application server file/unix file).But I dont want to delete the logical file ( only data in the logical file should be deleted, i.e making file empty)
Thanks in advance.
Cheers.
samiHi Sami,
Refer thsi document https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/4d7aeb7d-0c01-0010-fa8a-a4a8e8968a93.
Regards,
Flavya -
Reading Data from a SQL table to a Logical file on R/3 appl. Server
Hi All,
We would like to create Master Data using LSMW (direct Input) with source files from R/3 Application Server.
I have created files in the'/ tmp/' directory however I do not know how to read data from the SQL table and insert it into the logical file on the R/3 application server.
I am new to ABAP , please let me know the steps to be done to acheive this .
Regards
- AjayHi,
You can find lot of information about Datasets in SCN just SEARCH once.
You can check the code snippet for understanding
DATA:
BEGIN OF fs,
carrid TYPE s_carr_id,
connid TYPE s_conn_id,
END OF fs.
DATA:
itab LIKE
TABLE OF fs,
w_file TYPE char255 VALUE 'FILE',
w_file2 TYPE char255 VALUE 'FILE2'.
SELECT carrid connid FROM spfli INTO TABLE itab.
OPEN DATASET w_file FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" Server to write data
LOOP AT itab INTO fs.
TRANSFER fs TO w_file. "" Writing the data into the Application server file
ENDLOOP.
CLOSE DATASET w_file.
OPEN DATASET w_file FOR INPUT IN TEXT MODE ENCODING DEFAULT. "Opening a file in Application
" server to read data
FREE itab.
DO.
READ DATASET w_file INTO fs.
IF sy-subrc EQ 0.
APPEND fs TO itab.
OPEN DATASET w_file2 FOR APPENDING IN TEXT MODE ENCODING DEFAULT. "Appending more data to the file in the
" application server
TRANSFER fs TO w_file2.
CLOSE DATASET w_file2.
ELSE.
EXIT.
ENDIF.
ENDDO.
Regards
Sarves -
Error while creating logical file using transaction FILE
Hello there,
I am facing an error while creating Logical File name definition using transaction FILE
This is the input which I'm trying to give
Logical file name: ZTEST
Name : ZTEST
Physical file : ZTEST_1<DATE><TIME>.csv
Data format: ASC
Application area: BW
Logical path:ZTEST_1_DATAOUT
when I tried to save it throws me an error like ASSIGN_SUBSTRING_NOT_ALLOWED
Please help.Hi,
Please check the OSS Notes :
Note 792061 - SP Case Locator: Dump: ASSIGN to a substring isn't allowed.
SAP Note 1297989 - Short dump ASSIGN_SUBSTRING_NOT_ALLOWED
Hope this solves the problem.
-Vikram -
LSMW - Logical File Path not pointing to Physical Path
Hi All,
I'm trying to upload some MIGO goods movement transactions through LSMW. I'm to step 7, specifying files, and am getting the error "No logical file path has been specified. I saw another thread which helped me, but I am still stuck after reading it.
Re: Error in Creation of Purchase Requisition through LSMW
I have gone into transaction FILE and created the logical file name MM_GOODS_MOVEMENT, and set the physical file as the .lsmw.conv converted data file as the above thread says. I also tried using the logical path LOCAL_TEMPORARY_FILES for the converted data, but I get the error telling me that the path does not point to a physical directory. I then tried creating my own file path, and setting the path to my desktop where the source file is, and the same error occurred.
Does anyone know why it is not recognizing the physical path maintained in the logical path?
Thanks,
JThanks for both replies,
I have full authorization across all transactions in the sandbox system I am working in, so that is not an issue. I filled the logical path field in the MM_GOODS_MOVEMENT logical file with LOCAL_TEMPORARY_FILES, as well as trying my own created file path, and I recieved the same error for each. Here is how the config is currently:
Logical File Path Definition: MM_GOODS_MOVEMENT
Syntax Group: WINDOWS NT
Physical path: C:\Documents and Settings\jchanski\Desktop\<FILENAME>
or,
Logical File Path Definition: LOCAL_TEMPORARY_FILES
Syntax Group: WINDOWS NT
Physical path: C:\temp\<FILENAME>
Logical File Name Definition: MM_GOODS_MOVEMENT
Physical file: MM_MM_MIGO_INVUPLOAD.lsmw.conv
Data format: ASC
Applicat.area: MM
Logical path: LOCAL_TEMPORARY_FILES or MM_GOODS_MOVEMENT
Do you see any error with this Brajvir? Thanks! -
Creation of logical file while creating APD
Hello,
I am creating an APD in which Multiprovider as source and flat file as the target with some filter in between.
While defining the target as flat file, I have selected application server and logical file name.
Can any one please let me know how to create this file which should be selected from the list of files.
Thanks in advance..Hi,
In order to create a file in the directory, you would need to write a ABAP program from your side.. like OPEN DATASET. or else Basis would help you to create this fro you.
Hope I understood your question...
Regards
Srinivas
Maybe you are looking for
-
How do I set up a speed dial on my iPhone 4s? I am used to the bberry where I just keep my finger on a number in order to dial. This is very useful in the car. How do I get the same effect on iPhone?
-
Sim on my iphone 3GS locked by accident. I do have an att account with this phone
My 3GS Iphone Sim locked by accident. it says to unlock- call my service company which is att-- to get the PIU? I have had iphones through Att for the last 6 years-- I cannot use my phone to call at-t because it is locked.
-
Is it possible to assign more than one viewId to an element of for example a menu model? Or can i use wildcards in the viewId? Thx for every hint. regards, Christoph
-
IDOC issue: updates MM02 with WF-BATCH instead the current job user
We have a nightly scheduled batch job that changes the material master through IDOC. The IDOC processing for material master update is successful, except the changes are done with the WF-BATCH user id instead of the user who submits the job step. We
-
Open Nef (Raw) file in CS3
Hi, When trying to open a Nef (Raw) file from Nikon D90 in Photoshop CS3 the following happens: - Nikon Scan 4.0 tries to open (why scan?) and deliveres the message "buffer overrun, program must be terminated", the header for this message is "Visual