Help regd to CHECK statement

Hi SDN's
I am working on 4.6C version.
I have an internal table ITAB with Sales Group as one of its field.
I have Sales Group SO_VKGRP on the selection screen as select-options no intervals.
Now my problem is if the SO_VKGRP has some entries in the excluding list,then the check statement is failing.
<b>I know i am wrong at some point. Correct me.</b>
loop at ITAB.
    IF NOT p_spart IS INITIAL.
      SELECT SINGLE * FROM knvv
                      WHERE kunnr EQ itab-cust_acct AND
                            spart EQ p_spart.
      CHECK sy-subrc EQ 0.
    ENDIF.
    IF knvv-spart = 'H1'.
      IF NOT so_vkgrp[] IS INITIAL.
        CHECK knvv-vkgrp in so_vkgrp.
        " wil this be correct if i have entries in the
        " excluding tab of select options
      ENDIF.
<Some modifications and validation are done here>
    ENDIF.
endloop.
Regards
Pratyusha

HI
CHECK log_exp.
If the statement CHECK is executed outside a loop and log_exp is incorrect, the statement terminates the current process block. You can specify any logical expression for log_exp.
The behavior of the runtime environment after exiting the processing block is described under Exiting Processing Blocks.
SAP recommends to use this procedure with the statement CHECK only inside loops (see CHECK (Loops) ).

Similar Messages

  • BT Infinity checker states Brentwood as enabled - ...

    I'm sure I'm not the only frustrated one in this position.
    The online checker states that Brentwood exchange is enabled for infinity (apperantly one of the first in the country).
    However, a check against my phone number states that I cant get Infinity. The max I get is ADSL at 1mbit.
    I know that all cabinets are not active but I can't get any information as to which cabinet I connect to and when that will be enabled for Infinity.
    I can't get any help from the BT customer service dept.
    Any help would be appreciated.

    Hi NotBehondInfinity,
    Thanks for the post and welcome to the forum.  I may be able to find out what is going on here.  I cant make any promises but I will certainly see what I can do.
    Please drop me an email via the 'Contact Us' link in my profile. (click on my name and you will find the link under the "about me" section). Include your BT account details and the link to this thread.
    Cheers
    Sean
    BTCare Community Manager
    If we have asked you to email us with your details, please make sure you are logged in to the forum, otherwise you will not be able to see our ‘Contact Us’ link within our profiles.
    We are sorry that we are unable to deal with service/account queries via the private message(PM) function so please don't PM your account info, we need to deal with this via our email account :-)

  • Reading checked state of checkbox

    Hi there:-
    'Sorry to post such a simple question but I can find the
    answer in the Dreamweaver online reference, and I have wasted a lot
    of time trying to find the answer.
    I want to read the checked state of a given checkbox and then
    if value of true is returned invoke function "A" or if false is
    returned invoke function "B".
    Based on what I found in the reference I set up a variable to
    capture the state of the checkbox as follows:
    function checkboxState()
    var checkState = document.all.nameOfCheckbox.checked;
    if (checkState == true)
    statements
    else
    if (checkState == false)
    statements
    The check box is setup as follows:
    <input name="nameOfCheckbox" type="checkbox"
    onClick="checkboxState()">
    This doesn't work and I don't know why. I wondered if I had
    to define the checkbox in a particular way, e.g. using the value
    attribute or something, but the reference did not indicate this.
    If anyone can help I would appreciate it.
    Thanks!

    Hi Jules,
    Thanks for the tip. It worked. I have seen people set up an
    if statement without any argument "if(checkStatus)" but I don't
    entirely understand the mechanics of what this is doing. (That is,
    how a true or false is passed to the variable) But I originally
    learned to code COBOL so maybe I am too old fashioned.
    Thanks,
    Linda

  • Purpose of Check statement..?

    Hi All,
    What will happens when I write check statement in the loop
      Loop at temp_glpct.                                     
        Check temp_glpct-RYEAR IN RYEAR.                     
    Akshitha.

    If you use the CHECK <expr> statement within an event block but not within a loop, and the condition <expr> is not fulfilled, the system exits the processing block immediately.
    <expr> can be any logical expression or the name of a selection table. If you specify a selection table and the contents of the corresponding table work are do not fulfill the condition in the selection table, it is the same as a false logical expression.
    If the CHECK statement occurs in a loop using DO, WHILE, or LOOP, it is the loop that terminates, not the processing block.
    Check this link for more.
    http://help.sap.com/saphelp_nw04/helpdata/en/9f/db9afe35c111d1829f0000e829fbfe/content.htm

  • Use previous "Delete from hard disk" checked state?

    Is there any way for the program to use the previous "Also delete selected item(s) from the hard disk" checked state in the file deletion confirmation dialog?  It gets tedious to check it every time I want to delete a file and if I forget to do it I will have an extra file sitting on my hard disk not in my catalog.

    A quick shortcut that I use is to hit the spacebar (checks/unchecks the "delete from
    hard disk" option), then hit the enter key to complete the process.
    Michael

  • When I try to update my phone to ios 7 it says i need to update my itunes to 11.0.5, when i check my current version in help menu under check for updates it says I have the current 11.0.5 version.

    When I try to update my phone to ios 7 it says i need to update my itunes to 11.0.5, when i check my current version in help menu under check for updates it says I have the current 11.0.5 version. Even the downloader for the update doesnt show that i need to update.Help plzz????

    There is some kind of error. The new version of iTunes is 11.1, which although is not available via updates, it can be downloaded from the Apple website here:
    http://www.apple.com/itunes/download/
    After updating iTunes to the newest version you should be able to update your iOS
    EDIT: I just did that and it works

  • Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". I've quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. HELP

    Apps tab of Creative Cloud desktop helper constantly displays "Download error. press retry or contact customer support". As well as reloading, I've also quit CC desktop helper, restarted computer, checked network settings, relogged in. Cannot download any new apps or updates. please help.
    System: Mac OSX 10.9.4. 3.4ghz intel core i7, 8gb ram

    Hello,
    Adobe has brought these new links in this matter:
    Troubleshoot Creative Cloud download and install issues and
    App doesn’t open; progress wheel spins continually
    Please have a look there. If necessary and for further questions click through http://helpx.adobe.com/contact.html and if "open" please use chat, I had the best experiences. I quote from Preran: The chat button is activated as soon as there is an agent available to help.
    Good luck!
    Hans-Günter

  • Need help with the session state value items.

    I need help with the session state value items.
    Trigger is created (on After delete, insert action) on table A.
    When insert in table B at least one row, then trigger update value to 'Y'
    in table A.
    When delete all rows from a table B,, then trigger update value to 'N'
    in table A.
    In detail report changes are visible, but the trigger replacement value is not set in session value.
    How can I implement this?

    You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
    For example
    SELECT YN_COLUMN
    FROM My_TABLE
    INTO My_Page_Item
    WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
    If the value is showing in a report, make sure the report refreshes on reload of the page.
    Edited by: Bob37 on Dec 6, 2011 10:36 AM

  • Looking for some help with building insert statements...

    Hi, I am using some sql to build some insert statements for me to update a set of tables in our qa environments. The scripts that I have created were working great until someone added a column to some of the tables in the qa env which in turn makes my scripts break because I was simply building the statment to do someting like this...
    insert into dest_table (select * from source_table@dblink);
    But now when the coumns in the tables do not match it breaks...
    This is the dynamic create script I use, can anyone help or suggest a better way to be able to build update statements update to qa tables when the columns are mismatched?
    spool insert.sql
    select
    'insert into ' || table_name || ' (select * from ' || table_name || '@prod );' || chr(10) || ' commit;'
    from user_tables
    where table_name in
    (select * from refresh_tablesl)
    any help is greatly appreciated,
    Thanks.

    See my reply to your duplicate post
    looking for help building dynamic insert statements...

  • Hi, i got a iphone 4s in AU, but it was locked, would you like to help me to check which carrier is this?

    hi, i got a iphone 4s in AU, but it was locked, would you like to help me to check which carrier is this?
    <Edited By Host>

    Where did you buy the iPhone? What does it say
    when you look at Settings=>General=>Carrier?
    Ask the seller what wireless carrier the iPhone is
    locked to.

  • Is it possible to get menu item checked state?

    In a script I need to know the state of a menu items checked state - e.g. the View/Proof Colors menu item.
    Is that possible? (and of cause if it is how do I do it?)
    Thanks,
    Jack

    The reason I need the state of "Proof Colors" is that I want to turn on/off the visibility of a layer set depending on its state.
    In the layer set I would have my printing adjustments layers. This way it is very easy to compare the image with the softproof. When "Proof Colors" is turned off the printing adjustment layer set would also be turned off - displaying the image without any printing corrections.
    When "Proof Colors" is turned on the printing adjustment layer set would also be turned on - displaying the softproof with printing corrections applied.
    Jack

  • Help on Availability Check.

    Hi, I need help on Availability Check.
    My requorement is when a particular item in sales order does not have enough stock, this should give error message and does not allow user to process further.
    I want to do this for a particluar sales order type.
    I have deactivated 'Forward scheduling" for order type but still 'Forward scheduling' is happening, giving schedule line based on future Material availability date.
    Any suggestions how to solve this problem ?

    Dear
    It will Be depend up on Item Category of you Schedule Line Category.
    IMG-SDBF-Availabulity CheckTransfer of Requirement----Determination Of Requirement Types Using Transaction
    once you check it you will get.

  • Help with this update statement..

    Hi everyone,
    I am trying to update a column in a table .I need to update that column
    with a function that takes patient_nbr and type_x column values as a parameter.
    That table has almost "300,000" records. It is taking long time to complete
    almost 60 min to 90 min.
    Is it usual to take that much time to update that many records?
    I dont know why it is taking this much time.Please help with this update statement.
    select get_partner_id(SUBSTR(patient_nbr,1,9),type_x) partner_id from test_load;
    (it is just taking 20 - 30 sec)
    I am sure that it is not the problem with my function.
    I tried the following update and merge statements .Please correct me if i am wrong
    in the syntax and give me some suggestions how can i make the update statement fast.
    update test_load set partner_id = get_partner_id(SUBSTR(patient_nbr,1,9),type_x);
    merge into test_load a
    using (select patient_nbr,type_x from test_load) b
    on (a.patient_nbr = b.patient_nbr)
    when matched
    then
    update
    set a.partner_id = get_partner_id(SUBSTR(b.patient_nbr,1,9),b.type_x);
    there is a index on patient_nbr column
    and the statistics are gathered on this table.

    Hi Justin,
    As requested here are the explain plans for my update statements.Please correct if i am doing anything wrong.
    update test_load set partner_id = get_partner_id(SUBSTR(patient_nbr,1,9),type_x);
    "PLAN_TABLE_OUTPUT"
    "Plan hash value: 3793814442"
    "| Id  | Operation          | Name             | Rows  | Bytes | Cost (%CPU)| Time     |"
    "|   0 | UPDATE STATEMENT   |                  |   274K|  4552K|  1488   (1)| 00:00:18 |"
    "|   1 |  UPDATE            |        TEST_LOAD |       |       |            |          |"
    "|   2 |   TABLE ACCESS FULL|        TEST_LOAD |   274K|  4552K|  1488   (1)| 00:00:18 |"
    merge into test_load a
    using (select patient_nbr,type_x from test_load) b
    on (a.patient_nbr = b.patient_nbr)
    when matched
    then
    update
    set a.partner_id = get_partner_id(SUBSTR(b.patient_nbr,1,9),b.type_x);
    "PLAN_TABLE_OUTPUT"
    "Plan hash value: 1188928691"
    "| Id  | Operation            | Name             | Rows  | Bytes |TempSpc| Cost (%CPU)| Time     |"
    "|   0 | MERGE STATEMENT      |                  |   274K|  3213K|       |  6660   (1)| 00:01:20 |"
    "|   1 |  MERGE               |        TEST_LOAD |       |       |       |            |          |"
    "|   2 |   VIEW               |                  |       |       |       |            |          |"
    "|*  3 |    HASH JOIN         |                  |   274K|    43M|  7232K|  6660   (1)| 00:01:20 |"
    "|   4 |     TABLE ACCESS FULL|        TEST_LOAD |   274K|  4017K|       |  1482   (1)| 00:00:18 |"
    "|   5 |     TABLE ACCESS FULL|        TEST_LOAD |   274K|    40M|       |  1496   (2)| 00:00:18 |"
    "Predicate Information (identified by operation id):"
    "   3 - access("A"."patient_nbr"="patient_nbr")"Please give some suggestions..
    what's the best approach for doing the updates for huge tables?
    Thanks

  • Can anyone help me understand "Continue Statements"?

    Hi,
    I was wondering if anyone could help me understand continue statements. I've been studying the java tutorials this weekend but can not get my head around the following explanation: (My thoughts are at the end of this message and it might be easiest to read them first!)
    "The continue statement skips the current iteration of a for, while , or do-while loop. The unlabeled form skips to the end of the innermost loop's body and evaluates the boolean expression that controls the loop. The following program, ContinueDemo , steps through a String, counting the occurences of the letter "p". If the current character is not a p, the continue statement skips the rest of the loop and proceeds to the next character. If it is a "p", the program increments the letter count.
    {code}class ContinueDemo {
    public static void main(String[] args) {
    String searchMe = "peter piper picked a peck of pickled peppers";
    int max = searchMe.length();
    int numPs = 0;
    for (int i = 0; i < max; i++) {
    //interested only in p's
    if (searchMe.charAt(i) != 'p')
    continue;
    //process p's
    numPs++;
    System.out.println("Found " + numPs + " p's in the string.");
    }{code}
    Here is the output of this program:
    Found 9 p's in the string.
    To see this effect more clearly, try removing the continue statement and recompiling. When you run the program again, the count will be wrong, saying that it found 35 p's instead of 9.
    A labeled continue statement skips the current iteration of an outer loop marked with the given label. The following example program, ContinueWithLabelDemo, uses nested loops to search for a substring within another string. Two nested loops are required: one to iterate over the substring and one to iterate over the string being searched. The following program, ContinueWithLabelDemo, uses the labeled form of continue to skip an iteration in the outer loop.
    {code}class ContinueWithLabelDemo {
    public static void main(String[] args) {
    String searchMe = "Look for a substring in me";
    String substring = "sub";
    boolean foundIt = false;
    int max = searchMe.length() - substring.length();
    test:
    for (int i = 0; i <= max; i++) {
    int n = substring.length();
    int j = i;
    int k = 0;
    while (n-- != 0) {
    if (searchMe.charAt(j++)
    != substring.charAt(k++)) {
    continue test;
    foundIt = true;
    break test;
    System.out.println(foundIt ? "Found it" :
    "Didn't find it");
    }{code}
    Here is the output from this program.
    Found it"
    Here are Woodie's thoughts........................................
    1) With the first program I don't understand how the program counts the number of "p's". Like for example how it stores the number of "p's". Shouldn't it say:
    if (searchMe.charAt(i) = 'p') then store it in some sort of containers??? 2) With the second program, I don't understand the test section. For example: Why does it have --? why does it have != after while and why does it have != after if?
    while (n-- != 0)
                    if (searchMe.charAt(j++) != substring.charAt(k++))
                        continue test;
                foundIt = true;
                     break test;Edited by: woodie_woodpeck on Nov 23, 2008 3:29 AM

    Woodie, I think they're just silly "theoretical" examples... ergo don't worry too much not understanding them, coz they don't actually make a lot of sense... as you've allready pointed out there are other "more normal" control structures which achieve the same thing, and which in this case (in my humble opinion) would make for clearer, more concise, more maintainable code.
    All you need to know about continue is "it means go back to the top of the loop"... If you're not comfortable using "continue" then don't.
    There's more than one way to do it.
      public static void main(String[] args) {
        try {
          final String s = "peter piper picked a peck of pickled peppers";
          int count = 0;
          for ( char c : s.toStringArray() ) {
            if (c=='p') count++;
          System.out.println("There are "+count+ " p's in '"+s+"'");
        } catch (Exception e) {
          e.printStackTrace();
      }Having said all that... I did use continue in anger the other day... I was reading Geometries from a shape file... the reader was throwing an ArrayIndexOutOfBoundsException given an "empty Feature" (ie a feature with the geospatial presence)... All I did was catch the exception and continue trying to read the new feature... the alternative would have been to rewrite the control logic of the whole reader loop... quick, simple effective... but I don't routinely build continue statements into new code... just a matter of personal taste.
    Cheers. Keith.

  • Please help me to check whether it is right

    I‘m studying the Labview and trying to finish a VI, but I don't know whether it is right? Please help me to check it.
    My VI is frequency modulation that 30Hz baseband modulate 9960Hz Subcarrier, and they phase is 1.
    Attachments:
    Subcarrier FM.vi ‏19 KB

    I‘m studying the Labview and trying to finish a VI, but I don't know whether it is right? Please help me to check it.
    My VI is frequency modulation that 30Hz baseband modulate 9960Hz Subcarrier, and they phase is 1.
    Attachments:
    Subcarrier FM.vi ‏19 KB

Maybe you are looking for

  • Media for Adobe Photoshop CS3 standard (English)

    Does anybody have a copy of the Media for Adobe Photoshop CS3 standard (English) or know where i can download it. I know its rather old at this stage but we have misplaced our CD and for some reason adobe are unwilling to make a copy of the media ava

  • Inbound Message Fails with Send Exp"

    We are on 10.1.2.0.2 and tryting to test (ebms ) outbound/inbound messaging with a trading partner. The outbound from us to TP works great, but on inbound from the TP we are seing the following errors: (This works on 10.1.2.0.0) Machine Info: (devb2b

  • Hiding Dashboard tab by user group

    I have my users created and assigned to groups in my rpd only (under manage-security). I want to display a specific tab on my dashboard for a particular group only. All users in the other groups need to have that tab hidden. What is the best way to d

  • Import Novell Client ADM to Zen 10

    What is the secret to creating a Policy in Zenworks 10 that controls the Novell client? I do not see any place that I can import an ADM file and then create a policy using it. Another question is will the client ADM file 4.9 work for the Vista 64 Nov

  • Get rid of mobileme icon

    how to get rid of this? mobileme is gone long ago... macbook pro 10.5.8 dual 1.8 Ghz powerPc G5 Thank you in advance!