ON CHANGE OF is not working for the below case

Hi,
  I had a problem with ON CHANGE OF as below
select * from vbap into gt_vbap where vbeln in s_vbeln.
loop at gt_vbap into ls_vbap where posnr ne '00010'.
   on change of posnr.
   endon.
endloop.
in gt_vbap i have only items 10 & 20 for a Sales Order No so in loop on change of is not triggering because remain line item 
is only 20.
can anyone explain me how to solve it

You need not use ON CHANGE OF....
Try using this code:
SORT gt_vbap by posnr.
Get the index of record
READ TABLE gt_vbap into ls_vbap with key posnr = '00010'
             transporting no fields binary search.
if sy-subrc eq 0.
  l_index = sy-index.
Read from next line
add 1 to l_index.
Loop at internal table from next line after posnr = '00010'....
loop at gt_vbap into ls_vbap from l_index.
Write your logic in this loop
endloop.
endif.
Regards,
Santosh

Similar Messages

  • SQL command IN is working , but NOT IN is not working for the below code...

    In application code I have the below code.
    IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
    v_service_variant := 3; --If not making it as a standard service
    UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
    SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
    FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
    UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
    COMMIT;
    END IF;
    Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on this

    950474 wrote:
    In application code I have the below code.
    IF v_service_variant NOT IN(0,1,2,3,4) THEN --Checking whether existing service variant is applicable in 21Cn Fibre.
    v_service_variant := 3; --If not making it as a standard service
    UPDATE sspt_sessions_table SET service_variant = v_service_variant WHERE sess_id=v_sess_id; --Updating sspt_sessions_table
    SELECT DECODE(service_variant_id, 0, 'None', 1, 'Loadbalancing', 2, 'Failover',3, 'BGP4', 4, 'Backup') INTO l_service_variant --To get the service variant name
    FROM sspt_maj_resilience WHERE service_variant_id=v_service_variant;
    UPDATE sspt_prquote_details SET service_variant = l_service_variant WHERE ftip=l_ftip AND sess_id=v_sess_id; --Updating sspt_prquote_details
    COMMIT;
    END IF;
    Then the statements inside the if condition are not being executed. At the same time if I am replacing NOT IN with IN only and making changes to get if condition true then it is going inside the IF condition.... Could anyone please help me on thishow can we reproduce what you report?
    while "not working" may be 100%, it is also 100% devoid of any actionable detail.
    what results when it is not working?
    how would working results supposedly appear?
    How do I ask a question on the forums?
    SQL and PL/SQL FAQ

  • I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords but it does not work for the macbook.

    I have an apple ID which I use to sign into icloud for my iPad and iPhone.But when I use the same ID for setting up iCloud on my Macbook it says INCORRECT ID or password, try again. I tried changing my passwords several times but it does not work for the macbook.

    You will have to provide the correct password to delete the existing account, if you have tried but are not getting the password reset email, contact Apple for assistance by going to https://expresslane.apple.com, then click More Products and Services>Apple ID>Other Apple ID Topics>Lost or forgotten Apple ID password.

  • Calendar Issues - "Repitition is not working for the item you tried to access"

    I ran into an interesting error when troubleshooting a calendar issue today, wondering if anyone has seen it.
    Exchange 2010 SP2 latest RU, Outlook 2010
    User changes then start time for a recurring meeting, changes in everybody's calendar but hers 9still shows in her calednar as the original start time)
    Logged into OWA to see if her claendar reflected the correct start time there - no, still  shows the old start time.  So I open the meeting, have a quick look, and the following error pops up:
    "Repitition is not working for the item you tried to access.  It's possible either the start or end date are not correct"
    Has anyone seen this error in OWA before?
    TAG

    Hi,
    Please double check whether the updated start time and end time are changed properly in attendees’ calendar. Also confirm whether the updating message is in the organizer’s sent items both in OWA and Outlook.
    Thanks,
    Winnie Liang
    TechNet Community Support

  • I have an event in my calendar that was sent by someone who does not work for the company anymore and I am reminded 2 times a week. How can I remove it?

    I have an event in my calendar that was sent by someone that does not work for the company anymore and I am reminded 2 times a week. How do I delete it?

    Tap on the event to open the event. Click the 'Edit' button in the event bubble, then press the 'Delete Event' button at the bottom of the Edit pop-up. It's a little different for events that come through Microsoft Exchange, you tap the event to bring up bubble and click the 'Details' button, and then press 'Decline' to remove the event.

  • Timing of text box will not appear.  My text boxes stop working on slide 5 and they will not work for the remainder of the slide show.

    Timing of text box not working.  I get the first few slides to work and then on slide 5 my text boxes will not appear.  And they do not appear for the rest of the slide show.   Help anyone.

    Text caption is timed to appear at 2 seconds, but you have a click box at 0sec. Its duration is very short, which means that I cannot see if there is a pause. I suspect this click box is pausing at the end of its timeline, which is at 0.3secs and the Text caption at 2 seconds will not appear before the user has clicked on that click box. The timeline is the core of Captivate, learn at least how to read it.
    Tiny Timeline Tidbits - Captivate blog
    If you want the green text caption 'Click on...' to appear right at the beginning of the slide, you have to check its Timing accordion: set it to start at 0 secs instead of 2 secs and extend its duration to the 'rest of the slide'.
    I don't know what is in the Group. That group and the HIghlight box will disappear at 3 seconds. Or maybe the action that is triggered by the Clickbox is different from 'Continue'?
    Lilybiri

  • I have two @me email addresses, and changing my password did not work for the original one

    I recently changed my password for my apple id, and it was successful - to a point.  I have two email accounts, it appears ... my original @me and a new one assigned  by icloud.  The password changed properly for this new email (which I never use) and not for the old one (which I always use).  How can I fix this?

    Hi bizebill,
    Thank you for your question. I understand that you would like to sync all of your devices. Please make sure that all of the devices are updated at least to version 29.
    If you were on a version before this, you will have to set up a new email and password with the new sync.
    I hope this helps.

  • Database Variant to Data.vi not working for the Date datatype with LV 8.2?

    I'm moving a large body of LV database code from LV 7.1 to 8.2 and find that the Database Variant to Data.vi is not working correctly when used with the Date datatype. It works fine with 8.0, and the common Variant to Data works also. Am I missing something? Thanks in advance for any assistance. Wes

    Thanks for the prompt reply Crystal,
    The data is stored in an Oracle database using the DATE type. I'm querying many rows along with other columns and converting each of the values as necessary for each column with the 'Database Variant to Data' vi. Only conversion to Timestamp is no longer working as of version 8.2. I recognize that plain Variant to Data works but I have many (100's) of VIs to change if that is the only solution (not the end of the world). Most often the dates are originally generated in the database using PL/SQL procedures calling SYSDATE which look like: 5/1/2006 11:56:26 AM (in TOAD anyway) which I then need to read into LV as type Timestamp.
    Regards, Wes.

  • Transaction variant to disallow change in FB02 not working for FBL5N / FB09

    Hi SAPtechies,
    I have created a transaction variant to disallow change in all fields other than Text (BSEG-SGTXT), and activated it for standard transaction FB02.
    This works well when FI document is changed via transaction FB02, but fails when the same document is changed via FBL5N / FB09.
    The screen is same for FB02 & FBL5N:
    Program (screen)     SAPMF05L
    Screen number        301
    Program (GUI)        SAPMF05L
    I have already checked for enhancement in PBO INCLUDE MF05LO00, but there was no success.
    Can anyone suggest me another methadology to greyout or make FB02 fields uneditable, with same functionality also working for FBL5N/FB09?

    Hi ,
    I could achieve  a way to disallow editing in FB02 item level fields using substitution & custom exit.
    Additional requirement was that I want to assign authorization for particular users who can change all fields.
    Any suggestions on it?
    Our Basis team has created new role & assigned this role for FB02.
    But this role has got many technical authorization objects.
    Below check is not working:
    AUTHORITY-CHECK OBJECT 'S_TCODE'
               ID 'TCD' FIELD sy-tcode.
    Thanks...Tanaya

  • Oracle Workflow Delegate is not Working for the Adhoc Role

    Hi All,
    I have a requirement where I want to send the workflow notification to the Adhoc role and then if the people who are part of the adhoc role are on vacation then the notification should get delegate to the person set by the first approver. Somehow delegate is not working here.
    Please let us know if anyone of you have worked on such requirement or have come across this situation.
    Thanks in Advance,
    Viswas
    Edited by: 873477 on Feb 6, 2012 12:30 AM

    Thanks for the replying on the issue.
    This issue has been resolved now.
    In WF_NOTIFICATION.route procedure, Following query was selecting the Adhoc role name instead of the fnd_user, We have changed our custom in such way that there should always be fnd_user for the follwoing query.
             SELECT   WN.RECIPIENT_ROLE, WN.MESSAGE_TYPE, WN.MESSAGE_NAME
               INTO   recip, msgtype, msgname
               FROM   WF_NOTIFICATIONS WN
              WHERE   WN.NOTIFICATION_ID = nid;Thanks,
    Arun
    Edited by: 873477 on Feb 6, 2012 11:26 PM
    Edited by: 873477 on Feb 6, 2012 11:27 PM

  • Phone not working for the 5th time

    I am so happy with my fios service.  Now for the 5th time our phone does not work.  We regularly cant recive calls, and sometimes cant call out.  Each time we call (with cell) they say nothing is wrong and will send a tech out days later and an hour before the tech is supposed to show up, it suddenly starts working again.  A week later it stops working, and we go through the same ordeal.  I wonder who they cut off, whent hey turn ours on, and who gets service when they cut ours off.  Its like they play musical chairs with our phone service.  Sometimes we get incomming calls, sometimes outgoing, but hardly ever both.  **bleep**?  Now waiting another 8 days for them to send someout out because right now we dont even have a ring tone.  Please just fix the problem, or stop charging us the $30 for the service.  What a sham.  Oh, and to top it all off,t his week, Verizon Wireless also assigned my wifes account/phone number to someone elses contract.  She has had the number for over 10 years, I just bought her a new iPhone (full price $900) and when we went the store a man by the name of Carlos told us to pound sand.  He had given the line to someone else and the only way he would fix it is if we returned the phone we bought from Verizon online, and bought a phone in his store!!!  Can you believe it.  Carlos would not give her line back unless she bought a phone in his store. 

    Hi mikalsan,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. The title of your post is the link. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

  • Scale does not work for the target movie when using a poster movie

    Hello,
    I have various size video files that I want to scale to a certain display area on a website. I'm using the scale="tofit" attribute. It works fine for the poster movie but when the target movie is loaded it does not scale! Is this a QT bug or by design? Is there a workaround to this or am I doing things wrong? All help is greatly appreciated.
    <object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="489" height="280" codebase="http://www.apple.com/qtactivex/qtplugin.cab">
    <param name="autoplay" value="false">
    <param name="controller" value="true">
    <param name="href" value="heaven.mov">
    <param name="pluginspage" value="http://www.apple.com/quicktime/download/indext.html">
    <param name="target" value="myself">
    <param name="type" value="video/quicktime">
    <param name="src" value="movies/PosterTest.mov">
    <param name="scale" value="tofit" >
    <embed src="movies/PosterTest.mov" href="heaven.mov" width="489" height="280" autoplay="false" controller="true" border="0" pluginspage="http://www.apple.com/quicktime/download/indext.html" target="myself" type="video/quicktime" scale="tofit">
    </object>
    Dell inspiron 8200   Windows XP Pro  

    After quite a lot of Googling I found what I was looking for. This solution was quite hard to find. I found it on http://blog.deconcept.com/2005/01/26/web-standards-compliant-javascript-quicktim e-detect-and-embed (I'm using Geoff Stearns's script to embed my movies, it works great!)
    Anyway here is a url to the final solution:
    http://developer.apple.com/documentation/QuickTime/WhatsNewQT5/QT5NewChapt1/chap ter1_section32.html

  • List view GroupBy pagination does not work for the second group?

    Hi,
    I have defined view for list with grouping by 2 fields. I noticed the paging works only for the first grouping, for the second field there are always all items on the page. How could I configure it to provide paging also for the second level of grouping?
    If it is possible to have paging for only one group level, I would like to change it for the second 2 (as there are only like 15 groups for the first level but there could be hundreds for the second one).
    Thanks!
    eXavier

    Here is the query:
    <View Name="{3BEA03A1-FBFF-4364-AA0F-AD4E48093479}" MobileView="TRUE" Type="HTML" DisplayName="aaaa" Url="/Lists/X/aaa.aspx" Level="1" BaseViewID="5" ContentTypeID="0x" ImageUrl="/_layouts/15/images/generic.png?rev=23">
     <Query>
      <GroupBy Collapse="TRUE" GroupLimit="30">
       <FieldRef Name="SC_UserName" />
       <FieldRef Name="SC_Year" Ascending="FALSE" />
      </GroupBy>
      <OrderBy>
       <FieldRef Name="SC_Date" Ascending="FALSE" />
       <FieldRef Name="SC_Date" Ascending="FALSE" />
      </OrderBy>
     </Query>
     <ViewFields>
      <FieldRef Name="ID" />
      <FieldRef Name="SC_DateX" />
      <FieldRef Name="LinkTitle" />
      <FieldRef Name="SC_Date" />
      <FieldRef Name="SC_UserName" />
      <FieldRef Name="SC_DateY" />
      <FieldRef Name="SC_Status" />
     </ViewFields>
     <RowLimit Paged="TRUE">30</RowLimit>
     <Aggregations Value="Off" />
    </View>
    eXavier

  • ADF JS API methods not working for the newly created rows in table

    Hi All,
    We need to make sure the focus goes back to the newly created rows first column's first component.
    Used findComponent and findComponentByAbsoulteId and even hard coded the id, but still the methods are returning null.
    Even tried ADFRichTable.getRowKey(index), by passing index as 0 for the first row, still the method is returning null.
    Tried ADFUITable.findComponent(Object scopedId, Object rowKey), but unable to pass client side rowKey as the above method is returning null.
    All our requirement is to make the focus back to the first row's component when the user clicks on the cancel button instead of save button. Appreciate your help. Thanks.
    P.S.: Rows will be created using CreateInsert method.
    JDEV Version: 11.1.2.0.0 and Table is in a region and we are using UI Shell Tab Template to launch regions.
    Raja.
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM
    Edited by: RajaRamasamy on Feb 10, 2013 4:30 PM

    Thanks Frank,
    But some times even we use findComponentByAbsoulteLocator, its not working. So i followed the approach where you will get the rowID like the below and construct the client ID and pushing the JS to client using Service class. And it worked.
    String rowId = table.getClientRowKeyManager().getClientRowKey(facesContext, table, rowKey);
    But i am worried that even though we hard coded the client and executing the js function from the command button by keeping client listener's type as click, the focus is not setting. And i tried giving the id as tableId[rowIndex]:componentId in the findComponentByAbsoulteLocator.
    Can you let me know is there another way to make focus only using JS on click of command button, where the button does not have any action or actionListener.
    Raja.

  • My push notifications for Facebook are not working for the iPhone 5.

    All the sounds are working except for Facebook. I have enabled all the settings for the push notifications but they still do not work. I do get alerts but no sound. Please advise.

    We are all in the same situation. It is very annoying. We have to get people to let Apple and Facebook know. It is not my phones (I have a 4 and a 5), because Facely HD, which is an app that accesses Facebook, works fine as does everything on both phone (native functions, native apps and non-native apps).

Maybe you are looking for

  • Lead Time calculation in process order

    Hi,       I have a process order to be created of 112.6 L. i have only one phase  & one resource allocated. i have maintained my OH time as 1 H in my master recipe. now for resource i have maintained scheduling formula as ZRUNA = OH. After creating P

  • Some problems in TCP/IP communication between PC&DSP

    I have programmed a VI for TCP/IP communication between PC (Client) and DSP (Server), which could be downloaded at below link. It just achieves some basic features, like send commands to DSP to set some registers, and receive data or status from DSP.

  • -2305 This entry already exists in the following table

    Has anyone had this error? It seems to happen after a new order is placed on the web for an existing account customer. 1881     E     2009-05-28 12:02:47.27     AccountAddress     -2035:This entry already exists in the following tables (ODBC -2035) a

  • "Greatest Hits" confuses Cover Flow and Playlists

    Hi, I have several albums by different artists titled "Greatest Hits" on my nano. When I browse by Cover Flow or Playlists all the songs from every album titled "Greatest HIts" are listed. My nano has the latest software. Does anyone have a cure? TIA

  • Error downloading (the MIDlet)

    Hi! I wrote a little snake just for fun and of course now I want to test it on my mobile. Got a Siemens C55 but that�s not the problem here I think. The game is here: http://www.influenza-harlekin.de/temp/snake.jad http://www.influenza-harlekin.de/te