Disable Table field cells based on Row Data

Hi,
Need to disable cells of a simple table based on a row level value. For example: if the column6 value for 3rd row is 'A' disable column2 for the 3rd row (No User entry can be made). This behaviour would be same for all rows having column6 as 'A'.
Please advise.
Thanks
Anirban
Edited by: user1580623 on Jun 29, 2009 6:31 AM

Anirban,
Please check the Switcher Bean. You need to associate an attribute to the Switcher. It would have multiple cases (items under them). Based on the value of the Switcher attribute appropriate Case is selected.
In your VO you can write a decode logic to set the value of Switcher attribute based on the conditions. The selected case can have disabled items and hence you can get the behaviour of your choice.
Regards
Sumit

Similar Messages

  • How to make a layer from the ADF pivot table invisible , show-hide column-row-data

    Hello all ,
    I need to create a pivottable with ADF 12c for reporting purposes.
    I have a table or view with 10 items of type VARCHAR2 , C1,C2,C3,C4,C5,C6,C7,C8,C9,C10  and   10 items of type NUMBER N1,N2,N3,N4,N5,N6,N7,N8,N9,N10
    The items of type VARCHAR2 are for Column and Row areas and the items NUMBER are for Data Areas
    I want to create a jsf page with one empty pivottable and in code Show or Hide the items in the Column area , Row area , Data area
    Con you send me a small sample ?
    I test with this code that i find in oracle OTN but not work.
    <dvt:pivotTable id="pt2" value="#{bindings.WebPivotDataView1.pivotTableModel}" var="cellData"
    varStatus="cellStatus" splitMode="enabled"
    binding="#{backingBeanScope.CmfPivotBean.pivotTable}"
    >
    <dvt:headerCell>
    <af:switcher facetName="#{cellData.layerName}" defaultFacet="Default" id="s1">
    <f:facet name="DataLayer">
    <af:outputText value="#{cellData.label}" id="ot1"/>
    </f:facet>
    <f:facet name="C01">
    <af:outputText value="#{cellData.dataValue}" id="ot2"/>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot3"/>
    </f:facet>
    </af:switcher>
    </dvt:headerCell>
    <dvt:dataCell>
    <af:switcher facetName="#{cellStatus.members.DataLayer.value}" defaultFacet="Default" id="s2">
    <f:facet name="N01">
    <af:outputText value="#{cellData.dataValue}" id="ot4">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.WebPivotDataView1.hints.N01.format}"/>
    </af:outputText>
    </f:facet>
    <f:facet name="Default">
    <af:outputText value="#{cellData.dataValue}" id="ot5"/>
    </f:facet>
    </af:switcher>
    </dvt:dataCell>
    </dvt:pivotTable>
    DCBindingContainer bindingContainer = (DCBindingContainer)ADFContext.getCurrent().getRequestScope().get("bindings");
    CubicBinding cubicBinding = (CubicBinding)bindingContainer.findCtrlBinding("WebPivotDataView1");
    CubicEditor cubicEditor = cubicBinding.getCubicEditor();
    cubicEditor.removeLayer(DataDirector.ROW_EDGE, 0); //remove 1st row edge
    cubicEditor.removeLayer(DataDirector.COLUMN_EDGE, 0); // remove 1st column edge
    cubicEditor.removeDataItem(0);
    CubicDefinition def;
    def = cubicBinding.getProjection();
    LayerDefinition layerDefinition = new LayerDefinition("C3");
    cubicEditor.addLayer(DataDirector.ROW_EDGE, 0, layerDefinition);    
    LayerDefinition layerDefinition2 = new LayerDefinition("C4");
    cubicEditor.addLayer(DataDirector.COLUMN_EDGE, 0, layerDefinition2);
    DataItemDefinition def3 = new DataItemDefinition("N1");
    cubicEditor.addDataItem(def3);
    AdfFacesContext.getCurrentInstance().addPartialTarget(pivotTable);
    Can you help me if is possible to create a pivottable binding to a one ViewObject and in code show/hide or compose the layout of the pivottable ??
    I search in google and OTN oracle and not find any code.
    Only find the code of the samples that is very complex for me , the code of the samples create the PivotTableModel from one Array , and i want to binding from one ADB BC ViewObject.
    Thanks in advance

    The solution I presented for your use case an DOAG 2013 was to create a pivot table binding out of user defined attributes from the table. For the defined attributes a VO is dynamically created as well as the pivot binding. The pivot binding is then exchanged at runtime together with the activation of the dynamic VO needed to only get the data needed for the particularly pivot table.
    Your solution using the CubicEditor is hard to implement due to the missing documentation. This was the reason I did not follow this approach, However it's not impossible (done it on a very small scale).
    None of the solution are what I call simple. They are complicated, complex and in part not supported solution (exchanging the pivot table binding at runtime need to use internal classes, which is not supported).
    I can't give you a working sample as it's too complex. I can make the slides available, however they are in German.
    Timo

  • Group based on row data

    Given the following data:
    id duration start date end date
    1 15 08/01/2008 10:00 08/01/2008 10:15
    2 15 08/01/2008 10:15 08/01/2008 10:30
    3 15 08/01/2008 10:30 08/01/2008 10:45
    4 15 08/01/2008 11:00 08/01/2008 11:15
    5 15 08/01/2008 11:30 08/01/2008 11:45
    6 15 08/01/2008 11:45 08/01/2008 12:00
    7 15 08/01/2008 12:00 08/01/2008 12:15
    Is it possible to group them based on the sum of the duration column? If three rows' duration sum equals 45 and the datetimes are contiguous, then they'll be grouped as 1. So in the example above, [1 2 3] will be grouped as one and [5 6 7] will be grouped as another - row 4 is excluded since row 4 and row 5 aren't contiguous.
    Thanks.

    How about:
    SQL> alter session set nls_date_format = 'mm/dd/yyyy hh24:mi'
      2  /
    Session altered.
    SQL> with t1 as (
      2              select 1 id,15 duration,to_date('08/01/2008 10:00') start_date,to_date('08/01/2008 10:15') end_date from dual union all
      3              select 2, 15, to_date('08/01/2008 10:15'), to_date('08/01/2008 10:30') from dual union all
      4              select 3, 15, to_date('08/01/2008 10:30'), to_date('08/01/2008 10:45') from dual union all
      5              select 4, 15, to_date('08/01/2008 11:00'), to_date('08/01/2008 11:15') from dual union all
      6              select 5, 15, to_date('08/01/2008 11:30'), to_date('08/01/2008 11:45') from dual union all
      7              select 6, 15, to_date('08/01/2008 11:45'), to_date('08/01/2008 12:00') from dual union all
      8              select 7, 15, to_date('08/01/2008 12:00'), to_date('08/01/2008 12:15') from dual union all
      9              select 8, 45, to_date('08/01/2008 13:00'), to_date('08/01/2008 13:45') from dual union all
    10              select 11, 15, to_date('09/02/2008 08:00'), to_date('09/02/2008 08:15') from dual union all
    11              select 12, 15, to_date('09/02/2008 08:15'), to_date('09/02/2008 08:30') from dual union all
    12              select 13, 15, to_date('09/02/2008 08:30'), to_date('09/02/2008 08:45') from dual union all
    13              select 14, 15, to_date('09/02/2008 08:45'), to_date('09/02/2008 09:00') from dual union all
    14              select 15, 15, to_date('09/02/2008 09:00'), to_date('09/02/2008 09:15') from dual union all
    15              select 16, 15, to_date('09/02/2008 09:15'), to_date('09/02/2008 09:30') from dual union all
    16              select 17, 15, to_date('09/02/2008 09:30'), to_date('09/02/2008 09:45') from dual union all
    17              select 18, 15, to_date('09/02/2008 09:45'), to_date('09/02/2008 10:00') from dual union all
    18              select 19, 15, to_date('09/02/2008 10:00'), to_date('09/02/2008 10:15') from dual union all
    19              select 20, 15, to_date('09/02/2008 10:15'), to_date('09/02/2008 10:30') from dual union all
    20              select 21, 30, to_date('09/02/2008 10:30'), to_date('09/02/2008 11:00') from dual union all
    21              select 22, 15, to_date('09/02/2008 11:00'), to_date('09/02/2008 11:15') from dual
    22             ),
    23       t2 as (
    24              select  id,
    25                      duration,
    26                      start_date,
    27                      end_date,
    28                      case
    29                        when lead(start_date,1,end_date - 1) over(order by id) != end_date then 1
    30                        when duration + lead(duration) over(order by id) > 45 then 1
    31                        when lead(start_date,2,end_date - 1) over(order by id) != lead(end_date) over(order by id) then 2
    32                        when duration + lead(duration) over(order by id) + lead(duration,2) over(order by id) > 45 then 2
    33                        else 3
    34                      end grp_size,
    35                      case
    36                        when lead(start_date,1,end_date - 1) over(order by id) != end_date then duration
    37                        when duration + lead(duration) over(order by id) > 45 then duration
    38                        when lead(start_date,2,end_date - 1) over(order by id) != lead(end_date) over(order by id) then duration + lead(duration) over(order by id)
    39                        when duration + lead(duration) over(order by id) + lead(duration,2) over(order by id) > 45 then duration + lead(duration) over(order by id)
    40                        else duration + lead(duration) over(order by id) + lead(duration,2) over(order by id)
    41                      end grp_duration,
    42                      row_number() over(order by id) rn
    43                from  t1
    44             ),
    45       t3 as (
    46              select  id,
    47                      level grp_number,
    48                      grp_duration
    49                from  t2
    50                start with id = 1
    51                connect by rn = prior rn + prior grp_size
    52             )
    53  select     t1.*,
    54          max(t3.grp_number) over(order by t1.id) grp_number,
    55          last_value(t3.grp_duration ignore nulls) over(order by t1.id) grp_duration
    56    from     t1,
    57          t3
    58    where t1.id = t3.id(+)
    59    order by t1.id
    60  /
            ID   DURATION START_DATE       END_DATE         GRP_NUMBER GRP_DURATION
             1         15 08/01/2008 10:00 08/01/2008 10:15          1           45
             2         15 08/01/2008 10:15 08/01/2008 10:30          1           45
             3         15 08/01/2008 10:30 08/01/2008 10:45          1           45
             4         15 08/01/2008 11:00 08/01/2008 11:15          2           15
             5         15 08/01/2008 11:30 08/01/2008 11:45          3           45
             6         15 08/01/2008 11:45 08/01/2008 12:00          3           45
             7         15 08/01/2008 12:00 08/01/2008 12:15          3           45
             8         45 08/01/2008 13:00 08/01/2008 13:45          4           45
            11         15 09/02/2008 08:00 09/02/2008 08:15          5           45
            12         15 09/02/2008 08:15 09/02/2008 08:30          5           45
            13         15 09/02/2008 08:30 09/02/2008 08:45          5           45
            ID   DURATION START_DATE       END_DATE         GRP_NUMBER GRP_DURATION
            14         15 09/02/2008 08:45 09/02/2008 09:00          6           45
            15         15 09/02/2008 09:00 09/02/2008 09:15          6           45
            16         15 09/02/2008 09:15 09/02/2008 09:30          6           45
            17         15 09/02/2008 09:30 09/02/2008 09:45          7           45
            18         15 09/02/2008 09:45 09/02/2008 10:00          7           45
            19         15 09/02/2008 10:00 09/02/2008 10:15          7           45
            20         15 09/02/2008 10:15 09/02/2008 10:30          8           45
            21         30 09/02/2008 10:30 09/02/2008 11:00          8           45
            22         15 09/02/2008 11:00 09/02/2008 11:15          9           15
    20 rows selected.
    SQL> SY.

  • In the USOBT table Field 'Low' is fetching wrong data

    Hi All,
                 I am generating a report for the basis, in that am fetching data from USOBT table there is a field 'Low' . Its not fetchng correct data for the field values like WERKS, VTWEG etc. actaully the values r populating like $WERKS,$VKORG ..... in the database table also the same values r appearing . i Have checked even f1 help in the transaction there it is coming with values .in the F1 help its showing only dataelment WERKS_D.
    PLease tell me how can i retreive its actaul Value .Is there any other table i need to search????
    Thanks & Regards,
    rajesh S.

    Problem Resolved by using the table USR12.
    Its capturing the org values.
    Thanks & regards,
    rajesh S.

  • Table in report based on metric data

    Hi!
    I want to add a simple table to report, showing the data from the metric I have in my plug-in. The metric has near 50 columns.
    As far as I understand, I need to write SQL statement that selects from mgmt$metric_current view.
    The problem is that the data is presented 'vertically' in this view, meaning that I have one column with metric column name and another with metric column value, so if I want to get a table that represent my metric I need to write 50 inner joins in my SQL statement, which is extremely unefficient.
    Is there any other way to select metric current data in an efficient way?
    Thanks in advance,
    Alex.

    Alex,
    You do have to write a query to join across MGMT$METRIC_CURRENT to get multiple metric columns into a table.
    But for a reasonably sized table (column-wise), the performance should be fine. Why would you want to have
    a table with 50 columns? You'd have your end user doing quite a bit of horizontal scrolling all of the time; that
    wouldn't be very usable. Perhaps the better approach would be to have a number of tables with selected columns
    in each that are closely related. It seems that even regardless of this, that 50 columns is a lot in a single metric.
    Would it also make sense to break this metric up for usability as well? If so and you had originally put all 50 columns
    in a single metric for performance reasons (i.e. perhaps the overhead to connect to the source is big), you could
    keep that big metric as is, and have sifferent aggregate metrics that just consist of particular subsets of the
    columns. These aggregate metrics aren't "collected" like the base one.
    Dave

  • Set DataGridColumn editable based on row data

    I searched for this but did not find a direct answer. People wanted something similar but not exactly the same.
    I have several columns in a standard datagrid that I would like to set editable if the data.company_id > 0. Is this possible? Here's my MXML code:
    <mx:DataGridColumn headerText="Part Number"
                       dataField="part_number"
                       editable="false"
                       itemRenderer="controls.setTextColor"/>
    I tried:
    <mx:DataGridColumn headerText="Part Number"
                        dataField="part_number"
                        editable="{data.company_id > 0 ? true : false;}"
                        itemRenderer="controls.setTextColor"/>
    But of course that would be too easy, right?
    Help greatly appreciated...
    Rick

    But of course that would be too easy, right?
    aha, you're in luck
    Very quick and rough, but it works like a charm
    XML (written from php)
    <?php
         echo
         <thing>
              <edit>true</edit>
              <value>10</value>
         </thing>
         <thing>
              <edit>false</edit>
              <value>1000</value>
         </thing>
         <thing>
              <edit>false</edit>
              <value>550</value>
         </thing>
         <thing>
              <edit>true</edit>
              <value>20</value>
         </thing>
    ?>
    Flex
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="stuff.send()">
        <mx:HTTPService id="stuff" showBusyCursor="true" method="POST" url="http://localhost/stuff.php"/>
        <mx:DataGrid id="blah" x="240" y="93" dataProvider="{stuff.lastResult.thing}" editable="{blah.selectedItem.edit}">
            <mx:columns>
                <mx:DataGridColumn dataField="value" editable="{data.edit}"/>
            </mx:columns>
        </mx:DataGrid>
    </mx:Application>
    so yeah, i'd assume you'd have to edit the actually datagrid editable properties, rather than just the datagrid column. If your function doesn't work in there then just feed it a direct boolean value like i did.

  • Coloring of Particular Cells in a dynamic internal table(field symbols)

    Hi,
         I have a requirement to introduce color into some particular cells in a dynamic internal table(Field symbol) based on some conditions.I know that color can be introduced at cell level in the case of static internal table.But, can anybody tell me whether it is possible to introduce color to particular cells in the dynamic internal table(Field Symbol) .Please suggest me on this issue.
    Thanks in advance,
    Rajesh

    Hi,
    This is the sample coding for the colour cell report.
    Kindly go through it. It will helps u.
    REPORT YMS_COLOURTEST .
    DATA: BEGIN OF TP OCCURS 10, ID, NR(8), TEXT(255), END OF TP.
    DATA: LENGTH TYPE I VALUE 8, " Length of list
    TESTSTRING(15) TYPE C VALUE '012345678901234',
    WIDTH TYPE I. " Width of list
    DATA: TXT_REPORT LIKE DOKHL-OBJECT.
    START-OF-SELECTION.
    PERFORM HEADING.
    PERFORM OUTPUT_BODY.
    FORM HEADING.
    FORMAT INTENSIFIED OFF. " Remove any INTENSIFIED
    ULINE AT (WIDTH). " Upper frame border
    FORMAT COLOR COL_HEADING INTENSIFIED." Title color
    WRITE: / SY-VLINE. " Left border
    WRITE: 'No |Colour |intensified |intensified off|',
    'inverse' NO-GAP.
    WRITE: AT WIDTH SY-VLINE. " Right border
    ULINE AT (WIDTH). " Line below titles
    FORMAT COLOR OFF.
    ENDFORM.
    FORM OUTPUT_BODY.
    DO LENGTH TIMES.
    PERFORM WRITE_LINE USING SY-INDEX.
    ENDDO.
    ENDFORM.
    FORM WRITE_LINE USING COUNT TYPE I.
    DATA: HELP(14) TYPE C,
    COUNT1 TYPE I.
    COUNT1 = SY-INDEX - 1.
    WRITE: / SY-VLINE NO-GAP.
    WRITE: (4) COUNT1 COLOR COL_KEY INTENSIFIED NO-GAP.
    WRITE: SY-VLINE NO-GAP.
    CASE COUNT1.
    WHEN '0'.
    HELP = 'COL_BACKGROUND'.
    WHEN '1'.
    HELP = 'COL_HEADING'.
    WHEN '2'.
    HELP = 'COL_NORMAL'.
    WHEN '3'.
    HELP = 'COL_TOTAL'.
    WHEN '4'.
    HELP = 'COL_KEY'.
    WHEN '5'.
    HELP = 'COL_POSITIVE'.
    WHEN '6'.
    HELP = 'COL_NEGATIVE'.
    WHEN '7'.
    HELP = 'COL_GROUP'.
    ENDCASE.
    WRITE: HELP COLOR COL_KEY INTENSIFIED NO-GAP.
    WRITE: SY-VLINE NO-GAP.
    WRITE: TESTSTRING COLOR = COUNT1 INTENSIFIED NO-GAP.
    WRITE: SY-VLINE NO-GAP.
    WRITE: TESTSTRING COLOR = COUNT1 INTENSIFIED OFF NO-GAP.
    WRITE: SY-VLINE NO-GAP.
    WRITE: TESTSTRING COLOR = COUNT1 INVERSE NO-GAP.
    WRITE AT WIDTH SY-VLINE NO-GAP.
    ENDFORM.
    Thanks,
    Shankar

  • How to trace master data source (table-field)?

    Hello All,
    Please help, its Urgent!!
    I have the following 4 characteristic requirement in BW from PM/PS module.
    Master data source (format: table-field)
    AFVV-FSAVD - early start date
    AFVV-FSEDD - early finish date
    AFVV-SSAVD - late start date
    AFVV-SSEDD - late finish date
    can anyone tell me the procedure, how to find them in R/3 n if there r any standard business content for the same?
    Thanks in advance,
    JP

    Go to RSA5 Tcode in R/3, under SAP R/3 Application component, you can get PO/PS Components, and under that you can get PO-IO/PS-IO Components, here you can check all the vaialble master data datasources.
    KJ!!!

  • F4 help for a table field

    hai can any one tell me in detail how to create a search help and attach to the field in the custom table
    bye
    afzal

    hi Afzal ,
       Here you go with the details of creating a search help and attaching it to the custom table :
    Creation of Elementary Search Help:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH004.Click on Create .
    2.     In the next screen select the option “ Elementary search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     In the selection method provide the table or view name you want to use for data retrieval. Ex. ZMARA_01.
    5.     Select the dialog type according to your scope, ex. “ display values immediately’.
    6.     Then provide the search help parameters i.e. the interface parameters for the search help .
    7.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB,MHDHT,MHDRZ are provided by selecting the table fields , by doing this the data elements for these fields are automatically copied to the interface from the selection method.
    8.     Now define the type of parameter ( import or export ) here for the selection and return of values in runtime.
    9.     Provide the positions to these parameters to specify how they will be arranged in the hit list display.
    10.      Now save the object in the respective development class and check the same for errors and then activate .Finally the creation of a ESH ( ex: ZSH004 ) is complete and can be used for providing the input help.
    You can test the operation of your search help by clicking F8.
    The appearance of your search help will be like the fig. provided below
    Creation of Collective Search Helps:
    The creation of an elementary search help is described below with example.
    1.     Open TCode – SE11 for DDIC objects -> select the radio button for Search helps -> give the name of the search help you want to create, ex – ZSH005.Click on Create .
    2.     In the next screen select the option “ Collective search help “ .
    3.     Now you need to provide the short text for your search help.
    4.     Select the dialog type according to your scope, ex. “ display values immediately’.
    5.     Then provide the search help parameters i.e. the interface parameters for the search help .
    6.     The ZMARA_01 table fields MATNR, ERSDA,MHDHB are provided by selecting the table fields . Define the types for the parameters of a collective search help by assigning a data element. Enter the name of the data element that describes the contents of the search help parameter in the Data element field.
    7.     In the Definition tab page enter the parameters of the collective search help.
    Select the Imp flag if it is an import parameter. Select the Exp flag if it is an export parameter. Optional-You can assign the parameter a default value in the Default value field.
    8.     
    Next, Select the tab “ Included Search help “ and provide the elementary search helps you want to include here . In the current example 2 elementary search helps ZSH004 and ZSH003 are being included.
    9.     Create a parameter assignment between all the included search helps and the collective search help here ( Note that at-least one of the parameter assignment must be done for linking the includes ) .This can be done by clicking on the tab
    10.     “Parameter assignment “ .ex. we have done the parameter assignment here by using the MATNR field for both the includes i.e. the selection paths should be based on the provided material number.
    11.     After performing the steps save the search help and activate for use in the later stage.
    Regards,
    Ranjita

  • How to disable a particular CELL in matrix?????

    Hi All,
               I have a doubt regarding the matrix.In my matrix the first column is a combobox it has a,b,c items....so if i select 'a' the remaining 'b' & 'c' columns should get disabled....previously iam able to disable the 'b' & 'c' columns but it's disabling the total 'b & 'c' columns in my matrix.....i just want to disable the particular cell based on the combobox selection....can we disable a particular cell in matrix.....
    regards,
    shangai.

    Shangai,
    here were many threads about this in last month. Try to search in history.
    BTW, the particular cell cannot be disabled (only whole column), but you could make system, that the cell is enabled but you cannot click on it (when user clicks on the cell, set bubbleeevnt to fasle).

  • I am hiving some table field descriptions I need in which table these table

    I am having table field descriptions : Order Value,Discount Value,Actual Margin,Actual Margin %.
    I need in which tables these fields are available.

    Hi Bunny:
    1. goto se15
    2. expand abap dictionary
    3. expand fields
    4. double click on table fields
    5. Just paste the description , which you are having in the SHORT DESCRIPTION input area, at the beside screen..like "Order value"
    6. press F8.
    you should get:
    Table Name       Short Description
    Table field                    Short Description
    TREC_FORC_COMPL  Temporary data for the receiving forecast
    TVALUE                         Order value in document currency
    EMBK             Legal Control: License Master - Header Data
    GAUFW                          Value consumed by orders
    Thanks,
    Naveen.I

  • Problem in finding table fields to enhance 0CRM_SRV_CONFIRM_H for 'Code'

    Hi,
    My source system for BW is CRM. This development is related 'Service Order and Confirmations'. The relevant data source in CRM system is 0CRM_SRV_CONFIRM_H. This data source does not have any information for 'Catalog/Code Group/ Classification Codes' for a Service ticket. So, I have to enhance the data source with it.
    'Catalog/Code Group/ Classification Codes'  is present in the table CRMD_SRV_SUBJECT but there is no common joining fields for the table with datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table. CRMD_SRV_SUBJECT has a field called GUID, but transaction data stored in that is not matching with any GUID column of datasource or CRMD_ORDERADM_I or CRMD_ORDERADM_H table.
    Data source can be joined with CRMD_ORDERADM_H [ DS-GUID = CRMD_ORDERADM_H-GUID ] and with CRMD_ORDERADM_I [ DS-GUID = CRMD_ORDERADM_I -HEADER ].
    Thus, I think, the transaction data is stored in some other table which can be joined with the data source. Please help me giving the relevant table/field name to enhance the data source.
    Thanks in advance,
    Dibyendu

    Hi Dibyendu ,
    Please checkout Database view
    <b>CRMV_REPORT_SUBJ</b>
    ==============
    Join between below 4 tables
    CRMD_ORDERADM_H
    CRMD_LINK
    CRMD_SRV_OSSET
    CRMD_SRV_SUBJECT
    ==================
    CRMD_ORDERADM_H     CLIENT     =     CRMD_LINK     CLIENT
    CRMD_ORDERADM_H     GUID     =     CRMD_LINK     GUID_HI
    CRMD_LINK     CLIENT     =     CRMD_SRV_OSSET     CLIENT
    CRMD_LINK     GUID_SET     =     CRMD_SRV_OSSET     GUID_SET
    CRMD_SRV_OSSET     CLIENT     =     CRMD_SRV_SUBJECT     CLIENT
    CRMD_SRV_OSSET     GUID     =     CRMD_SRV_SUBJECT     GUID_REF
    Thanks,
    Aby Jacob

  • Header row in ALV Grid, based on the data in the table

    Hi All,
    I have a requirement wherein, based on the data in the table used for ALV, i need to add rows as sort of header in the ALV display.
    For e.g. my table has
    Appl No.  Item  Material  Desc.           Cost                 -> Column Heading
    1             10     400        Excavation    10.00               -> Data
    1             20     400        Footing         10.00
    2             10     400        Excavation    10.00
    2             20     400        Footing         10.00
    For every new Appl No., i need to add a row, or sort of header specifying the appl no. details. means
    Appl No.  Item  Material  Desc.           Cost
    Appli. No. 1                   Date: 01/01/1009                   -> my requirement
    1             10     400        Excavation    10.00
    1             20     400        Footing         10.00
    Appli. No. 2                   Date: 02/01/1009
    2             10     400        Excavation    10.00
    2             20     400        Footing         10.00
    Is this possible in ALV my any means? Currently i m using normal ALV Grid
    Regards,
    Janaki

    Hi..
         Try like this... I think u have Application number and date in ur table ... First get the total table data into internal table.. and to add the row
         *Declare the var1 as 0 and var2.
    loop at internal table
         *var1 = var1 +1
    when application number =var1
             concatenate : 'Appli. No.' (table- appli no field) 'Date:'  (table-date field) into var2.
    perform display(some name)
         *endloop.
         *form display...
              alv display part.. first give that var2 like eg.. wa_alv-field= 'var2'.
    end form.
        Hope this will help u .....
    Regards,
    Abaper

  • Disable a field in a Table layout based on the condition

    Hello,
    In the seeded page, there is a table layout region with viewobject name as View1. It has 3 fields displayed as Field A, Field B, Field C with multiple rows displayed when the page opens. Fields B and C are MessageTextInputs and Field A is MessageChoice. So in the displayed rows in the table, if the value selected in the Field A is "Bonus" then the fields B and C needs to be disabled so that the user should not be able to enter any information. So if there are 5 rows in that table, only 1 or 2 rows might have the value "Bonus" in the field A and only for those rows, fields B and C needs to be disabled.
    I would appreciate if anyone can provide me with a logic. I know how to disable a field based on the value of other field but in this case here, its a table region with multiple rows and only few of them needs to be disabled. I couldn't think of any logic here. Any help is greatly appreciated.
    Thank You
    KK

    Similar problem
    Re: How to make Advanced table readonly

  • How to enable/disable the input fields based on the data entered/user action in the web dynpro abap?

    How to enable/disable the input fields based on the data entered in the web dynpro application abap?  If the user enters data in one input field then only the next input field should be enabled else it should be in disabled state. Please guide.

    Hi,
    Try this code.
    First create a attribute with the name readonly of type wdy_boolean and bind it read_only property of input field of which is you want to enable or disable.
    Next go to Init method.
    Set the readonly value as 'X'.
    DATA lo_el_context TYPE REF TO if_wd_context_element.
         DATA ls_context TYPE wd_this->element_context.
         DATA lv_visible TYPE wd_this->element_context-visible.
    *   get element via lead selection
         lo_el_context = wd_context->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_context IS INITIAL.
         ENDIF.
    *   @TODO fill attribute
    *   lv_visible = 1.
    *   set single attribute
         lo_el_context->set_attribute(
           name =  `READONLY`
           value = 'X').
    After that Go to the Action  ENTER.
    First read the input field ( first input field, which is value entered field) , next give a condition
    if input value is not initial  then set the readonly value is '  '.
    DATA lo_nd_input TYPE REF TO if_wd_context_node.
         DATA lo_el_input TYPE REF TO if_wd_context_element.
         DATA ls_input TYPE wd_this->element_input.
         DATA lv_vbeln TYPE wd_this->element_input-vbeln.
    *   navigate from <CONTEXT> to <INPUT> via lead selection
         lo_nd_input = wd_context->get_child_node( name = wd_this->wdctx_input ).
    *   @TODO handle non existant child
    *   IF lo_nd_input IS INITIAL.
    *   ENDIF.
    *   get element via lead selection
         lo_el_input = lo_nd_input->get_element( ).
    *   @TODO handle not set lead selection
         IF lo_el_input IS INITIAL.
         ENDIF.
    *   get single attribute
         lo_el_input->get_attribute(
           EXPORTING
             name =  `VBELN`
           IMPORTING
             value = lv_vbeln ).
    if lv_vbeln IS not INITIAL.
        DATA lo_el_context TYPE REF TO if_wd_context_element.
        DATA ls_context TYPE wd_this->element_context.
        DATA lv_visible TYPE wd_this->element_context-visible.
    *  get element via lead selection
        lo_el_context = wd_context->get_element( ).
    *  @TODO handle not set lead selection
        IF lo_el_context IS INITIAL.
        ENDIF.
    *  @TODO fill attribute
    *  lv_visible = 1.
    *  set single attribute
        lo_el_context->set_attribute(
          name =  `READONLY`
          value = ' ' ).

Maybe you are looking for

  • How create a carrosel photo gallery with Adobe Muse widgets?

    I use Adobe Muse 3.2 build 2, and I need create a photo gallery with many photos (around 60) like a carrosel (with photos and thumbnails that slides both from left to right). There is some way to create or insert a widget of this kind in Muse? If pos

  • Ghost file in the Dock, how to delete?

    Hi! I recently can see a file in the Download folder in the Dock. I can't see it in the Download folder in Finder. If I try to"catch" it I get a message "The Application can't be found". I find it irritating and would like to delete the file. It is n

  • IPhoto 9.2: already imported video not recognized

    Hello, I've recently updated to iPhoto 9.2, with the previous versions I usually import photos and videos from my iPhone. I usually connected it with the cable and importing photos and videos when prompted by iPhoto. Previous versions of iPhoto corre

  • Inconsistent decimals in crystal report(max 5decimals)

    Hi, I have a BEx report which contains some selections and formulas that is used also in crystal reports. BEx analyzer can show up to 9 decimals, however in crystal the numbers can not go further then 5 decimals which is resulted faulty. Exm: 13,2554

  • ALV display not work

    Hi, Do you know why the following code did not display the content of li_final?  There are 30 records in the li_final, but nothing display on the screen.  Thanks, Helen FORM 8400_display_list  USING  li_final LIKE gi_auditin_mapping