Need an IF condition, if Prod No has multiple same STCTS values

Hi,
I need to write the logic like below :
loop at t_final into wa_final.
If PRVSY(Product Number) has multiple same STCTS values
if wa_final-datab > sydatum.
clear wa_final-stcts.
delete t_final where stcts is initial.
endif.
endif.
endloop.  
For ex: prod number is and STCTS values are
                     1234                                        ABC
                                                                    ABC
                                                                    ABC
                     1222                                         GH
                                                                     GH
                     1211                                         AS
My logic should only apply for the product number 1234 and 1222
Can you suggest any If condition or any way to implimet this logic..
Any suggestions will be apprecaited!
Edited by: Kittu on Feb 18, 2009 3:42 PM
Edited by: Kittu on Feb 18, 2009 3:44 PM

Hi Max,
Very Gm........
Thank you for your quick response!
Here we also need to check with the product number.
Becasue, there can be same STCTS value for other Product number and it should be allowed. 
Ex : 
          1234 and STCTS values are ABC
                                                  ABC
                                                  ABC
                                                  ABC
            1222                                GH
                                                   GH
             1211                               ABC
Any suggestions will be aprrecaited!
Regards,
Kittu

Similar Messages

  • Does the "The Project Owner has the same RBS value as the User" dynamic category rule include Status Managers?

    I tested the following scenario in Project Server 2010 and 2013:
    Assume you have three users: User1, User2, and User3.
    User1 has RBS value Org.UnitA
    User2 and User3 both have RBS value Org.UnitB
    User3 belongs to a group that gets permissions to view projects from a category with "The Project Owner has the same RBS value as the User" setting enabled.
    User2 creates ProjectABC and by default becomes the project Owner. User2 creates a task in the project, and by default becomes the Status Manager of the task.
    User2 then changes the project owner to User1 and republishes the project. User2 remains the Status Manager in the project task.
    User3 can still see ProjectABC. Apparently this is because User2, who has the same RBS value as User3, is still a Status Manager of project tasks.
    If I change User2 RBS value to Org.UnitA, then User3 can no longer see ProjectABC. Note that User2 is not the project Owner at this stage, but the change in User2's RBS still affects the visibility of the project.
    It seems to me that in "The Project Owner has the same RBS value as the User" dynamic category rule, the "Owner" should be "Owner or Status Manager".
    Is this a bug or by design?

    Hi Barbara,
    Thanks for going through the trouble of reproducing the behaviour. It's interesting to know that Effective Rights in Project Online displays different results.
    The system in which I tested this scenario is updated with the December CU, so I'm guessing you'll still get the same result after updating your environment.
    In my usage scenario, a user needs to create projects on behalf of other users, and then change the Owner. Unfortunately this doesn't change the Status Manager of tasks, and consequently the visibility of the project is not what was expected.
    The user who creates the project can change the Owner, but can't change the Status Manager. The new owner would have to open the project for editing in Project Pro, change the Status Manager value of every task, and republish. Precisely the sort of extra
    work that the users want to avoid.
    Using delegation might be a workaround, but opens up a whole new can of worms in terms of information security. It's unfortunate that the "The Project Owner has the same RBS value as the User" setting doesn't do what it says, but potentially
    opens up visibility of projects to a wider audience than intended.

  • Why do I need to replace my Phone if everyone has the same problem?

    I have an Iphone 4S and just like A LOT of people the IOS 7 update broke my phone. I asked the support what to do and all they said was replace my phone for $199, this phone was PERFECTLY FINE before the update, they told me "oh, your wifi chip must have broken during the update" but that seems like quite a coinsadence if it happened to tons of people for the same reason, I have tried EVERYTHING. reset the network settings, reset the network settings with airplane mode on, hard reset the entire phone, switched wifi on and off (whenit is'nt greyed out), turned airplane mode on and off and I even tried the freezer trick and nothing worked, I wanna fix this phone because it is my first phone, I did not own it, it is a 2 year old phone so its warranty is out and yet it is a great running phone besides the fact that (like alot of other people) the wifi broke during the update somehow. I want to fix this phone, if I have to spend $200 then im not buying an apple phone.
    Apple should find a way to fix this without giving the excuse, "oh, I guess the wifi chip broke during the update for (possible) thousands of people."

    It also did not happen to hundreds of other people and therefore did not unmask a problem on hundreds of phones. A Wi-Fi chip breaks not because of an iOS update but because a problem with its hardware has developed. All those seemingly innocuous drops and spills will at some time, sooner or later, cause a problem. You may even console yourself with the knowledge that you never dropped your phone but can you say the same for the people you loaned it to (if only briefly) and/or whilst it was out of your sight? Another potential cause is simply component failure. Electronic devices composed of many other electrical components can and do fail and it's naive to assume devices such as these don't have the potential to fail or not as the case may be.

  • Pricing error; ''Condition record exists, but has not been set''

    hello friends
    we created the order (credit memo req), refer to this created the credit memo.
    in the order one line item and only 2 condition records
    base price and tax (MWST)
    in the order both conditions are coming and in the invoice it is not showing the condition (mwst)  and in the Analysis it is showing as ''Condition record exists, but has not been set''
    what would be the reason?
    regards
    siva

    Hi,
    if both the condition types are showing in the order then you need to update pricing in billing because sometimes when u chnage any condtion value for base price after creation of order then system is not able to find valid condition record at billing document level.
    Narasimha

  • Condition record exist, but has not been set

    I am creating proforma invoice for STO replenishment delivery. I am getting error log "Billing type contains split criteria, n invoiced:123456789, invoice not required". But I am able to save it. I used all standard settings for copy control and billing type.
    For the proforma invoice the condition records are picking up some times and some times not picking up. In the analysis its showing "Condition record exist, but has not been set". When I update with carry out new pricing some times its updating with condition records some times not. I need a solution urgently. Please help.
    Edited by: k c on Nov 4, 2009 7:50 AM

    Hello,
    The message "condition record exists, but has not been set" tells you
    that the condition record exists, but has not  been set in the document.
    If pricing was carried out again for the document item, then the
    condition would be set.
    This can have different causes:
    The condition was deleted manually in the item condition screen.
    The condition record was created later. Please note that order
    processing and pricing have buffer mechanisms. This means that a newly
    added condition record might only be found after order processing have
    been left completely and then started again.
    When an item was added, the condition record was accessed with key
    fields other than change time. This could lead to different results in
    the requirements check at the time of adding and the change time. This
    can occur when modifications are made.
    In billing (or when copying orders): Certain condition types were not
    determined in the source document (this is usually controlled by the
    pricing requirements). When creating the document, the document flow
    (TVCPF,TVCPA) is processed using a pricing type that does not
    redetermine these condition types, although they are supposed to be
    called via the requirments."
    Please check if any of those reasons apply to your problem.
    Note that the condition type is determined just in the moment when
       the billing item is created. And it then that the userexit fills the
       field. When you save the billing document, pricing is called.
       Please ensure that you have any userexits switched off and then test
       this issue again.
    If you have access to OSS notes. please see:
         24832      Pricing rules / TVC
        130416     Requirements in the condition preliminary st
          27636     Message: Condition exists (removed manually)
        859876     Condition is missing: Message VE 108 or VE 008
    I hope you find this information very helpful and hopefully it will solve your problem.
    Regards,
    Martina McElwain
    SD - Forum Moderator

  • Need a where condition

    I have a table as below:
    family_code wers_feature_code
    AAA AAA01
    AAA AAA02
    AAA AAA03
    AAA AAAnn
    BBB BBB01
    BBB BBB02
    BBB BBBnn
    The family code is the first 3 characters of wers_feature_code.
    I need a where condition as below. Do not hard code the values in the where condition.
    (AAA01 OR AAA02 OR AAA03 OR .......AAAnn)
    AND
    (BBB01 OR BBB02 OR .............BBBnn)
    thanks,
    Vinodh

    Thanks for the reply. The family_code should not be hard coded . Their can be many family_codes. One wers_feature_code should get selected from each family to form a string.
    with t as
    select 'AAA' family_code, 'AAA01' wers_feature_code from dual union all
    select 'AAA', 'AAA02' from dual union all
    select 'BBB', 'BBB01' from dual union all
    select 'BBB', 'BBB02' from dual
    select t1.wers_feature_code||t2.wers_feature_code from t t1,t t2
    Result:
    T1.WERS_FE
    AAA01AAA01
    AAA01AAA02
    AAA01BBB01
    AAA01BBB02
    AAA02AAA01
    AAA02AAA02
    AAA02BBB01
    AAA02BBB02
    BBB01AAA01
    BBB01AAA02
    BBB01BBB01
    T1.WERS_FE
    BBB01BBB02
    BBB02AAA01
    BBB02AAA02
    BBB02BBB01
    BBB02BBB02
    The above query has to be filtered. The above records should not have same family_code.
    For example AAA01AAA01,AAA01AAA02,AAA02AAA01,AAA02AAA02,BBB01BBB01,BBB02BBB01,
    BBB02BBB02 should not get displayed. Do not hard code the family_code in the query. The records may be huge.
    thanks,
    Vinodh

  • When I was on facebook a few times, I get a message that says I need to install plug ins. It has a button to push to find out what plug in I need, but nothing happens when I click on it.

    My computer has Windows XP, I also have Mozilla Firefox. I don't understand why sometimes, a bar appears across the screen, where the tabs should be , and it says I need to install plug ins. It has a button that says, install, and one that says, click here to find out what plug ins you need. I've tried pressing both of them on different occasions but no luck. Can someone Please Help me??

    Checking your list of plugins, a common plugin that you do not have is Java, it may be trying to install that one. You can get it from http://java.com/

  • HT1338 I have os 10.5.8 software on my mac and I need to update the software on my mac so I can update my iphone 4s, every time I try to update my mac with the 6.0 it says it doesn't need any updates, but my mac still has 10.5.8.... any help??  Please...

    I have os 10.5.8 software on my mac and I need to update the software on my mac so I can update my iphone 4s, every time I try to update my mac with the 6.0 it says it doesn't need any updates, but my mac still has 10.5.8.... any help??  Please...

    You must first buy Snow Leopard from Apple: 800-MY-APPLE (in the US)
    Make sure your system meets Snow Leopard's requirements:
    Mac OS X 10.6 "Snow Leopard" System Requirements
    To install Snow Leopard for the first time, you must have a Mac with:
    An Intel processor
    An internal or external DVD drive, or DVD or CD Sharing
    At least 1 GB of RAM (additional RAM is recommended)
    A built-in display or a display connected to an Apple-supplied video card supported by your computer
    At least 5 GB of disk space available, or 7 GB of disk space if you install the developer tools

  • I cant open my iphone 3g ,,,, needs restore and itunes cant make restore has an error... How can I solve this problem?

    I cant open my iphone 3g .... needs restore and itunes cant make restore has an error on phone .... how can I solve this problem?

    Are there any error numbers given by iTunes? If yes, solutions for those numbers can be fund in this article: http://support.apple.com/kb/TS1275 or this one http://support.apple.com/kb/TS3694

  • Condition record exists, but has not been set IN JVRD Condition

    Dear Expert,
    I am facing a problem, when trying to create P.O with Excise and Vat Condition. So i am getting Error like Condition record exists, but has not been set so all duties are Calculated Properly but JVRD condition is not Appearing. when going for analysis so that time i am finding this error.
    Thanks You.

    hi,
    Please check that have you maintained Sett-off Conditions for JVRD Condition Types in T-Code: FV11 with respect to your combinations.
    Thanks,
    Raviteja

  • Os x lion needs 2gb memory and mac mini only has 1gb how do i upgrade

    os x lion needs 2gb memory and mac mini only has 1gb how do i upgrade

    Apple Menu > About This Mac > More Info
    Mine is a MacbookPro8,2
    Your model number is needed to determine how far it can be upgraded and how easily.

  • I need a program for camera.The androide has a program IP Cam View basic that has the fohu HA 425 and I get the cameras.I downlouded the IP camera viewer in the Aple but this program doesnt have the fuho HA 425. Which apple program is compatible?

    I need a program for camera.The androide has a program IP Cam View basic that has the fohu HA 425 and I get the cameras.I downlouded the IP camera viewer in the Aple but this program doesnt have the fuho HA 425. Which apple program is compatible?

    Hi,
    As far as I know, Sony Ericsson Z520, like a lot of the other cell phones, doesn�t support bluetooth serial communication.
    See:
    http://developer.sonyericsson.com/entry.jspa?externalID=138&categoryID=5
    BUT(!) You should double check this information.
    If you ask me, we have done similar project.
    We are working on hobby project � our robot use J2ME cell phone as on-board brain.
    And there is connection between this small robot and Linux-based PC.
    Communication was done via BlueTooth (in reality we use Linux implementation of BlueTooth stack and obexftp).
    BUT (!) We use Siemens S75 for this communication.
    I�m afraid that Siemens is the only manufacture, which implemented serial communication over bluetooth, embedded camera and non-usb socket.
    Also there are some Motorola phones, which implement serial communication over bluetooth.
    But � note that all Motorola phones use USB sockets and it will not be easy for you to make connection between such a phone and the robot.
    If you need just connection between cell phone and PC, then may be USB is OK too.
    Our robot project: www.RoboHobby.com

  • I'm investigating whether I can take on 'Lion' when it's released. The information states that your mac needs Intel Core 2 Duo. Is this the same as '2 GHz Intel Core Duo' which is what it actually states my mac has?

    I'm investigating whether I can take on 'Lion' when it's released. The information states that your mac needs 'Intel Core 2 Duo'. Is this the same as '2 GHz Intel Core Duo' which is what it actually states my mac has when I click 'About This Mac'?

    I could not agree more! My MBP 2007 Intel Core Duo has had its logic board replaced not to long ago (DVI port died). The original hard drive is running great and I am running Snow Leopard wonderfully.
    I was amped during the keynote and am really looking forward to Lion. I know the community is working hard to uncover a workaround because at present time, the solution (by new!) is not a worthy one. Especially when there is literally, nothing wrong with my existing machine.
    Apple, please ensure Lion will be available for Intel Core Duo machines, we are not that old! The closed architecture approach produces quality hardware. 4 years is a toddler perhaps teenager when it comes to apple hardware and technology. I predict I have at least 3-4 more years left in my current MBP 2007 machine.
    Much Love, Apple!

  • I just updated my iPad2 to ios7 and everything returned except my movies. Why??? I was trying to ADD a movie for my 5 year old and it said I needed a later iOS. Now he has ZERO movies!!!! Just great!!

    I just updated my iPad2 to ios7 and everything returned except my movies. Why??? I was trying to ADD a movie for my 5 year old and it said I needed a later iOS. Now he has ZERO movies!!!! Just great!! Can anyone help??

    For what it's worth, you posted this in 2011, and here in 2014 I am still having this same issue. Over the last two days, I have had to unlock my apple account 8 times. I didn't get any new devices. I haven't initiated a password reset. I didn't forget my password. I set up two factor authentication and have been able to do the unlocking with the key and using a code sent to one of my devices. 
    That all works.
    It's this having to unlock my account every time I go to use any of my devices. And I have many: iMac, iPad, iPad2, iPad mini, iPhone 5s, iPod touch (daughter), and my old iPhone 4 being used as an ipod touch now.  They are all synced, and all was working just fine.
    I have initiated an incident with Apple (again) but I know they are just going to suggest I change my Apple ID. It's a simple one, and one that I am sure others think is theirs. I don't want to change it. I shouldn't have to. Apple should be able to tell me who is trying to use it, or at least from where.
    Thanks for listening,
    Melissa

  • The condition you are adding has caused the query to be invalid.

    I select a column from the structure query: DATA_SET_ID [RDF_STATEMENT]
    I enter a condition: = :P_RSTA_RDSE_ID. (This refers to a hidden field on the page. I have confirmed that the correct value is passed.)
    I click on 'apply changes' and the page returns:
    1 error has occurred
    * The condition you are adding has caused the query to be invalid.
    Previewing the condition gives: (("RDF_STATEMENT"."DATA_SET_ID" = :P_RSTA_RDSE_ID)) which looks fine.
    I've tried a literal - (("RDF_STATEMENT"."DATA_SET_ID" = 1)) - and get the same error.
    I've tried converting to an unstructured query and get 'no data found' where the same query in SQL+ returns the desired rows.

    Mak,
    I will log this as a bug. You may have to recreate the report. Sorry about that.
    Scott

Maybe you are looking for

  • HT3748 My exchange email account works in iPhone but it does not work in mac, how do i solve it?

    I've tried several times to add my work exchange email account on macBook Pro but it cant connect to the server. It works fine on my iPhone. Is there any solution to this problem?

  • Picture black and white and upside down in sequence

    Hi! I am new at this and I just installed the Premiere Pro CS6 and I got it working, yay!! I imported a clip and in the preview it looks fine but when I place it in the sequence and look at it it becomes black and white and is upside down. How do I f

  • Nothing on my iPod touch works

    At first, iTunes said I had to install a new version of the software, and my iPod had to be resored to do that. I restored my iPod and the new software was downloaded, but ever since my iPod has been saying i have an unstable connection and need to c

  • How to start a batch job through a web service call

    I have a batch job created Data Services that I would like to be able to start through a web service call. I have exposed the batch job as a Web Service through the mangement console. The Integrators guide is not the clearest piece of documentation t

  • Automated salutation in Mail "Hello To " as a shortcut?

    Hello, it would be nice to have a shortcut that types an automated salutation in Mail "Hello <To>" where <To> is the recipient of my mail. Is there an extension or can I get "Typinator" or "TextExpander" to do this? Regards, Metuschelach