Adding variable in Report painter
Hi Gurus,
I am creating a new report using Report painter. Though, it is working fine, I want to bring one of the field for selection. How to add variable ? I created a variable but I am trying to insert this variable in the report painter... I am unable to find any way.
Awaiting your help.
thanks in advance.
Hi,
Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
now its just done run the report and test it!
If you still not make it refer to standard report of such kind, you will surely get it....
Regards,
Sayujya
Similar Messages
-
How to use Value Variable in Report Painter Column defined as Formula
Hi Gurus,
In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
Can anybody suggest what I need to do to make it workable.
ThanksI did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
sql is
select date from work_order where facility = @{p_facility}
the physical log sql is
select date from work_order where facility = 'p_facility' -
Hi,
I have a customized variable in report painter which pulls data from standard table, profit centre (GLPCT). The data is included dummy profit centre.
How can block or should not allow dummy profit centre data to flow to the report?
Please advice.Hi,
Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
Regards
Sudhakar Reddy -
Adding field in Report Painter
Hello Gurus,
I am working in the Report Painter PR20-001.
My requirement is to add a new column in the output of the report but even when i am able to add a new field and save it on the reports execution i am unable to view the added field in the output.
Kindly tell me the entire procedure to add a new field in the output of the respective report painter output.
Regards,
Swati.Hi,
Go to Global Parameters Definitaion in report painter, variable will be used only along with the field, just in global paramerters enter your desired field and click in next column, system will show you a pop up select your variable for that field...
now its just done run the report and test it!
If you still not make it refer to standard report of such kind, you will surely get it....
Regards,
Sayujya -
Creating variables in Report Painter
Hi ...
I would like to know ... how do I create variable ? I know it is via T CODE GS11, but when run tht, in the next screen it pops up for variable ? What variable do I need to enter ? is this predelivered Eg : CE-PK, or can we create one ? Please advise
Also, I would like to I have a requirement for a report whereby the format is like this .....
SALES CURR MONTH (06/2006) LAST YEAR
- Sales IT
- Sales 1
- Sales 2
COGS
- cogs 1
- cogs 2
- cogs 3
COS
- cos 1
- cos 2
- cos 3
GROSS PROFIT
Whereby, SALES = sales it + sales 1 + sales 2, COGS = cogs 1+cogs 2 + cogs 3, COS = cos 1+ cos 2+ cos 3. also GROSS PROFIT = SALES + COGS + COS
The abpve report is inclusive of Cost Centre and Profit Centre, how acn I utilize the libraray in Report Pianter to create such report, is this possible in Report Painter whereby including Cost center and Profit Centre in one single report
Pls assist me
NathanWhen you create your variable first enter the variable name. Second enter the reporting "table" to use. Third enter the "field'. Press enter. Next enter a default value for your field. Save you variable. It is now ready to use in your report painter.
Using the PCA reporting tables gives you the profit center but not the cost center. You can only use one reporting table per report. you will need a cctr report for that.
First create your own libray from GLPCT. Next create your report using your new library. The report painter can do the calculations that you have shown.
You create a formula in the row or column to calculate your sub totals.
pls assign points if helpful as a way to say thanks. -
Internal variables of report painter shouldn't be selectable
Dear collegues,
I have created two new internal variables in report writer in order to use them in planning layout of TA KP67:
- previous year: marked as internal variable: calculated as: &1CGJAHE-1 (2008)
and
- future year: marked as internal variable: calcualted as: &1CGJAHE+1 (2010).
In report painter these variables are assigned to key figures and are not shown on the selection screen again as they are calculated internally.
But in planning layout of TA KP67 cost activity planning these variables are also assigned to key figures like actual costs or fixed planned costs and are indicated as acceptable for input on the selection screen but shouldn't - so how it is possible to define internal variables in co planning layouts as really internal which do not come up if the planning layout is executed via TA KP06?
Thanks and regards,
ChristianHello Christian,
when I understand your request correctly, you want to plan for several years like 2008, 2009 and 2010 but you just want to enter one year. Right?
For the column with the current fiscal year you can use a standard variable like GJAHR. For the other columns you define the year in the column as variable with value "GJAHR-1" (last year) and with value "GJAHR+1" (following year). On the selection screen of the planning transaction you will only have one field for the current year and the fiscal year for the other columns is calculated accordingly when you run the planning.
Hope this helps.
Cheers,
Daniela -
Formula Variables for Report Painter
Dear Experts,
I have a Report Painter Report which displays month wise report in columns and now i want the report to be displayed based on the period mentioned in selection screen.
Can someone please advice how do I do the same with use of Formula Variables.
Regards,
RahulGo to the selection screen and press F1 and go to technical details to name the name of the screen field. example: 8A-VON (period from) and 8A-BIS (period to).
In your report designer, you enter the those variable for the "period" characteristic and tick the variable ON/OFF checkbox. -
New variable in Report Painter - GRR2
Hi,
Can i create a variable with a value of table PROJ, the value is in Z field of table PROJ?
I need to create a formula in report painter to take the field value PROJ table and multiply by the actual costs.
Many thanks.
Regards.Hi,
Easier option is to create a profit center group excluding the dummy profit center and assign it in the report painter instead of the variable.
Other option is at the time of executing the report, exclude the dummy profit center with out making any changes in the report.
Regards
Sudhakar Reddy -
Formula Variables for Report Painter- Syntac error in formula, Please Help!
Dear Experts,
I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))12*
I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
I have tried so many different way but nothing seems to work. one of the ways i tried was:
In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
So Im trying to create a folowing formula:
IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
Thank you in advance
Regards
ErnestaThank you all for your help. The issue was that the variable was assigned to the different table as the library. After I changed it, it worked fine.
Regards
Ernesta -
Formula Variables in Report Painter- Syntac error in formula
Dear Experts,
I'm creating the report where I need to calculate annualized P&L. The formula is as follows : (P&L account/Period(variable ))*12
I need to capture the From_period, which is entered by the user on the selection screen when running the report and use it as a variable in the formula above. Example: If User insert From Period 3, then the formula should be *P&L accoun / 3 * 12*
I have tried so many different way but nothing seems to work. one of the ways i tried was:
In the general selection Im using set variable 6P-S-PERIOVB.CCSS for period which consists of variable V_PERIO and B_PERIO.
So Im trying to create a folowing formula:
IF 1 >= u2018PER_FRu2019 AND 1 <= u2018PER_TOu2019 THEN 1 ELSE 16
IF 2 >= u2018PER_FRu2019 AND 2 <= u2018PER_TOu2019 THEN 1 ELSE 16
Unfortunately I keep getting Syntac error in formula. Please help me I'm really desperate to solve this issue after 5 days of unlucky research.
Thank you in advance
Regards
Ernestaso, I would use parameters.....
P_fr_MO(2) TYPE N DEFAULT '01',
p_fr_yr(4) type n default '2011'.
Then, to set my range, i would do something like....
data: lv_to_mon(2) type n,
lv_to_yr(4) type n.
if p_fr_mo eq '01'.
lv_to_yr = p_fr_yr. "12th month, same year...
else.
lv_to_yr = p_fr_yr + 1. "any other month puts us into next year.
endif.
case p_fr_mo.
when '01'.
lv_to_mon = 12. "always for 12 month period...
when others.
lv_to_mon = p_fo_no - 1. '''example 10/2010 to 09/2011.
endcase.
then concatenate the from and to variables into what format is needed to read the data...
on the other hand, if the user gives us from and to, we have a different problem....one then has to calculate what part of a year they have and create a factor for multiplying any data values....
for instance if user says Jan (01) to (03) March, then I know that to month - from month + 1 is the number of months I have....
then 12 / that number is the factor to multiply the results by....
example...
data : factor(5) type p decimals 2
months(3) type n.
if p_to < p_from. "adjust if I cross a year boundary....Oct to Jan becomes 13 - 10 + 1 or 4 months.
p_to = p_to + 12.
endif.
months = p_to - p_from + 1.
factor = 12 / months. " factor 12 /4 months = 3 times the values obtained = 1 year.
something like this....hope this is helpful to you.
Edited by: DaveL on Oct 18, 2011 6:24 PM -
Formula variable in Report painter
Hi
Normally when ever you create a formula varibale for year or period system will
check the period and year from current system year and period(S001 and S002)
I am looking for a solution where i can create variable which is independent of
current year and period.
Lets Say if i give 2006 and period 7(of 2006)system has to give results
in the predefined columns like 2006 of period 7 and 2005 of period 7 and 2004 of period 7 and 2003 of period 7(I have 4 columns)
Can any one tell me how to create this using the formual variable,which will allow
me to select in the input screen any period and year and display the results as per my own requirement.
Thanks
LilyHi Ramachandra
Sorry for late reply
As per your reply,i am not still clear,can i put in more clear my question again
Selection screen
Year-2006
Period-6
I have 5 columns ,can you specify me the formula for 5 columns in your reply.
Column1- (it has to display 2nd quarter of 2006)
Column2-(it has to display 1nd quarter of 2006)
Column3-(it has to display 4nd quarter of 2005)
Column4-(it has to display 3nd quarter of 2005)
Column5-(it has to display 2nd quarter of 2005)
Pls specify me FYEAR and Period from and period to which formula variable i need
to use,how many variables i need to create for this purpose.
Keep in view that selction screen i can give 2006,or 2005 or 2007,but system has to display 5 quarters back data in in 5 columns.
This is urgent,can you pls help.
Thanks
Lily -
Report Painter - Use of Constants / Local Formula Variable
Hi,
I am using constant and/or local formula variable in report painter in FSI.
I could use both the values for calculating percentages, ie. it can be used for multiplication or division. However, when I try to use it for addition or subtraction, I am getting the error message no. KH206.
In all cases, I am using different values in the formula, i.e. a absolute figure and a GL based figure.
I am not able to understand, why it even allows me for calculating percentage.
Can anyone help me in using a absolute figure for input and thereafter use it in addition / subtraction.
I would prefer an immediate solution to this as I am in the final stages of this report.
Full points guaranteed.....Hi Kash,
Thanks for your reply..
Can you elaborate bit further. You mean to say I should create a Constant with some value.
Thereafter how should I bring that in the form. But, How do I enter the Constant in the Formula... There is no key for entering any text in the formula.. there are only ID (the values which we bring in the form and which can be selected for the formula) and numbers which can be entered.
So how do I enter the name of the Constant?
I tried just keying in the name of the Constant, and I could check the formula also, However, while saving the form, I am getting an error,
Element WCaplimit Bis letztem ATag bis &$BISD is not defined correctly -> check definition
Message no. KH206
Diagnosis
In element WCaplimit Bis letztem ATag bis &$BISD the system adds quantities and values or different currencies.
Can you please revert back with step by step solution?
Appreciate your prompt reply.... Thanks -
Report Painter: Error RG102 when executing report
Hi All!
I need help with an error I'm facing with Report Painter...
When executing a report with a large amount of variables and columns I'm receiving the error:
Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
If in the General Data Selection instead of using a Variable for the Version I use a fix value, it works OK. However, other reports are working properly with the same Gen. Data Selection.
Does anyone has an idea of the cause of this report?
Thanks!Hi All,
I will try to clarify a little bit on my Issue.
First of all, it's not a BW issue, but a Reporting Problem with the Report Painter for the Consolidation (EC-CS).
The row is configured with a Set of Data regarding a Consolidation Item that includes all the P&L Accounts. It is configured to 'Expand'.
Regarding the columns, I have a large number, between 40 and 50 mixing Ratio with Characteristics and Formulas. Within them, I'm using as well variables for Period, Consolidation Unit and so on.
In the Selection Screen I have configured the following paramters
Version - 100
Dimension - T1
Cons chart/acct - C1
Ledger - US
Cons group (Set and Variable) ZSETUNV
Year for CG breakdwn (Variable) ZEJERAM
Period for CG breajdw (Variable) ZPERAM
With all the above-mentioned configurations the report works great. However, if in the Selecion Parameteres I try to replace the Version (Instead of having fix value 100, to have a variable ZVER) in order to deal with several versions in the same report when I save and execute I receive the posted error:
Message no. RG102: Syntax error in GP3NDZHLG3MURI7VJEVF29KI876800, row 0
Does anyone has an idea if there is a Maxium of Variables for Report Painter or any idea which may be the origin of this error?
Thanks again! -
Report painter- problem in creating formula variable- ps
Hi Experts,
i have copied report 6P3 - 6PP1-001 Act/Com/Total/Plan from library in report painter.
our requirement is we want two user fields from cj20n in this report. they are prps-usr04
and prps-usr05.
i have added these in header as special text variable as they were ALREADY available at header under
MASTER DATA FOR PROJECTS / WBS ELEMENT IN REPORT-WRITER.
now my requirement is to add new columns. for that i required these two fields in formula.
but as they are not present in formula component i am not able to get it.
what should i do to enter these fields in component list in formula?
PLEASE GUIDE ME?
AMOLActRunningBal is a running total calculated in crystal or database field? If it is a database field then you can try this
if {command.CR-Amount} <>0 then
{command.CR-Amount}
else
previuous()+previous({command.Dr-Amount})
If it is a running total you cannot apply previous function on it.
Regards,
Raghavendra -
Report Painter selection variables sorting
I have added a number of characteristics to my report painter report and set some as variables
i.e. plan version 1, plan version 2, plan version 3, plan version 1 year, plan version 2 year, plan version 3 year.
These variables appear on the selection screen in the following order;
plan version 1,
plan version 2,
plan version 3,
plan version 1 year,
plan version 2 year,
plan version 3 year.
What the business require is the variables to appear on the selection screen as follows;
plan version 1,
plan version 1 year,
plan version 2,
plan version 2 year,
plan version 3,
plan version 3 year
Has anyone any idea how the selection screen sorts the variables?
Can the selection screen sort order be changed for a report?
Your assistance is appreciated
JohnFor Selection Screen, you can try to use Selection Variant.
The steps are like this:
a. Go to GRR2 (change report painter)
b. Then choose the report you are developing
c. Execute the report
d. On the selection screen, choose Go To-> Variant -> Save As Variant
e. At Variant Attributes screen, you can do the following as your requirement:
· Description
Enter a short, meaningful description of the variant. This can be up to 30 characters long.
· Only for background processing
Select this field if you want the variant to be available for background processing but not in dialog mode.
· Protect variant
Select this field if you want to prevent your variant being changed by other users.
· Only display in catalog
Select this field if you only want the variant name to be displayed in the variant catalog (and not when the user calls the F4 value help).
· System variant
This field cannot accept input. It is set automatically when a system variant (beginning with CUS& or SAP&) is created.
You can also assign the following further attributes to the selections in a variant:
· Type
The system indicates here whether a field is a parameter (P) or a selection option (S).
· Protected
Select this column for each selection that you want to write-protect on the selection screen. These fields are visible on the selection screen when the user starts a program with the variant, but do not accept user input.
· Invisible
If you select this column, the system hides the corresponding field on the selection screen. This allows you to change the appearance of the selection screen.
· Selection variable
If you select this column, you can set the value of the corresponding selection dynamically at runtime. The different ways of doing this are explained in the section Variable Values in Variants.
· Without values
If you select this field, the contents of the corresponding field are not saved with the variant.
This is useful if you do not want to overwrite the contents of this field on the selection screen.
For example, suppose you create a report 'SAPTEST', with the parameter 'TEST', for which you create the variant 'TESTVARIANT'. In the variant, you set the 'Without values' flag for the parameter. Then, you run time program and enter the value 'ABCD' in the TEST field. If you now retrieve the 'TESTVARIANT' variant, the TEST field retains the value ABC instead of being overwritten by SPACE.
· SPA/GPA
This attribute only appears if you created the corresponding selection criterion using 'MEMORY ID xxxu2019. You can switch the SPA/GPA handling on and off in the variant. This means that fields filled using SPA/GPA appear with their initial values after you have loaded a variant in which those fields have an initial value.
f. When you are finished, you can save it and name the variant (e.g.: Z_S_Screen for simpler selection screen)
After that, every time you want to have the selection screen, you can choose Get Variant or Go To-> Variant-> and select the variant you have saved.
More information at:
http://help.sap.com/erp2005_ehp_03/helpdata/EN/c0/980374e58611d194cc00a0c94260a5/frameset.htm
Hope it helps
Regards,
-=Meila.S=-
Maybe you are looking for
-
Listing folder contents as alias list
the list folder command returns a list of filenames, however I need something that returns a list of full fledged file references. This: [set foldercontents to contens of (choose folder)] works by returning a list of document files with full paths. I
-
System ID in Business HTML ?
Hello, I am working in an ECC 6.0 system with integrated ITS. I have searched everywhere, and cannot find if there is a Business HTML implicit system variable that holds the current system ID. Can someone give that to me ? It is crazy that such a bas
-
Function Module Execution (ERP / SRM)
Hi All, I have a RFC FM called "BAPI_DOCUMENT_CHECKIN2" on ERP back end System. I execute with below parameters : CALL FUNCTION 'BAPI_DOCUMENT_CHECKIN2' EXPORTING: documenttype = lf_doctype documentnumber = lf_docnumber documentpart = lf_docpart docu
-
Air FileSystem: Update: New directories for Windows only!
Hello Sirs & Ladies i have a nice idea for important directories like they want to call WindowsDirectory, SystemDirectory or any directories for Adobe Air 13.x and 14.x Look out my example screenshot: red lines mean beknown like File.desktopDirectory
-
was using logic audio 6 then i got express 7 now i hav pro 7 ...... all the song file icons say 'logic express' song. is this normal? how am i supposed to know which program created the file FFS? without opening the file, and subsequently, each progr