Macro to paint initial column grey

Hello All,
I am trying to change the background color from the initial column in APO SNP, but I have no experience in writing macros.
I found out that I can Use CELL_BG()  with X= 8  but now I am on the end. Could anybody give me a hint how to go on?
Regards
SK
Now i can change the color of the first cell in grey
but what can i do that the macro goes down all cells in the row to paint them grey
Here what I did:
step (paint cell: (38 Iterations: Initial; M05.2013)
Cell: RSFC (Initial) (Attributes) =
Operator: CELL_BG( 8 )
Can anybody help?
Edited by: Skanderbeg on Jun 9, 2011 4:18 PM

Hi SK,
The CELL_BG( X ) can be applied to a row or a cell.
To change background color of one cell follow the below process:
1.Create a step with one iteration
2.Assign the desired cell with CELL_BG ( X ) -X being the color code
To change the background color of n cells within one row just increase the number of iterations in that step to n.
For one column the only option I can think of is to assign each cell for that column with the desired color one by one i.e to follow first process and add the desired cells in step 2.
Let me know if this helps!!
Regards,
Jatin

Similar Messages

  • Cannot generate dynamic alert for initial column in SNP.

    Hello,
    I have an SNP alert macro with a simple condition running from Initial column for 158 weeks. The alert is generated correctly for all other weeks but not for initial column.
    The IF condition works correctly because a CELL_BG() in the same alert macro is correctly changing the color of the Initial column cell.
    Is there some setting I need to make to generate alert for initial column?
    Regards,
    SS

    Hello jejeje,
    thanks for your efforts - what you describe is something users have found out on our side too - a problem remains: you can save this setting "Period from last Selection" and it brings you to the INITIAL column but: once you have scrolled forward in the SNP data view (so that the INITIAL column has disappeared) and you leave the SNP data view or select another product ... it "remembers" that you last time left the data view NOT having INITIAL column as a start column.
    So, my users say that they scroll back to INITIAL column before selecting another part or using another SelectionID or leaving the SNP data view ... and of course they hate this since they have to do this a few hundred times a day worse case.
    We had a call open to SAP on this and I told them that is about productivity and usabaliity issue moving from SCM5.0 to SCM7.0 - but they have nothing more to say than "not supported anymore" - and the ultimate solution is / will be to modifiy SAP SCM standard coding - unless somebody from SAP is reading the discussioons here and is dedicated to help their customers which pay millions every year into SAP support fees.
    Thanks for your responses and effort !
    Regards
    Thomas

  • How to set initial column widths for a table

    What I'd like to do is to control the initial column widths for a table.
    I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
    If I do the following:
    VarTableModel vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
    I have tried to set the width of a column by doing the following:
    TableColumn aColumn;
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
    What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
    I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
    Any help or suggestions will be greatly appreciated!

    Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
    vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    // we want a horizontal scrollbar, so turn resizing off
    // and we want to control column widths
    jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    . // same kind of thing for each column
    aColumn = jt.getColumn(vtm.getColumnName(4));
    aColumn.setWidth(400);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
    Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose?

  • SNP: How to "lock" initial column in SNP data view (SCM7.0 / SP8)

    Hello experts,
    after a change from SCM5.0 to SCM7.0 we are seeing a change in a tiny but very important capability and we are trying to re-establish it in SCM7.0. If somebody has an idea how to address this that would be of great help:
    As of SCM5.0 users were able to lock the INITIAL column of an SNP DataView so that the column is the default start column and not the next future column. In SCM5.0 the solution had 2 elements
    A) set a user parameter in SU01 called /SAPAPO/SDP_STARTCOL to value X
    +
    B) double-click the header of the initial column in the SNP data view
    As of SCM7.0 this is not supported anymore. There is a certain user setting in an SNP data view (Settings --> Others --> "Period from last selection"  ) but this is not behaving to our needs and SAP is saying what we want from SCM5.0 is a non-supported feature in SCM7.0.
    So, does anybody have an idea how to solve this. I checked UserExits and BAdis in SPRO for interactive planning - there all kind of stuff but nothing having a method to allow / perform a "column locking" in an SNP Data view. Thanks for any tip or hint here.
    Regards
    Thomas

    Hello jejeje,
    thanks for your efforts - what you describe is something users have found out on our side too - a problem remains: you can save this setting "Period from last Selection" and it brings you to the INITIAL column but: once you have scrolled forward in the SNP data view (so that the INITIAL column has disappeared) and you leave the SNP data view or select another product ... it "remembers" that you last time left the data view NOT having INITIAL column as a start column.
    So, my users say that they scroll back to INITIAL column before selecting another part or using another SelectionID or leaving the SNP data view ... and of course they hate this since they have to do this a few hundred times a day worse case.
    We had a call open to SAP on this and I told them that is about productivity and usabaliity issue moving from SCM5.0 to SCM7.0 - but they have nothing more to say than "not supported anymore" - and the ultimate solution is / will be to modifiy SAP SCM standard coding - unless somebody from SAP is reading the discussioons here and is dedicated to help their customers which pay millions every year into SAP support fees.
    Thanks for your responses and effort !
    Regards
    Thomas

  • APO Initial Column - How to load to BW

    Hi Experts,
    We are exporting SNP data to BW using a datasource.
    SNP puts all previous data in the initial column, but BW has to source it from the start to do calculations in BW. There must be some workaround or a standard way to avoid the data build up in BW.
    All ideas will be appreciated.

    Hi Gersh,
    Thank you for the reply.
    I mapped Dimension ID to 0VERSION but still it is giving error.
    In the validation it is saying as 0VERSION is empty but data is there in the BW system.
    Please find the screen shot of the Transformation file and the error.
    Thanks in advance
    Venkat

  • "Initial column cannot be generated" error when creating a planning book

    Hi,
    I have an error when creating a planning book with the planning book wizard. In the tab "data view", I enter values for the "Visible" and "Input" fields and validate. The following error is generated: "Initial column cannot be generated" and then "Maintain the time for the 'column visible from' field". I tried with different dates, and get the same error.
    I am running SCM 5.0.
    Any help would be greatly apreciated.
    Regards,
    Mikael.

    Hi,
    Generally these error come when we manually enter the value in the Visible and Input column. Instead we should try select value from the Drill down options which gets generated based on the Time Bucket Profile you have selected as input for Planning Horizon.

  • Configuring the Initial Column in SNP

    Hi Folks,
    Basically what I want to do is to limit the horizon of the initial column. Right now, the initial column is displaying data from Jan 1, 1970 up to yesterday. But I only want to see data in the last three months only.  Can you guys help?

    Hi,
         Create a TB profile (/n/SAPAPO/TR30) for 3 months and assign it in the TB Profile History under the data view tab(/SAPAPO/SDP8B) and assign the value (L,R,C) in the initial column field just under that.
    Regards,
    Siva.

  • Report Painter - Dynamic Columns

    Dear Expert,
    I'm preparing a report painter report with cost centers as columns.
    Is there anyway I can use cost center group as variable and then the no. of columns and column texts are populated based on the no. of cost centers and cost center names exist in that cost center group?
    Thanks in advance and regards,
    Junior

    Hi
    To define anything as variable, you should have the details like - TABLE / STRUCTURE details.
    But, for any groups ( Cost element group / Cost center group) - no table / structure available
    VVR

  • Report Painter - Invisible Column

    Hello All -
    I am creating a report painter report using internal order table.
    When I execute the report, I am seeing a column that I don't see when I am editing the configuration of the report.
    I have looked to see if the column resides on a different Section, Horizontal Page, or is Hidden.
    I don't see multiple Sections or Horizontal Pages and nothing seems hidden.
    Am I missing something? 
    Thanks!
    Emmas

    Hi,
    Check if parameter 'Suppress zero columns' was selected in report layout.
    Menu Formatting -> Report Layout.
    Regards
    Sam

  • Report Painter - adding columns with any texts.....

    Hello !
    Whether probably in Report Painter to create additional columns (adhered to columns of data) and to write there manually demanded texts for lines ?

    Hello - I don't see Insert Diving Line after I click Insert Blank Line.
    Where is that?
    If I insert a blank line and then double click on the blank line to add a line like the following:  "__________" for sub totals, etc, I can't.  I can only add another characteristic or formula in the blank line.
    Please help and thanks for your help!

  • Report painter - Choosing column heading text

    Hi SDN
    I'm having a specific problem with getting the right column heading text into my G/L report painter report created in FGI2/FGI5. In the report painter form I have created the three texts for my column (short, medium and long text). In order for the heading to be meaningful I need the report to show the medium or long text. This is also the case when I run the report as object type Object list. Here the medium text is displayed. However, when I run the report as a Classic drilldown report or a Graphical report output the short column heading text is shown.
    Now, I know from running the standard report 0SAPBLNCE-01 in FGI0 that it is possible to have the long column header text shown in the report, so I'm not willing to give up. But can any of you guys help me on how to make the report show the correct text?
    Kind rgds
    Steen Koefoed

    Hi Anna and thanks for your suggestion. I have tried changing the header text length in the form as you suggested, but it does not seem to affect the display in neither of the three output types of the report. I assume that there must be a way to control the text header length specifically for each of the three output types. But how....

  • Report Painter - New Columns Don't Show Up

    Hello All,
    We have a report painter report that was copied from an existing report in transaction CJE5 (for modifying the form) and then assigned in CJE1 (to a report). The copied report was functioning properly with an existing tcode assignment. Now, I am trying to add new columns to the same form and I was able to add and save everything to the form without errors. However, when I execute the report, these new columns don't appear on the report. Can anyone suggest why?
    One thing I notice was that when I went to the "Report Parameters", the list of "Columns" does not include the columns that I added. I cannot figure out how to add them to the list so that they would start appearing on the report output.

    Hello Suresh, Thanks for the suggestion, but report painter is a functional area and the ABAPer should not be required to insert a new column and make it appear on the report. Any more suggestions, please?

  • BEx Macros for adding a column in workbook

    Hi All,
    I want to write a VB code for adding a next column to my workbook. I am working in BI 7.0.
    I dont know VB so , plz provide me the code for the same.
    Can someone guide me or provide the codes for these following functions also:
    �� create adhoc report formats with BEx Reports
    �� retain the format defined on the Bex reports
    �� enhance the report layout with shadow boxes
    �� add or remove rows and columns
    �� hide navigation and filters
    �� hide rows and columns
    �� add calculations
    �� adjust the print settings dynamically
    �� change report title
    �� add comments to the report
    �� change width, height, color, font etc properties of the cell
    Answers will be awarded with points.
    Regards..
    Vinod.

    were you able to achieve this? i have the same requirement...please help if possible

  • Calculating based on a previous value when initial column values differ from the rest

    Let me preface this by saying I am new to the BO world. I'm trying to build a report/chart that tracks incoming loads. The first supply on hand value is pulled from the database and each successive supply on hand is based on the previous row's values.
    In the supply arriving column below, the iniital value differs from the rest using the formula:
         =If [Row Number]=1 Then [First Supply Arriving] Else [Supply Arriving]
    The supply on hand uses the same idea, but is where I'm running into problems. The first column value should be [Supply On Hand], easy enough. Each successive column value needs to follow this equation:
         Previous([Supply On Hand] (this won't always be [Supply On Hand] though, only for the second row essentially - problem 1) + Previous([Supply Arriving] (same as problem 1, where this is first supple arriving for the second row and then supply arriving moving forward) - [Usage Rate]
    If someone could help me in getting the calculation to pull the previous values correctly without making a ton of variables, I'd greatly appreciate it. We just upgraded to 4.1

    Yes, the supply on hand and the supply arriving from the previous row need added together. The usage rate, which is a constant is then subtracted from that. The result is the on hand total for the next day.
    For example:
    Date
    On Hand
    Arriving
    Usage Rate
    9/9/2014
    100,000
    250,000
    100,000
    9/10/2014
    250,000
    1,000,000
    100,000
    9/11/2014
    1,150,000
    0
    100,000

  • Report Painter - missing column in GRR1/GRR2 but appears when executed

    Hi
    I have a report with 10 columns in addition to the first column that contains the descriptions of the rows, i.e. Sales Revenue etc etc.  The columns across are different projects. However, most strangely, the first of the projects does not appear when I am in GRR2 or GRR3 but when I execute the report, it is there!!!  When I look at the Overview in GRR2 and GRR3, it is listed so am at a loss to explain where it has gone.
    any suggestions?

    Hello,
    1) hide the first column
    2) unhide the column
    3) you´ll see the column which you were missing instead of the former first column
    4) change the column or whatever you want to do
    5) hide the column
    6) unhide the column
    Now the formular is as it was before. Still you can´t see the column but you know it´s there and you´ll see it in the report.
    I searched a lot and didn´t found any other solution.
    Reg.
    A.S.

Maybe you are looking for

  • Images in XML Form

    Hi Guys, Need some help here. I want to set a fix image in my renderlistitem view. I have store the images in a folder in KM and have place the file path at the 'image url' of the form. Unfortunately, when i try to disply in the portal, i got a blank

  • In need of greater clarity on RAM and 64 Bit versus 32 Bit Apps...

    i have 13 GB of RAM in my MacPro, and i am running Leopard. i noted, however, that Adobe Photoshop only appears to recognize 3072 mb of RAM (3 Gb) as it is still a 32 bit program. 32 bit programs can still only recognize a max of 3 Gb of memory. i re

  • COST CENTRE EXPENSES WITH THE HELP OF COSP

    hi all,     i have to make a report on cost centre expenses with the help table COSP.I have to put cost centre  from OBJNR in which last five haraters are cost centre and period like month  and year.After that in report display i want KSTAR i.e. in d

  • How to Create Personnel Numbers in FI?

    Hi All, Hope you're well.  Sorry to bother you, I am currently working as SAP support in FI/CO and 1 of my tasks is to create personal No's for staff so when an expense invoice is being posted into FI, the AP clark could have the option of filling th

  • Unable to register Hyperion Reporting and Analysis with Shared Services

    Hello everybody, I'm trying to install and configure Foundation Services in order to schedule Brio Query documents execution and distribution. IBM DB2 Express has been installed and configured. Shared Services have been installed and configured. Repo