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
Similar Messages
-
How to give the Fiscal year period in RSA3 for checking the data.
Hi BW Experts, good morning.
We have loaded the data monthlywise with selection parameters as Fiscal Year Period(FISCPER).
While checking the data consistency in both R/3 and BI, the selection parameter which i have given is in the format of 001.2005
I got the records in BI side.
But if we give the same format In RSA3 in the Fiscal Year Period tab , we r getting 0 records.
So kindly help me how to enter the selection parameters for 1 month.
Thanks
AnjaliHi sanyam ,
Thanks for the help.
I got it now.
Thank you so much
Bye
Regards
Anjali -
Web Report not printing the fiscal year period variable value
Hi,
In web report where in one text element, we enabled the fiscal year period variable value to display
in the report result.
If we run the report then this fiscal year period is displaying in the general information.
We have print button (Java Code), where user can take a printout of the same report.
In the printout this Fiscal year period is NOT PRINTING, other variables like rollup time, technical name of report etc are printing perfectly.
It is required to print the fiscal period also in the print out of the report.
Any help to come out of this.....
Thanks
SrinivasHi
Any Help.....
Srini -
Error while entering the Fiscal Year/Period Variable
I keep getting the following error message when I try to input or select the Variable on the report that has been executed on the Portal. Everything is fine when done through Bex.
<b> Please enter value in permitted format for variable Fiscal Year/Period (Selection Options, Optional).
Entry needs template ___/____
For characteristic , enter value in a permitted format</b>
Would anybody have any clue as to why?? It does have the Fiscal year Variant.
ThanksThis is fxed in BI JAVA SPS 12 Patch 2. Not sure whether there is any OSS notes for earlier SPS.
-
How to set the spool retention period till 30 days(Printer Properties).
Hi SAP Experts
I need to setup a job which creates a spool. I want to set the spool retention period till 30 days(Printer Properties). But I have the option of keeping it only for 8 days or Do Not Delete at all. Can you please let me know how can I setup a job which creates a spool which wil be retained for 30 days and then will automatically get deleted?
Advanced Thanks
Thanks & Regards,
Kishore.Hello Kishore,
I can understand why you dont want to change the variant.
However may be a slight change in the variant might help your cause though I am not sure whether you will like this suggestion or not.
Create a dummy output device type to which all spools created for this report need to be assigned.
Once this is done make a small change in the variant for the field Output device in such a manner that all the spools belonging to this printer/output device are not deleted.
Then create a new variant for this output device ensuring that only spools belonging to this output device and older than 29 or 30 days are deleted.
While this will ensure that normal spool requests are deleted these ones are not.
Really dont if this solution is acceptable or not.
Regards.
Ruchit. -
How to change the fiscal year in the controlling area?
I want to change the fiscal year mentioned in the controlling area. The problem is that the controlling area is assigned to a company code and number ranges have been defined and cost center hierarchy has been created.
Please suggest me what to do?
Thanks in advanceHi
If its a Productive system - You cant change the FY.. You need to take SAP SLO Service.. Its a chargeble one
If its a Test system and data is posted, then you need to delete the data 1st of all... I advise create a new contr area / comp code
"Activate components & Control Indicators" - Just COPY 2011 and make it 1900 or any year of your choice
br, Ajay M -
How to set the show properties as a default in KM
Hello All,
I am trying to upload the documents in KM repository using File-> Upload. If I click this Upload button, it will open a new window, it will show (show properties) this properties. But I want this one as default. Can any one help to set the (show properties) as a default?
Thanks in Advance.Hi Gowsika,
I'm sorry, but you seem not to get my explanation.
First, there is no such "switch" for "Show Properties" or "Hide Properties", and there is also not Resource Type "Show Properties". It is hardcoded in the UICommand "upload" (so in the Screenflow implemented by com.sapportals.wcm.rendering.uicommand.cm.UIUploadCommand), that if the ResourceType "normalrt" (http://sap.com/xmlns/cm/framework/normal-resource-type) displayed "Normal Document" is selected, you will see the "Show Properties" link. Only by changing the implementation of this UICommand you could change this behavior, but it's not recommended because you have to make sure on upgrades that you don't overwrite it again.
So again my suggestion:
1. Go to KM->CM->Configuration->CM->Global Services->Resource Types
2. Duplicate the Resouce Type "normalrt" changing:
Name: my_normalrt
Resource Type ID: http://sap.com/xmlns/cm/framework/my-normal-resource-type
3. Go to KM->CM->Configuration->CM->Global Services->Property Structures->Property Structures
4. Duplicate "DefaultPropertiesStructure" changing:
Name: My_DefaultPropertiesStructure
Resource Types: http://sap.com/xmlns/cm/framework/my-normal-resource-type
Structure Items: "Input_here_your_properties_and_property_groups"
BTW: If you want to have the same properties as in DefaultPropertiesStructure you might be obligated to remove some of them from the original Property Structure.
5. Go to KM->CM->Configuration->CM->User Interface->Commands->UI Commands
6. Duplicate "new_file" changing:
Alias: my_upload
Parameters: ResourceType=http://sap.com/xmlns/cm/framework/my-normal-resource-type,standalone=true
7. Go to KM->CM->Configuration->CM->User Interface->Commands->UI Command Groups
8. Edit AdminNewResourceGroup by renaming upload to my_upload in the "Commmand List" parameter.
BTW: It's advisable to duplicate the whole Command Group and use it in your Layout Set and not to change the standard configuration, but I will not describe the whole process here
9. Now go to KM Content and use the menu Folder->New...->Upload
Hope this helps,
Robert -
How do set the system parameter for user defaults?
When we are creating new users they are getting the European default for date format and decimal format. I have found is there is a structure BAPIDEFAUL that contains these values. However, I have not found the configuration for changing these values. Does anyone have the answer to this problem?
Ronald,
with USERS_GEN, users are created with BBP_USER_CREATECP.
This function uses DEFAULTS to pass parameters.
But those parameters are not available in interface or file upload
USERS_GEN will take default values in system parameters:
Set date format and decimal format like in system parameters
data: defaults type bapidefaul.
clear defaults.
CALL 'C_SAPGPARAM'
ID 'NAME' FIELD 'zcsa/moddatfm'
ID 'VALUE' FIELD DEFAULTS-DATFM.
CALL 'C_SAPGPARAM'
ID 'NAME' FIELD 'zcsa/moddcpfm'
ID 'VALUE' FIELD DEFAULTS-DCPFM.
So, this is the only way to "customize" it: define system parameters zcsa/moddatfm & zcsa/moddcpfm in RZ10.
Rgds
Christophe -
Up to the period : Fiscal year period Exit variable is not working
Hi Experts,
I have the following code to get the upto the Fiscal year period variable .It shoudl fetch the Values From the starting of the Fiscal period like 2009001 whatever the period user enters.But currnelty it is not woking.Please let me know am I doing any mistake in code.currently it is only fetching for the month user enters not up to the period.
Prasad
Variable Name : ZUPTOPER
User Entry Var : 0P_FPER
WHEN 'ZUPTOPER'.
IF i_step = 2.
LOOP AT i_t_var_range INTO loc_var_range
WHERE vnam = '0P_FPER'.
fper = loc_var_range-low.
fper+4(3) = '001'.
CLEAR l_s_range.
l_s_range-low = fper.
l_s_range-high = loc_var_range-low.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
APPEND l_s_range TO e_t_range.
EXIT.
ENDLOOP.
ENDIF.Hi Prasad,
This would be happening if you have put the user entry variable in the global filter of your query.
As a result the complete data set is restrcted to get the data only for one month.
Please use the variable for user entry month in a selection and not globally.
-Vikram -
Urgent ...! How to get Current Quarter of the Fiscal Year
Hi Friends,
I need to calculate current Quarter of the Fiscal Year 4 , 5 like that. SAP has Provided 3 Variable(Current Quarter of the Fiscal Year 2 like that 3 variables), my customer is looking for some more variables. Can any one help me out hhow to Calculte Current Quarter of the Fiscal Year 4. How can i see the code of the SAP EXit's. Based on that i will try to write the code.
Thanks in Advance!
Nagesh.Hi Nagesh,
the code for SAP Exits must be in Function-Pools SAPLRS_BCT* (I'm not quite sure). But this code
seems to work different than customer Exits.
See How-To-Guide
https://service.sap.com/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
for a good example of how to implement Customer-Extis.
(It's a 2.x Guide but still valid for 3.x)
Regards
Robert -
Formula to calculate two fiscal year/period difference for non null quantit
We'd like to have a query result like the following:
Person -- Jan_2007 -- Feb_2007 -- Mar_2007 -- No. of Months
Tom --- 21 --- 54 --- 10 --- 2
John --- 0 --- 3 --- 15 --- 1
In the above query, the row is sales persons, the 1st three columns list the sales quantity by each sales person restricted by fiscal year/period and we would like to create 4th column "No. of Months" to calculate (will use formula) the month span (difference) for each sales person from his last sale activity (the last month he performed sales) and the 1st sale activity (the first month he performed sales) as listed in the above query result, e.g., Tom performed his first sales (sales quantity: 21) in the month of January of year 2007, and he performed his last sales (sales quantity of 10) in the month of March, 2007, then the "No. of Months" column value for Tom is 2. The calculation formula will be performed based on the last quantity value (> 0) to trace it's corresponding column fiscal year/period value (max of the fiscal year/period value with quantity value >0) and on the 1st quantity value (>0) to trace it's corresonding column fiscal year/period value (min of the fiscal year/period value with quantity value >0) and then do the subtraction between the max of the fiscal year/period value and the min one.
Would be appreciated if BEx experts here give the detailed steps on how to build up this formula to calculate the number of month difference and we will give you reward points!
Edited by: Kevin Smith on Mar 18, 2008 1:47 PMhi Danny,
I only gave an example of 3 columns, but actually, yes, the report can have more than 12 months, e.g. from Jan_1999, Feb_1999, ..., Mar_2011, Apr_2011.
In our simple example of 3 columns for the three consecutive months, if John had (3)(0)(15), then the No. of Months is 2, or the last month value he performed sales and 1st month he performed sales.
You said macro in Excel sheet? Not sure if macro will work on web since we will eventually run the reports on web browser, therefore we still prefer using Formula.
Any idea/solution?
Thanks! -
Issue with Fiscal Year period - Variable
Hello,
I have requirement where I have two fiscal year variables selections available for the users. Both are independent to each other. FOR EX: A & B
1ST Fiscal year period is straightforward. It is a single variable selection where User enters the fiscal year period then the Key figures data will be available to the user for that particular fiscal year what is selected in the variable screen.
For ex: If user enters 01.2007 then the values will be only for that particular month/period
However, the 2nd Fiscal year period user wants a Range (From and to). This is also a Single selection variable. Here user enters only TO value, which it should go and get the lower value from first variable screen and then it should take the higher value from the 2nd Variable screen and should calculate the result as a range.
How this can be sorted? Can someone please help me to sort this Issue? If we need a customer exit, can you please give me some sample code?
Thanks in advance
HarishHi,
Create 3 variable
One for from variable which will user input ZVAR1
2nd to variable will be user input ZVAR2
3rd variable be variable exit type ZVAR3
In exit populate the VAR3 by reading the two user input variable.
and use the option
Try this:
<b> when 'ZVAR3.
if i_step = 2.
read table I_T_VAR_RANGE into z_t_var_range
with key VNAM = 'VAR1'.
read table I_T_VAR_RANGE into z_t_var_range1
with key VNAM = 'VAR2'.
ZE_T_RANGE-SIGN = 'I'.
ZE_T_RANGE-OPT = 'BT'.
ZE_T_RANGE-LOW = z_t_var_range-LOW
ZE_T_RANGE-HIGH = z_t_var_range1-LOW
APPEND ZE_T_RANGE TO E_T_RANGE.
clear ZE_T_RANGE.
ENDIF.</b>
Thanks,
Debasish -
Variable for Fiscal Year Period in cube "0ECCS_C01" - Urgent
Hi all,
I have created a query based on cube "0ECCS_C01". I have restriced the characterstic " Fiscal Year Period" on "Period/Fiscal Year (Single Value Entry, Required)" variable. Output of the query are just 2 numbers : sum of "cumulative value GC" and sum of "period value gc" for given period. This query is working fine in query designer. The variable takes input in following form "001.2008". I have checked that in analyzer that the 'key' value of the variable is in this format "001.2008".
Now in VC , when i place "001.2008" in start point coding for fiscal year, it is giving error. Can any one please tell me that why it is throwing an error.I have given the same format as i gave in query designer. or shud i give period in some other format??
Please respond.
Regards,
Aisha Ishrat
ICI Pakistan Ltd.Hi,
can you give us further information about the data type in the cube resp. the infoobject, which is used in the cube for the fiscal year/period?
Maybe you can try 0002008. Can you check which values you can enter when you execute the query in the web, so that the value helps for the variable comes up?
Best Regards
Marcel -
Invalid value for Fiscal year/period
Hi all,
I have an user exit variable which populates the fiscal year period value from two separate fields.
1) Fiscal Period
2) Fiscal Year
But when I contatenate it and place it in the format 200601 the report in BEx gives me the error
"Value 200601 for user-exit variable ZRMA_FIP is invalid"
ZRMA_FIP is my variable name
The code I have is:
WHEN 'ZRMA_FIP'.
l_yr_zrma_fip = l_v_cur_year.
l_per_zrma_fip = l_v_cur_period.
CONCATENATE l_yr_zrma_fip l_per_zrma_fip INTO
l_calmth_zrma_fip.
r_vari-low = l_calmth_zrma_fip.
r_vari-sign = 'I'.
r_vari-opt = 'EQ'.
APPEND r_vari TO e_t_range.
ENDCASE.
I thought I had to take care of internal/external format but nothing is working...can anybody help?
thanksHi
I have demo code
hope that will help u.
WHEN 'ZMXFIPED'.
clearing the storage areas used above.
CLEAR: l_s_range , loc_var_range .
checking step if it is after inputing the variable value.
IF i_step = 2. "After selecting of input variable
looping at interval range table .
LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'ZMSFPER8'.
assigning values to year and period values.
l_year_exit = loc_var_range-low+0(4).
l_period_exit = loc_var_range-low+4(3).
putting the from and to values together with year and period values.
CONCATENATE l_year_exit '001' INTO l_s_range-low .
CONCATENATE l_year_exit l_period_exit INTO l_s_range-high .
sign I-> includes the range between.
l_s_range-sign = 'I'.
l_s_range-opt = 'BT'.
appending the fianl interval range table.
APPEND l_s_range TO e_t_range.
exiting after appending.
EXIT.
ENDLOOP.
clearing the storage area for next iteration.
CLEAR: l_s_range .
ENDIF.
by using tha logic u can try. -
Format for Fiscal Year Period 0FISCPER
Hi,
Im uploading the fiscal year period into BW infoobject 0FISCPER. Im uploading it in the format eg: 003.2005 but it is getting read into bw as 003.2000.
Im using Excel/ CSV file and the field is converted to Text.
Does anyone know what format I have to use to upload fiscal year period and get it in the format I want ?
ie 003.2005 ?
Regards,
DominicHi Dominic,
0FISCPER is a NUMC 7 infoobject. And it takes your 003.200 seven symbols leaving the last symbol. Though, the output format is length of 8.
A'm not sure if you are dealing with external format (in this case try to enter 0032005) or with internal (then try 2005003).
Best regards,
Eugene
Maybe you are looking for
-
How to call a rtf template from another rtf template by passing a value
Hi Gurus, Its about calling a rtf template from another rtf template by passing a value. My requirement is like: I got a quote report from Siebel, based on the product PartNumber I need to pull product description or literature from another database
-
Since updating my iphone 4S to ios 7.1 my phone will no longer ring and apps do not have sound. I have made sure the do not disturb is not turned on and have also gone into Accessibility and made sure sound is not off there. I have done a reboot and
-
Sales Order Output - determined by Sales Order Type, Created By
I want have my order output determined by sales order type (vbak-auart) and created by (vbak-ernam). I have created a condition table 501, access seqeunce Z001. In v/48, in accesses for Z001, I created AcNo: 10 Tab: 501 Requirement: [empty] Exclusive
-
Hi Gurus, I am new to MDE. In our Warehous we use Mobile Data Entry.We recently carreed out Inventory counting in our warehouse. I want to display inventory data(On RF terminal) in the report regarding the when we scan bin for this w
-
Production confirmation profile
Hi; We would like to use a different confirmation profile for a single user. If the user works in multiple areas, we want one area to propose labor hours, and another area to not. This is set in the confirmation profile... and I know that the confi