OLAP variant for InfoPackage usage
Hi, experts
new I need a new OLAP variant from current year period 1 to current year current period minus 2 ( for example, current period is 12, the varient should returen 2005001 - 2005010 )
I find the SAP Exit "0FYTLFP" which can used in infopackage reture value from current year period 1 to current year current period minus 1 (2005001 - 2005011).
then I write my customer user exit "ASP_PP_1" to derivated value from "0FYTLFP"
CASE i_step.
WHEN '0'.
WHEN 'ASP_PP_1'.
READ TABLE i_t_var_range WITH KEY vnam '0FYTLFP'
INTO i_var.
l_s_range-low = i_var-low.
"skip code for get value of current period minus 2
"XXX is reture value
l_s_range-high = XXX
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
WHEN Others.
ENDCASE. "for i_vnam
I debug user exit that I_Step = 0 if we select some OLAP variant in infopackage setting.
the problem is, i_t_var_range table is alway blank when I debug the code. so I can not convert version from
"0FYTLFP"
how was solution about this problem ? do you anyone met similiar problem as me?
thanks in advance
Hi Jie,
the way you implemented the exit, variable ASP_PP_1 depends on variable 0fytlfp. When nobody enters values for 0fytlfp your variable will return an error (or no value). This of course counts for queries only.
In InfoPackage, there is no way to enter any variables, so that's wy i_t_var_range is emtpy.
Try to calculate your ranges based on sy-datum. Its the date of the clock of your server, so it should work
regards
Robert
Similar Messages
-
Creating OLAP variables for infopackages
Hello Gurus,
I am interested in creating an "z" OLAP variable and then use in the DATA SELECTION in the infopackage,
Where can I create the same?
Thanks in advance.Hi,
The following links will be very helpful for you.
Step by step OLAP variable for Infopackage
http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a05ac9fa-f44c-2c10-dbb8-ef54c102707c?quicklink=index&overridelayout=true
Regards,
Kush Kashyap -
Step by step OLAP variable for Infopackage
Hi Experts
I have been thru all the threads but am still not clear how to accomplish this. I am not an ABAPer so am trying to do this in Bex.
I am in BI 7.0. I want to create an OLAP variable for 0CO_OM_CCA_9 infopackage to select all cost centers for one 0comp_code.
I've tried creating a query as well as variable but I can't seem to get it to work.
I think the problem is all of the various possibilities of Settings in the variable creation i.e. Processed by, repalcement path, etc
Thanks very much for your help !Thank you very much Sven ! This is exactly what I needed.
I have a couple of additional questions.
Do I use the variable in this query somewhere or just create it on the Cube?
For Replacement Rule do I choose query and use the query I've just created or choose variable ?
I have done this with query in replacement Rule and I can't see my variable in the list for selections in my Infopackage.
Thanks for your help
laura -
Problem in OLAP Variable for InfoPackage
Hi All ,
My requiremnt is to get all the Blank values for VERSION field from the R/3 to BW .
So I created a OLAP variable and given that variable in the InfoPackage.
code i written is
IF p_vnam = 'ZS_BLKVR'.
CLEAR: l_s_range.
l_s_range-sign = 'I'.
l_s_range-opt = 'EQ'.
l_s_range-low = '' .
l_s_range-high = '' .
APPEND l_s_range TO p_t_range.
CLEAR: l_s_range.
ENDIF.
Now when iam loading data in BW , it is giving zero records , but there are records in r/3 with blank values for VERSION field.
in the selection critria it is displaying as '#' for Version in the monitor.
So is there any other way to get the Blank values VERSION records from R/3
Thank You.....Hi Ravi,
You can write an ABAP routine to populate the VERSION field. Choose type '6' from the drop-dwon and try the following code,
loop at l_t_range into l_s_range where fieldname = 'VERSION'.
l_s_range-low = ' '.
modify l_t_range from l_s_range.
endloop.
If it doesn't work then try to use the other way round. Find out what are the non-zero values possibel for version and exclude all the values from the selection.
Hope it helps.
Thanks,
Soumya -
How to debug an OLAP variant which is in Infopackage Data selection Tab
Hi experts,
How can I debug an OLAP variant used in the data selection tab for an infopackage? The loading is done via process chains. I am trying to debug the SAP delivered OLAP variant 0P_PPER3 of infoobject 0FISCPER3 (SAP exit). If I am not mistaken I believe the function module is RSVAREXIT_0P_PPER3. Thanks.Hi Mark !
This method is always good (if you have authorization to work in SM50):
put before your code an endless loop like this one:
data flag type c.
clear flag.
do.
if flag = ' '.
exit.
endif.
enddo.
then start your load...go to SM50 and here you will see your process looping on the same pgm...highlight the process and access into it in debug mode from the menu...
here you can change flag in 'X', exit from the loop and continue all the process in debug !!!
Hope it helps!
Bye,
Roberto
...and please don't forget to reward the answers...it's THE way to say thanks here ! -
OLAP Variable with user exit for Infopackage Selection 0fiscper
Hi Frds/ Guru's ,
I have a requirement to use a OLAP Variable for Fiscal year period 0fiscper(Characteristic ) in the Infopackage Selection. . I need to extract the data for Previous Year and Current Year , that is to be automatically selected with a OLAP Variable . The standard one's provided by SAP are not satisfying my requirement,as they are getting populated with SAP Exit and I am not getting the ranges .I am planning to create a variable and use the processing type as Customer Exit and Populate it with ABAP code in respective Enhancement RSR00001.
Even Can I create a ABAP Routine ? Please suggest me which is better to do in respect to performance of dataload , will be really glad if anyone can provide some code for doing this as u might have faced the situation sometime .
I have checked with all the threads available , could get some idea but will be really thankful if u gimme some hints in writing the code , at Exit level and routine level .
Thanks,
Krishthnx
-
OLAP Variable for Filter Selections in DTP
Hi
In BI 7.0 DTP i am using a ZZ OLAP Variable for a Filter on Location.
How/Where i can check the values defined for that OLAP Variable and if i want to update that selection with few new values
ThanksHi,
Please check the threads below:
Re: Infopackage - ABAP routine or OLAP variable
Re: How to create OLAP Variable in DEV
Re: Infopackage - ABAP routine or OLAP variable
Re: creation of OLAP Variable
-Vikram -
Can't find 0FYTLFP OLAP Variable in InfoPackage Data Selection tab on 3.5
On BW 3.5, when generating an InfoPackage with the datasource as Purchasing Data(80PUR_C01), under Data Selection tab, for the InfoObject 0FISCPER, I selected 7 (OLAP variables)for the Type column, then click the button next to it and under the column of Details for Type to bring up a window, but when expending the OLAP Variable field list, can't find the following value in the list which shows up on BW 3.1:
0FYTLFP 0FISCPER Cumulated to Last Fiscal Year/Period (SAP Exit)
How to make the above value show up in the OLAP Variable list? I thought maybe the variable 0FYTLFP needs to be installed in Business Contents, but there is no variable object type in Business Content. It sounds like a SAP Exit, but how to make the SAP Exit value show up on BW 3.5?
Thanks for everyone's input!hey Rohit,
Besides the three variable values in the list on BW 3.5, now I find a new one in the list, called "0E_ROLE 0SR_ROLE Role (SAP Exit)", I have no idea why this one shows up now. Now all the four variables in the list are:
1. 0CML12LM 0CALMONTH Last 12 Months Excluding the Current Month
2. 0CMONTH 0CALMONTH Current Calendar Month
3. 0E_ROLE 0SR_ROLE Role (SAP Exit)
4. 0S_RQMRC 0REQUID Most Current Data
0FYTLFP is still not in the list! We can't try to create BEx query since our BW 3.5 system is just installed and we have not got to the step to ceate a query. I try the 2nd way you suggested by pressing F6 on this variable with the typed in value 0FYTLFP, get the following msg "BEx variable 0FYTLFP could not be evaluated - No error message", that means it would not work on BEx query as well, right?
What could be the reason that we can't see 0FYTLFP variable in our new installed BW 3.5? Do you think our BASIS missed installing sth?
Thanks
Message was edited by: Kevin Smith -
Transaction code for infopackage scheduling
Hi,
Does any know what the standard transaction code is for infopackage scheduling (other than RSA1)? Is there any other option to by pass the RSA1 code and go to the infopackage directly to upload an external file to the infocube? Any input will be appreciated. Thanks.Hi,
RSA1 is a standard TCODE for SAP-BI or BW.
As far as my guesses, there was no standard transaction to run a Infopackage....
Instead of using tht still if u need to scedule a package,
1) If ur Infopackage is included in process chains, then u can goto RSPC to the same chain where the infopackage was included and there on the loading step if u rightclick-->display variant.....then it'll goto scheduler window..there u can start...
2) If u have run the same package before anytime and u remember the date, u can goto RSMO and filter according to IP selections and u'll get all the packages run on tht day...
If we execute with tht selection u'll get the monitor of the load..ther from the header tab...in the IP selction u can schedule the same without using RSA1..
But RSA1 is the easy way to trace via data source..
rgds,
Edited by: Krishna Rao on Mar 26, 2009 2:48 AM
Edited by: Krishna Rao on Mar 26, 2009 2:48 AM -
How to create process variant for delete index in a process chain
Respected all
I am creating a process chain, but unable to create process variant for the delete index. kindly tell me the
step by step proceure for creating the variant for delete index. also if we use variant which is previously prepared then will it be safe? will it affect the other running process chian.
pls reply
thanks
abhayHi,
Please do not use an already created variant for index deletion. It might delete indices of some other cube.
You can follow the following steps -
1. Open the chain in Edit mode and click on "Process Types" button
2. On the Left hand side you will have various process types. Choose "Data Target Administration" and expand it.
3. Choose the first process "Delete Index" (it will be marked with a trash bin sign) and drag it to your chain
4. It will ask you create a variant. Press the create Button
5. In new window enter the Process Variant technical name and description
6. Then in new window choose Object Type = Cube through dropdown and Object name via browsing. After choosing the cube name click on "Transfer Selections"
7. Save and return to your chain
8. It will automatically generate a create index step also after delete index.
9. You need to break the link between create and delete step and insert infopackage in between to get the following steps - delete index --> load cube --> create index.
Please let me know if this is helpful..
Regards
nishant -
Set variant in infopackage to get backward data 1 month automatically
Dear all,
Could anyone tell me how could I set variant in infopackag => tab Data selection to get backward data 1 month from schedule day (every Monday) automatically?
Many thanks & Regards,
Bigtree K.Use this code...
l_t_range-option = 'BT'
l_t_range-sign = 'I'.
l_t_range-low = SY-DATUM - 1.
l_t_range-high = SY-DATUM.
Append l_t_range.
Take a look at this link for more info...
http://help.sap.com/saphelp_nw04/helpdata/en/a3/4f8f3b294a7f2de10000000a11402f/content.htm -
Screen Variant for ENjoy Transaction
Hi all,
I want to create screen variant for enjoy transaction, i.e fb60. Through the guide in another threads, I click on the square icon, above the scroll bar on the table control (used for entering document line items). When I create new variant, hide some columns and save this screen variant, everything is not changed. How to apply this screen variant to this transaction ?
I also use function "Add screen variant" when right click on this screen, but nothing changes.
Thank you very much for your helps.
Sylvecat.That little button you mention (above the scroll bars) will not create screen variants for this transaction.
You have to use transaction SHD0 (also accessible by pressing Ctrl+F4 once you are inside FB60).
Search inside http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCDWBCEX/BCDWBCEX.pdf for the keywords SHD0 more info on usage, etc. if you need help with SHD0.
Please remember to assign points if found useful.
Regards,
Gulshan -
OLAP Cache for Query Performance
Hi Experts,
I have below 2 Questions before we implement OLAP Cache for our Queries:
1) We have 15 imporatant queries - which do NOT have any variable/selection screen.
(question here is will it work for those kind of queries which dont have any selection screen/ variant ? ) --> client wants to prime the cache for few queries which dont have variable screen.
In this case, say if data is later filtered on any CHAR , will it take the data from Cache?
2) I have a query which initially will have few characteristics in the drill down when we first execute and users would be drilling down on many other characteristics after that. So if I want to fill OLAP cache for this query then what is the best way so that each drilldown in the query gets data from cache.
Thank you,
-SuHi Raghavendra,
Thanks for your response.
For first Question, Do you mean , even if we do not have any Selection varaibale on Query--we still can fill OLAP cache for it for its all values (i.e. No selection means "*") ?
If this is the case, then what we need to defile in General Precalculation (Variable assignment) while creating a new setting for the query.
Thanks,
-Su -
Block company code for any usage
Hi
how to find the compnay code or Plant blocked for any usage like block for transactions like master data creation or any positing like good receiot etc. Please confirm.
MadhavanYou can also block all posting periods, trough OB52 but it would depend in the Posting Period Variant of the company
Regards
Jose -
How to Save Multiple Variants for a Report at a time?
Hi Experts,
I have a report in one server and I have copied the same into another server.
And now I also have to copy the variants of that report.
There are totally 192 variants for the report. So, is there any easier way to copy all those variants for the new report that I have created, rather than re-creating the variants one-by-one manually.
Note:There is no connection to both the servers. So I cannot transport them.
Thanks in advance.Basis can do a export and import transport, still if don't have connection between boxes.
or
check this
http://www.sap-basis-abap.com/abap/copy-program-variants-from-one-to-another.htm
a®
Maybe you are looking for
-
Premiere project opened - closed sequences and generating new peak files
Hey guys, I'm working on a big project, which resides on our Drobo. I have been sorting clips and working in sequences for the last couple days now. All media was loaded fine, and peak files were generated. When I went to open the project this mornin
-
IChat 4. Using my .mac account and my AIM account simultaneously
Can I set up my .mac account and my AIM account with different Names and Pictures? At the moment, every time I change one the other one changes too! Do I need to alter the Server Settings and Port for each account? If so, to what do I change them to?
-
Can I download video SD cards directly into a portable hard drive?
I'm back to square one, i.e., no solution or answer. I visited the Apple store with the intent of purchasing a LaCie portable hard drive. It looks like an excellent unit. I asked Apple personnel "can I directly plug in a microSD card (via adaptor)
-
Hi, Once after we assign all the prodcution variances flow to CO-PA, how can we can we see those variances from CO-PA side? Thank you, Nivi
-
Another noob question for all you pros out there... I've made a webpage layout I'm proud of, and decided to use CSS for some of the text. I created several CSS sheets, each for a different bit of text, and saved them in their own folder (ex. MySite\S