Error during matching record - Urgent

Hi All:
with below sample data
============================
GKEY             EQ_NBR             PERFORMED            TSERV_ID
=================================================================
43593981     ECMU1715182     23-Jun-2008 2:04:56 PM     EXM
43593983     ECMU1715182     23-Jun-2008 2:13:53 PM     YARD SHIFT
43593984     ECMU1715182     23-Jun-2008 3:26:33 PM     YARD SHIFT
43593985     FCIU8043523     23-Jun-2008 3:47:15 PM     YARD SHIFT
43593987     FCIU8043523     23-Jun-2008 3:50:15 PM     EXM
43593989     FCIU8043523     23-Jun-2008 3:52:26 PM     YARD SHIFT
I want to display those records having YARD SHIFT after EXM
If there are more than one YARD SHIFT records THEN the very first YARD SHIFT after EXM
should be display where se.performed BETWEEN trunc(sysdate-120/1440,'mi')
                    AND trunc(sysdate,'mi')
I wrote following query:
select
gkey, se.eq_nbr, se.performed, se.tserv_id
from service_events se
where se.performed BETWEEN trunc(sysdate-120/1440,'mi')
                    AND trunc(sysdate,'mi')
  and se.tserv_id in ('YARD SHIFT')
  and exists (select 1 from service_events se1
                  where se1.tserv_id in ('EXM')
                    and se1.equse_gkey = se.equse_gkey
                    and se.performed > se1.performed
  and se.eq_nbr = 'ECMU1715182'
which display following result
GKEY             EQ_NBR             PERFORMED            TSERV_ID
=================================================================
43593983     ECMU1715182     23-Jun-2008 2:13:53 PM     YARD SHIFT
43593984     ECMU1715182     23-Jun-2008 3:26:33 PM     YARD SHIFT
This is wrong, I need following record to be display
43593983     ECMU1715182     23-Jun-2008 2:13:53 PM     YARD SHIFTNo record should be display if performed does not exist between trunc(sysdate-120/1440,'mi')
AND trunc(sysdate,'mi')
Thanks
Hassan

Boneist will be well aware that you have more than 5
records. The "SELECT ... FROM DUAL UNION ...."
'section' of her example is used to create a
representative set of sample data with which she can
work (i.e. the same as the sample data that you
supplied). It is similar to creating a table
and inserting rows, but it's quicker, easier, cleaner
and cooler.Looks like I'll need to add a "-- start of test data setup" at the beginning to make it even clearer!
P.S. One little thing, PLEASE try to avoud use of the
word "urgent" in your posts, it is generally regarded
as being a bit rude :) (you may have noticed
Boneist's alteration of the title.
CheersI was going for subtly sarcastic... did it work?! *{;-)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Similar Messages

  • A/R Invoice Draft failed with error - "no matching records met ......."

    Hi Guys,
    For the past one week I have been struggling to import draft A/R invoices into SAP Business One 9.0 PL 07. The database to which i'm doing this import continually returns the error "no matching records met ........." during simulation and also import stage.
    Interestingly, I noticed that import picks draft invoices with only one row detail leaving out the ones with more than one row details. I desperately need a solution to this issue as my client is scheduled to go live coming Monday.
    A sample of the structure of the data is below for your review and advice:
    ODRF
    DocEntry
    DocNum
    DocType
    DocDate
    DocDueDate
    CardCode
    CardName
    DocCurrency
    DocObjectCode
    DocEntry
    DocNum
    DocType
    DocDate
    DocDueDate
    CardCode
    CardName
    DocCur
    ObjType
    1
    1
    dDocument_Items
    20140122
    20140122
    GH-XX-001
    Customer A
    GHS
    13
    2
    2
    dDocument_Items
    20140122
    20140122
    GH-XX-002
    Customer B
    GHS
    13
    3
    3
    dDocument_Items
    20140122
    20140122
    GH-XX-003
    Customer C
    GHS
    13
    DRF1:
    ParentKey
    LineNum
    ItemCode
    Quantity
    Price
    WarehouseCode
    VatGroup
    DocNum
    LineNum
    ItemCode
    Quantity
    Price
    WhsCode
    VatGroup
    1
    0
    AB-0003
    2
    34.7018
    01
    VP
    1
    1
    LC-0002
    1
    27.0245
    01
    VP
    1
    2
    TW-0002
    1
    26.8469
    01
    VP
    1
    3
    DG-0002
    5
    28.161
    01
    VP
    1
    4
    FLI-075
    25
    7.83
    01
    VP
    2
    0
    AB-0003
    27
    31.5478
    01
    VP
    2
    1
    DG-0002
    8
    25.6
    01
    VP
    2
    2
    TW-0002
    5
    23.9652
    01
    VP
    2
    3
    KW-0002
    8
    27.7913
    01
    VP
    2
    4
    LC-0002
    10
    24.1249
    01
    VP
    2
    5
    FLI-075
    35
    7.8261
    01
    VP
    2
    6
    FLI-075
    2
    7.8261
    01
    VP
    3
    0
    AB-0003
    6
    31.5478
    01
    VP
    3
    1
    DG-0002
    40
    25.6
    01
    VP
    3
    2
    LC-0002
    20
    24.1249
    01
    VP
    3
    3
    KW-0002
    15
    27.7913
    01
    VP
    3
    4
    FLI-075
    5
    7.83
    01
    VP
    Please advice on how i can work at transferring this data into SAP Business One. Thanks for your help in advance.
    Regards
    John

    Hi,
    You may check this SAP note for service type invoice. Follow instruction and apply for above conditions.
    1135341 - How to import service invoices for foreign customers
    Thanks & Regards,
    Nagarajan

  • Payment Wizard error: 'No matching records found  'Bank Codes' (ODSC) (ODBC -2028)'

    Hi Experts,
    I am running a Payment Wizard for a Bank Transfer for a certain vendor, however I get the error "No matching records found  'Bank Codes' (ODSC) (ODBC -2028)".
    I already checked my Bank settings and payment method settings but I still get the error.
    I checked SAP Note 1980507 but the scenario should be without bank details in the BP payment terms tab. But in my case, its defined yet I get the same error as reported.
    Any help would be appreciated.
    Thanks,
    Don

    Hi,
    Please check whether following setup done for payment wizard.
    725786
    - Definitions necessary for the payment wizard
    Thanks & Regards,
    Nagarajan

  • Error: No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'

    Hi all
    While adding outgoing excise invoice from Delivery the system gives the foll error:
    No matching records found 'G/L Accounts' (OACT) ( ODBC-2028)'
    Please note that
    1. I have already mapped cenvat accounts in outgoing/incoming in general tab of G/L account determination.
    2. I have two fiscal years 09-10 and 10-11. Both are unlock. Im working on 09-10 fiscal year and cenvat accounts are mapped for both fiscal years.
    3. For rounding i have also mapped rounding account.
    4. I am easily able to create incoming excise invoice.
    5. I am able to  add some of outgoing excise invoice but in the accounting tab there is no transaction.
    6. My excise tax codes are BED+VAT in which BED is of 0 rate and VAT is of 12.5% or 4% rate, the reason for taking BED as 0 is the comapany is trading and we have to pass excise to customer by taking item as batch.
    This is whole scenario.
    Plz solve my problem considering all these points. Waiting.
    Thanks
    Edited by: Malhotra Saurabh on May 11, 2010 7:13 AM

    I have managed item by groups and warehouse is excisable as i have done GRPO in that warehouse.
    I have already given cenvat accounts in Warehouse too.
    Edited by: Malhotra Saurabh on May 11, 2010 7:55 AM
    Edited by: Malhotra Saurabh on May 11, 2010 7:57 AM

  • Drag&Relate with error 'no matching records found'  when adding UDF columns

    in SBO 2007A I added a large amount of UDF fields to marketing documents title section. Then I tried Drag&Relate, as result i got only the error 'no matching record found ....'.
    I removed some of the UDF Fields and Drag&Relate works correct. It seems to be a length problem of the table row. But I have no information about such a restriction and the error message dont say anything about length problem.
    Does anybody know about this behavior and the maximum length of table rows, or is there any other solution to fix this problem?

    Hello,
    there are approximatly 170 fields and most of them are alphanumeric (internaly nvarchar(max)) - when i remove 2 fields it works.
    Best regards
    Klaus
    Edited by: Klaus Steinkellner on Jan 13, 2011 4:27 PM

  • Print sequence error - No matching records found

    Hi experts,
    We are facing an issue when choosing to print a sequence of two documents. These two documents can be printed individually without any error, but when we try to print the sequence, we are getting the error "No matching records found".
    This issue occurs in both SAP 9.0 (pl5) in Inventory Movement document and in SAP 8.82 (pl5) in all purchase and sales documents.
    Has anyone faced the same issue?
    Thank you in advance.
    Kind Regards,
    Vassilis Korolis

    Hi,
    It is an application error in 8.82 & 9.0 versions.
    Please check SAP note:
    1981583 - An error appears when you use Print Sequences for a Stock
    Transfer document.
    Thanks & Regards,
    Nagarajan

  • Incoming Payments Error No matching records found G/L Accounts.

    I have a client that uses foreign currency. It appears that when I enter an incoming payment with VEF currency get this error. This only happens to some customers.
    When I make a partial payment and Do Not change the Total Payment on the line I get the error
    No matching records found 'G/L Accounts' (OACT)
    For example I have an invoice for VEF1000.00. I do not change the Total Payment. I go to the Payment Means and enter a Bank Transfer for VEF600.00. When I try to add I get the error.
    However, if I first change the Total Payment amount to VEF600.00, and then enter the payment means Bank Transfer for VEF600.00 I can add the incoming payment without the error.
    Any suggestions

    Hi,
    Can you please confirm whether the issue is happening even after the Rounding Account is defined in the G\L Determination window under the Administration > Setup > Financials?
    Kind Regards,
    Jitin
    SAP Business One Forum Team

  • QM-Calibration Procedure -Error during Result Recording

    Dear Sir,
    During mapping of Calibration Process in SAP,I am getting error ( status check error ) for Result recording of Inspection lot (QM-Calibration).I have follow all the required steps,I am not getting reason of error,Please Advice.
    Thanks

    Dear
    Maintain in sampling procedure radio button palnt maintainance. then check if ur using inspection plan with inspection point.
    else make sampling management radio button on..
    regards
    SANIL

  • Error during result recording in QE71

    Hi Gurus,
    I am using inspection point (copy of 150) in my inpection plan. When i am trying to save my result recording in QE71 system giving below error message.
      Insp. Lot       Oper     Charac. no  Sample                    Message text                                        MsgType Message ID     Msg.No.
    80000000196 0010         10                2     You must enter a text for the characteristic result           E          QE             462       C60
    Though i have maintained the resuts.
    Please help to resolve this issue.
    Regards
    Sandip

    You need check the inspection characteristic's control indicator.
    Transaction QP03 (display inspection plan)
    If you set 'Docu. required' in control indicator of inspection characteristic, additional text must always be entered to document the inspection results during results recording for this characteristic.
    Try to change the indicator to 'No documentation' then there will be no more that message in transaction QE71.
    Regards
    Luke

  • Error during condition record maintenance EXEM

    Hello Guys,
    I am trying to maintain condition records for the condition type EXEM. I am getting an error during this process.
    When I get into VV11 and enter the condition type EXEM and hit enter, I get the list of key combinations. For any key combination I select and press enter, I get an error and the following log details. Please find the log details below. Any inputs to fix this error during condition maintenace would be appreciable. The config is maintained perfectly and does not indicate any error.
    Thanks
    Venkat
    Status      Note
    Information     882 Coding generator started                                                                               
    Information     851 Report RV13B998 saved                                                                               
    Information     883 Text pool for report RV13B998 written in language E                                                              
    Error           806 Report RV13B998 has a syntax error                                                                               
    Information     722 Text pool for program RV13B000 does not exist in language 0                                                      
    Information     883 Text pool for report RV13B998 written in language 0                                                              
    Information     883 Text pool for report RV13B998 written in language 1                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 2                                                      
    Information     883 Text pool for report RV13B998 written in language 2                                                              
    Information     883 Text pool for report RV13B998 written in language 3                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 4                                                      
    Information     883 Text pool for report RV13B998 written in language 4                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 5                                                      
    Information     883 Text pool for report RV13B998 written in language 5                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 6                                                      
    Information     883 Text pool for report RV13B998 written in language 6                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 7                                                      
    Information     883 Text pool for report RV13B998 written in language 7                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 8                                                      
    Information     883 Text pool for report RV13B998 written in language 8                                                              
    Information     722 Text pool for program RV13B000 does not exist in language 9                                                      
    Information     883 Text pool for report RV13B998 written in language 9                                                              
    Information     722 Text pool for program RV13B000 does not exist in language A                                                      
    Information     883 Text pool for report RV13B998 written in language A                                                              
    Information     722 Text pool for program RV13B000 does not exist in language B                                                      
    Information     883 Text pool for report RV13B998 written in language B                                                              
    Information     883 Text pool for report RV13B998 written in language C                                                              
    Information     883 Text pool for report RV13B998 written in language D                                                              
    Information     883 Text pool for report RV13B998 written in language E                                                              
    Information     883 Text pool for report RV13B998 written in language F                                                              
    Information     722 Text pool for program RV13B000 does not exist in language G                                                      
    Information     883 Text pool for report RV13B998 written in language G                                                              
    Information     883 Text pool for report RV13B998 written in language H                                                              
    Information     722 Text pool for program RV13B000 does not exist in language I                                                      
    Information     883 Text pool for report RV13B998 written in language I                                                              
    Information     883 Text pool for report RV13B998 written in language J                                                              
    Information     722 Text pool for program RV13B000 does not exist in language K                                                      
    Information     883 Text pool for report RV13B998 written in language K                                                              
    Information     883 Text pool for report RV13B998 written in language L                                                              
    Information     883 Text pool for report RV13B998 written in language M                                                              
    Information     883 Text pool for report RV13B998 written in language N                                                              
    Information     883 Text pool for report RV13B998 written in language O                                                              
    Information     883 Text pool for report RV13B998 written in language P                                                              
    Information     883 Text pool for report RV13B998 written in language Q                                                              
    Information     883 Text pool for report RV13B998 written in language R                                                              
    Information     883 Text pool for report RV13B998 written in language S                                                              
    Information     883 Text pool for report RV13B998 written in language T                                                              
    Information     722 Text pool for program RV13B000 does not exist in language U                                                      
    Information     883 Text pool for report RV13B998 written in language U                                                              
    Information     883 Text pool for report RV13B998 written in language V                                                              
    Information     722 Text pool for program RV13B000 does not exist in language W                                                      
    Information     883 Text pool for report RV13B998 written in language W                                                              
    Information     722 Text pool for program RV13B000 does not exist in language X                                                      
    Information     883 Text pool for report RV13B998 written in language X                                                              
    Information     722 Text pool for program RV13B000 does not exist in language Y                                                      
    Information     883 Text pool for report RV13B998 written in language Y                                                              
    Information     722 Text pool for program RV13B000 does not exist in language a                                                      
    Information     883 Text pool for report RV13B998 written in language a                                                              
    Information     722 Text pool for program RV13B000 does not exist in language b                                                      
    Information     883 Text pool for report RV13B998 written in language b                                                              
    Information     722 Text pool for program RV13B000 does not exist in language c                                                      
    Information     883 Text pool for report RV13B998 written in language c                                                              
    Information     722 Text pool for program RV13B000 does not exist in language d                                                      
    Information     883 Text pool for report RV13B998 written in language d                                                              
    Information     722 Text pool for program RV13B000 does not exist in language i                                                      
    Information     883 Text pool for report RV13B998 written in language i                                                              
    Status      Note
    Information     884 Screen generator started                                                                               
    Information     860 Screen SAPMV13B 1998 saved                                                                               
    Information     858 Screen SAPMV13B 1998 generated                                                                               
    Status      Note
    Information     890 Text field for field INSMK not found                                                                             
    Information     860 Screen SAPMV13B 2998 saved                                                                               
    Information     858 Screen SAPMV13B 2998 generated

    What part of the code would you like?
    It says there is an error in Report RV13B998. This is part of standard.
    Thanks
    Venkat.

  • Error: No matching record found 'G/L Account (OACT)(ODBC -2028)

    This is the error that I got while trying to update the Sales Order with my add-ons.
    All the required details were filled in the columns including the delivery date.
    PLEASE REPLY SOON.
    Thank You

    Hi Sudatta,
    It seems to be a error relating to Rounding Account as per the note I read.
    Check link <a href="https://service.sap.com/sap/support/notes/874131">https://service.sap.com/sap/support/notes/874131</a>
    In case you are not able to login to read the Note.
    Symptom
    When attempting to add a marketing document with rounding, the following error message appears: "No matching record found 'G/L Accounts' [ODBC 2028]"
    Other terms
    Rounding, G/L account, error message, marketing documents, matching record, account, missing, SAP Business One
    Reason and Prerequisites
    There is no rounding account defined.
    Solution
    Define a rounding account under:
    'Administration' > 'System Initialization' ->'G/L Account Determination' -> 'General' tab page under "RoundingAccount" field.
    Regards
    Suda

  • -2028 Error: No Matching Records Found

    Good Day
    Experts:
    I am using the oPurchaseOrder object to build a PurchaseOrder from an approved Material Requisition. I am getting an error: -2028 No Matching Records Found.  This error number is not in the list.  Does anyone have experience with what it means?
    Thanks,
    EJD

    Hey There
    Here is the code.  I thought I saw somewhere that there are requirements for what needs to be passed to the object.  However, I cannot recall where that is at...Forum, Notes here or in the Help files.  What again is required to be passed to the oPurchaseOrder object? I seem to think CardCode, Item and Date maybe. 
    Dim vPurchaseOrder As SAPbobsCOM.Documents
    vPurchaseOrder = g_B1Connection.Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseOrders)
    vPurchaseOrder.DocObjectCode = SAPbobsCOM.BoObjectTypes.oPurchaseOrders
    vPurchaseOrder.Lines.ItemCode = Item
    vPurchaseOrder.Lines.ItemDescription = Description
    vPurchaseOrder.Lines.Quantity = Qty
    vPurchaseOrder.Lines.Price = EaCost 
    vPurchaseOrder.Lines.WarehouseCode = "STOCK"                     
    vPurchaseOrder.Lines.ShipDate = ReqDate
    vPurchaseOrder.CardCode = Supplier
    vPurchaseOrder.SalesPersonCode = SalesPersonCode
    vPurchaseOrder.DocumentsOwner = OwnerCode
    retVal = vPurchaseOrder.Add
    Thanks,
    EJD

  • Frequent run-time errors during audio recording

    While recording audio voice-over for a slide, I'll often do
    several "takes" before finding the best one. All too frequently,
    when I click OK, I encounter a run-time error that terminates the
    Captivate 2 software. I've done the default installation on two
    machines and encountered the same problem on both. Are other users
    running into this problem as well? Any fixes / workarounds to
    suggest? Is this problem fixed with Captivate 3?
    Below is the message that appears.
    Title Bar: Microsoft Visual C++ Runtime Library
    Messaqe Text: Program: C:\Program Files\Adobe\Adobe Captivate
    2\AdobeCaptivate.exe
    This application has requested the Runtime to terminate it in
    an unusual way. Please contact the application's support team for
    more information.
    Any input would be greatly appreciated. Thanks!

    Hi folks,
    The first thing I would do is to remove the .dat file that
    can be found via the following path:
    C:\Document and Settings\Username\Application
    Data\Adobe\Adobe Captivate\
    Rename the captivate_v20.dat to something like
    Old_captivate_v20.dat and then start up Adobe Captivate.
    If this doesn't address the problem then report this as a bug
    using the
    Adobe
    Captivate Feature Request/Bug Report Form
    Let us know how you get on.
    Best - Mark

  • Frm-92101 error during next record

    hi ........
    when i execute query and move to second record then it gives frm-92101 error.
    please give the solution ..
    in log file following information
    07/02/04 16:51:48 forms90web: Forms session <17> aborted: unable to communicate with runtime process.
    07/02/04 16:51:48 forms90web: Forms session <17> exception stack trace:
    java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:168)
         at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
         at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
         at java.io.DataInputStream.readLine(DataInputStream.java:562)
         at oracle.forms.net.HTTPHeaderTool.parseResponseHeader(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.forwardResponseFromRunform(Unknown Source)
         at oracle.forms.servlet.ListenerServlet.doPost(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    plz reply

    Try recompiling all the PL/SQL in the form by clicking on
    Program, Compile PL/SQL, All.

  • ECATT RAISE EXCEPTION error during multiple record processing

    I wish to load records to a table via an in-house-written ABAP program. This program consists of a main screen and multiple sub-screens. I am submitting an Excel spreadsheet as input. The eCATT configuration successfully runs the TCD script for alternate records. For every other record that is processed, a RAISE EXCEPTION error occurs. If an even number of records is submitted, the same result occurs upon multiple re-submissions. If an odd number of records is resubmitted, the RAISE EXCEPTION error occurs on opposite records from the previous submission. For example,
    Submission #1:                           Re-submit #1:
    1. success                                  1. success 
    2. RAISE EXCEPTION                  2. RAISE EXCEPTION
    3. success                                  3. success
    4. RAISE EXCEPTION                  4. RAISE EXCEPTION
    Submission #2:                           Re-submit #2:
    1. success                                  1. RAISE EXCEPTION
    2. RAISE EXCEPTION                  2. success
    3. success                                  3. RAISE EXCEPTION
    Any suggestions to resolve this would be much appreciated.

    Hi ,
    i think the recording of your script is on TCD.
    just double click the recording you have made and find a field name called "DATA_INCOMPLETE" parameterised that "X".Now execute and see,it should work fine..
    Regards,
    Venky

Maybe you are looking for