STOP LOOPING_table control

iam having following sytax....
in my pai module...
     PROCESS AFTER INPUT.
  LOOP AT ITAB.
    CHAIN.
      FIELD ITAB-filed1.
      FIELD ITAB-field2.
      FIELD ITAB-field3.
      FIELD ITAB-SELKZ Module  ON_SELECT on request.
    endchain.
  ENDLOOP.
  MODULE LOAN_USER_COMMAND.
.....so in above coding... ithink you can under stand that SELKZ is for to selct the table control row.... so if you selct the table control row then it will go into the module followed by...SELKZ,
and here now iam modifiying above coding like this.....
     PROCESS AFTER INPUT.
  LOOP AT ITAB.
    CHAIN.
      FIELD ITAB-filed1.
      FIELD ITAB-field2.
      FIELD ITAB-field3.
      FIELD ITAB-SELKZ.
    endchain.
  ENDLOOP.
Module  ON_SELECT on request.
  MODULE LOAN_USER_COMMAND.
.......it was also properly working but....the thing is...
in first coding the loop is partially running before gointo this module....but in second part the loop is completing....so because if this  iam facing trouble inthe caluculation part which is in that module and linked with the entries of the field1 and filed2....
so now my quetio is...
     i want to stop that...
      loop in second..... one when one perticuler value is met.....but if i write if condition,...it was showing error like...if is not defined....
please answer...
Thank you,
Naveen.....

I think you may need to read up a little on the "on request" functionality...
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbabbd35c111d1829f0000e829fbfe/content.htm
So basically the logic you first had was saying
loop around my table control
" inside loop
  if the value in field SELKZ is changed (i.e. selected / deselected)
    then run module ON_SELECT
  endif
endloop
but you have changed it to say
loop around my table control
endloop
" after loop
if the value in field SELKZ is changed (i.e. selected / deselected) then run module ON_SELECT
If I understand your requirement correctly, then what you might want to do is something like
LOOP AT ITAB.
CHAIN.
  FIELD ITAB-filed1.
  FIELD ITAB-field2.
  FIELD ITAB-field3.
  FIELD ITAB-SELKZ Module ON_SELECT on request. "do logic in ON_SELECT
endchain.
ENDLOOP.
then inside your ON_SELECT module you need to flag that you've done the work required
module on_select input.
" Flag we've been here this loop
break-point.  "so you can bebug your code - i.e. check you reach here
  if itab-SELKZ is initial.  "row was un-selected
    g_marked = space.
    clear: g_result.
  endif.
  if g_marked = 'X'. "already marked - so exit as we don't process any lines after the first one selected
    exit. "leave the module so no calc done on this loop
  endif.
  g_marked = 'X'.   "remember to clear this global in the PBO
  g_result = itab-field1 * itab-field2.  "or whatever your calc is
endmodule
This will mean you are able to tell in the loan_user_command whether any line was selected (from g_marked being "X"), and g_result can hold the answer to the calculation on the selected row.
Jonathan

Similar Messages

  • How to stop voice control

    how to stop voice control?

    Hi Joannewpark,
    Press your Home Button to get to the Home Screen.
    Press Settings, then press again 2x fast - you will go to the Settings screen
    Press on General, then press again 2x fast - you will go to the General screen
    Use 2 fingers to indicate scroll up - Voice Over will begin to read the items on the screen, and will eventually get to the Accessibility option. When it says "Accessibility" press on it, then press on it 2x fast
    It will go to the Accessibility screen, tap on the Voice Over option one, and then again 2x fast, now tap on the Voice Over option again, and then double tap to turn it off.
    Cheers,
    GB

  • Is there any way to stop "Voice Control"?

    Hiya
    I am hoping one of you will be able to help me with this......
    Tonight my phone has started to beep and then on the screen it shows "Voice Control" with a list of question ideas to ask voice control.
    I have read that "Voice Control" cant be disabled but have seen a couple of ideas on how to get around it but for some reason they arent working on my phone and it keeps interupting my messages, etc when Im half way through using my phone.
    I have tried to turn on Siri hoping that it would stop Voice Control coming up on my phone but that didnt work.
    I have tried activating "Switch Control" because apparently they both cant run at the same time....didnt work for me.
    I have tried Assistive Touch and nope that hasnt worked either.
    I have even tried to reset my phone then back it up from the last time i had on,my computer. Didnt work.
    Only thing I have read that I havent tried is the reset my phone and start from the begining with it.
    I have looked around and read a lot of forums but I was hoping someone might have had the same problem as me and might be able to tell me if it can be fixed or what happened with theirs?
    I have no idea why this is happening or why its happened today. I havent dropped it or anything like that and the phone is just over a year old so its not under warranty unfortunately.
    Voice control is different then the Voice Over option too
    I think my home button may be sticking and the "three clicks on the home button" is to go to my voice control.
    Thanks for your help! Appreciate it
    Thanks!

    Voice control can to be disabled. Sounds to me like you have a broken/defective home button. Make an appointment at the genius bar and have it looked at.

  • Can i stop the control bar coming up when scrolling

    Can I stop the control bar coming up when I am scrolling.  I seem to hit it a lot and would prefer to remove it.

    I keep hitting it as well. I think you can turn control Center off.
    I haven't tried because it is handy.

  • How do you stop Voice Control?

    How do you stop Voice Control?

    Unfortunately, "Stop pressing and holding the Home button" only works if it is an intentional action. Obviously, this is not the problem. The problem occurs when the button is depressed and held ACCIDENTALLY! Like, when your iPhone or iPod is in your pocket, or purse. This is how butt-dialing occurs: the button gets depressed, the voice control comes on, and then the imperfect software mis-registers the next random sound as a voice command, resulting in a random call to a random contact.
    It is a very annoying "feature" to say the least. And the fact that it cannot be disabled only makes it more infuriating.

  • How do I get the Play, Stop, Volume controls to appear in my embedded Flash object?

    Hello,
    I want to show .swf or .flv videos on my website--like
    youtube.com. I want to use the standard Flash Player object
    embedded in a web page, however, I cannot seem to find the exact
    params that make the standard controls appear (ie, Play, Stop,
    Pause, Volume, etc). I just want to show a video and have the Play,
    Stop, Pause, Volume controls visible at the bottom. What do I need
    to do to get these controls to appear?
    Here's my current code:
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
    width="800" height="600">
    <param name="movie" value="
    http://www.sitename.com/flash/dt_flash.swf">
    <param name="quality" value="high">
    <embed src="
    http://www.sitename.com/flash/dt_flash.swf"
    quality="high" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    type="application/x-shockwave-flash" width="800"
    height="600"></embed>
    </object>
    Any help would be greatly appreciated! :)
    Jason

    Sorry!  It's AS3. A typo on my part but, thanks for answering the post.   This is the correct answer that worked for me. Also,  the answer came from Kglad in the AS3 forum
    Assign your component an instance name (if it doesn't already have one), eg flv and in the frame that contains that component add:
    flv.addEventListener(Event.REMOVED_FROM_STAGE,removedF);
    function removedF(e:Event):void{
    flv.stop();

  • How do I stop button controls responding to both mouse down and mouse up?

    Hi,
    On my front panel I have several buttons which are all set to 'Switch Until Release' type. I've come across the problem where they sometimes stick on even when the mouse has been released (see earlier posting) and this has been confimed by NI as a LV bug.
    To get round this I manually write FALSE to the button controls once my LV prog has read them but I now find that some of the buttons having been cleared go true again on the release of the mouse button as though the mouse release can also set them true.
    Is there any way I can stop them responding to the mouse release?
    Thanks,
    Dave.

    Dave123 wrote:
    I'd like to use latch when released buttons but I'm using local variables of the buttons so I can read the current values of them in different parts of the program.
    So to simulate latch when released I've written my program to set to FALSE the state of the button once it has read that it has been pressed.
    This sounds like a very bad idea if other parts of the code need to react on the state of a pseudo-latch action boolean. There is simply no guarantee that other parts of the code even see the transition due to possible race conditions. What if the boolean gets reset before the other code can read it? What if the other code reads the true multiple times because it loops faster than 200ms?
    How many other places do you possibly need to read it? Maybe you can use latch action combined with an event structure to cause parallel code to react to the value change? (see attached example, LabVIEW 7.0). Maybe you should rethink your code, there might be better alternatives.
    Dave123 wrote:
    Keep the toggle button held down for a second or two, release it and you should see the button goes true again (and is promptly cleared in the case). Why does a mouse button release set the button to true?
    Easy! In this case, you should use "switch when pressed" as mechanical action. You use switch until released, which confuses LabVIEW.
    Switch when released does two things: (1) It switches to true as long as you keep the button pressed. (2) When you release the button, it switches to off. Now, if your code inverts the switch via a local variable while it is still pressed, the release tries to invert the current state and turns it off-to-on again by mistake.
    This might be a slight flaw (bug) in the LabVIEW code. Releasing the button should force a FALSE to the button, not an iversion of the current state.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ButtonForceClearExampleMOD.vi ‏26 KB

  • Start/stop Grid Control services

    What are the service associated with Grid Control and what are the commands to start/stop them?

    Hi
    To start the grid control you need to start the agent
    and the web components in the oms home along with the agent.
    # Start ALL
    /oracle/product/10.1.0/oms/bin/emctl start agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl startall
    /oracle/product/10.1.0/agent/bin/emctl start agent
    # Stop ALL
    /oracle/product/10.1.0/agent/bin/emctl stop agent
    /oracle/product/10.1.0/oms/opmn/bin/opmnctl stopall
    /oracle/product/10.1.0/oms/bin/emctl stop agent
    With best regards
    Shan

  • Stop/start controls in flv sections

    Hi there,
    I have a small video program I need help with.  I am using a single FLV file. On the player interface in addition to play/pause and stop, I have a number of chapter buttons, which I have successfully pointed to the corresponding points in the FLV file. I need to find a way to capture and hold the relevant start and stop times of each of these chapters so that when I am in each chapter, the stop and play buttons will reference the chapter times and control only the relevant chapter, ie in Chapter Two clicking stop will reset to beginning of Chapter 2, not the start of FLV file.
    Not sure if there are built-in properties and methods I can use, or I need to create something custom.
    Thanks
    Matt

    Thanks for the pointer, Rob.
    I'm familiar with that article, it got me going with navigating to various parts of my flvs, and I'm okay on using cuePoints, etc. - - I think!
    But what I want to do is have my main control buttons (stop and play) dynamic, so they reference only the current "chunk" of video within each chaper..... I guess the Play button is fine, it will start from current point. But I need the stop button to reset to start of currentChapter, not 0:00 in flv, so it keeps the chapters discrete.
    I also need the chapter to stop at chapter end.
    Thanks
    Matt

  • Stopping and controling animation on start

    Whats the best way to stop an animation when you view your scene on start up?
    And can adobe 3d support multiple embedded animations and can you control these independently?
    At this time I have a simple test file I'm trying to get working with one animation embedded in my imported u3d file. but later on I want to be able to control various animations with different buttons.

    You can have multiple animation 3D annotations running at once. You can use javaScript to control some of the some fo the camera parameters. Through the regular UI can save a view of the, e.g., exploded animation, however, the animation may want to have the animation paused to honor the state of that view without the animation continuing. You can control that through the 3D JavaScript API, or the user would have to manually pause the animation, then call the view. The state of the animation can be manually controlled with the animation fader in the toolbar.
    There are various examples at the Adobe site's 3D Gallery. Not an animated example, but an example of various views controlled by a JavaScript button:
    http://www.acrobatusers.com/auc/content/gallery/3d_gallery/gallery_assets/1035/Lawnmower_C arb.pdf
    Maybe a closer example of a single animation controlled by buttons:
    http://www.acrobatusers.com/auc/content/gallery/3d_gallery/gallery_assets/1045/LawnmowerCa rbDisassembly.pdf
    There is no reason why multiple annotations, each eith its own animation would not be able to take advantage of the same type of controls. The only limit I know of would be CPU/GPU power.

  • How do I create an emergency stop custom control in LabVIEW that looks like an actual E-stop button

    How can I find (or buy) a variety of custom controls for various applications that look better than the standard NI controls.

    Here is a simple E-Spot button. Warning: I'm no artist . I made the pictures in Word, edited them in MS Photo Editor and imported them into LabVIEW
    Attachments:
    E-Stop_Button.ctl ‏51 KB

  • Loop in subVI to be stopped by control in calling VI.

    I have a loop in a subVI that is supposed to run untill a stop-button is pressed in the calling VI. This doesn't work due to data flow issues. It has coem to my attention that this can be done using references, invoke nodes and/or property nodes. How is this done?

    The main program is a long series of events connected by an error wire. The image shows only the relevant function call.
    Attachments:
    ET_loop_PN.vi ‏80 KB
    StopSwitch_connection.PNG ‏7 KB

  • Stop or Control BOM explosion

    Hello Experts,
    I have a business case where my customer builds very large constructions. The have large BOMs (many levels) representing these constructions.
    Obviously, they do not want to just assign the top material of this mulitlevel BOM to an activity and run MRP. they need to be able to assign different sub-components to different network activities to be able to track both costs and progression.
    My problem is that I am not able to control how much of the BOM that explodes. The top assembly should be assigned to one activity, but there, I only want the BOM to explode down to the next level and so on.
    I am sure that this is a quite normal requirement, but I am simply not able to solve it. Have spent hours on help.sap.com, talking to other consultants and looking in this forum without finding the answer.
    All my components need to be held in stock, so phantom items will not help me.
    Anyone who has any suggestions on how to do this?
    rgds
    GAR

    Hi,
    As per me u can define BOM status in OS03.
    1. In one BOM staus parameter u define MRP not allowed by unticking MRP exlposion.
    2. In another BOM status u can Tick MRP explosion parameter.
    Whereever u want MRP shuld not exploded u can assigne BOM status for Header material as 1 as in case of subassy. And if u want MRP shuld exploded for Header matrl u can assign BOM status as 2 in CS01 Header matrial Qty/long text  tab
    Rgds

  • CAN WE START AND STOP THE CONTROL CENTER SERVICES USING OMB?

    Hi All,
    I'm new into the world of OMB and currently i have been working with OMB scripts and i just need to know whether i am able to start the control center services using OMB...?
    Any help will be highly appreciated.
    Regards,
    Shenoy

    Thanks ALL, I GOT IT, but I used other solution.
    Since I installed and uninstalled the Oracle several times, it keeps also many different Services for the listener. I don't know why, it didn't create a Service for my actual instalation with its path. In other words, all the services remained in the services.msc panel, had the path that was already removed from the Windows folder.
    Then what I did, was that I picked one service, took its name (OracleOraDb10g_home1TNSListener), went to regedit to [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\OracleOraDb10g_home1TNSListener] and simply changed the image path that was setted for the one that was removed (C:\oracle\product\10.1.0\Db_2\BIN\TNSLSNR ) for mine that is installed right now
    (C:\oracle\product\10.1.0\Db_1\BIN\TNSLSNR). Nothing more and finally works.
    I have tried something in the services.msc panel before, as you can see in this forum at the thread "I can't start listener in the Control Painel/Admin Tools/ Services", but I never got
    success.
    Appreciate your time!!

  • How can I stop the control button from moving the open applications up and exposing the desktop?

    It is getting very annoying when I want to use the control button for other functions.
    I tried looking in settings under keyboard, but found nothing.
    If anybody knows how to change it, I would really appreciate it!
    Thanks,
    Neel.

    Please describe what you are doing and what is happening more fully. I can press the control key all day long and nothing happens.

Maybe you are looking for

  • Displaying error message in a dilog box.

    Hello experts. I'm trying to display an error message with the following statements. It displays the error message but not the variable pa_taxno. I want my goes back to the parameter field after displaying the error message. User shouldn't pass throu

  • Pre-Populating Text fields from a Data drop down list using SQL Server

    I'm currently trying to update some of our internal forms which are word based or a basic PDF form you fill in by yourself. I'm connecting to our SQL server as there are databases stored there for an internal bit of software that hold information I c

  • What are the benefits of having two video cards?

    I currently have a PNY Nvidio quadro FX 3800 video card installed.  I have another card that is not installed.  It is an EVGA E-GEforce 8800GT.  I only want to run two monitors.  I am thinking with two video cards I will have live preview on screen d

  • WHT on vendor interest

    Hi I am facing a peculiar problem. We have created Fixed deposits as vendor and we have attached interest indicators to these vendors. Also since interest is subject to WHT in India (TDS), WHT types and codes are attached to the vendor. For interest

  • How will os 10.9 perform on a March 2009 MAC MINI 2.0/1X1G/120/SD/AP/BT-USAMB463LL/A

    How will os 10.9 perform on a March 2009 MAC MINI 2.0/1X1G/120/SD/AP/BT-USAMB463LL/A?