General question for 'IN'

Hi all,
Although this is simple, but I really do not understand why it does not work.
I have 4 conditions that need to be checked, in str4, the option is NP, but why it still meet the if statement condition below?
It seems like it is performing as OR instead of AND.
Please advise how could my code will be, if I do not want it to meet the If statement.
types: begin of tr_str,
            sign   type c length 1,
            option type c length 2,
            low    type co_sttxt,
            high   type co_sttxt,
           end of tr_str.
data: lr_str type range of tr_str,
      wr_str like line of lr_str,
      gv_str type co_sttxt.
wr_str-low    = 'str1*'.
wr_str-sign   = 'I'.
wr_str-option = 'NP'.
append wr_str to lr_str.
wr_str-low    = 'str2*'.
wr_str-sign   = 'I'.
wr_str-option = 'CP'.
append wr_str to lr_str.
wr_str-low    = 'str3*'.
wr_str-sign   = 'I'.
wr_str-option = 'NP'.
append wr_str to lr_str.
wr_str-low    = 'str4*'.
wr_str-sign   = 'I'.
wr_str-option = 'NP'.
append wr_str to lr_str.
gv_str = 'str4 str5 str6 str7'.
if gv_str in lr_str.
  write: / 'do something'.
endif.

The logic works because the IN does work as a series of OR statements. If any of the entries are true then the IN is true.
'str4 str5 str6 str7' satisifes both the 'NP str2' and the 'NP str3'. If you comment out these two entries you will not get the 'do something' message appearing.
Also note that your declaration of the range is a bit odd.
types: begin of tr_str,
            sign   type c length 1,
            option type c length 2,
            low    type co_sttxt,
            high   type co_sttxt,
           end of tr_str.
data: lr_str type range of tr_str,
      wr_str like line of lr_str,
      gv_str type co_sttxt.
This actually gives you a range of ranges. Is that what you really want?
I tdon't think you need your own type and can simply decare it like this:
data: lr_str type range of co_sttxt,
      wr_str like line of lr_str,
      gv_str type co_sttxt.

Similar Messages

  • OWB general questions for effective use.

    Hi all,
    I have been using OWB for a while now, and am getting to the point where I want to make sure I am using it effectively.
    For example, how does one decide what to include in one project, or to split it up into multiple projects? I am loading a warehouse, and so far I am only loading raw data into tables.
    My next step will be to perform ETL on the raw data and start forming more structured warehouse data. Would that step be better contained in a separate project? Would I need to repeat the definitions of the tables in the loading project? Should I just keep the whole thing in one project? The loading project is quite large, as we have raw data from many sources, and it seems to get one file in takes about 5 - 7 OWB objects (flat file, ext table, 2 - 3 mappings, process flow, 1 - 2 tables.)
    So I have dozens of mappings, tables, etc.
    Even though much of the data comes from different places, it is generally used together by the end users, and the ETL will likely also need to use most of it together.
    Is there any "Best Practices" posted anywhere?
    Another question that has come up is this: It seems the idea is to create the warehouse structures completely in OWB and deploy to the DB. However OWB doesn't allow for a full table definition, for things like Triggers, or for advanced features due to a later DB version.
    So does one just create a "phantom" entry in OWB that is never deployed, and then create the actual table manually, or deploy and then modify manually to add the trigger?
    Or are we not supposed to be using DB triggers, and instead control everything through OWB?
    Any insight would be appreciated.
    Thanks

    Hi
    I think the kind of questions you are asking are more aimed at methodology's not so much OWB. There are plenty of sites you can get this kind of info from one but not necessarily the best being <http://www.ittoolbox.com/>
    In any case we use three projects and multiple schemas
    project & schema 1 is used to collect data quickly from multiple sources
    project & schema 2 normalizes the data (acts as the storage repository)
    project & schema 3 is where the datamarts exist (de-normalized data)
    this approach allows you to isolate your integration layer from your reporting layer. most changes only affect one of the layers, not all.
    as far as creating your structures in owb is concerned I seen no problem, provided you are using a good ER tool and have ironed out any potential problems.
    I have certainly created triggers manually and added them after deployment, but in most cases you can use Transformations, post-mapping, and pre-mapping processes to do the same thing, after all the data should only get into the target through a mapping. If it gets in any other way, you have a hole in you bucket.
    Chris

  • General question for LabVIEW+iMAQ application productivity

    We have received new biotech robotic system with LabVIEW control software. One of the software task is image recognition (robotic vision system). During images processing tasks memory is not used hard, but the CPU is always at 100 % utilization. Now the software is running at the computer with ordinary P4 2.4GHz.
    Question: is there any sense to use Xeon system or multiprocessors system for the images processing acceleration? How deep is the LabVIEW code optimized for the different processors?

    > We have received new biotech robotic system with LabVIEW control
    > software. One of the software task is image recognition (robotic
    > vision system). During images processing tasks memory is not used
    > hard, but the CPU is always at 100 % utilization. Now the software is
    > running at the computer with ordinary P4 2.4GHz.
    > Question: is there any sense to use Xeon system or
    > multiprocessors system for the images processing acceleration? How
    > deep is the LabVIEW code optimized for the different processors?
    The LV code isn't very optimized specific to different CPU
    architectures. A machine with bigger chip caches will probably give the
    biggest advantage.
    As for multiCPU, this really depends on how a LV diagram is written. I
    saw a presentat
    ion several years ago showing the gains a multiprocessor
    system would give you in a vision system. If the diagrams are written
    with parallelism in mind and the IMAQ VIs are made reentrant, the
    multiple was good, close to the number of processors. But of course, if
    there is no parallelism on the diagram, or the subVIs aren't reentrant,
    the other processors have little to work on.
    I'd ask the manufacturer of the biotech system if they have tried it or
    designed it to scale. If I'm misunderstanding and you bought it from
    NI, then I assume you have access to enough of the source code to make
    things reentrant and program for parallelism. If you have trouble
    writing your code for parallelism, ask more questions.
    Greg McKaskle

  • General question for Forum re: e-mail updates

    Is anyone else receiving updates to this Forum in your e-mail, and if so, have you started to see the line-break character string scattered throughout the body of the e-mails? That's a left arrow, the characters "br", a slash, then a right arrow. This started happening to me on Saturday. My Friday stuff is fine, but starting with Saturday it's cluttered with < br / > every place there should be a line break...
    Edited by: Mark Thompson on Oct 20, 2008 11:56 AM

    Yes, this problem has been brought up by some of the Oracle Aces. It has been a known problem since last week. Check out the thread below and if you wish, you can add your comments as well.
    HTML markup in email

  • General Question for Learning

    Hi,
    Can anyone pls explain me.. When DBWR writes the data from DB Buffer Cache to Data Files ? what i'm thinking is if user COMMIT the transaction. is this right ? Pls Correct me if i'm wrong if possible pls explain me...

    vlethakula wrote:
    Your datafiles can contain uncomiited and commited data.
    When you issue a commit, message COMMIT COMPLETE would be displayed that means those changes are written to redolog files from log buffer cache(you are safe these changes are written from memory to files. As files are permanent storage)
    it is not necessary that those changes are written by dbwr from block buffer cache to datafiles;
    DBWR is lazy process ,it invokes
    upon checkpoint
    buffer cahce needs spaceThank you vlethakula

  • Interview Questions for FI- General Ledger and Special Purpose Ledger

    Hi Experts,
    Can you guys provide me interview questions for
    1) FI-SPL (Special Purpose Ledger)
    2) FI-GL (General Ledger)
    3) COPA
    4) Cost Center Accounting
    Help in this regard is highly appreciated. If you have any Interview Questions documents, please email it to [email protected]
    Thanks
    Rajanikanth.

    I have some cost center qns
    How is cost center realted to profit center?
    What is a cost element group?
    What is a cost center group?
    What is the difference between Assesment & Distribution?
    What is a activity type?
    Award points if helpful

  • General question on SQL Server 2000 to Oracle 10g

    Hello all,
    I just have a general question on migration from SQL Server 2000 to Oracle 10g using SQL Developer.
    How does it migrate Users with proper privileges from SQL Server to Oracle? Follow the interface steps? Or should the users be created on destination Oracle side?
    Thank you.

    Hi,
    It depends which type of migration you are making.
    For a 'Standard' migration when you migrate data a 'create user' statement is created as part of the migration and you will see this in the generated code.
    If you are using the 'Quick' migration option then you need to create the Oracle user or use an existing user to receive the data.
    Your best option is to review the documentation available from -
    http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
    or directly from -
    http://download.oracle.com/docs/cd/E12151_01/index.htm
    and then get back with specific questions if this does not give you the information you need.
    Review the chapter -
    2. Migrating Third-Party Databases
    in -
    Oracle® Database SQL Developer User’s Guide Release 1.5
    Regards,
    Mike

  • Report Builder Question - OA AR Aging - and a general question

    I'm sure this is the wrong forum for this question, but I thought there might be someone here who might be using Oracle Applications and Report Builder who'd be kind enough to help me out.
    We've recently implemented Oracle Applications 11.5.10 and I have to use report builder to change the Accounts Receiveable Aging (7 bucket) to a 5 bucket report. I've already made some changes to the seeded "ARXAGMW.rdf" report, but I'm not a big Oracle Reports guy. I've stumbled through making some changes in various other reports. But this one is just plain nasty! :)
    I was thinking that I could simply add buckets 6 & 7 to bucket 5, then just hide or delete the 6 & 7 buckets. But I'm not sure where to even start. Any help with this would GUARANTEE a Christmas or other holiday card this year! :)
    I really want to keep this simple as possible, so any help would be very....helpful. :)
    Oh, my general question is: Are there any resouces/books for Oracle Reports (Report Builder)? I feel so lost trying to modify existing reports, let alone creating new ones.
    Thanks again!
    Steve

    Hi Steve,
    I am working on the 7-bucket aging report and i want to add a new field in data model.
    As the query is build dynamically, i have modified the function BUILD_CUSTOMER_SELECT to meet my requirements.
    But the problem is that in the data model, the field is not present in my Grouping. and if I try to add the field in the Data Model query (Q_ Customer) section,
    i get the following error: ORA-01789: query block has incorrect number of result columns.
    The query is as shown below:
    select rpad('a',50,'-') short_cust_name,
    0 cust_id,
    rpad('a',30,'-') cust_no,
    rpad('a',500,'-') sort_field1,
    rpad('a',40,'-') sort_field2,
    0 payment_sched_id,
    rpad('a',32,'-') class,
    sysdate due_date,
    0 amt_due_remaining,
    0 days_past_due ,
    0 amount_adjusted,
    0 amount_applied,
    0 amount_credited,
    sysdate gl_date,
    'x' data_converted,
    0 ps_exchange_rate,
    0 b0,
    0 b1,
    0 b2,
    0 b3,
    0 b4,
    0 b5,
    0 b6,
    rpad('a',25,'-') bal_segment_value,
    rpad('a',500,'-') inv_tid,
    rpad('a',32,'-') invoice_type
    , 'y' parent_cust --I WANT A NEW FIELD HERE TO BE VIEWED ON THE REPORT LAYOUT LATER
    from dual
    where 1=2
    UNION ALL
    &common_query_cus
    Did i missed somthing 4 me to be able to add the field here?

  • General question about iTunes Match and multiple libraries

    Hello to everyone,
    I have a general question about the iTunes Match service, which is available since yesterday in my country (Italy). Currently my library situation is the following:
    Computer A (desktop, Windows 7): "big" iTunes library (about 20 GB), at the moment not associated with my Apple ID
    Computer B (MacBook Air 2011): "small" iTunes library (about 5 GB), associated with my Apple ID
    At the moment, both my iOS devices (iPhone 4 and iPad 2) are synchronized with the smaller library on the MacBook Air.
    Question is as follows: should I subscribe to iTunes Match, would it be possible to upload the "big" library (provided I associate it with my Apple ID) to iCloud while keeping my devices synchronized with the "small" one?
    Ideally, at the end of the day, the situation should be the following: both iOS devices with music from the small library + possibility of downloading songs from iCloud (coming from the big one). Is this possible?
    Maybe the question sounds stupid, but I want to be sure about this before paying for the service.
    Thanks a lot.

    Yes, you could also associate your larger library with iTunes match if you associated your Apple ID with it. However any purchases in the library made from another Apple ID will not be matched with iTunes much.
    If both libraries are part of iTunes match, then all your devices will see all of the content from both libraries, which content you choose to have on those devices and which you have accessible via iTunes match is entirely up to you.

  • Where to direct a general questions about foreign films subtitles?

    I recently purchased a foreign film "Break Ke Badd" from the iTunes store. Although, it didn't specify that it had English subtitles, I assumed it did. After the full download, I tried to watch it and there weren't any English subs. I contacted iTunes and they more than happy to refund the money back to my account. Now after a few weeks, the iTunes store DOES list Eng subs for this film. I don't want to purchase it again and have to contact iTunes for another refund...Therefore my question is, is there a general question contact one could use to find an answer to my question. Basically, to verify that this movie, indeed has English subs before I re-purchase. 
    Any info is appreciated!

    Yes I know as the [https://support.mozilla.org/en-US/questions/ Questions] section is more for desktop Firefox support and the place I linked to is for "Firefox OS" support in English where some who are involved with it do post in it occasionally.
    I would have moved that [https://support.mozilla.org/en-US/questions/962783 thread] to the "Firefox OS" English section, however I cannot as the [https://support.mozilla.org//questions/ Questions] and [https://support.mozilla.org/forums Contributor Forums] are not the same.

  • Facts and Figures - A Question for the Forum Mods

    A bit of a daft question for which I am sure the Forum Mods can provide an answer.
    How many folks were registered on the old forum and how many on the new one?
    I just want to put something BT Chairman Sir Michael Rake wrote to BT shareholders this month into context.
    "To forbid us anything is to make us have a mind for it."
    -- Michel de Montaigne, Essays, 1559

    Naughty naughty General - they dont do "daft" on this forum, you should know that.  
    "You may well think that, I'm afraid I could'nt possibly comment"
    Francis Urqhuart, who was never known by his initials to his friends. 
    AQ.
    "Welcome to Royston Vasey - You'll never leave."

  • Camileo charging problem (solved) and a general question!

    Hi all!
    First of all, I was going to ask for help as to why the Camileo S10 was not charging (the orange light wasn't flashing), and I'd seen a few people with similar problems.
    The solution?
    Give the contacts on the battery a clean.
    The insulation sticker that comes on it must leave some kind of residue on it, and it's enough to prevent charging. Now it's flashing away happily :]
    So my general question was, is it possible/advisable to use the camera on the mains?
    Rather than constantly draining and charging the battery during long shoots, I'd prefer to just leave it plugged in!
    Thanks very much in advance!
    Paul

    Hi
    I think the battery handling is always the same no matter what product it is
    From time to time the battery should be recalibrated.
    This means that the battery should be discharged fully and after then you should charge it again until the battery would reach 100%
    I do this with all my batteries; mobile phone battery, digi cam battery and notebook battery.

  • Update on Bioinformatics WIKI, scripting challenges, and a general question

    I am waiting for my site to go on-line at Oak Ridge National Labs (USA, Tennessee).  Should be another week or so, maybe less.
    When that happens, you will see a veritable explosion of scripting challenges in my wiki (Emerging Technologies->Bioinformatics.)
    One general question in preparation for these challenges.
    There are a number of standard  bioinformatic programs that can be run interactively via the web at various sites, e.g. "BLAST" and "STRIDE". 
    Although these can also be run locally, this requires that you download large databases and keep them updated.
    So here's my question to the scripting experts:
    Are scripting languages powerful enough to submit queries to web pages and then use regex's to parse the html that is returned?
    Bill Mann has used PERL to do some of the required regex parsing, but there is a lot left to do, and, his stuff only works when a perl program is invoking a bioinformatic program locally, not interactively.
    If so, we all can do some beautiful stuff together , if anyone is interested ...

    ...my wiki on...
    There is by it's very nature no such thing as MY WIKI, except you run your own wiki project in an exclusive mode. Which were...well ... unusual.
    Are scripting languages powerful enough to submit queries to web pages and then use regex's to parse the html that is returned?
    Yes.
    anton

  • Basic questions for a self-taught re: HDV for SD HDV (yes again)

    ok - like many others posting on this topic, I am apologising for going over what seems to be one of the most covered topics out there, that still isn't clear!
    I am trying to teach myself DVD SP4 in the same way I did with FCP5 (trial, error and lots of forum searching). I am by no means a pro on FCP - but have certainly got enough understanding of it to have cobbled together 7 23 minutes episodes to broadcast! I have gone thought the DVD SP4 Manual and forums and lots of it just makes my brain ache - what mostly lets down my understanding are formats/compression/codecs.
    So - my main questions (for now....)
    -In DVD SP I couldn't import my QT movie into my assets list as it was an "incompatible format" - is this because it was HDV to a SD DVD Project? Doesn't the process of DVD SP encoding it as Mpeg 2 make is SD anyway?
    -I read a post from someone in a similar situation, who advised exporting a HDV sequence as Uncompressed 8 Bit, and bringing that to DVD SP. So am doing that now (6 hours or so for a 23" sequence) and am hoping it gives a great looking picture, but I have seen from its preview icon that its a 720 x 576 frame - why is it not exporting in 16:9? or will it squeeze that down to normal once it's in DVD SP?
    Really appreciate any understand you can help me with.
    cheers
    Hugh

    Hughey wrote:
    Going back to my original questions - could the problem be a HD file in an SD project?
    No. If you followed the workflow process from the above post you would have a SD mv2 file. The file should be playable in Quicktime and it should be 16:9.
    EDIT: Yes. Reading back on your OP this question ->
    In DVD SP I couldn't import my QT movie into my assets list as it was an "incompatible format" - is >this because it was HDV to a SD DVD Project? Doesn't the process of DVD SP encoding it as Mpeg 2 >make is SD anyway?
    I believe that importing a HDV file into a SD project would give you that error but if you follow the above steps and import the mv2, AC3 files you should not get that error.
    The reason you got three files is because that is how the preset group is made up. To be completely truthful I duplicated that preset, deleted the AIFF part and renamed the group. I now use that as my default settings when I bring any asset into Compressor.
    As far as bring video assets (quicktime SD/HD, or other) into DVDSP in general you can do this but, what is happing is that in the background DVDSP is going through the steps from my above post and creating the mv2, AIFF, AC3 files for you (based on your preference setting in DVDSP) and then replacing the video files you brought in with the compressed files.
    Can you play the mv2 file in quicktime? If not then something else must be going wrong.

  • Delete scriptcode - General question: capacity limit of Acrobat Windows

    Hello everybody,
    I've got a general question to the capacity limit of Acrobat Windows.
    I often make forms with
    for instance the current one has 18 pages. Eleven pages have fields on it. (But some pages have only one field on it) The fields of one page to another are sometimes linked with script code. The file needs nearly 1 MB.
    Usual I write the script code by a double-click on the field/ calculate/ custom calculation script. (Is this the right way?) Today it happens again that a field with script code lost the script code.
    That's why I wonder whether there is a capacity limit of Acrobat Windows or whether I make mistakes. (This is only one instance of several where the form has his own life.)
    Thanks in advance for helping me!

    http://forums.adobe.com/community/acrobat/acrobat_scripting

Maybe you are looking for

  • I can't see my Library any more!

    I wanted to create a new calander for 2014, so I created a new catalog and started to import 25 images which were in my library in various folders. once I was done with the selections I could see that there are several catalogs set up from each folde

  • Getting back my old data after HD crash

    I've just erased my mac hard drive becuase it was corrupt and re-installed OSX, I did the simple erase with the disc utility. I know the data still exists on my hard drive and will just be over written with new data when it comes along. Is there any

  • Mastromike

    adding a submit button to a form

  • Fstab load order

    Is there any way to force a mount in fstab to be loaded last when starting up a system?  Or is there an alternative to rc.local with systemd so I can run "mount -a" during startup before any user has logged in?

  • HT1430 my i pad is disabled? How do I unlock it?

    My I Pad is disabled. How do I unlock it?