Want additional columns in CJI3 Report

Dear Experts,
We want to add additional columns like Activity No, Activity Name,Cost center, Vendor code & Vendor Name.
Please suggest.
Thanks
Don

Hi,
I think in functional/as End User we cant change this .
we can change through configuration or while implementation.
if you get answer to this please let me know.
Thanks

Similar Messages

  • Adding profit center column in CJI3 report

    Hi Experts,
    How can I add profit center column in CJI3 report ?
    This field is not available in "change layout" option as one of the hidden columns.
    Please need help
    Thanks
    Ferdaws

    Default CJI3 report does not have the profit center field.
    One option could be (and this is what we using in our system for adding additional columns in CJI3 report):
    Enhancement on CJI3 report.
    Implement enhancement COOMEP01 (enhancment componment EXIT_SAPLKAEP_001).
    You need to extend your CO structure COEP (CI_COBL) or RKPOS (CI_RKPOS) to add profit center field in this structure. Then implement the above enhancement with a simple code to fill the profit center field with lookup from WBS master table.
    Hope this helps.
    Thanks.
    Rahul

  • Getting data in Purchase Order Text column of CJI3 Report

    Hi,
    In cji3 there is column of Purchase order text where we get the text from Item header of PO i.e; VENDOR SERVICE.
    Now if we wish to display the text of services used in the Item detail corresponding to same line item of PO then how to get that.
    Please suggest a way out for finding that data.
    regards,
    Puja

    Hi
    CJI3 is a standard SAP report, which you could not change without ABAPer's help.
    Please also check SAP Note 325546.
    Hope it may be useful.
    Tnx.
    Abdul

  • PLD additional columns in VAT report

    Dear experts,
    I need to create a print layout of VAT report in PLD with columns of BP's address. Do you have an idea how it can be done?
    Kind regards,
    Bartosz

    Hi Ganesh How did you add extra field .

  • Query Report - To display additional column in list selection box.

    Hi,
    There is query report where i want to display the additional column in list selection.
    Below is the system query report, where parameter passed is card code.
    When the cardcode - list selection is clicked system displays 2 columns i.e. Customer Code & No. of Records.
    Now in the same list selection; is it possible to display the customer name along with cardcode only for reference.
    SELECT T0.DocDate, T1.SlpName, T2.Name, T0.DocDueDate, T0.DocNum,    (CASE WHEN T0.DocStatus = 'O' THEN 'Open' ELSE 'Closed' END) AS Status,    T0.DocTotal FROM OQUT T0 LEFT JOIN OSLP T1    ON T0.SlpCode = T1.SlpCode LEFT JOIN OCPR T2 ON T0.CntctCode = T2.CntctCode WHERE T0.CardCode = N'[%0]'    ORDER BY T0.DocNum DESC
    Kindly let me know the details.
    Thanks & Regards,
    Yogesh Jadav

    Hi Yogesh Jadav,
    The answer is NO.  You may only display either code or name but not both.
    Thanks,
    Gordon

  • ME2N report displaying more columns in Background than foreground.I want same columns in Background as Foreground

    Hi All,
    ME2N report displaying more columns in Background than foreground.I want same columns in Background as Foreground having 10 columns.Already i have created the default variant in foreground when i execute the report in background by proving the same variant it is displaying more columns almost 70 columns.Kindly suggest and guide me how to restrict the report to get same columns in background as in foreground.
    Kindly provide is there any OSS Note available.
    Thanks,
    Prashanth Reddy

    I do not think it is possible to assign default layout for background job.
    System will show you all field for background job for transaction ME2N.
    Actually the screen layout is assigned with t-code (ME2N)
    When the report is running in foreground, then system will take the screen layout for the t-code.
    But when you run the background, then system will run the program directly (does not take the t-code). So the default screen layout will not fetch during running the background job.
    For more details have a look into the thread Selecting layout in selection screen

  • Summing up a Column in ALV report

    Hi All,
    I have developed an ALV Report which will display Invoices and other details.
    Now i need to display the sum of NETWR column, if user wish to select that column and click the "SUM" icon.
    As of now, if i select the NETWR column and click 'SUM" column, i am getting Runtime error.
    How to resolve this issue?
    Regards
    Pavan

    Hi Pavan,
    ALV GRID CONTROL:
    This task is performed by the SAP Control Framework.
    The R/3 System allows you to create custom controls using ABAP Objects. The application server is the Automation Client, which drives the custom controls (automation server) at the front end.
    If custom controls are to be included on the frontend, then the SAPGUI acts as a container for them.
    Custom controls can be ActiveX Controls or JavaBeans.
    The system has to use a Remote Function Call (RFC) to transfer methods for creating and using a control to the front end.
    ABAP objects are used to implement the controls in programs.
    An SAP Container can contain other controls (for example, SAP ALV Grid Control, Tree Control, SAP Picture Control, SAP Splitter Control, and so on). It administers these controls logically in one collection and provides a physical area for the display.
    Every control exists in a container. Since containers are themselves controls, they can be nested within one another. The container becomes the parent of its control. SAP containers are divided into five groups:
    SAP custom container: Displays within an area defined in Screen Painter on screens or sub screens.
    Class: CL_GUI_CUSTOM_CONTAINER
    SAP dialog box container: Displays in a modeless dialog box or as a full screen. Class:
    CL_GUI_DIALOGBOX_CONTAINER
    SAP docking container: Displays as docked, resizable sub-window with the option of displaying it as a modeless dialog box. Class: CL_GUI_DOCKING_CONTAINER
    SAP splitter container: Displays and groups several controls in one area - that is, splits the area into cells Class: CL_GUI_SPLITTER_CONTAINER
    SAP easy splitter container: Displays controls in two cells, which the user can resize using a split bar. Class: CL_GUI_EASY_SPLITTER_CONTAINER.
    In the control, you can adjust the column width by dragging, or use the 'Optimum width' function to adjust the column width to the data currently displayed. You can also change the column sequence by selecting a column and dragging it to a new position.
    Standard functions are available in the control toolbar. The details display displays the fields in the line on which the cursor is positioned in a modal dialog box.
    The sort function in the ALV Control is available for as many columns as required. You can set complex sort criteria and sort columns in either ascending or descending order.
    You can use the 'Search' function to search for a string (generic search without *) within a selected area by line or column.
    You can use the 'Sum' function to create totals for one or more numeric columns. You can then use the "Subtotals" function to set up control level lists: You can use the 'Subtotal' function to structure control level lists: select the columns (non-numeric columns only) that you want to use and the corresponding control level totals are displayed.
    For 'Print' and 'Download' the whole list is always processed, not just the sections displayed on the screen.
    You can define display variants to meet your own specific requirements. For information on saving variants, see 'Advanced Techniques'.
    The ALV grid control is a generic tool for displaying lists in screens. The control offers standard functions such as sorting by any column, adding numeric columns, and fixed lead columns .
    Data collection is performed in the program (with SELECT statements, for example) or by using a logical database. The data records are saved in an internal table and passed on to the ALV control along with a field description.
    The field description contains information about the characteristics of each column, such as the column header and output length. This information can defined either globally in the Dictionary (structure in the Dictionary) or in the field catalog in the program itself. You can also merge both techniques.
    The ALV link is a standard function of Query and QuickViewer. If multiline queries or Quick View lists have been defined, they will automatically be compressed to a single line and output in the ALV control as a long, single line list.
    Use Screen Painter to create a sub screen container for the ALV grid control. The control requires an area where it can be displayed in the screen. You have to create a container control that determines this area.
    Use the corresponding icon in the Screen Painter layout to create the container control. The size of area "MY_CONTROL_AREA" determines the subsequent size of the ALV control.
    The valid GUI status must be set at the PBO event in the flow logic of the ALV subscreen container.
    The OK_CODE processing for the cancel functions must be programmed at the PAI event.
    The reference variables for the custom container and the ALV grid control must be declared.
    To create reference variables, use ABAP statement TYPE REF TO .
    The global classes you need to do this are called cl_gui_custom_container (for the custom container control) and cl_gui_alv_grid (for the ALV grid control).
    The global classes are defined in the Class Builder. You can use the Class Builder to display information for the methods, their parameters, exceptions, and so on.
    Use ABAP statement CREATE OBJECT to create the objects for the container and the ALV control. Objects Are instances of a class.
    When an object is created (CREATE), method CONSTRUCTOR of the corresponding class is executed. The parameters of method CONSTRUCTOR determine which parameters have to be supplied with data when the object is created. In the above example, object alv_grid is given the name of the container control (g_custom_container) in exporting parameter i_parent, which links the two controls. For information on which parameters method CONSTRUCTOR possesses and which of these parameters are required, see the Class Builder.
    Objects should only be created once during the program. To ensure that this is the case, enclose the CREATE OBJECT statement(s) in an IF IS INITIAL. ... ENDIF clause. The objects must be generated before the control is displayed for the first time - that is, during the PBO event of the ALV subscreen container.
    To display the requested dataset in the ALV control, the data must be passed on to the control as an internal table, and a field description must exist indicating the order in which the columns will be output.
    In the simplest case, the field description can use a structure from the Dictionary. The Dictionary also determines the technical field attributes like type and length, as well as the semantic attributes like short and long texts. The ALV control uses this information to determine the column widths and headers. The column sequence is determined by the field sequence in the structure.
    If no suitable structure is active in the Dictionary, or you want to output internal program fields in the control, then you will have to define information like the output length and column header in the field catalog.
    In a typical program run, the dataset is read first (SELECT ....), the internal table is filled with the data to display (... INTO TABLE ...), and ABAP statement CALL SCREEN is then used to call the ALV sub screen container.
    The data transfer to the ALV control takes place during the call of method
    set_table_for_first_display from class cl_gui_alv_grid. The method call must be programmed at the PBO event of the ALV subscreen container.
    The name of the Dictionary structure that supplies the field description is specified in exporting parameter i_structure_name. The name of the internal table that contains the data records to display is specified in changing parameter it_outtab.
    The field description for the ALV control can be ta ken from an active Dictionary structure (fully automatic), by passing a field catalog (manual), or through a mixture of the two options (merge).
    The field catalog is in internal table with type lvc_t_fcat. This type is defined globally in the Dictionary.
    Each line in the field catalog table corresponds to a column in the ALV control.
    The field characteristics (= column characteristics) are defined in the field catalog. The field catalog is in internal table with type lvc_t_fcat. Each line that is explicitly described in the ALV control corresponds to a column in the field catalog table.
    The link to the data records to output that are saved in internal table is established through field name . This name must be specified in column "fieldname" in the field catalog.
    This field can be classified through a Dictionary reference (ref_table and ref_field) or by specifying an ABAP data type (inttype).
    Column headers and field names in the detail view of an ALV control line can be determined in the field catalog in coltext and seltext, respectively.
    The position of a field during output can be determined with col_pos in the field catalog.
    If you want to hide a column, fill field no_out with an "X" in the field catalog. Hidden fields can be displayed again in a user display variant.
    Icons can be displayed in the ALV control. If you want a column to be interpreted as an icon, then the icon name must be known to the program (include .) and icon = "X" must be specified for this column in the field catalog.
    The above example shows a semi-automatic field description: Part of the field description comes from the Dictionary structure (sflight), while another part is explicitly defined in the field catalog (gt_fieldcat).
    The field catalog (internal table) is filled in the program and is passed on together with the name of the Dictionary structure during the method call. The information is merged accordingly in method set_table_for_first_display.
    For a user to save display variants, parameters is_variant and i_save must be passed on during method call set_table_for_first_screen. To assign display variants uniquely to a program, at least the program name must be supplied in the transferred structure (gs_variant).
    Program names can be up to 30 characters long.
    If you only pass on the current parameters for is_variant, then existing variants can be loaded, but no new ones can be saved. If you use parameter i_save, you must pass on a variant structure with is_variant.
    I_SAVE = SPACE No variants can be saved.
    I_SAVE = 'U' The user can only save user-specific variants.
    I_SAVE = 'X' The user can only save general (shared) variants.
    I_SAVE = 'A' The user can save both user-specific and general (shared) variants.
    You can use parameter is_layout of method set_table_for_first_display, for example, to define the header in the ALV control and the detail display.
    To do this, define a query area in the program in accordance with Dictionary structure lvc_s_layo, and pass on the text to display in field -grid_title or -detailtitl.
    If you want to create print lists with zebra stripes, set field -zebra to "X". You can display a print preview for print lists by requesting standard function "Print".
    All parameters of method SET_TABLE_FOR_FIRST_DISPLAY from global class
    CL_GUI_ALV_GRID are defined in the Class Builder.
    Events are defined in global class cl_gui_alv_grid; you can use these events to implement user interaction within the program. To respond to a double -click on a table line, you must respond to event DOUBLE_CLICK.
    You receive control in the program, allowing you to implement interactive reporting - such as a full screen details list. The events for cl_gui_alv_grid are located in the Class Builder.
    To define an implement a local class in the program, you use a handler method. In this handler method, you program the functionality to trigger by a double -click in the output table.
    To activate a handler method at runtime, a class or an object from that class registers itself with an event using command SET HANDLER. The names of the IMPORTING parameters in the handler method correspond to the names of the EXPORTING parameters of the related event.
    In the above example, the local class is LCL_ILS and the handler method is ON_DBLCLICK. An object - ALV_DBLCLICK - is created and registers itself for event DOUBLE_CLICK.
    You can query parameter e_row-index to determine which output line was requested by the double -click. This parameter corresponds to the line number of the output table (internal table with the data records to output). If you need information for the selected line, you have to read it with READ TABLE itab INDEX e_row-index.
    This subsequent read in the output table generally corresponds to the HIDE area in conventional reporting. You first have to make sure that the user has double -clicked a line in the output table (similar to the valid line selection with the HIDE technique).
    A field group can contain global data objects, but not data objects that have been defined locally in a subroutine or function module.
    You can use INSERT to specify both fields and field symbols. This makes it possible to dynamically insert a data object referred to by a field symbol into a field group at runtime. Any field symbols that have not been assigned are ignored, which means no new field is inserted into the field group.
    The EXTRACT statement writes all the fields of a field group as one record to a sequential dataset (transport takes place with similarly named fields). If a HEADER field group is defined, then its fields are placed ahead of each record as sort keys. You can then sort the dataset with SORT and process it with LOOP ...ENDLOOP. In this case, no further EXTRACT is possible.
    The INSERT statement is not a declarative statement: This means field groups can also be expanded in the program flow section.
    As soon as the first dataset of a field group has been extracted with EXTRACT, that field group can no longer be expanded with INSERT. In particular, the HEADER field group cannot be expanded after the first EXTRACT (regardless of the field group).
    When the GET events are processed, the logical database automatically writes hexadecimal zeros in all the fields of a node when it returns to an upper-level node in the hierarchy. Since the HEADER normally contains sort fields for all field groups, these hexadecimal zeros in the HEADER serve as a type of hierarchy key: The more zeros there are, the further up in the control level hierarchy you go.
    The SORT statement sorts the extract dataset in accordance with the defined field sequence in field group HEADER. The addition BY ... sets a new sort key.
    Each must be either a field of field group HEADER or a field group that consists only of fields of the field group HEADER. You can use the additions ASCENDING and DESCENDING to determine whether the fields are sorted in ascending (default) or descending order.
    Fields containing X'00' in the logical databases are always displayed before all other values during a SORT.
    Processing of an extract dataset always takes places within a LOOP. The contents of the extract dataset field are placed in program fields with the same names.
    The group change always involves the fields of the HEADER. Single record processing for extract datasets is performed using language element AT ( = field group).
    CNT() is not a statement, but instead a field that is automatically create d and filled when is a non-numeric field from field group HEADER and is part of the sort key. At the end of the group, CNT() contains the number of different values that the field recorded in this group level.
    SUM() is not a statement, but instead a field that is automatically created and filled when is a numeric field of an extract dataset. At the end of the group, SUM() contains the control total of field .
    *** and CNT are only available at the end of the group level or at AT LAST.
    Single record processing for extract datasets AT WITH is only performed when field group is immediately followed by field group in the temporary dataset.
    Loops over an extract dataset cannot be nested. However, several contiguous loops are permitted.
    The sequence of the control level changes within the LOOP must correspond to the sort sequence.
    Totals can only be calculated within control footer processing.
    Extracts allow only appends (EXTRACT), sorting (SORT) and sequential processing (LOOP).
    Once a SORT or LOOP has occurred, the intermediate dataset is frozen and cannot be expanded with EXTRACT. Operations that insert into or delete from EXTRACT datasets are not supported.
    Extracts allow for several record types (FIELD-GROUPS) with fields that can be set dynamically (INSERT is not a declarative statement!). Internal tables have a single, statically-defined line type.
    Internal tables use the sequence of table fields according to the declaration for the hierarchy of the control leve l. The control level structure for internal tables is therefore static, and is independent of which criteria were used to sort the internal table.
    Extracts do not depend on the field sequence for control level processing: a re-sort or a completely different control level process can take place. The control level structure for extract datasets is therefore dynamic. It corresponds exactly to the sort key of the extract dataset. The sort key is the sequence of fields from the field group HEADER, and is used to sort the extract dataset.
    Extracts rely on the compiler to determine which combinations of group levels and a cumulating field the control level totals desire. The desired control level totals are determined by the processing of LOOP ... ENDLOOP blocks. Internal tables build the control level total with the SUM statement.
    This procedure leads to high resource depletion for totaling control levels in internal tables.
    Regards,
    Chandru

  • How can i join additional column without using a query

    Hi,
    I created a report using a base query; Now i want to add an additional coloumn to it without using another table i.e. from no new query; That additional column is complex computed value from different tables created for each record; How can i attach it to each record;
    thanks in advance
    prasanth

    Add a formula column in your existing query.

  • Dynamic report columns in parameterized report

    Hi all,
    Just wanted to share some ideas... I was looking for a way to allow users to seect which columns to display in a parameterized report.
    I came across Denes Kubicek's solution on his APEX demo site (the "Pick Columns" page)... works beautifully.
    The only problem I had was that some of the report columns required joins to other tables. (up to 5 left outer joins). Could not figure out how to do this based on Denes sample solution. I then thought of creating a view, which joined all the required fields for output. I then run my report against the view... this works even better.
    I also used a shuttle instead of a multi-select list, since I have about 25 columns to pick from... I find the shuttle a lot more flexible (re-ordering of columns etc..)
    One thing I still haven't figured out yet though, is how to make the columns sortable? If I check off the sort check box on the report atttributes for the generic "col0"... I get an oracle error...
    If anyone has figured this one out, please let me know..
    Thanks to Denes for the solution...
    Stephane

    Actually, getting the error, albeit intermittently...
    Here is the SQL debug output
    select ECC_No,Opportunity_Name,Opportunity_Status from custom_report_vw where NVL(opportunity_type_id,-1) = decode(:P12_type_id,-1,NVL(opportunity_type_id,-1),:P12_type_id) and NVL(DEPARTMENT_ID,-1) = decode(:P12_dept,-1,NVL(DEPARTMENT_ID,-1),:P12_dept) and 
    NVL(max_5_effort_days,'%null%') = decode(:P12_5_EFFORT_DAYS,'%null%',NVL(max_5_effort_days,'%null%'),:P12_5_EFFORT_DAYS) and
    NVL(IN_FLIGHT,'%null%') = decode(:P12_IN_FLIGHT,'%null%',NVL(IN_FLIGHT,'%null%'),:P12_IN_FLIGHT) and NVL(CLIENT_FUNDED,'%null%') = decode(:P12_CLIENT_FUNDED,'%null%',NVL(CLIENT_FUNDED,'%null%'),:P12_CLIENT_FUNDED)  and 
    NVL(opportunity_category_id,-1) = decode(:P12_category_id,-1,NVL(opportunity_category_id,-1),:P12_category_id) 
    and NVL(priority_id,-1) = decode(:P12_priority,-1,NVL(priority_ID,-1),:P12_priority) and 
    NVL(work_type_id,-1) = decode(:P12_WORK_TYPE,-1,NVL(work_type_id,-1),:P12_WORK_TYPE)
    order by 4,1
    failed to parse SQL query:
    ORA-01785: ORDER BY item must be the number of a SELECT-list expressionFor some reason, in the order by it puts 4,1... but I only have 3 columns in my select list...
    If I choose an additional column, then the query works. I'm also confused as to why it sorts on the 1st column as well? In my report attributes, I do not specify a sort sequence, so I figure it would simply sort on the chosen column index.
    This query used was working fine yesterday with one or two columns...
    Any ideas?

  • Adding additional Columns in Work Book

    Hi Experts,
    I have requirement to additional columns in work book. I have Trial balance amount .I want to create 2 more columns based on the Trial balance column.if trial balance amount is +ve value then it should go to Gross amount column .If trial balance is -ve amount then it should go to depreciation Amount  Column.
    How can I add new columns to the work book.please suggest me with formula.
    Thanks,
    Suryam.

    Hi Suryam,
    From what i get of ur requirement, I expect there is a column which shows Trial balance. And you are using a workbook, hence the format would be a static format and no drill downs etc. would be done in the report.
    You can create a column and use an Excel formula to achieve the same.
    Gross Amount Column:
    IF Column Cell (of trial balance) >= 0 then value = the Column Cell (of trial balance)
    Depreciation Amount Column:
    IF Column Cell (of trial balance) < 0 then value = the Column Cell (of trial balance)
    Hope this helps!
    Regards,
    Kunal Gandhi

  • Substance Volume Tracking (SVT) - Monitoring (CBRC20) - additional columns

    We are implementing SVT and found out that the monitoring report (CBRC20) gives the user not enough information.
    F.i. we want to include the description of the tracked substance.
    I could not find a place in configuration, nor a user exit, where additional columns can be added to the report.
    So I wonder, is there a way to add additional columns to the CBRC20 monitor?
    Thanks for your help.

    Hi Rob Godrie,
    In order to get more information, Layout need to be Changed. In CBRC20, Choose Dropdown Menu and Select u201CChange Layoutu201D. In that Choose field u201CProduct Nameu201D from Column Set and transfer it to Displayed Column. u201CProduct Nameu201D is the specific field that will display the Description of the Tracked Substance.
    In case of any doubt, Please revert.
    Regards,
    Amol Joshi

  • Maximum number of columns in a report.

    Dear All,
    Can anyone tell me the maximum number of colomns that can be shown in a report.
    i.e. the maximum number of info-objects that can be used in a query.
    Regards,
    Aravind.

    Hi Arvind,
    You are correct in saying that only 50 columns can be shown in the BW report at a time. It will allow you to place more than 50 fields in the query definition but the query will not execute.
    If you want to show more than 50 columns, you can add those extra columns in the FREE CHARACTERISTICS of the query definition. So at the time of execution of the query user will see the 50 columns by default and if he wants to see those additional columns, he can replace the already existing columns by the fields in the free characteristics. This can be achieved by DRILL DOWN and DRILL ACROSS.
    This is the way to go about it. We also did the same thing in our case.
    Regards,
    Yogesh

  • Need help in sorting a alphanumeric DB column in BO report.

    Hi All,
    We have a DB column (Data type = varchar2).. with values..
    1                               
    1
    1.1
    1.1.1
    1.1.1.1
    1.2
    1.2.1
    1.3
    1.3.1
    1.3.1.1.1
    Desired
    1
    1.1
    1.1.1
    1.1.1.1
    1.2
    1.2.1
    1.3
    1.3.1
    1.3.1.1.1
    2
    etc..
    We need to sort this column in BO report.. any idea..  we have sorted it in the Query which is giving right output in pl/sql developer but in BO sorting is not showing properly.
    Could you help please to achieve this?
    Thanks and Regards,
    Priyashree

    The Record Sort Expert appears when you choose the Record Sort Expert command from the Report menu.
    Use the Record Sort Expert to define how you want the records in your report to be sorted for printing. You can add and remove a sort field and define the sort direction (ascending or descending) for the data in your report.
    In my version Record Sort appears as a   A over a Z with Arrows pointing from A to Z, and Z to A.  It is next to group expert, which looks like a mountain with an arrow pointing up.  Both are on the "Expert" tool bar.

  • How to add/create additional page in Crystal Report Layout SAP B1

    Hi,
    I wanna ask about How to add/create additional page in Crystal Report Layout SAP B1 ?
    I want when user print Purchase Order then on last page also print some page like Penalty Clause etc.
    Pls help me to find the solution.
    Br,
    Thomas Marsetyo

    Hi,
    In your report footer, set it to create a new page before it is printed (In 'Section Expert', select the Report Footer -> 'Paging' tab -> Check 'New Page Before' checkbox). Throw your Terms & Conditions into the Report Footer section.
    If you already have a Report Footer that you want to keep, just split the footer into two sections (Right-click the Report Footer section -> 'Insert Section Below') and follow the same procedure for the newly created section.
         Check this Link
    http://stackoverflow.com/questions/9232239/adding-an-additional-page-to-end-of-a-crystal-report
    http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=18960
    Regards,
    Manish

  • Sort columns in matrix report

    Hi all
    I create matrix report( in version 9i)
    I want sort columns of report
    when i use order by it sort rows but i want sort columns
    my query is like this:
    SELECT
    Code,
    name,
    DECODE(cons_code, '1', 'A',
    '2', 'B',
    '3','C',
    '4', 'D',
    '5', 'E') Activity,
    SUM(amnt) amount
    From Mytable
    Where ....
    group by
    Code,
    DECODE(cons_code, '1', 'A',
    '2', 'B',
    '3','C',
    '4', 'D',
    '5', 'E')
    my group base on code
    my columns base on Activity
    and cells are Amount
    my report result is:
    ........ B E D A C
    name1 1 1 1 1 2
    name2 3 4 8 6 1
    I want this :
    ........ A B C D E
    name1 1 1 1 1 2
    name2 3 4 8 6 1
    ....

    Hello,
    How about this?
    SELECT Code, name,
    DECODE(cons_code, '1', 'A', '2', 'B', '3','C', '4', 'D','5', 'E') Activity, SUM(amnt) amount
    From Mytable
    WHERE ....
    GROUP BY Code, name, DECODE(cons_code, '1', 'A', '2', 'B', '3','C', '4', 'D', '5', 'E')
    ORDER BY code, DECODE(cons_code, '1', 'A', '2', 'B', '3','C', '4', 'D', '5', 'E')

Maybe you are looking for

  • Frustration with lack of support for Flash Player on IPad. When is Apple going to support Flash?

    When is Apple going to support Flash Player on IPad?  The majority of sites that have multimedia content rely on Flash. Safari users are missing out on tons and tons of content that depends on Flash.  I have and love my IPad 2. I should be able to us

  • Win 8.1 install

    I installed win 8.1 last night, this morning everything was working fine, now only seeing BSOD. I cannot uninstall as i have no options, Can someone point me in the direction i need to take.  (sent this from work laptop)

  • DatagramSocket

    Hi I'm trying to build a simple test app using DatagramSocket (AIR 2) and I'm wondering if I absolutely need to use a server in order to communication with other applications on the local network. I have a simple test where I have 2 air apps on my ho

  • Facebook will not load

    Hey, So I cannot load facebook for 5 days now using Safari 4. It is the only website with this problem. I have emptied my cache, reset safari, run 2 virus scans, changed passwords, tried Firefox and Opera (neither would open it). I see this has been

  • Compatible with Snow Leopard?

    Is my 2.16 17" MacBook Pro Core Duo going to be compatible with Snow Leopard? Or is it time to think of a new machine?