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
Nathan

When 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.

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.
    Thanks

    I 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'

  • Variable in report painter

    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 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

  • 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,
    Christian

    Hello 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

  • 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

  • Creating a new report painter library

    Hi all
    I have created a z table for the verification of FI-CO values to use with report painter. This table is modeled like the GLT0, the only difference is that my program fill it with the values of secondary cost elements (for production direct costs). So in the table I have records of accounts defined in chart of account and records with only CO elements. I have created the library using GLT0 as template and created the user exit for take the definition of cost elements and FI account in the same process. All work well the only problem is that for the cost element the values aren't displayed also if present in the table.
    I supposed in some point the extraction of values is linked to a control of presence of account in FI (SKA1 or SKB1), but I don't find the point.
    Someone has some ideas?Thanks
    Davide

    First, you don't so much want to back up the library, you want to archive the unwanted items.  When archiving you should archive to two separate drives because there could come the day when you plug in the single archive copy and the drive doesn't start.
    Why not just archive a copy of the library as it is now, then delete the items from the library on the computer?  Don't bother making a new, blank library.

  • 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,
    Rahul

    Go 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.

  • Creating Tcode for report painter program in 4.0B version?

    hi all,
    How to create a tcode for report painter program in 4.0 B?
    I searched the forums. but i couldn't find the same for 4.0 B?
    Please helo me to solve this?
    Thanks,
    Vamshi

    I am closing as no one answered and worked in alaternative way for the requirement.

  • 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
    Lily

    Hi 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

  • How to create Variables in Reporting

    Hi All,
    I want to create Variables and processing types how to create in BI 7.0.
    could u Please provide me solutions step-by-step.
    Please ASAP.
    Thanks & Regards,
    Vijaay.

    Hi Vijay,
    Variables can be created for -
    Char Values
    Texts
    Formula elements
    hierarchy and its nodes
    For Characteristic Values -
    These are used to be filled by user in the query selection screen
    1.In the filter tab of QD, select the characteristic for which you want to create a variable,right click - >Restrict
    2.Select variabes from drop down
    3.Click Create new variable and then define its properties like "Processing By",Settings in Details tab etc and save it
    4.Move it to the right side and click ok
    Now you have created a variable and used it as a placeholder for that characteristic for which user can enter the value to act as dyanmic entry.
    Regards,
    Vineeth

  • 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
    Ernesta

    Thank 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
    Ernesta

    so, 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

  • Create T_Code for Report painter ...

    Hi all,
           Who can help me ... Pls.
           I use Tcode SE93, chose "Program and screen". Input screen number 1000, than testing it, report open, but Execute button disappear ... How to fix ... Thanks so much !!!

    Hi,
    I think u have select dialog programming. thats not correct u may select report program.
    Regards ,
    S.Nehru

  • 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

Maybe you are looking for

  • Captivate 4 - Bookmark feature for LMS

    I have completed all development of a course, but have just learned that a bookmark feature is required by the LMS. There must be a way for a User to begin the course then stop, and later be brought back to the same place. Is there a setting in Capti

  • Problem with the ALV after sending the mail

    Good Morning Experts I have a small issue with the ALV. I have a program, which has to sent email. In My program initially I am displaying basic list in the alv and user can navigate to secondary list also, by clicking on a contract number in the bas

  • Fvwm menu not working

    Im new to arch and to fvwm but want to learn.. When I have been logged in to fvwm for more than 10 minutes or so there is no longer a menu when i click the screen. I have installed the stable version of fvwm and done no configuration yet. Any idea wh

  • Problams with my OCZ PC 6400 4 GB ! plz help me

    Hay , my name is Elad ! here is my problam: I have MSI Platinum Combo P35 and i got OCZ PC 6400 Platinum Edition 4GB DDR2 800 MHZ CL4 , 4 stiks of 1 gb each one (4X1024) How ever when i attechd the 2 stiks, 2GB the pc work pine and no problams ! But

  • Table activation problem after deleting ariw from table

    Hi, I have inserted a new field(xxxx) into custom table and activated it.. But ,when i tried to enter values for this new field in se16,this  field doesnt exist there.But in se11 i was able to view.. So i deleted that field from tht table and inserte