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

ActRunningBal 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

Similar Messages

  • Error in creating Formula Variable

    Hi All:
    I'm having problems in creating formula variable. Trying to create FV on a characteristic using replacement path with attribute value , but the wierd part is it's not giving me any attributes it's just blank. Any help would be appreciated....
    Thanks,
    Manasa.

    Right click on the FM, create -> Characteristic -> attribute value -> but the attribute are not showing up.  This happens if the attribute is of key figure type. I was able to do this in another system (ASIA DEV) but now trying in Europe Dev.

  • How to create formula variable on system date.

    i want to calculate inventory age as on today. i have create formula variable on inventory creation date. i want to create <b>formula variable on system date.</b>

    simply create a formula variable and set the processing to "by user exit"
    in the user exit assign sy-datum to the variable

  • For Mayank Guptha : how to create formula variable in IP

    Hi,
    How to create formula variable, such that it will appear in the variable screen.

    Hi,
    the variables you create in formula function are local to the function.
    Ex., DATA  CST_ELMNT TYPE 0COSTELMNT.
           DATA QTY TYPE 0QUANTITY.
    To get the variables listed in the variable screen you need o create variables at aggregation/filter level for the required characteristics.

  • 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

  • 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

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

  • Problem with the Formula variable

    Dear All,
    There is a need to convert INR values to USD values. Since my source table in r/3 is not having currency value stored i cant use currency translation type to achieve the same.
    So i am using formula variable to determine the Exchange rate.
    I have created the CKF with the following calculation = INR values / 'ZEXC_RT'.
    Here zexc_rt is a formula variable which is a customer exit and of type Number.
    Now in cmod i am writing a code to determine the value for this formula variable. But the problem is with data type of formula variable and tcurr table UKURS (Exchange rate) field. I have defined formula variable as Number and my UKURS field is of decimal data type because of which the currency conversion is not taking place.
    Here is my code below . Kindly suggest how can i achieve this.
    My logic is :- Whenever the user runs the report take the system date and determine the previous month. Then go to tcurr table and get the exchange rate which matches with the previous month date.
    WHEN 'ZEXC_RT'.
    *   IF I_STEP=2.
        CLEAR L_S_RANGE.
        DATA:  v_date(10).
        DATA:  v_rate type C.
        DATA: z_date(8).
        concatenate sy-datum+0(4) sy-datum+4(2) '01' into v_Date.
        v_date = v_date - 1.
        concatenate v_date+0(4) v_date+4(2) '01' into v_date.
    select SINGLE UKURS into v_rate from tcurr where GDATU = V_date
    and KURST ='M'.
        l_s_range-low = v_rate.
        l_s_range-opt = 'EQ'.
        l_s_range-sign = 'I'.
        APPEND l_s_range TO e_t_range.

    Hi Anup,
    I am not able to get the exact problem.
    CKF is not working means it is giving the INR Values or it is giving some random value.
    Please check your code first by writing a text program in se38 if you are able to read the value correctly from TCURR.
    Domain UKURS has a conversion routine EXCRT. You may require to use it to get the correct value.
    Once you get the right value in the program, you can use the same logic in your formula variable and you should get the correct values.
    Let me know if it helps.
    Regards,
    Gaurav

  • Report Painter problem with empty selection variant

    Hello,
    I use the cost center selection variant for the column definition in Report Painter as characteristic value. This selection variant get only the cost centers which are valid from 1.1.2003 to 31.12.2004. The column of the report created by Report Painter which uses this selection variant display value without taking into account limitations follow from this selection variant. I expect value zero for year fiscal year 2007 in this column, because the cost centers are invalid in 2007 year but the report displays different value. The problem appeared after upgrade from 4.6C to ECC 6.0.
    Best Regards
    ZD

    My problem with Report Painter occurred when I was creating my own report based on 1VK library.
    In my example I used in the column definition characteristic Cost
    Center, which is determined by selection variant, and Basic Key Figure
    equal SWKG-Costs. For system date (18.07.2007) there are no valid
    master data for the characteristic Cost Center but when I execute
    report for fiscal year 2007 the column display no-zero value without
    taking into account value of Characteristic Cost Center. I expected
    zero value in this column because there are no postings for Cost
    Centers (no valid cost centers were selected) in financial year 2007.
    Could you help me with this problem ?

  • Very urgent --pls help Report Painter Problem,

    Hi to all,
    I have created  5 operating expenses report by cost centres through report painter. some for full period , some for actual and sone for budget.
    Under one set of that cost centre reports I have many subsets under which there are cost centre groups and then the cost centres.
    I want to add one more set to existing set. I have added the set and set contains one cost centre group and their are also cost centres under it.
    The table  which i am using for cost centre grous is GLT1 and field is RCNTR and for cost centres it is CCSS and KOSTL respectively.
    In the above procedure I have two queries.
    1)even after adding the set and when i try to execute the report from T- code SERP it doesnot show my created set in variation.
    2)Also even if it was showing the set earlier but report was showing zero values. When i clicked on zero amount a pop up arises for plan and actual values and when i clicked on plan values it had value of Rs 255000(for cost centres). then outside why this amount doesnot appears.
    PLS THIS IS VERY VERY URGENT
    Regards
    TANUJA

    I've just read this thread three times and I have absolutely no idea what you are doing, in what version, and what you are asking for help with.
    Do you want to change the message type? If you do you MUST drop the queue and start over again from the beginning.
    Do you want to enqueue messages?
    Post your DDL and other relevant information or you are on your own. We can not guess at your issue.

  • Report painter header text with customize variable

    Hi All,
    Can we have a customize variable/ logic based on the selection parameter in the header text(not in the report's columns) in report painter? understand the standard sap provides a few standard options, gen, variables, sel. parameters, spec. variables and characteristics but non meet the requirement.
    Requirement:
    get the selection parameter fiscal year variable, display the value with a logic where if the posting period = 9 the fiscal year +1
    all idea welcome. Thanks
    Regards,
    John

    Hi Sarma tadikonda,
    Thanks for the reply, but the offset provides the output control format? and it only take in numeric.
    Regards,
    John

  • Report painter problem very urgent

    Hi to ALL,
    I have prepared two reports of cost centre through report painter. The format is proper is both the reports. The set is also correct and values in set(i.e cost centres) are also properly
    but when we execute the report one report is being executed properly while other shows zero values. only when i doubleclick on zero amt and go to plan line items then it shows me values for that particular row in report.
    Why is it so? what is solution to it? can it be possible that my tables are not correct. Ia m using CCSS table.
    Pls this is very urgent
    Thanks in advance
    Tanuja

    Hi
    Can you check one thing...after selecting the zero you are getting the line item...chekc the total of that items...if it is coming zero..then no problem.
    If not you can check in the no.format of that report. If you select the lacs format and your amount is below ten thousand...you will get the zero value only
    VVR

  • Report Painter - Problem with Currency Display

    Hi Gurus,
    I created a Report Painter (Tx: GRR1, Library: 9P1) using Basic key figure SWKG (Currency: USD)
    When I executed the report using a user XXX, this shows amounts in correct currency: USD. However, when I executed the report using a user YYY, this shows amounts in incorrect currency.
    I reviewed SUIM transaction and compared both users and no have difference.  Next I reviewed SU01 transaction and in Parameters there were some differences, y added parameter one bye one from XXX to YYY user, I executed the report again but the error persist.
    Is there other user configuration that I can see?
    Thanks in advance.
    José Luis

    Hi Sachin,
    I reviewed RPA0 transaction and both users are the same properties.
    I just created a new user ZZZ with copy of YYY, executed the report painter and it shows the amounts in correct currency, this is strange.
    Thanks for your help.
    José Luis

  • Report painter problem

    Hi All,
    Please note that I have copied a standard SAP report(6000-6o1) internal order : actual /plan.The report displays cost element, actual, plan variance and variance in %.I also can see the Order group but it comes seperately on left side of screen where the order can be selected and report refreshes accordingly.
    However I want to have order just to the left of Cost element and don't want to have it as selection.i.e when i run a report for a period i should be able to see all internal orders and their cost elements.However the report is not allowing me to do that.I am unable to add column to the section.
    I even tried changing the variations however the result is not as required.
    I would like to know as to whether two lead columns are not possible in report painter.
    Can any one please help me with this .
    Thanks in advance.
    Regards
    Pranay

    Hi Eli,
    Thanks for your reply.Can you please throw some light on thsi.Kindly note that I have copied a standard report(6000-6o1)internal order plan/actual./variance.
    I tried changing the layout but was unsuccesful.
    currently as per standard report this is what i see
    Order group                                     cost element Actual  Plan Var Var(%)
    order1
    order2
    order3
    order group appears seperately due togeneration setting(expand)
    What i want is
    order cost element Actual Plan Var Var(%).
    Please help me with the steps.
    Thanks in advance.
    Regards
    Pranay

  • Problem in Creating Formula

    Hi,
    I have two columns in the report query that comes from the database namely DR-Amountand CR-Amount. I am creating a third column in the report using a formula that says that if CR-Amount is not equal to 0 return that value else return previous value of formula + dramt but it gives me error saying "A formula cannot refer to itself either directly or indirectly"
    Below is what I want :
    if {command.CR-Amount}<>0 then
        {command.CR-Amount}
    else
    previous({@ActRunningBal})+({command.Dr-Amount})
    How Can I achieve this?
    Thanks in advance
    Reena

    ActRunningBal 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} &lt;&gt;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

Maybe you are looking for

  • How to get a global string value to be the value of a JSF output box?

    im useing Jdeveloper 10 i have made a JSF, JSP page i have a backing bean for that page. in there i have made a global value: private string test = "TESTING"these codes have been generated: public void setTester(HtmlOutputText outputText6) { this.tes

  • Canon Lide 35 No Longer works in Snow Leopard

    Here some more specific results on what happens when you try to scan with the Lide 35 in Snow Leopard. 1) The ONLY choice is to use image capture. Canon software doesn't work 2) Detect Multiple images is completely broken 3) The image size is super s

  • Save a version as mp3 with QT Pro7

    I have some 44.1 audio - I would like to use Quicktime Pro 7 to save a version as mp3 but don't see any mp3 export choice.... I know I can do it in itunes but don't want to Q: how do I do it in Quicktime Pro 7?

  • Protecting Apache URLs ending in '/' with non-standard DirectoryIndex

    I'm using Apache agent 2.2 for Acces Manager 7. My Apache version is 1.3.33. I have a DirectoryIndex line in my httpd.conf like so: DirectoryIndex index.cgi index.html So when I request the URL <http://server.edu/subdir/> I should get <http://server.

  • Adobe LiveCycle Designer ES2 email button issue...  :(

    I have created a form with an submit button with is supposed to go to an email address. I have used this EXACT process in a prior form and had no issues. I am using a regular button and then have a script in MouseUp*. The following script will not op