Generating dynamic column in planning layout

Hi Guys,
I am new to BPS.. My task is user inputs calendar year thru variable, based on the year it has generate dynamic columns as month of the year entered by the user.
Dnt know i am right or wrong based on the sdn threads. i think i have to create user input variable, and create a FM to read the user input value. Upto to this i can understand, after reading the user input how to calculate the months and generate 12 columns dynamically for each month...
Kindly help me in this scenario..
Edited by: kevin peterson on Jun 6, 2008 5:23 AM

Hi,
I hope you are using calendar year/month and calendar year characteristics. Create an user input variable for calendar year,
create one exit variable for calendar year month.
Inside this exit, read the value of the user input variable, append the year with all 12 months, so u get 12values for this exit variable.
Now keep calendar year in header, restricted by user input variable, create one data column dynamic for calendar year month restricted by this exit variable. This will generate 12columns dynamically.
Bindu

Similar Messages

  • Planning Layout error K9162 - max number of columns in planning layout rest

    Hello collegues,
    our client would like to have 34 columns in planning layout costs activity inputs of TA KP67. But error message K9162 - max. number of columns is restricted to 30. So I tried to switch of the message with TA OBA5 application area K9 - msg number 162. But this does not work as the error comes up again even though the message is switched off.
    Do you have some ideas?
    Thanks and regards,
    Christian

    Hello,
    thanks for your response. I have maintaine in OBMSG:
    K9     162     WE     E    switch off selected
    then in OBA5 for dialog and batch I have maintained  -
    but the error is upcoming again. So I think that this sort of message cannot be switched off as the planning layout is restricted to 30 columns by design maybe?
    thanks and regards,
    Christian

  • Generating dynamic columns for a report

    Hi all,
          Can anybody pls. tell me how to output dynamic columns in a report. my req. is that i've to generate so many columns as there are no. of unique(a particular field value) rows in my internal table. for e.g say suppose i've 5 rows in my internal table which has 2 fields, one short text & it's corresponding value. so now my report output shud have 5 columns with the short text as the column heading & the their corresponding values below each column heading. i heard it can be done thru field-symbols. can anyone pls. guide me.

    Hi Sushma,
    This piece of code might be useful.
    The following sections will help you to understand the steps required to define a Dynamic ALV.
    Following symbol signifies:
    Þ                    Important
    Main Steps Required
    The following are the main steps that are to be performed for defining a dynamic Alv
    1.       Defining a field catalog
    2.       Defining the dynamic table
    3.       Filling data into the table
    4.       Displaying ALV list
    Defining a field catalog
    The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
    Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
    For example:
    DATA: T_FIELDCAT TYPE LVC_T_FCAT,
    L_FIELDCAT TYPE LVC_S_FCAT.
       Refresh T_FIELDCAT.
      CLEAR L_FIELDCAT.
      L_FIELDCAT-FIELDNAME = 'LIFNR'.
      L_FIELDCAT-INTTYPE = ''.
      L_FIELDCAT-OUTPUTLEN  = 10.
      L_FIELDCAT-COLTEXT  = TEXT-002.
      APPEND L_FIELDCAT TO T_FIELDCAT.
    Defining the dynamic table.
    This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
    Declare a field symbol
    Displaying Alv List
    This is done in the same way as we do for normal Alv. Call function “REUSE_ALV_GRID_DISPLAY” and pass the field catalog table in the export parameters and the dynamic table in Tables.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • How to Generate Dynamic Columns from SQL

    Hi Friends,
    I want to create a data fromat like This
    Showroom / date    01-01-09        02-01-09     03-01-09     04-01-09      05-01-09     06-01-09     07-01-09   
    S1                           20                      10              09            90             90                  10            100
    S2                           10                       1                1              2               6                    2             10
    S3                            5                        7                 9             1               2                    3             12This Data is Just like Matriz Reports....................................
    Here i Want to Generate Date column value Dynamically.....................is it possible through SQL
    the values are Sales value for each showroom for diffrent date value
    all sale,showroom and Date Column are in one Table......................
    It should Generate date Dynamically depending on User VAlues./..............
    Thanks in Advance

    something to play with (not tested as I don't have database access)
    declare
    /* assuming table showroom_sales has columns a_showroom,a_date,a_sale */
      the_sql varchar2(32000) := 'select a_showroom';
      day_from date := to_date('20090101','yyyymmdd');
      day_till date := to_date('20090107','yyyymmdd');
    begin
      for d in (select a_date from showroom_sales where a_date between day_from and day_till)
      loop
        the_sql := the_sql ||
                   ',max(decode(a_date,to_date('''||to_char(d.a_date,'yyyymmdd')||''',''yyyymmdd''),a_sale,null)) "'||to_char(d.a_date,'dd-mm-rr')||'"'
      end loop;
      the_sql := the_sql || ' from showroom_sales group by a_showroom order by a_showroom ';
      dbms_output.put_line(the_sql);  /* to verify if query is correct or not */
    end;the code above should generate something like (provided all those dates appear in your showroom_sales table)
    select a_showroom,
           max(decode(a_date,to_date('20090101','yyyymmdd'),a_sale,null)) "01-01-09",
           max(decode(a_date,to_date('20090102','yyyymmdd'),a_sale,null)) "02-01-09",
           max(decode(a_date,to_date('20090103','yyyymmdd'),a_sale,null)) "03-01-09",
           max(decode(a_date,to_date('20090104','yyyymmdd'),a_sale,null)) "04-01-09",
           max(decode(a_date,to_date('20090105','yyyymmdd'),a_sale,null)) "05-01-09",
           max(decode(a_date,to_date('20090106','yyyymmdd'),a_sale,null)) "06-01-09",
           max(decode(a_date,to_date('20090107','yyyymmdd'),a_sale,null)) "07-01-09"
      from showroom_sales
    group by a_showroom
    order by a_showroom to be executed to get the result as required
    Regards
    Etbin

  • Generate dynamic columns in t:dataTable

    Hi ,
    Can anybody please give me an example of generating column dynamically in a t:dataTable. My requirement is i have a list of checkboxes in a popup for different company account IDs. when i click on any of those checkboxes and click View Button on the same popup the popup should be closed and the a new column should appear in the dataTable with the header as Company Account and colum values must include checkboxes. Please provide me with some direction as how to achieve this task
    Appreciate your help in advance.

    check myfaces tomahawk exemple , there is a t:columns exemple inside :
    [http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.9-bin.zip|http://www.apache.org/dyn/closer.cgi/myfaces/binaries/tomahawk-examples-1.1.9-bin.zip]

  • Generate dynamic column

    Hi masters,
    i am new in Abap devlopment.
    i'hv a problem
    three record is in the itab like
    matnr   bwart  menge
    m1       101     25
    m1       312    12
    m2        311    20
    and i want to show like this
    matnr    101    311   312
    m1         25     0       12
    m2         0       20      0
    but bwart are not fix, so column would be dynamic.
    please help me..
    thanks in advance.

    Hi Amit,
      I think this can be achived by creating internal table dynamicaly,
    May be on runtime you will come to know how many fields are there,
    So create a fieldcatalog of the fields to be display,
    then use Method cl_alv_table_create=>create_dynamic_table to create the internal table dynamically.
    wa_fcat-fieldname = 'MATNR'.
    append wa_fcat to t_fcat.
    loop at it_sizes.
    wa_fcat-fieldname = it_sizes-size.
    append wa_fcat to t_fcat.
    endloop.
    cl_alv_table_create=>create_dynamic_table
    EXPORTING
          it_fieldcatalog  = t_fcat
          i_length_in_byte = 'X'
    IMPORTING
          ep_table         = dy_table.
      ASSIGN dy_table->* TO <dyn_table>.
    I think this will help you.
    check the wiki for creating dynamic internal table
    [http://wiki.sdn.sap.com/wiki/display/ABAP/DynamicInternaltable]
    Thanks,
    Anmol.

  • Dynamic Column in PDF

    Hello All,
    I have a requirement to generate dynamic column in the PDF.
    I have got the same running using the below code
    HEADER : <?split-column-header:XXX_TIME?><?split-column-width:@width?><?XXX_TIME_FROM?>
    DATA : <?split-column-data:XXX_START?><?EMP_NO?>
    The issue I am having is if i generate the output in pdf with small amount of data,it will work but I am not sure how much data can come at run time.
    It can be sometime more than 50 or more columns also.In that case it truncates the data.
    How can i do the same.
    Pls help.
    Thanks
    Sk

    Increase the page size and printable page size, and reduce the column lengths,
    so that you can accomadate them in single row.
    BIP will run in single row, but we have option of making it to next row too.
    But even if you make it in single row, page size has to support the length of the single row you are making :)..
    so you got to increase the page width to Max

  • Planning Layout -KP66 with dynamic period column

    Dear experts,
    I would like to create a planning layout for cost center/ cost elements in which we have the different periods in the columns .The periods in the columns should dynamically select according to the planning cycle selected in the excel file.
    Planning Cycle                           Start Period                                End Period                Total Months
    JAN                                         JAN                                           JUN                            6
    FEB                                         FEB                                            JUN                            5
    MAR                                       MAR                                            JUN                           4
    According to planning cycle my period column should change dynamically.Please let us know how to create planning layout with dynamic period columns. I donot want to create the planning layout with 12 period columns to upload the data.
    Thanks & Regards
    Kumar

    NOT ANSWERED

  • Planning layout with dynamic period colomns

    Dear experts,
    I would like to create a planning layout for cost center/ cost elements in which we have the different periods in the columns (1-12). This layout I could already create, but now the business asked to have the number of columns selected dynamically in the selection screen ( eg: I want to enter the data as of April till December).
    The reason behind this is that the planning periods of Jan - Mar will be locked when we will enter the data from April to December. My first layout does not allow to enter any data if Jan - Mar is locked.
    In other words, would it be possible to have the periods in the selection screen AND in the columns of your layout?
    Thanks in advance,
    Roeland
    Eg:
    In selection screen
    Period from 3 - 5
    Planning layout:
    Cost center     cost element          Per 3     Per 4     Per 5
    10000     40000001          1000     1200     1400
    10000     40000002          2000     2200     2400

    Hi,
    This indeed describes the problem, but does not really provides an answer to the problem.
    Thanks anyhow
    I have found a solution to upload data via excel though:
    If for example periods 1-4 are locked you should start your layout in excel as of period 5 but you should repeat period 12, five times (to get to 12 columns/periods). This way you will be able to process the file with a planning layout for a year where some periods are blocked)
    Version     0     Plan/Act - Version                                                                 
    Fiscal Year     2011                                                                      
                        5     6     7     8     9     10     11     12     12     12     12     12
    Cost Ctr     AType     Cost elem.          FixCstOC Pd 5     FixCstOC Pd 6     FixCstOC Pd 7     FixCstOC Pd 8     FixCstOC Pd 9     FixCstOC Pd 10     FixCstOC Pd 11     FixCstOC Pd 12     FixCstOC Pd 12     FixCstOC Pd 12     FixCstOC Pd 12     FixCstOC Pd 12

  • Error When generating the plan layout

    Dear All,
    When i try to generate the file description for COPA planning through KP34ER, i get the following error..
    I have checked all four points that they have mentioned. Any idea why this coud be?
    No data has been entered yet.
    Message no. KG845
    Diagnosis
    The planning layout you are using (COPAGI) only contains selection criteria for which no data has yet been entered. As a result, the system cannot display any plan data.
    In this layout it is not possible to add characteristic values. This could be due to the following:
    1. Manual planning is not allowed for the specified record type. Only record types A, F, G, E, and your user-defined record types can be planned manually.
    2. The planning layout was only defined to contain actual data. The plan/actual indicator "1" is nowhere specified.
    3. The selected plan version cannot be planned.
    4. The lead column was defined so that only the texts of the characteristic values are displayed. As a result, no new characteristic values can be added in planning.
    Procedure
    Proceed as follows, depending on what the cause was:
    1. Use a record type that can be planned manually.
    2. None
    3. Choose another plan version that can be planned.
    4. Change the planning layout so that the key of the characteristic values is displayed in the lead column.
    Thank you
    Gayani

    Hi,
    Another possible reason could be, that in the general data selection of the layout is used the characteristic which is not restricted in the plannig package to the single value:
    Example:
    Let say the char. Country is used in the general data selection and is not restricted in the pl. package. Since the value for the
    general data selection characteristic is not possible to enter in the layout, it is not possible to enter any data, because the user
    could not enter for Country and the system doesn't know for what Country the planning is done. If you restrict the Country in the pl. package to single value (e.g. JP) then it will work, since the system knows now, that the data which will be entered belongs to the Country = JP.
    So please make sure, that all general data characteristics are restricted to the single value in the planning package. Then it will work.
    When we specify single value the planlayout can be displayed with "0" because of there is in this case already created (together with values of other characteristics) a concrete profitability segment that exists certainly. That means system can find and display this profitability segment.
    But when we put  interval 0000 - ZZZZ for a characteristic system doesn't know which values from this interval are the valid values  that are able to be displayed for planning.  For example the value 1010 can exist but 2020 does not exist and it would make no sence to offer these invalid values for display of planning data.
    In general, message KG845 in case of selection defined by interval is raised also due performance reasons. Selection
    defined by interval(s) could lead to big number of possible combinations, which should be displayed regardless of fact that no data are already posted in database.
    The idea is following- if there is selection defined by single values, then we don't care about performance and we display data (empty) values as it's fast(regardless of fact that no data are posted in database). In case of selection by interval, performance is an issue because we have to display all combinations of data, which can be generated. This could lead to thousands of possible combinations and long system response. This is not intended and it makes no real sense. Basic idea
    here is that we use different approach in case that selection is defined by interval and different approach, when selection is defined by single value.
    I hope this helps.
    regards
    Waman

  • The columns must be marked with a * in the columnsin Planning layout

    hi ,
    Doeas anyone please tell me how to add ' * ' next to characetristic name in the Header of the planning Layout in only some columns headers.
    i am not able to just add * and save.
    is there any VBA code we have to use ? or any changes in the BSP application of the webinterface attached to the layout.
    Suppose i have ' Company code ' in the column header of the planning layout.
    i want in the output of the webinterface as ' company code* '
    Regards,
    Sandhya

    Hi Sandhya,
    in Excel Layouts you should use VBA. Loop over the cells of the column headings until you find the one with "Company Code". Then change it.
    In Web Interfaces you can do the same with a JavaScript item.
    Regards,
    Marc
    SAP NetWeaver RIG

  • Planning Layout KP75 - Max 30 columns allowed in the layout

    Hi,
    I am trying to create a Planning layout(Excel Upload for KP26) in Transaction Code KP75.
    But when i am trying to create the columns, it is giving the error message that "Max of 30 column are allowed in the planning layout".
    But my requriement is to have around 40 columns.
    So is there any way that we can extend the max columns allows to 40.
    Regards,
    Shree.

    What kind of planning you are doing in 40 columns? Can you please elaborate.

  • Planning Layout Transport - Comparison Column

    Hi planning experts,
    I have planning layout which I transport in my qa-system. Everything is fine and working correct.
    When I had a look in my corresponding layout in prod.-system I see that in the tab "data column" in column "Comparison columns" are activated. The activation is done via exit.
    Question: what will happen with the layouts if I import them to prod. system. Is the column "Comparison columns" the same or will it overwritten with transport?

    A coworker figured out by selecting the line break in the change subcomponent it wraps the column text.

  • Can't Freeze Row/column in Web layout in Integrated planning

    Hi Guys
    we have 50 columns in planning query. Web layout screen can't present all these column in one screen . While scrolling for viewing rest of the columns the initial column(Description) disappears i.e scrolled out and hence it is very difficult to corelate which Key Figutre value (Value) represent which Object(InfoObject).
    We need a way around of freezing of columns functionality which is available in BPS but not in  BI IP.
    Thanks for any helpful input
    Thanks
    Tripple k

    Hi Tripple,
    As you had pointed "We need a way around of freezing of columns functionality which is available in BPS" can you help me to understand where this setting can be achieved in BPS.
    Thanking you in advance.
    Regards
    Jerry

  • Difficult to achive the report layout with dynamic column names

    I have a report layout as below.
    So here the column names are dynamic.And each fixed row group has different calculations. I have a date parameter. If I select July 2013, then I need to show data from July 2012 to July 2013 with Columns(Jul-12, Aug-12...Jul-13). How to achive below layout
    with dynamic columns?

    Hi Sarayu_CM,
    According to your description, you want to filter the records of prior year based on only one parameter selection. Right?
    In this scenario, we can create two parameters. The first one is for user to select. The second parameter is based on the first parameter selection. We don't need to specify Available Values for the second parameter, but we should use expression to specify
    Default Values based on the first parameter selection. Use the expression below:
    =DateAdd("m",-12,FormatDateTime(Parameters!param1.Value))
    Then we just need to apply a filter on the matrix/dataset to get the records which the date is between values in these two parameters.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

Maybe you are looking for

  • BI-IP

    Hi All, when i'm running an ready input query in WAD I'm getting the following error.Can anyone please help me out. 500 Internal Server Error   BEx Web Application Failed to process request; contact your system administrator Error Summary Exception o

  • How can I run Runtime.exec command in Java To invoke several other javas?

    Dear Friends: I met a problem when I want to use a Java program to run other java processes by Runtime.exec command, How can I run Runtime.exec command in Java To invoke several other java processes?? see code below, I want to use HelloHappyCall to c

  • Issue in receiver SFTP seeburger adapter

    Dear all, We have a proxy to sFTP scenario. The target message is being delivered to a sFTP system using a receiver sFTP Seeburger adapter. I have this error being shown in the receiver channel. Message processing failed. Cause: javax.resource.Resour

  • Xpath.valueof

    I'm working my way through Steve Muench's excellent book 'Building Oracle XML Applications' and I have come unstuck at Example 5.11. Test and Extract and Retrieve an Xpath Expression value. Initially the XPATH package would not compile as it complain

  • Signin

    When ever I start Adobe Premiere Elements 12 or Adobe Photoshop Elements 12 it ask for a sign in. I put my email and password. After it verifies my serial number it sits freezes. I checked with adobe and confirmed I was putting the correct informatio