How to give OR in read

Hi all,
I need to write a READ statement for the below req.
I have one internal table as ITAB.
Loop at Itab1.
Read table ITAB2 with key ( CAN = Itab1-Value1 ) or
                          ( CAN = Itab1-Value2 ).
endloop.
this is not working.How to give OR condn in Read statement

You can also use another LOOP statement :
LOOP AT Itab1.
  LOOP AT ITAB2 WHERE CAN = Itab1-Value1
                   OR CAN = Itab1-Value2.
  ENDLOOP.
ENDLOOP.

Similar Messages

  • [solved] How to give one group read permission to file?

    Hi!
    How can I give the group "logreaders" a permission to read /var/log/messages? and how can I give them read access to the whole /var/log directory?
    Thanks!
    Last edited by SoleSoul (2010-04-21 20:54:00)

    Thank you very much everyone!
    I settled on this solution:
    # chown root:logreaders /var/log/messages
    # chmod g+r /var/log/messages
    I got to this conclusion before seeing your post and I was very happy to see from your post that I wasn't wrong.
    Thanks for the link Zeist.
    I thought before that each file can have it's own list of groups and users which can read/write to it. I was wrong.
    Learned something.
    Last edited by SoleSoul (2010-04-21 19:44:51)

  • How to give read statement checking condition

    hi,
    i am trying to give like this, but it throws an error can u tell me how to give a read statement checking two conditions.
    READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
                                                          AND GJAHR = WA_TAB_RBCO-GJAHR
                                                          AND BUZEI = WA_TAB_RBCO-BUZEI.

    Hi Anitha,
              READ statement wont have 'AND's in them. Your statement will work fine without having 'AND's. Lets try by omitting 'AND's in ur statement.
    Please change the code as follows.
    1)
    READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
    GJAHR = WA_TAB_RBCO-GJAHR
    BUZEI = WA_TAB_RBCO-BUZEI.
    2)sort i_resg by belnr gjahr buzei.
    READ TABLE I_RSEG INTO WA_TAB_RSEG WITH KEY BELNR = WA_TAB_RBCO-BELNR
    GJAHR = WA_TAB_RBCO-GJAHR
    BUZEI = WA_TAB_RBCO-BUZEI binary search.
    The above statement will fetch u particular record faster than the above READ statement.
    Thanks,
    Vinay
    Message was edited by: Vinaykumar Gorrela

  • How to give two values of same field in read Statment

    Hi,
    Please Tell me how to give the two values of same field in read statements Condition.
    i.e
      Read table it_tab with key matnr = '1' or matnr = '2'.
    With Regards
    Kesavaperumal

    Hi Kesavaperumal,
    <li>You can not use OR operator with READ TABLE statement.
    <li>You have to use different fields of the internal table in where condition.
    <li>If you want to compare with two values, you need to use LOOP statement.
    LOOP AT it_mara WHERE matnr = '1' or matnr = '2'.
    "Write code
    ENDLOOP.
    Thanks
    Venkat.O

  • How to give no of lines per page in alv report

    hi
    could anybody tell me
    how to give no of lines per page in alv report
    i need bottom of page too
    if possible plz send the code too
    it ll be very helpful to me
    thanx
    kals.

    Hi,
    This is possible, using some of the events in the ALV.
    You could use AFTER_LINE_OUTPUT event and call you form after say, a certain line count is reached on the list output.
      MOVE 'AFTER_LINE_OUTPUT' TO gw_event-name.
      MOVE 'AFTER_LINE_OUTPUT' TO gw_event-form.
      APPEND gw_event TO gt_events.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
           EXPORTING
                it_events                = gt_events[]
    and define the form for each event as follows - this would be a dynamic call by the ALV.
    *&      Form  after_line_output
    *       Form for the After Line Output Event in the internal table
    *      --> rs_lineinfo
    FORM after_line_output USING rs_lineinfo TYPE slis_lineinfo.
      IF sy-linno eq v_linno.          "Defaulted value for line count
        perform write_footer.
        NEW-PAGE.
      ENDIF.
    ENDFORM.                    " after_line_output
    For lines per page:
    rs_lineinfo-tabindex would give you the index of the current line in the list, which you could use to read the t_outtab table, and reduce the line count of items displayed on the earlier page.
    There are a few other events too, like BEFORE_LINE_OUTPUT and END_OF_LIST which you can use as required and print the data.
    Regards,
    Anil.

  • How to give a message in the UI page if there is an error in AppImpl method

    How to give an error message in the jsf page if the AppImpl method fails ?
    Use case : I have a create form and a submit button which binds with a client interface method in Application Impl class. If the method fails due to some exception , how can I notify the users with proper error message ?
    Thanks
    Suneesh

    Hi,
    As the previous reply (casting the result) is the best solution here (separating model and view logic) but sometimes we do a shortcut.
    may be it is not the best approach but it comes handy most of the time, this approach is also error-proven. we used it more than 2 years in large applications.
    add the following code whenever you want to add message in UI be aware that we have add it in a jar and add that library to the model projects
    FacesContext ctx = getFacesContext();
    FacesMessage fm = new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
    ctx.addMessage(null, fm);
    you just need to add jsf library to the model applications and replace msg with your message.
    regarding throw jboException, it seems good most of the time but sometimes when you are in middle of the transaction it somehow ruin the flow of the transactions.
    Regards.

  • How to give error message for the screen element text field when wrong i/p

    How to give error message for the screen element text field when wrong i/p
    when wrong input given
    eg. 
    I have a text box with SBOOK-CARRID
    so when user give wrong entry in text box i.e LG
    then I should give some error stating that the the input is invalid or not available ,
    now it showing the error of standard messages,
    i want manual message to be displayed when error comes.
    Thank you,
    Regards,
    Jagrut Bharatkumar Shukla

    Hi all,
    Thank you for your valuable reply,
    but the thing is that its a screen field,
    i.e text box not a selection screen
    i created in screen layout
    with name sbook-carrid
    now i want to get error message display if wrong i/p is given
    thank you.
    Regards,
    Jagrut bharatkumar Shukla,

  • How to right align a read only numeric field in a panel form layout

    Hi, does anyone know how to right align a read only numeric field in a panel form layout? I am using: Style Class = AFFieldNumberMarker, but it only seems to work if the field is disabled. Disabling the field gives it a difference appearance that does not look right on our forms. These are calculated fields, which cannot be modified, so read only is necessary.
    I have looked online for some answers, and it seems that others are having similar issues.
    I have tried different combinations for the properties, but so far I cannot get it to work.
    Thanks
    Judy
    I am using JDEV 11.1.1.5

    Sorry for the delay in my response. Here is the code
    <af:inputText value="#{bindings.TotalAirlineCostEst.inputValue}"
    label="#{bindings.TotalAirlineCostEst.hints.label}"
    required="#{bindings.TotalAirlineCostEst.hints.mandatory}"
    columns="#{bindings.TotalAirlineCostEst.hints.displayWidth}"
    maximumLength="#{bindings.TotalAirlineCostEst.hints.precision}"
    shortDesc="#{bindings.TotalAirlineCostEst.hints.tooltip}"
    id="it20" readOnly="false"
    disabled="true"
    styleClass="AFFieldNumberMarker">
    <f:validator binding="#{bindings.TotalAirlineCostEst.validator}"/>
    <af:convertNumber groupingUsed="true"
    pattern="#{bindings.TotalAirlineCostEst.format}"
    type="number"
    maxFractionDigits="0"/>
    </af:inputText>
    thank you,
    Judy

  • How to give other material as a free good

    Hi all,
    Here i am getting doubt how to give free good for one material to another material. for ex:- if customer buy product A he will get product B as a free good how do we configure in to sap. i tried in exclusive method in the sales order it is executing and when coming to delivery and billing free good line item is not getting in deliveries and billing how to do this. plz tell the required steps to do this.
    Thanks & Regards,
    kishore

    Hi,
    This can be done in two ways.
    1)Create a BOM with the product A as the header material.Make sure that the sub items are for free of cost.Pricing will be done only for this header.
    2)Mainatin the different item category for both material A and material B.
    Goto VOV7 T.Code.
    Select material B's item category.
    Details.
    Maintain the pricing as "B".
    Save.
    Regards,
    Krishna.

  • How do i install adobe reader without installing products from google.

    i dont like google, i dont like a bunch of worthless taskbars crowding my browser. so how do i install adobe reader without installing google products when you dont even give me the chance to say i dont want them?
    It is unethical to force onto people products of any nature that they do not want. i do not want google products so by your installation for adobe reader automatically installing google products without my consent is unethical.

    I don't understand the "forcing" part; the bundled software is clearly optional, and can be unchecked before the download.
    Or using the download link that Michael provided earlier (which is posted at least a dozen times every day in this forum).

  • How to give raw footage shot in AVCHD to wedding clients?

    I’ve been living in AVCHD **** for the past couple weeks.  I just recently upgraded my old Sony PD-170s to new Panasonic AG-AC90s which record in AVCHD.  I mostly shoot weddings and deliver the raw footage directly to my clients.  When I was shooting DV, I just gave them the tapes and was done.  Now, I’m completely stressed out because I’ve been trying to figure out how to give my clients their footage without worrying if they’ll be able to play it back on their computer without any problems.  I’m particularly worried since I’m on a late 2008 Macbook Pro 2.66 GHz Intel Core 2 Duo with 8GB of RAM and the files won’t play back smoothly for me.  I need to be able to deliver the footage so that it will play back smoothly on both Mac and PC, even if they’re not as powerful as my own computer.
    I went to the Apple Store and they recommended I get a new SSD and a new battery for my laptop.  I’m waiting on both and we’ll see if they make any difference.  They told me I could use Compressor to convert the files to a more compatible format, but I tried that and it took nearly half an hour to convert a one-minute clip to 720p.
    I’ve thought about just burning all their footage to blue-ray so they can watch it on their HDTV, but that would mean buying a blue-ray burner and having no idea how long that whole process would take on my outdated MBP.  If I had any luck going that route, maybe I could just give them the AVCHD files on an external hard drive and disclose to them that their computer may not be able to handle playback.  At least they could give the drive to a professional editor who would know what to do with it.
    I feel like I’m in way over my head.  I don’t have the money to buy a new computer right now, but if I have to take out a loan so as to not wind up with unhappy clients, I will.  I just have no idea how much of an investment I would need to make to be able to do the transcoding in a reasonable amount of time.  The “genius” at the Apple Store didn’t have any great advice other than to tell me to use Compressor.  I really need to figure out how to do this in the most efficient and economical way possible.  I’m broke, I’ve been living with my parents and I’m just trying to get back on my feet after the worst year of my life in 2013.
    I’ve spent many hours over the past two weeks researching these issues, reading articles, posting on various message boards and still not feeling like I’m close to any real solution.  Any help would be a tremendous blessing. 

    If you are giving the clients the raw footage it's best I think to give them the entire media structure from the camera card. Just make a separate folder for each card, call them Joe&Joan1, 2, 3, etc. Drag the complete contents of each card into it's separate folder. Put the folders on an ExFAT formatted jump drive.
    That's the down and dirty method, but it depends what the client wants to do with the video, just watch it on the TV or maybe do something with it themselves. If the latter, then the way I described above is probably the safest for giving them the most options on how to deal with it. If they just want to view, most recent systems can play back raw .mts files in H.264, but the client will have to dig it out of the folder structure to find it.

  • How can I save adobe reader file from gmail into my adobe reader app?? i would like to open one file in place where I'm not able to access internet and for that reason i would like to save it. is that even possible?

    How can i save adobe reader file from my gmail into my adobe reader application. or is there any other way i can save it into my phone so I'm able to open in any situation not just from my gmail???

    Long hold on the document in mail and it should give you the open in... option, select adobe reader and the file is now saved locally for viewing even while offline.

  • How to give browse and monitor only options of an ICM script to a certain group?

    I am looking for an option in the Feature Control Set, how to give "Browse and Monitor" only options for a certain group in our contact centre. If someone give me some clue, it would be appreciatable.

    Hello Praveen,
    This work at some point. But it's not resolving what I intend to do. When I give "Read Only" previledge, to the certain group, it won't be able to do other tasks what they do day to day. I am looking specifically to give read only previledge in the scripting level. Not at the configuration level.
    Thanks.

  • How to give comments in .properties file?

    hi
    can any one tell how to give commens in .properties file
    any thing after first space will be treated as key value pair
    thanks in advance
    bye

    hi
    can any one tell how to give commens in .properties
    fileAny line that begins with a # is a comment in a properties file. These are single line comments.
    any thing after first space will be treated as key
    value pairEh?
    thanks in advance
    byePreemptive welcome.

  • How to give colors to the top-of-page in ALV Grid

    How to give colors to the top-of-page in ALV Grid
    in table GT_LIST_TOP_OF_PAGE i am filling 3 rows ,i need 3 different colors to be displyed on top-of-page(one color to one row)
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    I_LOGO = 'ENJOYSAP_LOGO'
    IT_LIST_COMMENTARY = GT_LIST_TOP_OF_PAGE.
    please help mee

    HI Kranthi,
    Check out teh foll. link,
    http://www.sapfans.com/forums/viewtopic.php?t=52107
    Hope this helps.

Maybe you are looking for

  • Cannot access shared external drive on iMac from Windows 7

    Used to be able to access this drive with no problem from any of my PC's. Sent iMac in for repair and system drive was wiped so I'm starting from clean install of Leopard. Did all the updates first including 10.6.4 which wasn't on before the system d

  • How to create a OPC Server

    I must create a OPC serveur to distribute any value to other automation application. I now how to access to a OPC server (like the NI Demo server) but this time i must do my hown OPC server Thanks in advance and best regards (sorry for my english but

  • How to set the default date format to populate a CachedRowSet...

    Hi, I'm working with JDBC to retrieve some data from an Informix Database, I'm also using Flash Remoting as my User Interface. The thing is, when I'm trying to display the recordset, the Date Format looks like this: "Fri Jan 29 18:00:00 GMT-0600 1999

  • Deflation Animation not Working

    Hi, I have got a code from this forum which create a ellipse on the client area. First it creates a rectangle equivalent to the size of client area. I have put the deflation code in the ::OnTimer( ....) but its not working. void CTestingCode1View::On

  • Layouts - Variant &1 does not exist for version &2 of layout module &3

    Hi Sap All. when i am trying to create IDOC's of type LAYMOD01 using LSMW with IDOC Object type ,there were some IDOC;s failing in SAP With status 51 saying as  "Layouts - Variant &1 does not exist for version &2 of layout module &3". the following b