Loop through to find the item if its true or untrue

Hi Gurus!
I have  alogic which checks if a particular document condition item is active and then selects all and checks if the document is list or off-list. I want the logic to loop through the same logic for all conditions for the same item to determine if the item is list or off-list setting. At the end of loop it will show if it is list -1 or off list 2 or not applicable -0 and then continue with the loop. I have prepared the l;ogic but not getting through the loop logic.
data:  lv_kotabnr type c length 15,
         it_konv type  konv,
         lv_kozgf type T685-kozgf,
         it_t685 type standard table of t685.
  select * from konv
    into it_konv where
          kinak = ' ' and
          knumv eq iv_knumv and
          kposn eq iv_kposn .
      select single kozgf into lv_kozgf
          from T685 where
              kappl = 'V' and
              kschl = it_konv-kschl.
             if sy-subrc eq 0.
        select single kotabnr into lv_kotabnr
                              from T682I
                             where kappl = 'V'  and
                                   kolnr eq it_konv-kolnr and
                                   kozgf eq ( select kozgf
                                                          from T685
                                                          where kappl = 'V' and
                                                                kschl = it_konv-kschl ).
        if sy-subrc eq 0.
          select single ZPRICE_TYPE into RV_IS_LIST from zsd_price_type where kotabnr  = lv_kotabnr .
        endif.
      endif.
endif.
  endselect.
If someone can help on this would be very kind.
Thanks

I am using this in my method . Can someone plz help me out please.
Thanks.
I will be using this methiod in one of my querry to generate a list of pricing and will use this in one of my fields to show if its list or off list. With the code that I ahve written it will give a performance issue as its selecting one by one . SO ids there  a way to have the speed of the processing increased and so that at a time itslef it selects all the items of the condition in loop and throwas out teh result.
Thanks

Similar Messages

  • Difference between open loop and closed loop mode when finding the index on a stepper motor axis.

    I have a test system which uses a PXI-7352 motion controller with a MID-7602 stepper motor drive to position a 200 step/revolution stepper motor with an attached 1000 line encoder.  The MID-7602 is configured for 64 microsteps per step, giving 12,800 microsteps and 4000 encoder counts per revolution.  The system is controlled using LabView 7.1 and NI-Motion 6.13.  To home the motor, I've defined a sequence in MAX which first finds the reverse limit switch and then moves forward to the encoder index pulse.
    When finding its reference in open loop mode, the system its reference at the same microstep each time.  When findings its reference in closed loop mode, the system finds its reference somewhere within about a 20 microstep wide range.
    I hope somebody out there with more experience with this controller can describe the difference between finding the encoder index in open loop mode and finding the encoder index in closed loop mode. 
    Thanks,
    Mark Moss

    Hello Mark,
    I suspect that the behavior you are experiencing has today
    with the resolution difference between your encoder and your
    microstepping.  Let me illustrate with an
    example:
    Example Setup
    Stepper
    Motor
    NI
    Motion Controller
    10
    steps per encoder pulse (Every 10 steps the controller gets an encoder
    pulse, therefore positions 0-9 all appear to be 0 to the controller)
    The
    system has a maximum of 3 pull in moves set
    Open Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    Closed Loop Scenario
    The
    system is commanded to go to position 9.
    The
    controller sends out 9 pulses.
    The
    motor moves to position 9.
    The
    controller checks its position and sees that it is still at position 0
    because it has not received an encoder pulse.
    Because
    the controller thinks it is still at position 0, it sends another 9 pulses
    as its first pull in move.
    The
    motor moves to position 18.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends1 reverse pulse
    as its second pull in move.
    The
    motor moves to position 17.
    The
    controller checks its position and sees that it is at position 10 because
    it has only received one encoder pulse.
    Because
    the controller thinks it is still at position 10, it sends and additional
    single reverse pulse as its third pull in move.
    The
    motor moves to its final position of 16.
    I believe something similar is happening with your
    application as it looks for the index pulse. 
    Because the controller does not compensate for what it perceives as
    position error in open loop mode, the motor always goes to the same commanded
    position.  In closed loop mode, the motor
    is bouncing around inside the single index encoder pulse trying to find a
    certain position.
    There are several recommendations I can make towards
    correcting this behavior.  These
    recommendations are in order of effectiveness:
    Setup
    your system so that there are more encoder counts per revolution than
    steps per revolution.
    Turn
    off pull-in moves by setting them to 0 in MAX.
    Use an
    open loop configuration.
    Play
    around with the pull in window in MAX.
    Regards,
    Luke H

  • 11.1.1.4:Could not find the item selected to match the value of type Number

    Hi,
    I have a taskflow with an input parameter.
    The input parameter value is to be assigned to a list item as the default selected value.
    I have mapped the pageFlow scope parameter to set value to the list item using input page parameters defined in task flow.
    but When i Run the task flow the value does not get assigned to the drop down list and jdevloper console screen shows up the following message
    "Could not find the item selected to match the value 2 by type: oracle.jbo.domain.Number in LOV."
    But If I click the Lov to check the values it shows that value is present in the list.
    The same configurations works if the list of values is for a column with type as java.lang.String.
    Is it somethng different that is to be done for a Number field to assign value from a taskflow parameter?
    Edited by: user3067156 on Jun 25, 2011 3:34 PM

    Hi Jobinesh,
    I am assigning the default value in the task flow using input page parameters ...
    <view id="VIEW1">
    <page>/title.jsff</page>
    <input-page-parameter>
    <from-value>#{pageFlowScope.pInputTyp_Id}</from-value>
    <to-value>#{bindings.pTyp_Id1.attributeValue}</to-value>
    </input-page-parameter>
    </view id>
    It does not assign the value, if Bind variable(pTyp_Id1) NDtype and task flow input parameter(pInputTyp) class type, both are set to use type oracle.jbo.domain.Number.
    If I change both to use java.lang.String and additionally also change the VO defination the accept the bind variable of type string, it assigns the value correctly.
    Usecase:
    I have a a task flow for which has its first page a search page.
    The Search page is created using operation execute with params and dragging the query parameters on the page.
    The Query parameters are to be filled using a select one choice option and the list is bound to the master values.
    This task flow can be used inside a standalone page as a region to provide a search page
    The same task flow can be called from within another taskflow which will provide the default values for the drop down lists ..
    Since the search page is a jsff fragment i dont have a page on load handler to provide default values..
    So assiging the values using input page parameters defined in task flow view tag.
    For testing I am passing the taskflow input parameters by calling the task flow from a jspx page a region . When I configure this task flow a region in a page its asks for providing the values for the parameters
    And the same gets configured in my testpage def as
    <executables>
    <variableIterator id="variables"/>
    <taskFlow id="Flow1" taskFlowId="/WEB-INF/Flow1.xml#Flow1"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding">
    <parameters>
    <parameter id="pTyp_Id" value="1207"/>
    </parameters>
    </taskFlow>
    </executables>
    Edited by: user3067156 on Jun 27, 2011 1:50 PM

  • File Share.Could not find the item, this item is no longer here, check the location and try again

    Hi all, I have a failover cluster Wiindows 2012 R2 server with file server.
    A few days ago, when users try to rename folders and the following error can not be appearing:
    "Could not find the item, this item is no longer here, check the location and try again"
    When I enter as a domain administrator, I can rename the directory.
    Do you know that you can be?
    regards
    Microsoft Certified IT Professional Server Administrator

    Good afternoon,
    and this solved it was a problem with
    Windows 7 and Windows Vista
    computers, a registry key that affects the
    Explorer process is corrupted.
    This registry key is ejcuta and
    solves:
    FolderDescriptions x86.reg
    greetings To Your
    Microsoft Certified IT Professional Server Administrator

  • I scanned an item from my computer to my documents and it said then scan was complete. However, when I searched my documents the Item was not there. Where can I find the item?

    I scanned an Item from my computer to my documents. The scan was completed.  However, when I searched in my documents, the Item was not there.
    Where can I find the item scanned?

    Most scanners default to Pictures folder or the Desktop.
    If you select All My Files and Arrange by Date Added you should be able to find the file.
    If you turn on Show Path bar and Show Status bar for your Finder Window under View in the Menu bar, when you select the file you will see the path of the file in the bottom of the Finder window.

  • I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    I paid for a rented film on my iPad, got the receipt but now i can't find the film and its not in my purchase history. Help!

    If you rented and downloaded it on your iPad then it should be in the Videos app - if it doesn't show in there then have you got a film age rating set in Settings > General > Restrictions that is hiding it ?

  • Read Text row by row, plot them and find the max of its Power spectrum

    Hi, everyone,
    I have to read data from a text file, plot as a time serie and find the frequency to its max power spectrum. I found a previous post related to my issue so I revised his example a little bit. But once I decide to store the data into an array, the Labview reported:' Error 1 occurred at Scan From String (arg 1)'. Can anyone help me out?
    Thanks in Advance!
    Gab
    Attachments:
    ReadXYZmine.vi ‏18 KB

    Again my attachment got missed out.
    - Partha
    LabVIEW - Wires that catch bugs!
    Attachments:
    ReadXYZmine_Trim Whitespaces.vi ‏19 KB

  • TS1702 Hi I bought Final Cut Pro X to my old macbook but the week later I bought a new bacbook pro and wonder how to download the final cut program to my new mac.I find the item in iTunes, but not in apple store.I find Final c in fins, but iTunes  can't d

    Hi I bought Final Cut Pro X to my old macbook but the week later I bought a new bacbook pro and wonder how to download the final cut program to my new mac.I find the item in iTunes, but not in apple store.I find Final c in fins, but iTunes  can't download

    Use the Mac App Store application and go to the purchased tab, which you'll find at the top of the Mac App Store window.

  • I am a new user of iTunes and want to download music.   The instructions are:  1. Find the item you want  2. Click the button to download.   My problem is that I can not find a download button - what does it look like please?

    I am a new uses of iTunes and want to download music.   The instructions say:
    1.  Find the item you want
    2.  Click the button to download
    My problem is that I can't find a download button to click.   Where does it appear please?

    Thank you a million times over.   I've literally spent hours trying to solve this and I think those responsible for compiling the 'Help' notes for iTunes would be well advised to make this point clear in the downloading instructions.

  • Nokia Search cannot find the items on my phone

    The Nokia Search function seems to fail to find items on my phone. This happens to Contacts, Email, Calendar, Notes. And the failure is consistent. Is there some indexing process I have to go through before the Search function would know how to search the whole phone?
    I would think one of the most important feature for a smartphone is the search own data function. It that doesn't work, well, then the phone is not very smart, is it?

    same here, E71.
    Had a long discussion with Nokia Care....
    i wanted to search for phone-numbers, sometimes it finds, sometimes not.
    Ended up with the information, that obviously only the first entered number (regardless which type or category) is included in the search...
    So if i first enter mobile-number, then home-phone... it would only find the mobile-number. If i first enter home-phone, then mobile... it would never find the mobile... only the home-phone.
    Latest firmware seems not to solve the problem.
    So in my eyes... the search-function is very very weird...

  • How to loop through records in the block

    Hello,
    I have 2 blocks one emp_control_block and the other one based on the emp. The emp control block basically has some search critieria which is then passed onto the emp block to execute the query. However, I don't want to show any emp block data until the user presses the search button in the control block then I automatically want to make visible the EMP block and also set the width of columns. Right now, in the properties I have not assigned any Canvas to the EMP Block
    Can anyone tell me How do I loop through the block and show the items/columns in a canvas that I have already created. Any example of the code would be really appreciated. Thanks

    Monica,
    I tried your code but I get NO NAVIGABLE ITEMS IN DESTINATION BLOCK error. In the property palette for the items in the EMP block I have assigned Null as Canvas because I want to programatically assign it to the emp_stack_canvas. How do I do that? Also I want to change the item width for each column to say a fixed width of 50.
    Thanks

  • Advice for audio import and how do i find the item ID?

    Hi all,
    I am a bit stuck and hoping for a bit of help. i need to add voice over to my project but i am a bit stuck as to the best way to do this. My project is in Chinese and has Chinese captions. I don't speak any Chinese at all.
    In terms of the voice recording i don't know anyone that speaks Chinese so i am sending the text captions externally to get them recorded. As i don't speak Chinese i am a bit nervous about the import process and what the final output will sound like.
    In my export document i can see each caption has an item id - my audio files will come back as an individual recording for each caption, i am assuming they will name the files the same as the item id in the word doc.
    My question is - i have a slide with 4 captions - when i export the captions they are each assigned a unique item id - say the voice over person records each of these captions and then they are named with the item id - what is the most efficient way of importing them back in and assigning them to the correct caption? Is there a way of seeing the caption's item id within Captivate? if i could then i could check the caption's item id and then import the corresponding audio file to it. In the absecen of being able to see the item id how will i know which caption each audio fuile belongs to? i could try to decipher iot based on the caption's text and compare that to the text in the word doc but that will take forever and as i don't know any chinese is not very foolproof
    maybe i am doing this all wrong and there is an easier way??
    Please help !
    Thanks
    Deb

    If you printed the Network Configuration Page, then it SHOULD be on it. It's named 'Hardware Address(MAC)' on the page. If you don't find it there, which is highly unlikely and surprising, then look at the back of the printer for a white label with a Wireless and LAN symbol on it, and the Mac address will be there.
    But to be honest, Mac Filtering is not the best form of security for wireless networks. It can be easily bypassed\intruded by wi-fi network hackers. It's better to assign a WPA or WPA2 security with a WPA key longer than 13 characters. This is nearly impossible to crack currently. So if they can't find the WPA key, they can't connect to the network... which will render Mac Filtering completely useless.
    Cheers.
    Make it easier for other people to find solutions, by marking my answer with \'Accept as Solution\' if it solves your problem.
    Click on the BLUE KUDOS button on the left to say "Thanks"
    I am an ex-HP Employee.

  • Finding the items(windows) in Taskbar in windows

    Hi ,
    I want to find the names of all the windows available in the Taskbar of windows operating system through java.
    Please provide me with the API's if available for this purpose.
    Thanks in advance,
    Ashok.
    [email protected]

    You won't be able to do this using java - use visual basic. You can use the Windows API functions GetWindow, GetWindowText, and GetWindowTextLength to get the window titles of all windows (visible and invisible) loaded under Windows.

  • Find the item in A/R invoice

    I have purchased some excisable items and created purchase invoice.When I sell that item and create sales invoice I need to find from which purchase invoice the particular item is coming.I want track the purchase order of the item that is being sold.

    Hi
    You can get the Purchase order no by formated search . U can assign formatted search to any UDF of sales invoice and write query "select T0.DocNum,T0.series from OPOR T0 inner join POR1 T1 on T0.DocEntry= T1.DocEntry where T1.ItemCode=$[$38.1.11].  If there are multiple Purchase order den you will get multiple values over there....
    -Manmath

  • How can I find the item number?

    Good day everyone!
    If I have a drop down list and want to find the number of the selected item, how do I work it out?
    The boundItem method gives me the current data value, but I need the item number. The mission is to add instances to another drop down list with child nodes of the value chosen in the first drop down list.
    I've tried out the currentRecordNumber property, but I can't make it work. In Adobe XML Form object Model Reference they puts up
    xfa.dataWindow.currentRecordNumber
    but without any further reference to the current dropdownlist in that code, I don't understand how it works.
    Please help me out.
    best regards,
    Håkon Helliesen

    Hi!<br /><br />Thank you for your response! <br />I still don't get it right though after trying different methods over and over again and I therefore have two questions.<br /><br />1) Why do you use the <i>getElement</i> method to get an attribute? It would make more sense to me if you suggested the <i>getAttribute</i> method instead. Now, I have been trying out some different combinations of these two methods with the @ symbol, but without success. The getAttribute is described both in this forum and in the Adobe XML Form Object Model 2.2 Reference, but always in combination with recordSet. The recordSet object is a part of the sourceSet model which is used in OLEDB connections. I don't use that and wonder if I could use the getAttribute solely on the dataValue itself. I.e.the loaded XML looks somewhat like this:<br /><cars><br /><carowner carproducer="Ford">Person A</carowner><br /><carowner carproducer="VW">Person B</carowner><br /><carowner carproducer="Lexus">Person C</carowner><br /><carowner carproducer="Ford">Person D</carowner><br /><carowner carproducer="Nissan">Person E</carowner><br /><carowner carproducer="Volvo">Person F</carowner><br /><carowner carproducer="VW">Person G</carowner><br /><carowner carproducer="Ford">Person H</carowner><br /></cars><br /><br />var persons = xfa.resolveNode("$data.car");<br /><br />for (counter=0; counter<a.length; counter++)<br />{<br /><br />if (persons.nodes.item(counter).getAttribute("carproducer").value=="Ford")<br />{<br /><br />listBox1.addItem(persons.nodes.item(counter).value;<br /><br />}<br /><br />};<br /><br />Certainly there would be several faults in the code above, but please comment the getAttribute part.<br /><br />2)<br />All this (the methodology above) is described in the Acrobat JavaScript Scripting Reference for Acrobat 7.0 in the chapter showing the XMLData object (page 639) using a applyXPath and parse. If I use copy&paste from this manual and insert as a function in a script object,it works just fine. Are there any tips on how I can make it work on the nodeList XFA object?<br />The following test is attached to the description of the applyXPath method:<br /><i>NOTE: An exception is thrown when the value of this parameter is a nodeList XFA object instead the root of an XML tree, as required.</i><br /><br />best regards, <br />Håkon

Maybe you are looking for

  • Moving playlist to an external drive

    Hi, I just moved my mediathek to an Windows Home Server. Now I want to move also the playlists. Then I can stream the music with the playlists over an application on the WHS without my computer. But my local ITunes also needs this playlists. So how c

  • Double-click in Files panel will not open a file

    Double-click in Files panel will not open a file. Instead alert message appears (I will translate from Czech): "Design notes are not allowed for this file. If you want to use Design notes...". I do not want use Design notes, I want to open a file fro

  • I can't drag and drop from a data CD I recorded

    I recently burned some audiobooks files (in mp3 format) as data cd's in Toast 8.0.1. When I go to reload them back onto my 20" 2 Ghz Dual Core Intel I can't drag and drop the files directly into any folder while using the columns view in a finder win

  • ICal attached file gone wrong

    I use file attachements a good bit in iCal, but recently, when I go to view them I get this: http://emberapp.com/radmacdaddy/images/screen-shot-2010-02-22-at-11-36-49-am Seems the links are messed up. What might correct this other than having to rebu

  • New Airport Extreme dropping signal intermittently

    Frequently my signal fails for no apparent reason, it shows full power on the status bar but sometimes it just looses my base station, then finds it, then find others in the building then looses them all again and so on. I have reconfigured the bases