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

Similar Messages

  • How to give level value 'unknown'

    Hi there,
    When creating a dimension with OWB, we get for every level also a row with empty values voor de levels underneath.
    E.g.: Dimension customer: Level Total, level customer group, level customer.
    I get:
    =====================================
    Level_total customer_group customer
    Total NULL NULL
    Total Group1 NULL
    Total Group2 NULL
    =====================================
    This is generated by OWB automatically.
    Anybody any idea how to fill in 'Unknown' instead having it blank? I've looked if i can fill somewhere a property, but could not find.
    Any help is appreciated.
    Thanks
    Sandra

    hii vishal,
    this selct option i already taking from database.
    only i want to give constant value to this field ..
    u mean to write selection-screen  select-option in coding part of query/infoset?
    for this field?
    n give const value in this code/.?

  • How to display 7 values of  single field in row wise.

    hi,
    how to display 7 values of  single field in row wise.
    thankx in advance.

    hi ,
    do it like this :
    1 Place ur UI element in tranparent container with Layout as Row Data and Layout Data as Row Head Data
    2 Ur first  UI , which contains the first value as Row Head Data ,
    3 Others as Row Data
    u can do it with Matrix Data as well
    if u want to give space , u can use HORIZONTAL GUTTER and set its width to medium / large / Xlarge
    also there is a UI element "INVISIBLE ELEMENT" ,
    1 u can use this UI element to provide space between ur other UI elements in the view
    2 u can insert a text element as well , and in the Text property of the element press ALT + 0160.
    u can give the space bw UIs as desired.
    regards,
    amit

  • How to replace blank values in DATE field with 00000000

    Hi
    I have a DSO with Date field in which there are blank values. I want to replace the blank values in the DSO for date field with 00000000. Because of this blank values in the DSO the report is giving an ORA error.
    How do we replace the blank values in the DSO for historical data and also the new loads?
    Please advise.
    Thank you.
    Regards,
    Pavan.

    Hi Suman,
    I'm trying to run a query built on a DSO. The DSO has a field 'Start Date'. This Start Date InfoObject has a reference Char as 0DATE.
    This Start Field has blank values due to which I'm getting the ORA-01722 error. I came across many threads with same topic of discussion. As mentioned in one of the Threads I have written a program to update 'Start Date' with 00000000. The code wriiten is "UPDATE /BIC/AZ_MONINV00 SET /BIC/ZSTR_DTE = '00000000' where /BIC/ZSTR_DTE = ' '.
    Now when I see the data in the active data table of DSO the blank value is replaced with '00000000'.
    But If I right click on the DSO click on display data the 'Start Date' field is blank. And now the Query also gets executed without any error. But in the output of the query the 'Start Date' Field has "#" values.
    Can anyone suggest on how to remove these "#" values in the report?

  • How to print the value of a field of  type FLTP

    hi experts,
    pls tell me how to print the value of a field of  type FLTP. i.e in decimal format not in exponential format.
    thankyou.
    krishna

    Hi ,
    I dont think in Floating point u can able to go for the decimal point display as it is for the minimum precission display..
    Define the variable as the 'packed' type and then u can able to define the decimal point...
    Cheers,
    SImha.

  • How to add two zeros end of field

    how to add two zeros end of field?

    Hi srinu,
    If it's a number field, then just multiply by 100.
    If it's a string, then just use CONCATENATE and add the '00' to your existing string.
    Hope this helps.
    SL

  • How to display two grids in same screen using SALV Method

    Hi Freinds,
    Please let me know how to display two grids in same screen using SALV Method.
    Thank you
    Regards,
    SDV

    Using the same concept as described in How to dispaly Three Internal Table  Data (One below another) in ALV OOPS .
    All you need to add is passing your new containers as r_container parementer of factory method.
    "1st one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_top_container
    "2nd one
          cl_salv_table=>factory(
             EXPORTING
               R_CONTAINER    = g_bottom_container
    Regards
    Marcin

  • How to separate two contact with same name

    Hi, anyone knows how to separate two contacts with same name in Contacts?  Actually they are two persons from two gmail contacts with same name but different contact numbers, different emails....etc, but Contacts assume they are same person and merge them as one!

    FG,
    In Lion, you have the File > Duplicate option. You will then have two copies of your document open, and the one on top will have the temporary filename "OriginalFileName copy", and your next responsibility is to File > Save (or Command-S) and rename the duplicate. At this point, you edit the copy's name, to perhaps ...copy 1, or whatever you wish. The document you had open when you initiated the File > Duplicate will still be there on your screen, waiting for you to Close it or continue editing.
    Jerry

  • How can i give two tcode in same program

    Hi all,
    How can I give two tcode to the same program in which two conditions call in that two t codes
    how can I do so please help me for that.
    Ketan
    ABAP consultant

    hi,
    In your case, if the calling of the two transactions is mutually exclusive,
    then
    IF
    call transaction 'A'.
    else.
    Call transaction 'B'.
    endif.
    else,
    if you need to call the transactions one after the other,
    CALL TRANSACTION 'A'.
    CALL TRANSACTION 'B'.
    Thanks
    Sharath

  • How to get the values of the fields inside pageFragment

    Hi All,
    I am working on Jdeveloper 11.1.1.5.
    I have a fragment "home.jsff", in that fragment i have two textboxes(txt1,txt2);
    Then i have created a bounded taskflow "myTF"and dragged the home.jsff inside it and used as a default activity.
    Now finally i have "final.jspx" , in which i have dragged and dropped the bounded taskflow "myTF" as a region.
    Scenario : - I have a button on final.jspx , and on click of that button i need to get the value of those two textboxes using bindings which is present in fragment .
    On Click of button,I am using this method of pageDef and i am able to get the values :-
    jsfUtils.resolveExpression("#{data.abc_homePageDef.txt1.inputValue}");
    but somehow it gives me null in some conditions.I don't know why it sometimes gives the value and why it doesn't.
    I have seen this video in which Frank has told about the API Mistakes : -
    http://download.oracle.com/otn_hosted_doc/classic_api_mistakes_part1/classic_api_mistakes_part1.html
    and i did the same mistake but what is the another approach .
    If i need to get the current value of txt1, then how can i get it??
    What is the best approach to get the values of the pageFragment attributes and how to use it ?
    Please suggest!!!
    Regards,
    Shah

    Hi Tulasi,
    As i have said that i am trying to get the values on the click of button(*not on page load*) situated on final.jspx page.
    On click of button i am using this code to get the values :-
    public String getValueTextBox()
    Object valueTXT= getBoundAttributeValue("txt1");
    logger.info("value is"+ valueTXT); *// It shows the value as null.*
    return null;
    public Object getBoundAttributeValue( String attributeName) {
    BindingContext bctx = BindingContext.getCurrent();
    BindingContainer bindingContainer = bctx.findBindingContainer("abc_homePageDef");
    if (bindingContainer != null) {
    ControlBinding ctrlBinding = bindingContainer.getControlBinding(attributeName);
    if (ctrlBinding instanceof AttributeBinding) {
    return (AttributeBinding)ctrlBinding;
    return null;
    Please suggest!!!
    Regards,
    Shah

  • How to give two spaces after new order in alv

    hi
    my issue is after every new order number they need two blank spaces, i know the procedure of giving new page for every new order but they need only two blank lines. (This is in ALV List format).
    second thing is how to give footer
    thanks

    hi
    use this variant of appendf for inserting blank lines
    Append INITIAL LINE TO ITAB.
    Effect
    Appends a new line to the end of the internal table itab. You can only use this variant with index tables (standard or sorted table).
    If you specify wa TO , the new line is taken from the contents of the explicitly specified work area wa.
    If you use INITIAL LINE TO, a line filled with the correct initial value for the type is added.
    If the part before itab is omitted, the new line is taken from the header line of the internal table itab.
    If you use the ASSIGNING <fs> addition, the field symbol, <wa>, points to the line you have just appended. If you use the REFERENCE INTO ref addition, the data reference, dref, is filled with the reference of the line you have just appended.
    If the target table itab is a SORTED TABLE, it must be sorted correctly after the append, otherwise a runtime error results.
    After the statement has been executed, the system field SY-TABIX is filled with the index of the last line in the table.
    Cheers
    Snehi

  • Query for listing several values in same field

    Hi,
    is there a function for listing more than one value in the same field, only with comma seperation?
    For example, I want to group by cardcode from ORDR and list all docnum's like this:
    Cardcode    Docnum's
    21355          98765, 95498, 95164
    21564          95484, 54684, 95654, 98465
    21865          95484, 12486
    Kind regards
    Kjetil Sandvik

    HI,
    Thank for your replies.
    We need to update all old orders for sure, but my idea was to use this query:
    Select CardCode, COUNT(Address2) From ORDR Where Docstatus <> 'C' GROUP BY address2, cardcode order by cardcode, address2
    The results will give me two lines for each customer and count the addresses, so then I know that the count of one of the lines must me changed. Let's say there is 20 orders with new address and 20 orders with old address, my intention was to manually change the 20 orders that is old. Instead of checking all 40, It would help alot to list all order numbers in a column beside in the query.
    BR
    Kjetil

  • How to display F4 values in one field based on other field selection

    Hi All,
    How to hide a UI element (i.e Link to action) highlited for Normal User and display the same to super user.
    Component Name : /SAPSRM/WDC_DODC_SC_GAF_C
    2.Can i know how to display  the entries in supplier field based on Product category selection.
    Right now all the entries are getting displayed in the supplier field.
    I want to display only entries based on Product category.
    Search Help Name : BBP_BUPA_CLL_PARTNER
    Component Name : /SAPSRM/WDC_DODC_SC_I_LIM
    How to enhance the web dynpro component with the filtered values.
    Regards,
    Krish.

    Hi Ashvin,
                 Thanks for the document. In the search help there is a standard FM which is getting executed.
    Can i enhance that FM or should i copy and edit.
    BBP_F4IF_SHLP_EXIT_CLL_PARTNER
    If i creata a Z FM and make changes how to pass that values to my standard Component View UI Element.
    If not then suggest me some alternative.
    Regards,
    Krish

  • How to sum two values given in text boxes?

    Hi People,
    Am beginner in forms.using oracle 9i with forms 6i.I want to add two values given in two text boxes and result should be displayed in third text box.
    how to write the coding in when button pressed trigger of a push button?.pls suggest me.
    Regards
    VIDS

    I dont what is problem
    Better you recreate the form again
    Block3
    1. button
    2. item1
    3. item2
    4. item 3.
    all item should be in one canvas
    on when button trigger
    write and code again test it.
    give item 1 no
    give item 2 no
    press the button now
    output should at 3rd item.
    check and revert back.
    kanish

  • How to change a  value of the field Selection Conditions in Manage- Request

    Hi,
    How to change manualy a value of the field Selection Conditions in Manage infocube -> Requests  ?

    Hi,
    Here is the reason i need to do this:
    The data is loaded by DTP in process chain. Overlaping requests are deleted. But, iIn some cases requests with the same selection options  need not to be deleted. My idea was to change selection options in Manage(infocube) with Abap program without changing selection options in DTP filter,  so that the system would not recognize requests as "overlaping requests".
    So, where is the information about shown in the field Selection Options is stored? In which tables?
    Thanks
    Tigr_Z

Maybe you are looking for