Report painter-want to hide period columns dynamically if the period is not closed

Hi All,
I have made report with 12 columns like JAN, FEB till DEC in report painter (GRR1)
Requirement is that if say, currently only period no.4(APR) is closed and we are in period no.5( MAY) or system date is in MAY, then the report should not show the data for the current period no.5(MAY), eventhough data is there. Or else it should show data for JAN to APR (closed periods)
For this I defined 12 different period formula variables in GS11, based on system paramters like
S008 Year (from Local System Date)
S002 Month (from Local System Date)
S003 Day of Month (from Local System Date)
S012 Current Period in Current Year (per CO Fiscal Yea
But the issue is that eventhough the variable is defined as formula variables, still the default values are given by system and default value only getting passed to the report and thus data is displayed for the unclosed period.
But SAP help says that formula variables are without default values unlike the value type variable.
Any help in this will be highly appreciated.

Hi All,
I have cracked it and got the solution with redefining the formula variables.
Details
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
NOV
No.of days in each Month
31
28
31
30
31
30
31
31
30
31
30
day number in year
31
59
90
120
151
181
212
243
273
304
334
result available after 15 days
47
75
106
136
167
197
228
259
289
320
350
Formula variable definition for 11 months in current year
ZTPFR01
ZTPFR02
ZTPFR03
ZTPFR04
ZTPFR05
ZTPFR06
ZTPFR07
ZTPFR08
ZTPFR09
ZTPFR10
ZTPFR11
IF '#S005' <47 
IF '#S005' <75
IF '#S005' <106 
IF '#S005' <136
IF '#S005' <167
IF '#S005' <197
IF '#S005' <228
IF '#S005' <259
IF '#S005' <289
IF '#S005' <320
IF '#S005' <350
THEN 1
THEN 2
THEN 3
THEN 4
THEN 5
THEN 6
THEN 7
THEN 8
THEN 9
THEN 10
THEN 11
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0
ELSE 0

Similar Messages

  • I want to hide a column in report 6i

    hi
    I want to hide a column in report 6i,
    I used this code
    function F_col_qty3FormatTrigger return boolean is
    begin
    if :color3 is null then
         return (false);
         else
    return (TRUE);
    end if;
    end;
    plz note that COL_QTY3 and COLOR3 both are from different table
    and resulting gave this error
    REP-1314 Format trigger 'F_col_qty3' reference column 'color3' at wrong frequency.

    You can format fields from a lower level group using fields from an upper level field, but not vice versa. This is because for the same upper level field there may exist several values of the lower level field. If this can not happen in your situation, there is no reason to place the fields in different groups.

  • How to create  some columns dynamically in the report designer depending upon the input selection

    Post Author: ekta
    CA Forum: Crystal Reports
    how  to create  some columns dynamically in the report designer depending upon the input selection 
    how  export  this dynamic  report in (pdf , xls,doc and rtf format)
    report format is as below:
    Element Codes
    1
    16
    14
    11
    19
    10
    2
    3
    Employee nos.
    Employee Name
    Normal
    RDO
    WC
    Breveavement
    LWOP
    Sick
    Carers leave
    AL
    O/T 1.5
    O/T 2.0
    Total Hours
    000004
    PHAN , Hanh Huynh
    68.40
    7.60
    76.00
    000010
    I , Jungue
    68.40
    7.60
    2.00
    5.00
    76.00
    000022
    GARFINKEL , Hersch
    66.30
    7.60
    2.10
    76.00
    In the above report first column and the last columns are fixed and the other columns are dynamic depending upon the input selection:
    if input selection is Normal and RDO then only 2 columns w'd be created and the other 2 fixed columns.
    Can anybody help me how do I design such report....
    Thanks

    Hi Developer life,
    According to your description that you want to dynamically increase and decrease the numbers of the columns in the table, right?
    As Jason A Long mentioned that we can use the matrix to do this and put the year field in the column group, amount fields(Numric  values) in the details,  add  an filter to filter the data base on this column group, but if
    the data in the DB not suitable to add to the matrix directly, you can use the unpivot function to turn the column name of year to a single row and then you can add it in the column group.
    If there are too many columns in the column group, it will fit the page size automatically and display the extra columns in the next page.
    Similar threads with details steps for your reference:
    https://social.technet.microsoft.com/Forums/en-US/339965a1-8cca-41d8-83ef-c2548050799a/ssrs-dataset-column-metadata-dynamic-update?forum=sqlreportings 
    If your still have any problem, please try to provide us more details information, such as the data structure in the DB and the table structure you are currently designing.
    Any question, please feel free to let me know.
    Best Regards
    Vicky Liu

  • Need to display invoice amounts under each aging period (columns  dynamic)

    Hi All
    i'm developing Aging Report but i'm missing how to get the idea that i show the aging period(period_sequence_number)dynamically & show the invoice amount under its corresponding period
    As for example
    Vendor No      Vendor Name      Invoice No      Date      Voucher Ref      Due Date          0-30     30-60     Column(n)
    aaaa ccccc dddd 3333 15/5/2010 1000
    aaaa ccccc dddd 3333 15/5/2010 2000
    where
    1- (1000,2000) is the invoice amount .
    2- ( 0-30 , column(n)) days start & days to of tht period selected as parameter
    waiting your reply

    Hi;
    Please see below notes which could be helpful for your issue:
    New Parameter As Of Date (Period) In Invoice Aging Report [ID 752120.1]
    R12.APXINAGE. Invoice Aging Report does not Show Balances in Aging Buckets. [ID 834754.1]
    New Parameter As Of Date (Period) In Invoice Aging Report [ID 752120.1]
    Regard
    Helios

  • Re: Report Painter Diff. formula in same column.

    Hi,
    I have some queries for report painter.
    I have 2 columns, A & B. I've created column C and the first 5 row I would like to have a set of formula such as A10 and for the same column, the row 6 to 10 from column B, I want to have formulate B5-10.
    My question is, whether it's posible to have 2 formula defined in the same column because value for each row may need to apply the formula differently.
    Thx & Rgds

    You can do this, although you need to split the columns into "Sections".  You also need to remove the column headers so they are not repeated between each section.
    They almost act similar to a page break, without actually breaking the column over pages.
    http://help.sap.com/saphelp_47X200/helpdata/EN/c7/50673ad016ec32e10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_47X200/helpdata/EN/5b/d22d8a43c611d182b30000e829fbfe/frameset.htm
    You can then have different calculated key figures within the same column.
    To amend sections, go to Formatting > Section Overview/Section Layout.

  • Report on Orders that have Order Lines modified during the period

    hi,
    I am a Beginner, PLEASE I NEED A HELP
    Report on Orders that have Order Lines modified during the period

    I don't know a standard report (SE95 does not seem to include selection by date), maybe you can tweak SE16 display of table SMODILOG for your purpose.
    Thomas

  • When I connect my iPod touch to my computer, I have a list of Events on my iTunes/iPod/Photos. I want to erase these Events. However, the photos are NOT on my MacBook Air. When I check one of the Events and then hit Apply, the photos appear on my iPod.

    When I connect my iPod touch to my computer, I have a list of Events on my iTunes-iPod-Photos. I want to erase these Events. However, the photos are NOT on my MacBook Air-iPhoto. When I check one of the Events and then hit Apply, the photos appear on my iPod. And one last thing: When I connect the iPod and open iPhoto, iPhoto tries to load New Photos (I think), but nothing happens. Any ideas?

    Resolved.

  • My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    When normally powering the phone, there would not be a loading bar, you would just see the Apple logo. You can try a reset of the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    You can take the phone to Apple, by making an appointment at the Genius Bar to have the hardware checked. Apple handles warranty and post-warranty issues, not Verizon. Have Apple look at the hardware to see if there are any problems.

  • How to spilt columns dynamically in the report based on Date Parameters

    Hi All,
    We have an XML Publisher report in which the parameters are Fom date and To date.
    User wants the data in the report to be split dynamically based on the months in the From date and To date interval.
    Eg. if the From date is 01-JAN-2013 and To date is '31-MAR-2013' then the report should show 3 columns JAN,FEB and MAR and the corresponding data.
    if the From date is 01-JAN-2013 and To date is '31-MAY-2013' then the report should show 5 columns JAN,FEB,MAR,APR and MAY and the corresponding data.
    Can anyone please advise, how can we spilt the months and data dynamically in the report.
    Regards,
    Shruti

    well you wanted the columns to be added dynamically.  the easiest way would be to use a Pivot since the columns are based on the values in the data.  and if the values of that column are Month Name/Abbreviation for that date then you will get month columns.
    Have you worked with Pivots before?

  • Doubt in report painter (how to add new columns?)

    Hi all,
    I have a  doubt in report painter, i have copied the report 12kst1c to a zreport and also the form to a zform.
    I want to add the PO relese indicator desc as a column in report output.
    Is the above possible in report paintaer.
    also please tell me the transaction codes i tried with cje2 and cje3.
    Thanks in advance,
    Sathanbabu Mathan Kumar.

    Hello Santhan,
    Where you able to find a solution to this.If so please help me I have similar requirement.
    Thanks Arjun

  • Report Painter GRR1 table CCSS cost centers actual/bud by period wise

    Hi,
    I have developed Cost Center Actual/Budget Report by period for 12 months (Jan to Dec in columns) in each columan I have hardcoded period e.g. for Jan (01) Feb (02) till Dec (12-12) for one of coulmns given as variable From Period to To Period as vairbale to choose user in selection criteria (1PERIV-1PERIB). while executivng the report system is givng results for whole (12)periods in the output, even my selection criteria from period 1 to 3.
    Please advise any body how can I restrict by period wise.. e.g. if I select from period 1-3 it should show for only 3perios.
    Thanks in advance!!
    VS Rao

    Hi Kumar,
    I have done below steps to my CC Report to show by period wise(individual columns Jan, Feb, so..on) cost center report:
    Step 1: used Library 1VK, Table CCSS in GRR1.
    Step 2: Created 12 individuals columns starting from Jan to Dec..
    Step 3: Created 12 formula variables(internal Variables) for 12 periods..(becoz if I hardcoded system is deriving all the  
                 periods)..
               a) created Internal value Variable ZVAR(defaualt 01),ZAR1(default 02),ZAR2 (default 03)...this is for to create fomula
                   variables.
               b) for period 1(jan) formula variable  "IF '&ZVAR'>= 1 THEN 1 ELSE 017" internal variable table:CCSS,field:PERBL
               c) for period 2(feb) IF '&ZVA1'>= 2 THEN 2 ELSE 017 like wise created 12 variables for 12 periods
    Step 4: above the formula variables I have selected check box as variable but not coming on selection screen, I need in
                selection screen from period to period for this I have created one more hide column and given period vairable "1PERIK"
               now its coming on the selection screen but values are not populating based on by selection criteria..
    Note: If I slect 1-4 periods it should show for only Jan,Feb, Mar & April  and individually..
    Please sugget above my formula is correct or not!!  appreciate your valuable suggesion!
    Thanks
    VS Rao

  • Report Painter - Add PS master data columns

    Dear Experts,
    I created new reports for Project System via the transaction CJE2 .
    I will wish now create columns containing master datas of the PS objects :
    For definition of the project, WBS Elements and networks
    - Start date, end date
    - Person responsible
    - Applicant no
    - System or user status ...
    These elements are currently only available individually via GOTO menu -> display master data but we wish know if it is possible to put it on colums (for export by excel, HTLM, ...)
    Thanks for your assistance.
    herieric

    Hi Sreekanth,
    Thanks for your answer.
    I know that we can found these informations via CN41N or CN43N and export it to Excel, but I try to put these informations in colums in my Report Painter. Can you say me if it is possible ?
    Thanks for your assistance.
    Regards.
    herieric

  • Report Painter - Key Figures in Lead Column

    Hello -
    I am trying to create a report painter report.
    I would like the key figures in the lead column, but right now, I can only choose characteristics.
    Anywho know how to be able to select a key figure in the lead column?
    Thanks

    Hello,
    You have to activate key figure in the library you are using. Use transaction GR22. To activate key figure, juct mark the checkbox.
    Hope this would help.
    regards,
    Jhero

  • Want to hide Jtable column

    i want to hide Jtable's column and its data but the point is data should remains in table model
    or we can say we acces that data any where from this method.
    table.getModel().getValueAt(...)
    below is the code which i used to hide column from table.
    table coulmn tb= priceTable.getColumn(priceTable.getColumnName(2));
    TableColumnModel tcm= priceTable.getColumnModel();
    tcm.removeColumn(tb);
    but the problem is that this column data still show in table.column already hide.
    what i do for it?

    Setting a column's width to zero -- a hack.
    Using removeColumn -- priceless ;-)
    Works for me:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableExample implements Runnable, ActionListener {
        private JTable table;
        private TableColumn tc;
        public void run() {
            table = new JTable(10,10);
            JToggleButton btn = new JToggleButton("toggle column A's visibility");
            btn.addActionListener(this);
            JFrame f = new JFrame("TableExample");
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(new JScrollPane(table), BorderLayout.CENTER);
            f.getContentPane().add(btn, BorderLayout.SOUTH);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
        public void actionPerformed(ActionEvent evt) {
            TableColumnModel tcm = table.getColumnModel();
            if (tc==null) {
                tc = tcm.getColumn(0);
                tcm.removeColumn(tc);
            } else {
                tcm.addColumn(tc);
                tcm.moveColumn(tcm.getColumnCount() - 1, 0);
                tc = null;
        public static void main(String[] args) {
            EventQueue.invokeLater(new TableExample());
    }

  • I recently got a hand-me-down Macbook (white) 2010 and want to restore to factory settings. The computer did not come with any discs. It is running 10.6.8 and I purchased 10.6.3 recently to upgrade my MacBook Pro. Can I use that to restore the MacBook?

    I want to give the hand-me-down to my kids so they will stay off my MacBook Pro I'd like to start fresh with the MacBook, remove all the former owners information, restore it to factory settings, but it did not come with any installation discs, so I don't know what to do. I recently purchased Snow Lepoard for my 2008 MacBook Pro. Can I use that to restore the MacBook? Also, the former owner purchased Microsoft Office (ugh) with the computer but again, no installation discs. How do I keep that when I restore?
    Any help would be appreciated.
    Thanks!

    I purchased a mini to HDMI cable and tried to connect to the TV but the TV is not recognizing the computer. I attempted to set sound and display settings under the "my Preferences" utility with no success.  Again, I'm not sure if I need to upgrade my OS software Any Suggestions?

Maybe you are looking for

  • How to print very long data series (wrap multiple XY graphs)

    I'm working a data logger project where each file usually contains 5 - 10 minutes of data but sometimes may go up to 3 hours +. The customer needs the ability to print out all of the acquired data in XY charts. If the amount of data recorded exceeds

  • Is there a way to automatically align frames based on content?

    Hello all, I'm fairly new to Premiere and to video in general, but I'm making a timelapse self portrait project and I'm wondering if there is a software solution to lining up the individual photos I'm using based on facial features, so essentially th

  • "Open With" settings lost on reboot

    All file type associations are reset to their defaults when the machine is shut down. Where are the configuration files stored?

  • Ipad air front facing camera fault

    Hi.  My Ipad Air front facing camera has suddenly stopped working.  The rear camera is fine but when i try to switch the screen seems to freeze. I've tried a hard reset but to no effect. I'm running IOS 8.1.2 Any advice greatly appreciated!

  • R12 Time Card - Is it possible to add criteria for Choice list?

    Hi, Is it possible to add criteria for choice list created using HXC_CUI_CUSTOMn_V? If it is possible could you share which attribute to use and if could share sample code that will be great. Thanks Prasad