Selection of database fields

I have got two fields in a database.Those two fields are interrelated like the col2 has a priority over col1.whenever col2 is there it is selected as the field(here it is a date).Below is the sql query i have written for that
select DECODE (cd.col1,'', TO_CHAR(cd.col2,'DD/MM/YYYY'),TO_CHAR(cd.col1,'DD/MM/YYYY'))  date from table1wat i want to do is i want to have display that field in the jsp in two diff colors.like if the date field is col2 it will have diff TD class if it is col1 it will have diff TD color.
I am not sure how 2 go about that.Plz help me.......is there some way to do that in the sql query itself.

select DECODE (cd.col1,'', TO_CHAR(cd.col2,'DD/MM/YYYY'),TO_CHAR(cd.col1,'DD/MM/YYYY')) date from table1I am trying to put it like this :-
select
case cd.col1 when ''
     TO_CHAR(cd.col2,'DD/MM/YYYY') AS COLUMN2_date
else
     TO_CHAR(TO_CHAR(cd.col1,'DD/MM/YYYY')) AS COLUMN1_date
end
from table1
You can get the column names through java code - something
like ResultSetMetaData - I am sorry i don't actually remember that right now.
But check APIs.
if (COLUMN2_date is null ) show as red else blue
if (COLUMN1_date is null ) show as red else blue
Hope this way it helps.
Vishal

Similar Messages

  • 10g Locks Up when selecting database field for optimistic locking

    As the subject says, when I attempt to select the database field for optimistic locking, JDeveloper locks up and I have to kill it with the task manager.
    Should I post problems with TopLink in 10g in this forum or the TopLink forum?

    I finally hit this StackOverflowError again. This happens sometimes when I select the Locking tab on a class where the locking field has already been selected. Here is the top of the stack trace:
    java.lang.StackOverflowError
         at java.util.TreeMap$KeyIterator.next(TreeMap.java:1047)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1588)
         at java.util.TreeMap.buildFromSorted(TreeMap.java:1534)
         at java.util.TreeMap.addAllForTreeSet(TreeMap.java:1492)
         at java.util.TreeSet.addAll(TreeSet.java:247)
         at java.util.TreeSet.<init>(TreeSet.java:138)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getAssociatedTablesCopy(MWClassDescriptor.java:377)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.getSecondaryTablesCopy(MWClassDescriptor.java:698)
         at oracle.toplink.workbench.model.desc.MWClassDescriptor.hasMultipleTables(MWClassDescriptor.java:796)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.isMultiTable(DatabaseFieldLabel.java:120)
         at oracle.toplink.workbench.ui.labels.DatabaseFieldLabel.installUI(DatabaseFieldLabel.java:93)
         at oracle.toplink.uitools.cell.BasicLabel.prepareLabel(BasicLabel.java:953)
         at oracle.toplink.uitools.cell.BasicLabel.getListCellRendererComponent(BasicLabel.java:611)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$RendererWrapper.getListCellRendererComponent(BasicListChooserUI.java:1104)
         at javax.swing.plaf.basic.BasicListUI.updateLayoutState(BasicListUI.java:1147)
         at javax.swing.plaf.basic.BasicListUI.maybeUpdateLayoutState(BasicListUI.java:1097)
         at javax.swing.plaf.basic.BasicListUI$ListSelectionHandler.valueChanged(BasicListUI.java:1465)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:187)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:167)
         at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:214)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:402)
         at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:411)
         at javax.swing.DefaultListSelectionModel.setSelectionInterval(DefaultListSelectionModel.java:435)
         at javax.swing.JList.setSelectedIndex(JList.java:1730)
         at javax.swing.plaf.basic.BasicComboPopup.setListSelection(BasicComboPopup.java:998)
         at javax.swing.plaf.basic.BasicComboPopup.access$000(BasicComboPopup.java:43)
         at javax.swing.plaf.basic.BasicComboPopup$ItemHandler.itemStateChanged(BasicComboPopup.java:782)
         at javax.swing.JComboBox.fireItemStateChanged(JComboBox.java:1161)
         at javax.swing.JComboBox.selectedItemChanged(JComboBox.java:1218)
         at oracle.toplink.uitools.ComboBox.selectedItemChanged(ComboBox.java:512)
         at javax.swing.JComboBox.contentsChanged(JComboBox.java:1265)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ComboBoxModel.fireContentsChanged(BasicListChooserUI.java:598)
         at oracle.toplink.uitools.plaf.basic.BasicListChooserUI$ListDataHandler.contentsChanged(BasicListChooserUI.java:842)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.removeAll(DefaultListModel.java:529)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:724)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
         at oracle.toplink.uitools.DefaultListModel.setSelectedItem(DefaultListModel.java:830)
         at oracle.toplink.uitools.DefaultListModel.replace(DefaultListModel.java:732)
         at oracle.toplink.uitools.ListChooser.setData(ListChooser.java:747)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.populateOptimisticFieldChooser(DescriptorPropertiesLockingPage.java:333)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage.propertyChange(DescriptorPropertiesLockingPage.java:342)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:216)
         at oracle.toplink.workbench.tools.events.ChangeSupport.firePropertyChange(ChangeSupport.java:230)
         at oracle.toplink.workbench.tools.AbstractModel.firePropertyChange(AbstractModel.java:70)
         at oracle.toplink.workbench.model.desc.MWDescriptorLockingPolicy.setLockField(MWDescriptorLockingPolicy.java:117)
         at oracle.toplink.workbench.ui.desc.DescriptorPropertiesLockingPage$ActionHandler.actionPerformed(DescriptorPropertiesLockingPage.java:471)
         at oracle.toplink.uitools.Chooser.fireActionEvent(Chooser.java:305)
         at oracle.toplink.uitools.ListChooser$ListDataHandler.contentsChanged(ListChooser.java:1382)
         at javax.swing.AbstractListModel.fireContentsChanged(AbstractListModel.java:100)
    ...

  • Restrict Select-Options for Logical Database field

    The way we restrict select options for custom defined select option fields on selection screen.. can we restrict select options for standard Logical Database fields?
    i.e. report uses PNPCE logical database and has field called PERNR. I want to restrict select options for this PERNR field so that it has options for 'Select single values' only.
    Thanks,
    Falguni
    Edited by: Falguni V on Nov 13, 2010 6:42 AM

    You can user AT SELECTION-SCREEN event, and check whether any record is having high value for PNPPERNR.

  • Toplink errors 2320 No Database field is selected.

    In the TopLink problems tab in JDev 11.1.1.2.0 I'm getting numerous errors that look like
    JPA Persistence Descriptor 2320 - No database field is selected.
    Right clicking on an error and selecting Goto Source does nothing so I don't know exactly what it's referring to.
    The application seems to run OK but currently this is in development. I''m expecting to deploy to WLS and I don't want problems there.
    Thanks...

    Hi steverar, how are you? I don't know if you're still having this problem but here goes the answer!
    To correct the problem, just change your persistence.xml by executing the following steps:
    1. Open persistence.xml;
    2. In Overview tab, double click the persistence unit;
    3. In General Section, choose the Offline DB that you created for the field "Development Database".
    Then, just connect your entities and fields to the respective tables and columns.
    Cheers!
    Luis

  • Field Explorer help, not all Database Fields available

    Greetings all, I'm new to Crystal Reports (version XI by the way) and Tigerpaw.  I've had some great luck editing existing reports to the specifications we've needed thus far.  But now I've run into a real problem, it seems small, but it's important to me. 
    The one change I'm unable to accomplish on our new invoice report:
    -Adding the Tigerpaw field, Account Name, to an invoice.  The "Account Name" field is a field pulled from the tblAccounts Database Fields category in the Field Explorer.  But when I'm in my invoice template, I do not have that category available, I only have tblSysListViewPrint and tvwr_Invoices categories, the latter does have the field for "Account ID" which is close for our purposes, but not the same.  So how might I go in and pull from the tblAccounts category...specifically to get the  tblAccounts.AccountName field.  Copying that field from another existing report does not work either, "one or more formulas fail to compile".
    I'm not sure how it decides what Database Fields to pull from, because on other reports, the tblAccounts category is available, but not the tvwr_Invoices category, so I am quite confusedl.
    Hopefully this makes sense to someone out there. 
    Thanks.

    Thanks, V361,
    When I go to create a blank report, I get no databases available.  My first prompt is the "Database Expert".  The "available data sources" list is Current Connections (no items), Favorites (no items), History (no items), and Create New Connection.  The "selected tables" list on the right is blank.  I honestly don't have a clue how connect to whatever server contains those items.  I realized since I first posted that I need to figure that out to make any progress.  All the created reports already have the database field categories set up already, but it looks like all the available fields were not initially chosen for the reports.
    So what I believe it comes down to is the fact that I need to figure out how to "Create New Connection" to find my available database fields.

  • Problems with query on a non-database field

    Hi,
    Hopefully I am in the correct section...
    I have some problems. I wanna query a non-database field but it does not work for one of them. I have tried the following...
    declare
    vsNewDefaultWhere varchar2(4000);
    vbFirstWhere boolean;
    cursor curArea is
    select a1_area, a1_hbno, a1_seqno
    from b1_in, c1_hdr, a1_bl
    where b1_sequenceno = a1_seqno
    and b1_shipid = a1_hbno
    and b1_id = :c1_shipid;
    rowArea curArea%ROWTYPE;
    procedure mergeStrings (sNewWhereClause varchar2) is
    begin
    if not vbFirstWhere then
    vsNewDefaultWhere := vsNewDefaultWhere || ' and ';
    end if;
    vsNewDefaultWhere := vsNewDefaultWhere || sNewWhereClause;
    vbFirstWhere := false;
    end mergeStrings;
    begin
    navigate.resetselrows('IMP_HDR');
    navigate.resetselrows('IMP_DTL');
    if not navigate.customwhereclause then
    navigate.resetwhereclause('IMP_HDR');
    end if;
    vsNewDefaultWhere := Get_Block_Property('IMP_HDR', DEFAULT_WHERE);
    vbFirstWhere := vsNewDefaultWhere is null;
    ---- does work!
    if :IMP_HDR.c1_usecode is not null then
    mergeStrings('c1_shipid in (select b1_id from b1_in where b1_fac = ''' || :global.fac || ''' and b1_comp = ''' || :global.comp || ''' and b1_code like ''' || :c1_usecode || ''')');
    end if;
    ---- does not work!
    open curArea;
    fetch curArea into rowArea;
    if curArea%found then
    if :IMP_HDR.c1_area is not null then
    mergeStrings('c1_shipid in (select b1_id from b1_in, c1_hdr, a1_bl where b1_fac = ''' || :global.fac || ''' and b1_comp = ''' || :global.comp || ''' and b1_sequenceno = ''' || rowArea.a1_seqno || ''' and b1_shipid = ''' || rowArea.a1_hbno || ''' and rowArea.a1_area like ''' || :c1_area || ''')');
    end if;
    end if;
    end;
    Thanks for your help in advance and let me know if you Need more Information.

    Hello,
    Ask Personalization questions in the dedicated E-Business Suite forum ;-)
    Francois

  • CR Database Fields doesn't display classes from a referenced project

    Hi,
    I created a website and a class library project. The website have a reference to a class library.
    I added a new Crystal Report item to the website (CrystalReport.rpt), and on the Database Expert screen, in the Database Fields section I need to select fields that are members of classes in the class library (referenced project). Only the website classes appear in the list.
    Is there a way to do this?
    Thanks.

    if i understand correctly you added data to the dataset the report is using?
    you need to verify the database to pull in the new fields
    database
    verify database
    you should then see the fields in the db expert

  • How to get 10 characters if there are 18 characters in database field

    IF there are four fields in a internal table and each field have 18 character length. i should less the filed length of only 3 fields to 10 characters and should get this fields in Application layer and flat file ( out bound interface),
    so can u guide me the logic how to populate the data in application layer and flat file with new field length of 3 fields and old field length of fourth field.

    Hi Azeez,
    First declare your internal by referring database fields and fetch data from data base into this internal table.
    Ex:
    types: begin of stru,
                                 f1 type <t1>-f1,
                                 f2 type <t1>-f2,
                                 f2 type <t1>-f2,
                                 f2 type <t1>-f2,
                              end of stru.
    Lets consider all the above fields have length 18 in database.
    data: itab type standard table of stru.
    data: wa_itab type stru.
    data: lv_char(48) type c.
    select f1 f2 f3 f4 from  t1 into table itab.
    loop at itab into wa_itab.
      concatenate wa_itab-f1+0(10) wa_itab-f2+0(10)  wa_itab-f3+0(10)  wa_itab-f4
                  into lv_char.
    <b>now transfer this variable (lv_char) to application server.</b>
    endloop.
    hope this helps.
    Regards,
    Phani.

  • Short dump when trying to Select date in Field

    Hi,
    I created generic data source based on Function Module. I went to RSA3 to test the extraction and I got this error message when I tried to enter a date as input selection in date field or any other selection field
    If I test the extraction without any input I get correct results.
    Whats the reason for this error?
    *Error analysis
       The current ABAP/4 program attempted to execute an ABAP/4 Open SQL
       statement in which the WHERE condition contains an IN itab operator.
       The IN itab operator is used with internal tables which
       have the following structure:
          SIGN(1)   OPTION(2)   LOW LIKE db_field   HIGH LIKE db_field
       The OPTION column should contain only one of the following values:
          "EQ LE GE CP BT NE LT GT NP NB"
    Function module code
    of the type SIGN = 'I' and OPTION = 'EQ' or OPTION = 'BT'.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'COMPID'.
            MOVE-CORRESPONDING L_S_SELECT TO rd.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'SUBSCRIBERS'.
            MOVE-CORRESPONDING L_S_SELECT TO rs.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'TURNOVER'.
            MOVE-CORRESPONDING L_S_SELECT TO rt.
            APPEND rd.
          ENDLOOP.
          LOOP AT S_S_IF-T_SELECT INTO L_S_SELECT WHERE FIELDNM = 'ENTRYDATE'.
            MOVE-CORRESPONDING L_S_SELECT TO re.
            APPEND rd.
          ENDLOOP.
    Determine number of database records to be read per FETCH statement
    from input parameter I_MAXSIZE. If there is a one to one relation
    between DataSource table lines and database entries, this is trivial.
    In other cases, it may be impossible and some estimated value has to
    be determined.
          OPEN CURSOR WITH HOLD S_CURSOR FOR
          SELECT (S_S_IF-T_FIELDS) FROM ZMOBILEDATA
                                   WHERE COMPID  IN rd AND
                                         SUBSCRIBERS  IN rs AND
                                         TURNOVER IN rt AND
                                         ENTRYDATE IN re.
        ENDIF.                             "First data package ?
    Fetch records into interface table.
      named E_T_'Name of extract structure'.
        FETCH NEXT CURSOR S_CURSOR
                   APPENDING CORRESPONDING FIELDS
                   OF TABLE E_T_DATA
                   PACKAGE SIZE S_S_IF-MAXSIZE.
        IF SY-SUBRC <> 0.
          CLOSE CURSOR S_CURSOR.
          RAISE NO_MORE_DATA.
        ENDIF.
    Thanks

    Hi,
    thanks for your input
    Rd, rt,re and rs are ranges.
    Select ranges
      RANGES: rd FOR ZMOBILEDATA-COMPID,
              rs FOR ZMOBILEDATA-SUBSCRIBERS,
              rt FOR ZMOBILEDATA-TURNOVER,
              re FOR ZMOBILEDATA-ENTRYDATE.
    thanks'

  • Database Fields Verify Database - By Programaticaly

    Hi to all,
                  I'm using Crystal Report 11.5, Visual studio 2005 - C#,Asp.Net2.0.
                  My task is by programaticaly add the
    Fieldsobjects,Blobobjects and so on. So in design time i just
    add the Datatable in the CR,
    but during runtime i add some columns in database Table and i get that newly added column but unable to add this field
    (Raised error as "Field Not Found") so what i tried is during
    design time in
    Field Explorer>Database Fields>Right Click and Select
    Verify Database after this work my page is working fine.
    My questions is how to do the same work programaticaly.
    Experts please explain.
    Thanks in Advance

    Yes i found the way it's very simple
    ReportDocument boReportDocument = new ReportDocument ();
    boReportDocument.VerifyDatabase();
    Thats all

  • Database Field for Picked Quantity in Delivery

    Hi All,
    We want to know the Database Field for Picked quantity in a delivery. We checked the help for the field and it points to the LIPSD structure and the field PIKMG. However I could not find it in LIPS table or any other table. Could somebody please help me locate this field in the database ?
    Thanks,
    Amit

    Hi, This is late response i know, but maybe someone else is looking for same and needs code for same. Please keep in mind that you also need to check if users have done LT0G return from GI are back to picking bin. In this case you need minus the TO from total picking qty.
    ABAP routine:
    form LIPS_PICKED using LS_LIPS type LIPS.
       data: LT_VBFA type table of VBFA,
             LS_VBFA type VBFA,
             LS_LTAP type LTAP.
       select * from VBFA into table LT_VBFA  "Fetch to data from doc flow and count picked
         where VBELV = LS_LIPS-VBELN
         and   POSNV = LS_LIPS-POSNR
         and   VBTYP_N = 'Q'.
       clear LS_LIPS-LFIMG.
       loop at LT_VBFA into LS_VBFA.
         select single * from LTAP into LS_LTAP
           where LGNUM = GS_SCREEN_100-LGNUM
           and   TANUM = LS_VBFA-VBELN
           and   TAPOS = LS_VBFA-POSNN
           and PQUIT   = 'X'. "Picked!
         if SY-SUBRC = 0.
           if ls_ltap-vltyp = '916'. "Source is GI area => LT0g done, it is minus!
            LS_LIPS-LFIMG = LS_LIPS-LFIMG - LS_LTAP-VISTA.
           ELSE.
           LS_LIPS-LFIMG = LS_LIPS-LFIMG + LS_LTAP-VISTA.
           endif.
         endif.
       endloop.
    endform.                    "lips_picked

  • How to display records from a query into non-database field

    Hi
    I a have a problem:
    I have a query with many tables and 6 column(select a,b,c,d,e,f from x,y,z,t,s,g where conditions) and I use 3 parameters.
    I create 3 parameters :datai,:dataf and :partener and a button with a trigger when button is pressed.
    Then a create a manualy block with six field non-database a1,b1,c1,d1,e1,f1.
    Now I want to display all the records from my query into a1,b1,c1,d1,e1,f1 where a1=a,b1=b,etc. and all the records (if I have 20 record, it will display 20 records in non-database field) when I press the button.
    How I made:
    I create a cursor with query then
    begin open cursor
    loop
    fetch cursor into :a1,:b1,:c1,:d1,:e1,:f1;
    end loop;
    close cursor;
    end;
    It display one record in a1,b1,c1 only and it have to display 100 records and are date for all the fields.
    Can somebody help me in this problem?
    Thanks.
    Edited by: 928437 on Oct 1, 2012 2:55 AM

    Creating a view, and querying that into a database block is an excellent solution.
    To use the non-database block:
    You're missing the all-important Next_Record; command.
    <pre> Begin
    Go_block('X'); -- block X is the non-database block
    Clear_Block(No_Validate);
    open cursor X1;
    loop
    If :System.Record_status != 'NEW' then
    Next_Record;
    End if;
    fetch X1 into :a1,:b1,:c1,:d1,:e1,:f1;
    Exit when X1%NOTFOUND;
    end loop;
    close X1;
    end;</pre>

  • Crystal Reports XI Web Elements - populate WESelect element values from database field

    <p>Hi,</p><p>I am using Web Elements with Crystal Reports XI. I need to know how to populate the ElementValues and ElementDisplays arguments of the WESelect function from a database field. </p><p>In the function expert when I click on the ElementsValues and ElementDisplays values a drop down appears which will let me select a field or formula. However, when I try saving and leaving the formula workshop an error message is generated.</p><p> "A subscript must be between 1 and the size of the array".</p><p>I assume this is because the WESelect function is looking for the "|" separator in the ElementValues and ElementDisplays arguments.</p><p>Please advise.</p><p>Thanks</p>

    hello,Â
    in the webelements.zip download you should find a DCP report which shows the method for "rolling up" data using a subreport and passing these to a select control using shared variables.
    basically a string running total rolls up the values at run time and character separates them for use by the controls. for any type of select (drop down menu etc.) controls all of the values have to be made available before the main report is run so that's why you use this techique. you can think of it this way...instead of having an asp page that runs a database query and then populates a javascript array for the control, the subreport rolls up the values and passes them to the control.
    other types of controls that you wish to place directly on a group header or details section can be run off of main report fields or formulae...e.g. you can place a checkbox control on the details section without having to roll up the data in advance.
    by just putting a field name in the parameter for a select control, you will only get one value per control.
    i hope that this makes sense as it takes a bit to get used to at first,
    jamie

  • Irrelevant id's under 'Database Fields' for BW query

    Hi all,
    I am new to Crystal reports and have a problem.
    I installed Crystal Reports 2008 and as integration kit (with BW), i installed 3.1 version.
    I am trying to connect a bw query to the Crystal Reports.
    Now i can connect a bw query, but in 'Fields Explorer' under 'Database Fields' i can not see proper names. I have already selected 'show description ' setting.
    There are items like, Cube creation time, cube type, data update time etc.. and for key figures, there are lots of items that starts with M~[Measures].....
    Some of my collegues have the same version and it is working just fine. So I wonder, what is wrong with mine.
    What can be the problem?
    Thanks
    Ozan

    Settings button can be found in the SAP toolbar.
    Also in Menu bar, you can see 'Settings' under SAP menu.
    By the way, integration kit has to be installed beforehand.

  • At selection-screen on field

    friends can u tell me the difference between atselection-screen and at selection-screen on field?

    First of all the actual order of events
    INITIALIZATION
         AT SELECTION-SCREEN OUTPUT
         AT SELECTION-SCREEN ON <field>
         AT SELECTION-SCREEN     
    START-OF-SELECTION
    INITIALIZATION
    This event occurs before the standard selection screen is called. You can use it, for example, to initialize the input fields of the standard selection screen or you can assign your own default values.
    REPORT EVENT_DEMO.
    PARAMETERS DATUM TYPE SY-DATUM DEFAULT SY-DATUM.
    NODES SPFLI.
    INITIALIZATION.
      CITY_FR = 'NEW YORK'.
      CITY_TO = 'FRANKFURT'.
      CARRID-SIGN   = 'I'.
      CARRID-OPTION = 'EQ'.
      CARRID-LOW    = 'AA'.
      APPEND CARRID.
      DATUM+6(2) = '01'.
    In the PBO of the selection screen, the
    AT SELECTION-SCREEN OUTPUT
    event is triggered. This event block allows you to modify the selection screen directly before it is displayed.
    PARAMETERS: TEST1(10) MODIF ID SC1,
                TEST2(10) MODIF ID SC2,
                TEST3(10) MODIF ID SC1,
                TEST4(10) MODIF ID SC2.
    AT SELECTION-SCREEN OUTPUT.
    LOOP AT SCREEN.
      IF SCREEN-GROUP1 = 'SC1'.
        SCREEN-INTENSIFIED = '1'.
        MODIFY SCREEN.
        CONTINUE.
      ENDIF.
      IF SCREEN-GROUP1 = 'SC2'.
        SCREEN-INTENSIFIED = '0'.
        MODIFY SCREEN.
      ENDIF.
    ENDLOOP.
    The parameters TEST1 and TEST3 are assigned to the modification group SC1, while TEST2 and TEST4 are assigned to group SC2. During the AT SELECTION-SCREEN OUTPUT event, the INTENSIFIED field of internal table SCREEN is set to 1 or 0, depending on the contents of the GROUP1 field. On the selection screen, the lines for TEST1 and TEST3 are highlighted while those for TEST2 and TEST4 are not.
    In the PAI event of the selection screen, the event
    AT SELECTION-SCREEN ON <field>
    is triggered when the contents of each individual input field are passed from the selection screen to the ABAP program. The input field <field> can be checked in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
    The program below is connected to the logical database F1S:
    REPORT EVENT_DEMO.
    NODES SPFLI.
    AT SELECTION-SCREEN ON CITY_FR.
      IF CARRID-LOW EQ 'AA' AND CITY_FR NE 'NEW YORK'.
        MESSAGE E010(HB).
      ENDIF.
    If the user enters "AA" in the first input field, but not NEW YORK for the departure city, an error message is displayed in the status line until the user enters the correct city.
    The AT SELECTION-SCREEN event is triggered in the PAI of the selection screen once the ABAP runtime environment has passed all of the input data from the selection screen to the ABAP program. If an error message occurs in this processing block, the selection screen is redisplayed with all of its fields ready for input. This allows you to check input values for consistency.
    The program below is connected to the logical database F1S:
    REPORT EVENT_DEMO.
    NODES SPFLI.
    AT SELECTION-SCREEN.
      IF CARRID-LOW IS INITIAL
        OR CITY_FR IS INITIAL
        OR CITY_TO IS INITIAL.
        MESSAGE E000(HB).
      ENDIF.
    If the user does not enter values in all of the fields on the selection screen, an error message appears in the status line. This makes all of the input fields mandatory, even though they are not defined as such in the logical database.
    Reward points, if the issue is resolved.
    Regards,
    Raman
    Message was edited by:
            Raman Vinocha

Maybe you are looking for

  • Public Folders calendars updates and refreshing issues

    Hi, We have calendars we use under the Public Folders, but for some users it does not want to refresh right away, so user A inserts an entry in one of the Calendars, they do not see the entry they just saved inside the calendar at all. They try to ad

  • CASH FLOW REPORT FROM FUNDS MANAGEMENT

    Hi All   I am in the mid of BW implementation for FI and FM reports. As part of this i have to create CASH FLOW report.. Currently the user using a SAP report from , Funds Management, FMEM which points to the structure IFMEISB , Cash Budget Managemen

  • User Exit / BAdI to validate Overall Limit and Expected Value

    Hi SAP Gurus, I have a requirement that needs to check if Overall Limit exceeds the Expected Value (This is in tcode ME21N). Is there any user-exit or badi I can use? Thanks, Eo

  • Flash cs3 or 4 for linux?

    i know this subject has come up 80 times before, however recent news makes me wonder how likely it is that adobe will soon release flash for Linux, news bit 1:adobe donated code to the Mozilla foundation 2:with the recent newcomer silverlight not sup

  • Should I deinterlace video for a powerPoint presentation

    Hello: So while we are getting the bugs out of my agony render issue I have another question. I have to make Windows Media Files from FCP/Quicktime movies for insertion into PowerPoint. Should I deinterlace the Windows Media Files for playback in Pow