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)
...

Similar Messages

  • ABAP Dump when selecting Calendar Field for selection in Working Time reports

    Hi Team,
    Out client gets a weird issue, when he selects date from selection he gets dump, this is happening only in his system, If he tries from his same user id from different machine, he is not getting the error.
    Dump details below
    What happened?
        The current application program detected a situation which really
        should not occur. Therefore, a termination with a short dump was
        triggered on purpose by the key word MESSAGE (type X).
    Thanks ~ Priya

    Hi Krishnan,
    this issue is most likely related to some missing\unregistered components in SAPGUI folder. There are a few ways to solve this kind of errors:
    1. In order to check it, ask your client to go to 'C:\Program Files (x86)\SAP\SapSetup\Errors\' path and open an .xml file, which is the error report file that contains error log created during SAPGUI client installation. The erroneous modules can be registered by using regsvr32 command via command line. (Make sure you have Administrator rights while doing this.)
    2. If previous step did not help, run SAP Logon, goto Options->System Information->'Check SAP GUI Installation' and run the report.It will open an xml file with the errors report.
    3. If none of steps helped, then reinstall SAPGUI client. You need to run installation under Administrator user rights.
    BR

  • 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

  • When selective deleting , repots are getting lock .

    Hi Experts,
    When selective deleting , repots are getting lock  .Could you please suggest how could element this locking problem . This is daily loadings, daily last 14 days data deleted . Is there any way to reduce the locking time .
    Regards,
    Prasad.

    Hi Prasad,
    lock is there because of database situation. Only one operation (delete / read) can be done on database level in one moment on the same data. Therefore the lock is correct...
    When deleting data from the cube - drop the indexex using the Delete Indexes (Now) button available in the performance tab of the cube - then your deletion will be faster.
    Increase performance when deleting data from Infocube
    Selective Deletion
    http://help.sap.com/saphelp_nw70/helpdata/EN/4e/b71038cba6a169e10000009b38f8cf/frameset.htm
    Regards
    Andreas

  • How do I reset my Apple ID email that is already locked in when it asks me for password when I turn on iPod touch?

    I recently changed cable providers, so my email changed too.  I was able to change my iMac to a new email and reset the password, but I am not able to use that email with my iPod touch.  It still has my old email locked in when it asks me for my password.  I don't remember the pasword because I tried to modify it when I did my iMac, and can't remember which password and capital letters I used.  I am not able to back up my iCloud and am afraid to finally upgrade the software until I have this problem fixed.  My secret question answersare wrong, and can't use the old email to reset because I have no access to that email account anymore.  Can anyone help?  If not I got to pay $19 to Apple support to fix it.  Thanks.

    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • How to display the selection screen fields for selected checkboxes

    Hi all,
             I have 7 checkboxes, for each check box we have some seletion screen fields.if i select first check box,i want to display first slection screen fields only.
    and if we select more than one check box how to display the selection screen fields for selected check boxes,please help me this
    Thanks
    sriman.

    hi,
    Try this code
    report z_13317_sdn2.
    tables : mara, marc, dd03l.
    parameters : p_chk1 as checkbox user-command ABC,
                 p_chk2 as checkbox user-command PQR,
                 p_chk3 as checkbox user-command XYZ.
    select-options : s_matnr for mara-matnr modif id A,
                     s_ersda for mara-ersda modif id A,
                     s_werks for marc-werks modif id B,
                     s_lvorm for marc-lvorm modif id B,
                     s_tab for dd03l-tabname modif id C.
    data: v_chk1,
          v_chk2,
          v_chk3.
    at selection-screen output.
      loop at screen.
        if screen-group1 = 'A' or
           screen-group1 = 'B' or
           screen-group1 = 'C'.
            screen-input = 0.
           modify screen.
        endif.
      endloop.
      loop at screen.
        if v_chk1 = 'X'.
          if screen-group1 = 'A'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk2 = 'X'.
          if screen-group1 = 'B'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
        if v_chk3 = 'X'.
          if screen-group1 = 'C'.
            screen-input = 1.
            modify screen.
          endif.
        endif.
      endloop.
    at selection-screen.
      if sy-ucomm = 'ABC'.
        if v_chk1 = ' '.
          v_chk1 = 'X'.
        else.
          v_chk1 = ' '.
        endif.
      endif.
      if sy-ucomm = 'PQR'.
        if v_chk2 = ' '.
          v_chk2 = 'X'.
        else.
          v_chk2 = ' '.
        endif.
      endif.
      if sy-ucomm = 'XYZ'.
        if v_chk3 = ' '.
          v_chk3 = 'X'.
        else.
          v_chk3 = ' '.
        endif.
      endif.
    Regards,
    Sailaja.

  • How to select this field  for the extractor?

    Hi Gurus, I hope you are fine!
    I need to extract the field     PRED_OPPT_GUID   form the Data source  0CRM_SRV_CONTRACT_H inside CRM system.
    If I go inside CRM to:   
    Transaction SBIW -> Settings for BW Adapter -> Maintain DataSource and Enhance BW Adapter Metadata ->
    tipe "0CRM_SRV_CONTRACT_H" and press change buttom -> Mapping TAB
    there I can see the field I need "PRED_OPPT_GUID"  but this is not selected at the "BW Selection" Column , I guess this is the cause why I am not receiving this field from the extractor, Am I right?
    If yes, How can I select this field  for the "BW Selection" Column? (the system does not allow me to click it directly)
    if not, what is the proper procedure if I need to extract this field ? because this is the key field  for  the DSO 
    " Service Orders: Header Data "
    Thanks

    This is what i can see inside the  ROOSFIELD table:
    Filtered by data source = 0CRM_SRV_PROCESS_H
    Comparison with another field:
    BILL_TO_PARTY  (working properly)    columns:        SELECTION = X              NOTEXREL= Y
    PRED_OPPT_GUID (Not working)           columns:        SELECTION = (Empty)    NOTEXREL= Y
    I think that if I try to change the Selection field to X it will cause inconsistencies with the SMOXRELP table am I right ?
    I tried to change using the system and not directly into the tables, but thaere was an inconsitecie between these 2 tables.
    Why is no able this field taking into account that this is the KEY FIELD inside the standard DSO? it has no sense to me.
    What do you think?
    regards.

  • How and when the database release a row lock?

    Dear experts,
    We are using the following statement to obtain a row lock in a table in the database(ORACLE of course),
    SELECT * FROM {TABLE_NAME} WHERE ID = 1 for update
    and if we succeed grabbing the row lock we will continue to issue a update statement every 30 seconds to preserve the lock as far as possible.
    here is the update statement to preserve the lock,
    UPDATE {TABLE_NAME} SET time = ? WHERE ID = 1.
    As you see more longer we keep holding the row lock , more update statements are submitted in the pending transaction.
    In normal case our application can grab the exclusive row lock and works for a long time,however sometimes a connection reset exception is thrown
    and our application will close the connection(I assume the pending transaction will be rolled back by the database) and exit the JVM.
    Since other applications will keep trying to grab the same row lock to become the master role,
    we expect one of them can succeed but they are all failed because the database has not released the row lock as expected.
    Can someone explain more details about how and when the row lock can get released in our use case?
    Thanks,
    SuoNayi
    Edited by: SuoNayi on 2013-5-30 上午8:12

    Hm. Is this part of an XA transaction by any chance? I know that Oracle maintains separate bookkeeping for such transactions which can cause rows to stay 'locked' even when the regular DBA views will indicate there is no user currently locking the record at all. I have no idea about the actual details and what you need to do to clean up such a situation, that is something a DBA should know and do.
    If not... well this is more of a question for people who know the DBMS, which makes it a target for the Oracle DBMS forums. Java developers don't tend to have DBA-level knowledge of the database, you should ask the question where you have more chance of people with expertise answering stuff:
    General Database Discussions

  • Can't Expand Database Fields for Query

    I am having a problem creating a Crystal Report based on a BEx query. I use the SAP menu to Create New Report from Query using the MDX driver but I am not able to expand the Database Fields so that I can select them and add them to the report.  I'm able to create a report with a similiar BEx query with no problems. Any suggestions?

    If your purpose is to simply point to a different database (but otherwise want the exact same report), don't bother going through the database expert.  When you run the report, it should ask for the database logon credentials.  Just change the database as well as the user id and password.  In Crystal Enterprise (or BOE), this change can be made permanent through the CMC.
    HTH,
    Carl

  • 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.

  • Lock in parameter/select-options field

    Hi,
    How can we block another user from executing report with the same value of parameter/select-option field entered on screen by user?
    for example:
    Report ZZZ, parameter field sales org = A, run by user 1.
    Another user, say B, attempts to run the report by entering the same sales org = A. In these second execution of the report, I need to display error message saying that user A is running the report then report cant be run by user B.
    Do i need to put lock object for these?
    thanks alots
    Alia

    No, there is no mechanism to restrict in that way.
      but you can create a Z-table with one column (vkorg)
    now make a little change in the report..
    1.check if any entry of vkorg is there in that z-table.
    if not proceed, else error msg.
    2.craete an entry of that vkog in that z-table.
    3.Normal processing of this report.
    4.at end delete that entry of vkorg from z-table.
    thus you can achieve mutual exclusion.
    cheers.
    Message was edited by: Anid

  • Photoshop 7 locks up when selecting the color picker.

    My wonderful Photoshop 7 has worked perfectly for years, but now, when selecting the colour picker, the whole site locks up, requiring ending the task and losing the work in hand.

    What operating system are you using?
    I'd start by resetting the photoshop 7 preferences:
    How to delete/reset Photoshop preferences

  • "SELECT .. FOR UPDATE" lock event

    Hi All,
    The application will send "SELECT .. FOR UPDATE" statement when end-user click one module on screen.
    Now the system have many end-user need to use this module more than before and elapsed time is 15 seconds per session if have 10 sessions click this module that mean the maximum locked time is 150 seconds (15*10) and source code cannot change.
    My question is which oracle parameter can control about lock timeout in this case or not?
    I tried to check all parameter about lock and timeout of oracle parameter that cannot to solve it but I may missing something.
    Thansks
    Hiko

    taohiko wrote:
    Hi All,
    The application will send "SELECT .. FOR UPDATE" statement when end-user click one module on screen.
    Now the system have many end-user need to use this module more than before and elapsed time is 15 seconds per session if have 10 sessions click this module that mean the maximum locked time is 150 seconds (15*10) and source code cannot change.
    My question is which oracle parameter can control about lock timeout in this case or not?
    I tried to check all parameter about lock and timeout of oracle parameter that cannot to solve it but I may missing something.
    Thansks
    Hikohttp://download.oracle.com/docs/cd/E11882_01/appdev.112/e17126/static.htm#LNPLS603
    By default, the SELECT FOR UPDATE statement waits until the requested row lock is acquired. To change this behavior, use the NOWAIT, WAIT, or SKIP LOCKED clause of the SELECT FOR UPDATE statement.
    If you are adamant as you say that the application cannot be changed (almost never a truthful statement) ... then you are out of luck.

  • Can't see my iTunes library when selecting background music for a slideshow

    I don't see my iTunes library when I'm selecting background music for a slideshow -- I have tried using iphoto help (seee below) and it didn't work:
    "If you don't see your iTunes library:
    Quit both iTunes and iPhoto. Relaunch iTunes first, then iPhoto.
    If you recently installed iLife software, it's a good idea to open each application in the following order: iTunes, iPhoto, iMovie, and then iDVD. Because these applications are integrated to browse and import files from each other's media libraries, this ensures that you will be viewing the most up-to-date versions of your music library, photo library, and movies folder no matter what application you're using.
    Recreate your iTunes Music Library.xml file. Quit iPhoto, iMovie, iDVD, and iTunes. Click the Finder icon in the Dock, and choose Go > Go to Folder. Type "~/Music/iTunes" or "~/Documents/iTunes" and click Go. Drag the "iTunes Music Library.xml" file to your desktop. Open iTunes and create a new playlist by choosing File > New Playlist. Quit iTunes and open iPhoto to make sure you can see your iTunes library when creating a slideshow."
    Any suggestions?
    MacBook1,1   Mac OS X (10.4.8)   using itunes 7.0.2 (15) and iphoto 6.0.5 (316)
    MacBook1,1   Mac OS X (10.4.8)   versions: itunes 7.0.2 (15) iphoto 6.0.5 (316)

    I have this problem also - tried following advice giving from original problem.
    My settings are through the what I call the Lug Nut icon - no arrows and no dimple showing on my screen.
    Is there some small thing I'm missing here - weird thing is that iDVD allows me to access my iTunes library - no problem.
    When I go to Finder it tells it can't find my Music folder??? I can see it in the sidebar .....
    Any suggestions - I don't know how to send those screen shots but what a great idea.
    Ruth

  • SELECTION SCREEN FIELD FOR MONTH AND YEAR

    Hi All.
    We are developing a 'Monthly Sales Tax(payable) Report.
    they want the report based on the date(in the selection screen it will come only month and year only.).Depends on that month and year for that select-options ,it will pick up the record.
    like if, jan 2005  to march 2006.
    then it will  pick up from 01.01 .20005 to 31.03.2006  records.
    Can any body help me to resolve this.
    Thanks in advance,
    Regards,
    Venkat

    Hi Venkat,
    Copy the following code.
    DATA :  ws_billfrom    TYPE dats,
            ws_billto      TYPE dats.
    DATA : mon TYPE fcltx.
    SELECT-OPTIONS: s_month FOR mon
                MATCHCODE OBJECT zsdhtch_sh_mnth
                OBLIGATORY. "o get values for F4
    PARAMETER :  p_year LIKE bkpf-gjahr
                 MATCHCODE OBJECT zsdhtch_sh_year
                 OBLIGATORY.
    RANGES : s_date FOR sy-datum.
    DATA : ws_fcmnr TYPE fcmnr.
    START-OF-SELECTION.
      SELECT SINGLE mnr
             INTO ws_fcmnr
             FROM t247
             WHERE ltx = s_month-low.
      CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
      CALL FUNCTION 'HR_JP_MONTH_BEGIN_END_DATE'
           EXPORTING
                iv_date             = ws_billfrom
           IMPORTING
                ev_month_begin_date = ws_billfrom
                ev_month_end_date   = ws_billto.
      s_date-low = ws_billfrom.
      s_date-high = ws_billto.
      s_date-sign = 'I'.
      s_date-option = 'BT'.
      IF NOT s_month-high IS INITIAL.
        SELECT SINGLE mnr
               INTO ws_fcmnr
               FROM t247
               WHERE ltx = s_month-high.
        CONCATENATE p_year ws_fcmnr '01' INTO ws_billfrom.
        CALL FUNCTION 'RP_LAST_DAY_OF_MONTHS'
             EXPORTING
                  day_in            = ws_billfrom
             IMPORTING
                  last_day_of_month = ws_billto.
        s_date-high = ws_billto.
      ENDIF.
      APPEND s_date.
      WRITE s_date.
    You can write your select statement here.  
      select * from dbtable where date in s_date.
    If 'HR_JP_MONTH_BEGIN_END_DATE' is nto there in your server, you can use 'RP_LAST_DAY_OF_MONTHS' in both cases.
    Regards,
    Susmitha.
    Dont forget to reward points for  useful answers

Maybe you are looking for

  • I had to uninstall firefox since it was causing so many problems with my computer. I was using the latest version 18. What is the problem?

    I have had nothing but problems since I installed the latest version of Firefox version 18. It hangs up my computer no matter what I am doing. Even if I am not using the browser. I uninstalled it three times and the problems just seemed to be getting

  • Full year Total in previous year

    I use the ago function and I want the full year amount of the previous year. Example when a have my amount for period 4 in year 2010; I want to see the full year amount for 2009 in another column. Somebody has a solution, Thanks

  • Getting Correct and Incorrect to show on my GUI

    What am i missing to allow correct and incorrect to show on my GUI. package anaquiz; import javax.swing.*; import java.awt.*; import java.awt.event.*; public class AnAQuiz extends JPanel {     private JComboBox choice;     private JLabel label;     p

  • Best way to produce video for youtube

    Hi all I am a newbie here but wondered if anyone has any tips for using PE4 to produce high quality youtube video. I am capturing HDV from a Canon HV30. (As aside if anyone has any questions about how to get the HV30 / PE4 combination to work, please

  • Comments are welcome!

    I've written a small app using AppleScript and Growl. It puts the lyrics of the current iTunes' selected or playing song in a (Growl)window. Both Growl and my app are free. My point is, if you like the app as it is great. Keep it and have fun. Howeve