EOF and BOF warning message

Hi ..
Currently im doing a AddNo where i will be inserting all contents of the recortset into the invoice, My problem , When my loop reach the eof a error/warning message appear  that cause some my code not to execute , i would like to ask is there a way to suppress this warning message
start of code -
try
While oRS.EoF = False
                vcardcode = oRS.Fields.Item("BPCode").Value
                vClearing = oRS.Fields.Item("Clearing").Value
                vPrjCode = oRS.Fields.Item("ProjCode").Value
                vAmt = 0
                While vcardcode = oRS.Fields.Item("BPCode").Value And vClearing = oRS.Fields.Item("Clearing").Value And oRS.EoF = False
                    vAmt = vAmt + oRS.Fields.Item("Sharing").Value
                    xcount = xcount + 1
                    oRS.MoveNext()
                End While
                oInvoice.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
                oInvoice.CardCode = vcardcode
                oInvoice.Comments = " Data Interface "
                oInvoice.DocDate = Today
                oInvoice.DocDueDate = Today
                oInvoice.Project = oRS.Fields.Item("ProjCode").Value
                '-- Invoice Details for Financial Income--
                oInvoice.Lines.ItemDescription = "Billing for: " & Today
                oInvoice.Lines.AccountCode = vClearing
                'oInvoice.Lines.UserFields.Fields.Item("U_ActCode") = oRS.Fields.Item("ActCode").Value
                'oInvoice.Lines.UserFields.Fields.Item("U_SActCde") = oRS.Fields.Item("SActCde").Value
                oInvoice.Lines.LineTotal = vAmt
                oInvoice.Lines.BaseLine = 1
                oInvoice.Lines.Add()
                oInvoice.Lines.SetCurrentLine(1)
                If oInvoice.Add <> 0 Then
                    MsgBox("Error " + oCompany.GetLastErrorDescription())
                Else
                    oDocNum = oCompany.GetNewObjectKey().ToString
                    cRemarks = cRemarks & IIf(Len(cRemarks) = 0, "", ",") & oDocNum
                    'SndB1Msg(oDocNum, SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes, "New GRPPO")
                    'Insert2OLOA(vDocNum, vDocDate, oDocNum, Now.ToShortDateString, vCardCode, vCardName)
                End If
            End While
Catch ex As Exception
            MsgBox(ex.Message)
        End Try
end of code
thanks
Loren

HI,
the problem is you use ors.movenext in the inner cycle and when the EOF is reached,
you chekcing the BPCode and Clearing fiels of the recordset.
Wrong:
While vcardcode = oRS.Fields.Item("BPCode").Value
And vClearing = oRS.Fields.Item("Clearing").Value And oRS.EoF = False
  ors.movenext ' here the EOF has been reached, so in the while condition will fail
end while
Correct code: Use ANDALSO operator, and move the ors.eof = false condition
to first
While oRS.EoF = False AndAlso vcardcode = oRS.Fields.Item("BPCode").Value
AndAlso vClearing = oRS.Fields.Item("Clearing").Value
.. ' AndAlso will give ors.eof = false as true, and will leave the cycle
end while
AndAlso: reading the condition from left to right, and at the first false value is exiting from the loop
Regards,
J.

Similar Messages

  • I upgraded to Mavericks.  Everything went smoothly.  But now Excel is giving all of its warnings in what I believe is Chinese.  As an example I update a file, close it, and the warning message about saving is in Chinese.  Anybody else encounter this?

    I upgraded to Mavericks.  Everything went smoothly.  But now Excel is giving all of its warnings in what I believe is Chinese.  As an example I update a file, close it, and the warning message about saving is in Chinese.  Anybody else encounter this?

    If you don't get an answer here, ask in the forums devoted to MS stuff:
    http://answers.microsoft.com/en-us/mac/forum/macexcel

  • A very new and strange warning message from my iPhone

    I am getting a very new and strange warning message on my iPhone. The phone will repeatedly - even when sitting idle - flash a message that states, "This accessory not made to work with iPhone. Would you like to turn on Airplane Mode to reduce audio interference ... you will not be able to make or receive calls?"
    This message started to flash up on my iPhone after I installed Leopard yesterday evening (11/15/07). I just updated my iTunes software today so I have iTunes 7.5 (19) and my iPhone software version is 1.1.2. Finally, I am not trying to hack my iPhone since I ain't smart enough to do so and, even if I were, I wouldn't want to have a dead phone on my hands.
    Any suggestions or thoughts? Thanks.

    Charles
    I think my first instinct would be to try a Reset of the iPhone, if that doesn't improve things then try a Restore from within iTunes BUT.....
    I would also wait awhile and see in anyone else weighs in with other suggestions first.
    Good luck
    FlatE

  • Why does everyone else seem to get 180 days and several warning messages before THEIR accounts are deleted??

    I got a text message this morning informing me that my vzw pix account had been permanently deleted due to 60 days of inactivity. So I searched online to see if there was some way to get my pictures back, since I had very little room to store them on my crap phone I deleted them once they were uploaded. I come to find out that no, there is no way to get them back and also it seems that everyone else in the whole world had 180 days and more than one text message an entire month before their account was deleted. This is ridiculous and I would have preferred that Verizon not offer any storage at all if they just delete everything you save with only one warning that you can easily forget about in a month. I also want to know why everyone else seems to get 180 days of inactivity and I get 60, and why they get multiple messages warning them when I got one.

        Hello arlahalvorsen,
    I know pictures have great value. I'm sorry to hear your pictures were deleted. As you already know once the pictures have been deleted there is no way to retrieve them. The inactive period for "Free" Multimedia and Messaging accounts has been reduced from 180- to 60-calendar days. Previously, a customer would be sent messages at day 150, 170, and 180 letting them know that their account is inactive and subject to termination at day 180 of inactivity. Now customers receive messages at day 30, 50, and 60-calendar days of inactivity. Thank you.
    Tominque B.
    Please follow us on Twitter @VZWSupport   

  • Pro Tools won't open and strange Warning message

    I have been using Pro Tools 11.3 successfully for about a month. I just did an OS X update a week or so ago. I also did a Pro Tools update about a week ago (to 11.3.1). I went to open PT and the app opened, but my top menu never came up. It was just the normal Finder menu, but with my Pro Tools interface open where I could see all the tracks, etc. Clicking to desktop and back to PT several times did nothing.
    I closed PT and did a Disk Utility "Repair Permissions". As the repair started up, the progress text gave me the warning below. I'm trying to figure out what it means. If it is a Mac thing or a Pro Tools issue. If someone can help me I would sincerely appreciate it.
    <<<<<< Warning: SUID file "System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/MacOS/ARDAg ent" has been modified and will not be repaired.>>>>>>>>>>
    The repair progress continues with this:
    <<<<<<Group differs on “Library/Printers/InstalledPrinters.plist”; should be 80; group is 0.Permissions differ on “Library/Printers/InstalledPrinters.plist”; should be -rw-rw-rw- ; they are -rw-r--r-- .Repaired “Library/Printers/InstalledPrinters.plist”User differs on “private/var/db/displaypolicyd”; should be 0; user is 244.Group differs on “private/var/db/displaypolicyd”; should be 0; group is 244.Repaired “private/var/db/displaypolicyd”>>>>>>>>>>>>
    I've never seen this message before and wonder it is part of the problem or signals what the problem is. I have downloaded a few free Pro Tools plugins. If anyone can help, I would sincerely appreciate it.
    Thank you,
    Leonard

    Thanks apostol13,
    You need to make SURE the Digidesign Core Audio Manager software, which Logic and iTunes use to "talk" to Digi hardware, is NOT running. if ti IS, turn it off.
    Then PT will start up.
    Cheers

  • I have an iPhone 4 which has never been updated. I have plugged it into my computer for the first time and a warning message has come up saying this isn't my usual computer and that everything will be deleted. What do I do?

    Can anyone help with my question above?

    If you don't want to delete everything then disconnect it and use the computer that you previously synced with.

  • Warning Messages to the log

    Hi Experts,
    I want to send a warning message to the order log , for this I used
    CALL FUNCTION 'CRM_MESSAGE_COLLECT'
            EXPORTING
              iv_caller_name = 'ORDER'
              iv_ref_object  = iv_guid
              iv_msgno       = 002
              iv_msgid       = 'ZMSG'
              iv_msgty       = 'W'
              iv_cumulate    = 'X'
            EXCEPTIONS
              not_found      = 1
              appl_log_error = 2
              OTHERS         = 3.
    MESSAGE ID 'ZMSG' TYPE 'W' NUMBER '002' .
    But the problem is order is not saving at all, I want order to be saved and the warning message to be in the log.
    Please help me out in this.
    Thanks in Advance,
    Praveen

    I am using it in the BADI_ORDER_SAVE, when I do not add this message to the log the pop up message is coming out fine.
    In this FM if I send E to iv_msgty ,its working fine too.The problem is coming only for warning messages.
    Your time in replying to this thread will be appreciated.
    Thanks in Advnace,
    Praveen

  • Warning Messages - Could not find schema information for the element applicationSettings - App.Config of a console app

    This is my app.config file
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <configSections>
            <sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
                <section name="IntelBrandFX.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
            </sectionGroup>
        </configSections>
      <appSettings>
        <add key="connStr" value="Data Source=tmvnasql1.tmvn.com;Initial Catalog=brandplan;Integrated Security=True"/>
      </appSettings>
      <applicationSettings>
        <IntelBrandFX.Properties.Settings>
          <setting name="IntelBrandFX_rollupViewerService_extract" serializeAs="String">
            <value>https://viewer.rollup.com/omdsp2008/extract.asmx</value>
          </setting>
        </IntelBrandFX.Properties.Settings>
      </applicationSettings>
    </configuration>
    And the Warning messages  are
    Message 1 Could not find schema information for the element 'applicationSettings'.
    Message 2 Could not find schema information for the element 'IntelBrandFX.Properties.Settings'.
    Message 3 Could not find schema information for the element 'setting'.
    Message 4 Could not find schema information for the attribute 'name'.
    Message 5 Could not find schema information for the attribute 'serializeAs'.
    Message 6 Could not find schema information for the element 'value'.
    Althought they do no hinder me from successfully running the project. these messages are annoying. I have seen many articles on the web but could nowhere find the exact schemas for that the above elements that I could add to the  DotNetConfig.xsd file.
    Could somebody give me an idea how to create xsds for the elements above and include in the dotnetConfig.xsd.
    I understand what needs to be done but not sure of the exact way to do it.
    Thanks,

    You don't need to modify the dotnetconfig.xsd.  All you need to do is generate an XSD for your section and let VS know where it is at.
    1) Create your XSD using any of the various tools available or by hand.
    2) Copy your XSD into the <VSDir>\Xml\Schemas directory.
    3) Create a catalog file for your schema.
    4) Restart VS and it'll load the XSD and give you Intellisense.
    Here's the MSDN documentation for it: http://msdn.microsoft.com/en-us/library/ms255821.aspx
    Michael Taylor - 8/18/09
    http://p3net.mvps.org

  • Warning messages are not displayed in confirmation

    Hi,
    We are working with SRM 5.0 classic scenario. Our issue is warning messages are not displayed whenever we press the CONFIRM or DELETE button in the confirmation, however warning messages are displayed if we press CHECK button in the confirmation.
    Please suggest the solution to display the warning messages while clicking CONFIRM or DELETE button in the confirmation.
    Thank you
    Natarajan

    Hi Muthu,
    Thanks for your reply. We raised the OSS message for this issue. As per  the standard system behaviour, warning messages will not be diplayed when " DLETETE" button pressed.
    In the DELETE mode, the system will display only the first EXPRESS
    ERROR message and not WARNING messages.
    Inorder to maintain an error message as EXPRESS, the FIELD_NAME
    (i.e ls_message-field_name) has to be assigned with the value
    EXPRESS.
    For example,
    ls_message-msgty = 'E'.
    ls_message-msgid = 'ZF'.
    ls_message-msgno = '000'.
    ls_message-field_name = 'EXPRESS'
    Kindly note that in the DELETE mode, the system does not display
    EXPRESS message with msgty = 'W'.
    Only EXPRESS message with msgty = 'E' is recognised and displayed.
    The Warning messages will be displayed only during the CHECK mode.
    Thank You
    Natarajan

  • Meaning of Warning Message

    Dear all,
    I have an INCLUDE, say the name is "Z_INCLUDE". I have included it in a program, say the program name is "Z_REPORT". When I perform syntax check in ABAP Editor, the following warning message appears for every single subroutine in Z_INCLUDE.
    Include Z_INCLUDE
    There should only be definitions in the TOP include (or nested includes within it). This means that any sort of implementations (CLASS... IMPLEMENTATION, FORM..., FUNCTION) is not meaningful.
    01. What does the warning message mean?
    02. How do I get rid of it?
    Thank you in advance.
    Regards,
    Goh Tiam Tjai

    Hi,
    Warning messages W are  processed according to the context in which they occur.
    1)Messages Without Screens:-
      In PBO context program continues processing after the MESSAGE statement otherwise, program terminates and control returns to point from which the program was called.
    2)Messages on Screens:-
        Warning messages are not possible in POH or POV processing.
    PAI processing is terminated, and control returns to the current screen. All of the screen fields for which there is a FIELD or CHAIN statement are ready for input. The user must enter a new value. The system then restarts PAI processing for the screen using the new values.
    3)Messages on Selection Screens:-
        Selection screen processing terminates, and the    selection screen is redisplayed.
    4)Messages in Function Modules and Methods:-
       Warning  messages are ignored in this case.
    Thanks,
    Pramod

  • How to handle warning message for the fields in tab merging , PERSONAS 2.0

    Hi all,
    Please advice me on the below issue.
    In a transaction VA32 , I have merged the fields from one tab to another tab using tab caching.
    when i try to change the value of  a merged fields , it throws the warnings message. So it is continuously looping from one tab to another tab.
    So i tried to use the additional editor concepts in tab caching as below.
    Looping is stopped and throws warning message in the same tab.
    All the changes are saved successfully only when the enter button is clicked once in the main screen, else the changes are not saved and my previous value remains.
    Anybody have an idea on how we can use Additional actions in Tab caching concepts.
    Thank you,
    Arun

    Hi Kranthi,
    When i try to save the fields which i merged from different tab is not saving.
    Please find the below details.
    Green highlighted fields are custom fields which is merged from different screen like header or item overview screen. This is handled in script button.
    Red highlighted fields are merged from different tab like shipping or sales using tab caching concept.
    While changing the value of the fields which is merged from different tab , and press ENTER then it throws the Warning message if occurs.
    After warning message, if i try to save using the script button for copying all the custom fields which is merged from different screen , pasted it to their respective screens and also saved.
    Its working fine.
    When i try to save it before pressing ENTER button then the respective changes had made in the merged fields from different tab are not reflected.
    How we can handle this issue?
    Thank you,
    Arun

  • To get the warning messages raised in determination

    Hi Expert,
    I am validaing the Root node using determination(on modify) and raising warning messages , and these warning messages needs to caprured onclicking save button. when clicking save button twice the warning messages goes off and displays "Save not required" I need to display the warning messages untill user modifyies the data...
    Cann anyone help me on this
    thanks in advance

    Dear Sasi,
    Are you able to display messages on application screen?
    Why do you want to double click on the SAVE button?
    Your issue is not clear.
    You can have validation class created where in you can validate certain conditions and raise messages if required criteria is not satisfied.
    May be some of the below related blogs helps you in this aspect.
    WKS: How To Avoid Message Flooding
    Message handling in BOPF
    Quick and Dirty (QAD) - 02 Implementing custom TM Conditions (Part 1 of 3)
    Thanks,
    Bharath.

  • R/3 Warning Messages are not displayed

    Hi experts!!!
    I have the following issue:
    Credit Limit Check works in ERP and displayes warning message during order creation. I need the same message to be displayed in B2B application.
    How can i achieve this???

    Hi Muthu,
    Thanks for your reply. We raised the OSS message for this issue. As per  the standard system behaviour, warning messages will not be diplayed when " DLETETE" button pressed.
    In the DELETE mode, the system will display only the first EXPRESS
    ERROR message and not WARNING messages.
    Inorder to maintain an error message as EXPRESS, the FIELD_NAME
    (i.e ls_message-field_name) has to be assigned with the value
    EXPRESS.
    For example,
    ls_message-msgty = 'E'.
    ls_message-msgid = 'ZF'.
    ls_message-msgno = '000'.
    ls_message-field_name = 'EXPRESS'
    Kindly note that in the DELETE mode, the system does not display
    EXPRESS message with msgty = 'W'.
    Only EXPRESS message with msgty = 'E' is recognised and displayed.
    The Warning messages will be displayed only during the CHECK mode.
    Thank You
    Natarajan

  • Create a Warning message

    If you want to add a new functionality in SharePoint 2013 and that is if you want to create a warning message based on selection of document in the document library and then you click on the delete button a warning message should display.
    What and how should I do it?
    What other factors should I take account to?

    Hi,
    According to your description, you might want to create a warning message when there is selection made and another warning message when the delete button is clicked. Please reply
    if I misunderstand what you really mean.
    For the deletion warning, when we want to delete an item, an OOTB dialog with warning message would be popped up:
    For the selection warning, we can create a custom warning dialog by listening the CheckboxStateChange event of the checkbox of each item using JavaScript.
    Here is a link about how to listen to the CheckboxStateChange event of the checkbox:
    http://help.dottoro.com/ljihlcqe.php
    Then we can show a Modal Dialog as what the blog below suggests:
    http://www.ashokraja.me/articles/How-to-Show-and-Hide-a-Modal-Pop-up-Dialog-in-a-SharePoint-2013-Page-or-a-Visual-WebPart
    Best regards
    Patrick Liang
    TechNet Community Support

  • Classify gl for doc spllitting warning message

    I have two GL account configured in "classify GL for doc spliitiing" in new GL, one is cash account, category 04000, the other is normal B/S acclount, category: 01000, when I click proposal, the cash account giving warning message, but the normal B/S account status is green, why warning, how to make it green? thanks

    Hello Siva,
    Would you please elaborate your exact issue ?
    I mean in which transaction you click proposal and what Warning Message exactly you getting?
    Regards,
    Manish

Maybe you are looking for

  • Unable to install CS5 Premium Suite on Windows 7

    I have been using the same installer for months now on other, non Win7 machines, without any issues whatsoever. I recently got a brand new machine with Windows 7 on it and... now nothing will install. Well, take that back, when I had the option for t

  • File Space check error while installing 11.5.8 trial version

    hi every body when i am trying to install oracle 11i trial version i am getting this error my system configuration is 512 MB RAM and 50 GB HDD and windows 2000 on Pentium 4 File Space Check Disk space on system acceptable: Database ORACLE_HOME = c:\o

  • Changes in the PRICING STRUCTURE FOR THE DOCUMENT TYPE

    Hello Gurus, What is pricing structure? and what is meant by changes in pricing structure for the document type. Could anyone let me know about pricing structure and changes in Pricing structure for document type. prashant

  • Exporting graphs programmatically to pdf

    Is there a way to programmatically automate fully the exporting of a waveform graph to a pdf file using the Labview 2010 Professional Dev System package? Solved! Go to Solution.

  • To get Current Business Partner number In BADi

    Hi All, In Tcode BP (for creating Business Partner) i am using BADi  'BUPA_GENERAL_UPDATE'. In this i want get Current Business partner No Assigned for the current Creation process.Suggest me how to get Current Businees Partner no assigned or current