SQ02 - Query with adicional fields

Hi, I need your help to develop a query with additional fields.
The case is that:
In my query I only have a table VBAK and my propose is that this query returns me the quantity that are in a sales document for some material that should be selection parameters.
So I create 2 additional fields: one that is the u2018 Material u2018 that have no codification and other that is the quantity that have the code:
select single ZMENG into quantity from VBAK where matnr = material.
But the result is null, I don't know why.
Can you help me?
Thanks in advance.
Dora

Hi,
MATNR is not available in VBAK !
You have to create first an info-set using SQ02 : here you link VBAK and VBAP, and select the fields you need.
From SQ01, create a new query where matnr is a selection field ....

Similar Messages

  • Looping a query with text fields

    I need to loop a query (fields: FName,LName,Phone) in
    textboxes.
    List all textboxes in one form and be able to update the db
    with all changes at once.
    <cfloop query="ListMembers">
    <input type="text" name="FName#MemberID#"
    value="#FName#">
    <input type="text" name="LName#MemberID#"
    value="#FName#">
    <input type="text" name="PhoneName#MemberID#"
    value="#FName#">
    </cfloop>
    <input type="Submit" value="Update">
    Now i need to update the db and not sure how to do that?
    Thanks for the help

    Yes. Two ways. One using Form Action and one using a form created by a form site and embedded into your web page: Embedding Forms & Encoding Email Addresses.
    OT

  • Create Query with New Field combined with Existing InfoCube Data (BW 3.5)

    Hi Everyone!
    How would you recommend I handle the following situation?
    I have a custom InfoCube (which I will call ZCUBE) that has been deployed to production. The business would like a new query that combines Current Standard Price along with data currently stored in ZCUBE.
    Now, Current Standard Price is uniquely identified by the Material and Plant to which it is associated. These InfoObjects (Material and Plant) are characteristics of ZCUBE.
    I am strugglig since the business will not allow any changes in the design of the InfoCube (i.e. add any new characteristics/key figures).
    Is there a way to combine the two data sets? I attempted to use a Multi-Provider using ZCube and a custom ODS, but had no luck since the characteristics were so different. (ZCUBE has almost 50 characteristics defined)
    I also have tried adding the attribute Standard Price to InfoObject Plant Material (0MAT_PLANT) but that was not helpful since 0MAT_PLANT is not included in ZCUBE.
    From what I can tell I should create an InfoSet using ZCUBE and potentially a new ODS, but that isn't going to work since you can create InfoSets using InfoCubes in BW 3.5.
    So... I am at a loss now. Any assistance would be appreciated!
    Thanks-
    Nathalie

    Thank you very much for your responses!
    I went ahead and created a custom ODS (Z_ODS) that contained the keys Material and Plant and had the data field Standard Price. I then created a Multi-Provider to sit on top of the custom cube and the custom ODS. Unfortunately, I am not getting the correct response since the Multi-Provider returns a union of the two infoproviders.
    Z_ODS
    0Material (key)
    0Plant (key)
    Standard Price
    Z_Cube
    0Material (char)
    0Plant (char)
    Char1 (char)
    Char2 (char)
    Char3 (char)
    0FiscalYear
    Key1....
    MultiCube
    0Material = 0Material
    0Plant = 0Plant
    Char1
    0FiscalYear
    Standard Price
    Key 1
    If I run a query just using Material and Plant in the return, the Standard Price and Key1 are returned correctly. If I include Fiscal Year in the query, the standard price is returned in a row associated to a blank Fiscal Year. See example below.
    Query 1
    Plant1   Material1   StandardPrice1   Key1
    Plant2   Material2   StandardPrice2   Key2
    Query 2
    FiscalYear2009   Plant1   Material1   #(blank StandardPrice)   Key1
    FiscalYear2009   Plant2   Material2   #(blank StandardPrice)   Key2
    FiscalYear# (blank) Plant1   Material1   StandardPrice1 #(Blank Key1)
    FiscalYear# (blank) Plant2   Material2   StandardPrice2 #(Blank Key2)
    I know I should be using an InfoSet, but we are on BW 3.5... so I can't include a cube in an InfoSet.
    I believe that the solution will be to add all relevant characteristics to the custom ODS... but that is going to be a much bigger challenge then originally expected. Please let me know if I am missing something... a silver bullet would be much appreciated
    Thanks everyone!
    Nathalie

  • Oracle OCI: Problem in Query with Date field

    Client compiled with OCI: 10.2.0.4.0
    Server: Oracle9i Enterprise Edition Release 9.2.0.4.0
    The problematic query is:
    SELECT CODIGO FROM LOG WHERE TEL = :telnumber AND DATE_PROC = '05-JUL-08'Table description:
    SQL>describe LOG;
    TEL NOT NULL VARCHAR2(15)
    CODIGO NOT NULL VARCHAR2(20)
    DATE_PROC NOT NULL DATEAs simple as it might look, when executed directly on the server with SQLPlus, it returns a result, but when executed from the app that uses OCI, this query returns OCI_NO_DATA always. In the beginning, the date value was also a placeholder, but I found out that even giving a literal like '05-JUL-08' didn't work. I have tried the following:
    <ul>
    <li>I've tried the basics: querying the DB from the client does work. It's this one that gives me trouble</li>
    <li>The query: SELECT CODIGO FROM LOG WHERE TEL = :telnumber does work</li>
    <li>Executing: ALTER SESSION SET NLS_DATE_FORMAT="DD-MM-YYYY"; before the query in both the server and the client. Same result: server returns data, client OCI_NO_DATA</li>
    <li>Tried changing DATE_PROC format, combining this with the use of TO_DATE(). Same result.</li>
    <li>Searched, searched, searched. No answer</li>
    </ul>
    I'm a bit desperate to find an answer, would appreciate any help and can provide as many further details as needed. Thanks.
    Edited by: user12455729 on Jan 15, 2010 5:59 AM. -Formatting-

    Hi,
    I've recreated your table and populated with your data.
    I've run your select using OCILIB on a 10gR2 (client and server) and the codes runs fine and give expected results.
    So the problem must resides in your code.... (i don't think it can be a OCI bug)
    Here is the ocilib code :
    #include "ocilib.h"
    int main(void)
        OCI_Connection *cn;
        OCI_Statement *st;
        OCI_Resultset *rs;
        char msisdn[100] = "11223344";
        char datetime[100] = "";
        if (!OCI_Initialize(err_handler, NULL, OCI_ENV_DEFAULT))
            return EXIT_FAILURE;
        cn = OCI_ConnectionCreate("db", "usr", "pwd", OCI_SESSION_DEFAULT);
        st = OCI_StatementCreate(cn);
        OCI_Prepare(st, "SELECT "
                        "  CODIGO_BANCO "
                        "FROM "
                        "  VTA_LOG "
                        "WHERE "
                        "  TELEFONO = :msisdn AND "
                        "  FECHA_PROCESO = TO_DATE(:datetime, 'YYYYMMDDHH24MISS')");
        OCI_BindString(st, "msisdn", msisdn, sizeof(msisdn)-1);
        OCI_BindString(st, "datetime", datetime, sizeof(datetime)-1);
        strcpy(datetime, "20080705162918");
        OCI_Execute(st); 
        rs = OCI_GetResultset(st);
        OCI_FetchNext(rs);
        printf("%s\n", OCI_GetString(rs, 1));
        strcpy(datetime, "20080705062918");
        OCI_Execute(st); 
        rs = OCI_GetResultset(st);
        OCI_FetchNext(rs);
        printf("%s\n", OCI_GetString(rs, 1));
        OCI_Cleanup();
        return EXIT_SUCCESS;
    }Output is :
    BancoOne
    BancoTwoi recreated your data with
    create table VTA_LOG
         TELEFONO          VARCHAR2(15) NOT NULL ,
         CODIGO_BANCO     VARCHAR2(20) NOT NULL ,
         FECHA_PROCESO     DATE NOT NULL
    insert into VTA_LOG values ('11223344', 'BancoOne',  to_date('20080705162918', 'YYYYMMDDHH24MISS'));
    insert into VTA_LOG values ('11223344', 'BancoTwo', to_date('20080705062918', 'YYYYMMDDHH24MISS'));
    commit;Regards,
    Vincent

  • Dynamic Form Query with 3 fields

    Anyone-
    I created a form based on a table (testcase). I want to retrieve the name of originator, status, Assigned based on the criteria a user may select in a list box. I created three list box with originator, status and Assigned. If someone was to select all the list box, I want the query to retrieve all the data within that selection.but the user can select only one. I know I need to use SET_BLOCK_PROPERTY.
    So I created a global varible to store the where clause strign to pass into the set_block_property.
    Declare
    str varchar2(40);
    If :blk_name.orginator != null then
    str := :blk_name.originator;
    :global.originator := 'originator ='&#0124; &#0124;str
    else
    :global.originator := '(originator is null or not null);
    in the search button. I do this
    When button press
    set_block_property(':blk_name',default_where,:global.originator);
    end if
    execute_query;
    but looks like it did not work when I pass the string in to the where clause.
    Frustrated-
    Tim

    Try it this way :
    Create 2 blocks.
    blk_ctrl control block
    blk_testcase base table block
    In the control block have 3 list items for
    Originator, Status, Assigned. and the search button.
    In the data block have the base table testcase and its columns.
    For the search button :
    WHEN-BUTTON-PRESSED trigger:
    Declare
    where_cl VARCHAR2(100):= ' ';
    where_cl_len NUMBER;
    Begin
    if :blk_ctrl.Originator is null and
    :blk_ctrl.Status is null and
    :blk_ctrl.Assigned is null then
    Message('enter at least in one of the
    items : Originator, Status or Assigned');
    Raise form_trigger_failure;
    else
    if :blk_name.Originator is not null then
    where_cl := where_cl&#0124; &#0124;'Originator = '&#0124; &#0124;''''&#0124; &#0124;:blk_name.Originator&#0124; &#0124;''''&#0124; &#0124;' and ';
    end if;
    if :blk_name.Status is not null then
    where_cl := where_cl&#0124; &#0124;'Status = '&#0124; &#0124;''''&#0124; &#0124;:blk_name.Status&#0124; &#0124;''''&#0124; &#0124;' and ';
    end if;
    if :blk_name.Assigned is not null then
    where_cl := where_cl&#0124; &#0124;'Assigned = '&#0124; &#0124;''''&#0124; &#0124;:blk_name.Assigned&#0124; &#0124;''''&#0124; &#0124;' and ';
    end if;
    where_cl_len := LENGTH(where_cl);
    where_cl := substr(where_cl,1,where_cl_len-5);
    SET_BLOCK_PROPERTY('blk_testcase', DEFAULT_WHERE, where_cl);
    GO_BLOCK('blk_testcase');
    EXECUTE_QUERY;
    End;
    Hope this is useful for you.
    Sudha

  • Query with search field in CS5

    I have recently upgraded to CS5.  In CS3, I developed several pages where there was a form where the user entered on search parameter, executed the query using the form method get and the results were displayed on the same page in a recordset.
    In CS5, I have used the same concept to build a search page but for some reason, I cannot get the results to appear.  I have compared the CS5 to the CS3 code and cannot find any differences.  I have attached my php page.  If anyone has any ideas, I would appreciate it.  I suspect it is something simple but cannot determine what it is.
    Thanks.  George
    http://www.cfoclinic.org/admin/regusers.php 
    $colname_Record = "-1";
    if (isset($GET_['input_year'])) {
      $colname_Record = $GET_['input_year'];
    mysql_select_db($database_cfouser, $cfouser);
    $query_Record = sprintf("SELECT * FROM CFO_Registration WHERE YEAR = %s and active = 'Y' ORDER BY Reg_id", GetSQLValueString($colname_Record, "text"));
    $query_limit_Record = sprintf("%s LIMIT %d, %d", $query_Record, $startRow_Record, $maxRows_Record);
    $Record = mysql_query($query_limit_Record, $cfouser) or die(mysql_error());
    $row_Record = mysql_fetch_assoc($Record);
    if (isset($_GET['totalRows_Record'])) {
      $totalRows_Record = $_GET['totalRows_Record'];
    } else {
      $all_Record = mysql_query($query_Record);
      $totalRows_Record = mysql_num_rows($all_Record);
    $totalPages_Record = ceil($totalRows_Record/$maxRows_Record)-1;
    ?>
    --- note  code skips ahead to following
    <form action="" method="get" name="Search" class="black11b" id="Search">
      <p> </p>
      <table width="386" border="1" align="center" class="black14b" id="table1">
        <tr>
          <th width="162" height="39" scope="col"><p>
            <input type="submit" name="Search" id="Submit" value="Execute">
          </p>
            <p>
              <input type="reset" name="reset" id="reset" value="Reset">
            </p></th>
          <th width="208" scope="col"><input name="input_year" type="text" id="year" size="4" maxlength="4"> <label for="input_year">Clinic Year</label></th>
        </tr>
        </table>
      <br>
    </form>

    Gunter,
    Unfortunately, it did not work.  I am re-attaching my code.  In addition to your comment, I added the first line listed below.
    Do you have any other suggestions?
    Thanks.  George
    $editFormAction = $_SERVER['PHP_SELF'];
    $maxRows_Record = 10;
    $pageNum_Record = 0;
    if (isset($_GET['pageNum_Record'])) {
      $pageNum_Record = $_GET['pageNum_Record'];
    $startRow_Record = $pageNum_Record * $maxRows_Record;
    $colname_Record = "-1";
    if (isset($GET_['input_year'])) {
      $colname_Record = $GET_['input_year'];
    mysql_select_db($database_cfouser, $cfouser);
    $query_Record = sprintf("SELECT * FROM CFO_Registration WHERE YEAR = %s and active = 'Y' ORDER BY Reg_id", GetSQLValueString($colname_Record, "text"));
    $query_limit_Record = sprintf("%s LIMIT %d, %d", $query_Record, $startRow_Record, $maxRows_Record);
    $Record = mysql_query($query_limit_Record, $cfouser) or die(mysql_error());
    $row_Record = mysql_fetch_assoc($Record);
    if (isset($_GET['totalRows_Record'])) {
      $totalRows_Record = $_GET['totalRows_Record'];
    } else {
      $all_Record = mysql_query($query_Record);
      $totalRows_Record = mysql_num_rows($all_Record);
    $totalPages_Record = ceil($totalRows_Record/$maxRows_Record)-1;
    ?>
    <form action="<?php echo $editFormAction; ?> " method="get" name="Search" target="_self" class="black11b" id="Search">
      <p> </p>
      <table width="386" border="1" align="center" class="black14b" id="table1">
        <tr>
          <th width="162" height="39" scope="col"><p>
            <input type="submit" name="Search" id="Submit" value="Execute">
          </p>
            <p>
              <input type="reset" name="reset" id="reset" value="Reset">
            </p></th>
          <th width="208" scope="col"><input name="input_year" type="text" id="year" size="4" maxlength="4"> <label for="input_year">Clinic Year</label></th>
        </tr>
        </table>
      <br>
    </form>

  • Sap query and additional fields.

    Hello guys.
    ABAP it's not my strong skill, but i need to develop some report.
    What i need:
    input: material, SLED, plant
    output: material, SLED, plant, values from characteristic field.
    I have created sap query with additional field type c.
    Below my code:
    TYPES: BEGIN OF charast,
            ATNAM(50)    TYPE c,
            ATWTB(8)     TYPE n,
            X(50)        TYPE n,
            C(50)        TYPE n,
            ATINN(50)    TYPE n,
            END OF charast.
    DATA: char TYPE TABLE OF charast WITH HEADER LINE.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR              = MCH1-MATNR
         CHARG              = MCH1-CHARG
         GET_CLASSIFICATION = 'X'
       TABLES
         CHAR_OF_BATCH      = char.
    LOOP AT char into TEST (This is an additional field type C.
       ENDLOOP.
    Questions:
    1. How i can return internal table into standard abap type, because i can create additional field only with standart types.
    2. Need i fetch exporting parameters before calling FM? Or sap query do it automatically, based on given values on selection screen of the report?
    3. How i can return only needed field from FM output? Now, when i'm executing FM via SE37 it's show desired result, but when i'm getting it from code i see strange values.
    4. If i don't know exactly return by an FM values, how i can fill structure dynamically?
    5. How i can return result of a program not only to additional field but to layout?
    Sorry for noob questions and thank you in advance guys!

    Well, seems like it work fine for me.
    Below my crappy, but working code:
    DATA: material TYPE MCHB-MATNR,
           batch    TYPE MCHB-CHARG,
           plant    TYPE MCHB-WERKS,
           sloc     TYPE MCHB-LGORT,
           gtdt     TYPE STANDARD TABLE OF clbatch,
           gtdit    TYPE clbatch.
    SELECT MATNR INTO material FROM MCHB
       WHERE MATNR = MCHB-MATNR.
    ENDSELECT.
    SELECT CHARG INTO batch FROM MCHB
       WHERE CHARG = MCHB-CHARG.
    ENDSELECT.
    SELECT WERKS INTO plant FROM MCHB
       WHERE WERKS = MCHB-WERKS.
    ENDSELECT.
    SELECT LGORT INTO sloc FROM MCHB
       WHERE LGORT = MCHB-LGORT.
    ENDSELECT.
    CALL FUNCTION 'VB_BATCH_GET_DETAIL'
       EXPORTING
         MATNR = material
         CHARG = batch
         WERKS = plant
         GET_CLASSIFICATION = 'X'
        TABLES
          CHAR_OF_BATCH = gtdt.
    READ TABLE gtdt INTO gtdit
       WITH KEY atnam = 'BATCH_SHELF_LIFE_EXPIRY_DATE'.
    GTD = gtdit-ATWTB.

  • Problem with number field

    Hi,
    I'm using ADO (Oracle Provider for OLEDB) to connect Oracle 9. If the type of any field in table is Number(9) and I open query with this field, all negative values are displayed as positive values. For example: If I write -1 value to this field and then post the dataSet (Delphi7 - TADOQuery) value is refreshed to 1. Real value in database is -1.
    Could anybody help me with this problem?
    Regards Jan.

    Once again :)
    I finally foud out that Deplhi does support (varDecimal), but delphi TCustomADODataSet (ADO recordSet wrapper) component incorrecltly treats such field type. It regards Decimal(<9,0) as integer (TIntegerField) but when it gets value from underlying ADO recordset it expects integer variant. So it's delphi problem. I hat to fix this problem in source code of this component.
    Regards Jan.

  • Problem with date fields in where clause after changing driver

    Hi,
    We have changed the oracle driver we use to version 10
    and now we have some trouble with date-fields.
    When we run this SQL query from our Java program:
    select *
    from LA_TRANS
    where LA_TRANS.FROM_DATE>='20040101' AND LA_TRANS.FROM_DATE<='20041231'
    We get this error code:
    ORA-01861: literal does not match format string
    The query worked fine whit the previous driver.
    Is there some way I can run a SQL query with date fields
    as strings in the where clause?
    Thanks!

    Keeping the argument of standard SQL or not aside, comparing DATE columns to a constant string (which looks like a date in one of the thousands of the formats available, but not in others) is NOT one of the best programming practices and leads to heartburn and runtime errors (as you have seen yourself).
    I would rather compare a DATE to a DATE.
    Also, constants like that would be another issue to fix in your code:
    http://asktom.oracle.com/pls/ask/f?p=4950:8:6899751034602146050::NO::F4950_P8_DISPLAYID,F4950_P8_CRITERIA:528893984337,

  • Filter query with sub query using Dropdown box

    Dear Community,
    I have 2 queries
    1. Main Query with 2 fields:  Project | Project value
    2. Sub Query with 2 fields:  Project group | Project
    Project group can be belonging to number of projects and project can be belong to number of project group (Many to Many).
    My customer wants the main query will open without any filtering.
    When I choose project group from WAD dropdown box, the main query will filtering all the projects that belong to the project group.
    I create WAD; define dropdown box as sub query, and Analysis as main query.
    In the dropdown box I choose "data binding" char and create command "set selection state by binding" (project to project) but it doesnu2019t work. 
    I also try to do this by Replacement Path in the main query, but the variable requires the attribute will be ready for input.
    Thanks a lot
    Yaniv

    I am not sure about your comments on replacement path variable. Without having tried it, here is what I would have attempted:
    The main query needs to use a replacement path variable for Project that is replaced by the results of the sub-query. Sub-query would have a regular input variable for project group. (as a quick test, if you had one analysis item for main query with variable input enabled, it should prompt you to enter Project group).
    Now the drop-down needs to be associated with a javascript function. The javascript function needs to implement command "Set variable state" for the main query data provider to selected value of the drop-down.
    The drop-down should be associated with the sub-query data provider, just used to populate the list of values in drop-down.

  • I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    I need to add a single field from with_item table . need to write select query with reference to company code , account doc no , fiscal year

    Hi Arun ,
    Can you explain little bit more ??
    what is account doc no? 
    what are the transactions should be displayed in your output??
    -Rajesh N

  • Query linked to field with shift+F2 does not retuen 'Arrows'

    Hi
    I have a query that, when run from query manager and variable is input with [%0] does return results including the orange arrow to directly jump to the documents - perfect.
    If I link the query to a field in production order to be called by Shift + F2 and replace variable input with $[OWOR.DocNum], it returns the list correctly, but there are no arrows.
    What do I have to change to get the arrows?
    Thanks
    Franz

    Dear Mr Leu,
    I came up with a query, not sure this is correct for you but I hope it helps. I assumed you want to know what it the result from this calculation:
    sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    select distinct (t0.linenum), t3.status, t3.docnum, t0.itemcode, t0.plannedqty as 'production',
    t1.shipdate, t1.quantity as 'sales order',
    t2.onhand as 'onhand', sum(t2.onhand - t0.plannedqty + t1.quantity) as 'what is left'
    from wor1 t0 inner join por1 t1 on t0.itemcode = t1.itemcode
    inner join oitw t2 on t0.itemcode = t2.itemcode
    inner join owor t3 on t0.docentry = t3.docentry
    where
    t1.linestatus = 'o' and
    t3.status <> 'l'
    group by
    t0.linenum, t3.status, t3.docnum, t0.itemcode, t1.shipdate,
    t0.plannedqty, t2.onhand, t1.quantity 
    let me know if it helps you.
    Regards,
    Marcella Rivi
    SAP Business One Forums Team

  • How join the two query block with same field

    sorry sir i am posting dublicate thread
    i thought you not understand my question
    sir i have two query block in report with same field
    i try the link object but that creat now block not creat link withen query block
    please give me idea
    thank

    Dear,
    Use data link object.
    Click at data link object then click on the fild in query block1 and drag it into the other query block data link will be created.
    try it

  • Infoset query with KNB1 customer's ADRC information

    Hello,
    An explanation into the problem:
    I'm trying to create an infoset query with KNA1, KNB1 and ADRC which would do the following:
    In KNA1-SORTL we hold customer numbers which can be found from KNB1. This query should:
    Display KNA1-KUNNR and relevant address data for this customer via connection KNA1-ADRNR and ADRC-ADDRNUMBER. Then it should check KNA1-SORTL- field and if it corresponds to KNB1-KUNNR, it should go back to KNA1 with this KUNNR and display all this customer's relevant address data via this customer's KNA1-ADRNR to ADRC-ADDRNUMBER.
    I'm relatively new to infoset coding and ABAP in general, plus I'm self- taught so please bear that in mind.
    I'll give an example as to what I've managed to do so far. In SQ02 I joined tables KNA1(left outer join)KNB1 and KNA1(join)ADRC and created an extra field ZADRNR to see if I could display the ADRNR for the customer number found in KNB1.
    Something along the lines of:
    IF KNB1-KUNNR = KNA1-SORTL.
    SELECT SINGLE ADDRNUMBER FROM ADRC INTO ZADRNR
    WHERE ADDRNUMBER = KNA1-ADRNR.
    ENDIF.
    Obviously this doesn't work. Pseudocode would look like this:
    Check field KNA1-SORTL
    IF KNA1-SORTL = KNB1-KUNNR THEN
    GO BACK TO KNA1 with this KUNNR and display it's ADRC.
    KNB1 sadly doesn't maintain an ADRNR of it's own, or this would be much simpler.
    Any help or advice is much appreciated, so far I've only been coding a few lines in infosets with ABAP so I'm not all that familiar with it. I've managed to create several queries through trial and error, mostly, and this forum and it's articles have helped a great deal.
    Please let me know if I should provide any additional information, and my apologies if I posted this in the wrong forum area.

    Hi Lalit, and thank you very much for your reply.
    Unfortunately excluding space entries in selection screen wouldn't solve the issue, since we have KNA1-ADRNR for each entry, it's just that it would be different for customers found in KNB1.
    I could probably solve this by making two separate queries and working on them in excel and that way we would have the necessary information.
    But in order to do this in SAP seems to mean that I have to write a custom report. For that, it seems I'll be spending New Year's eve learning how to ABAP
    Thank you for your help, at least we don't have to struggle with finding out a way to do this via queries so we'll just find alternative means for this.
    Thanks again and have a happy new year!

  • How to create an ABAP Query with OR logical expression in the select-where

    Hi,
    In trying to create an ABAP query with parameters. So it will select data where fields are equal to the parameters entered. The default logical expression is SELECT.. WHERE... AND.. However I want to have an OR logical expression instead of AND.. how can I attain this??
    Please help me on this.. Points will be rewarded.
    Thanks a lot.
    Regards,
    Question Man

    Hi Bhupal, Shanthi, and Saipriya,
    Thanks for your replies. But that didn't answer my question.
    Bhupal,
    You cannot just replace AND with OR in an ABAP QUERY. ABAP QUERY is a self generated SAP code. You'll just declare the tables, input parameters and output fields to be displayed and it will create a SAP standard code. If you'll try to change the code and replace the AND with OR in the SAP standard code, the system will require you to enter access key/object key for that particular query.
    Shanthi,
    Yes, that is exactly what need to have. I need to retireve DATA whenever one of the conditions was satisfied.
    Saipriya,
    Like what I have said, this is a standard SAP code so we can't do your suggestion.
    I have already tried to insert a code in the ABAP query (there's a part there wherein you can have extra code) but that didn't work. Can anybody help me on this.
    Thanks a lot.
    Points will be rewarded.
    Regards,
    Question Man

Maybe you are looking for

  • Frustrating attempts to open and download Flash Player.

           Hi y'all. I have Windows Vista 64-bit OS and attempting to download Flash Player through Firefox. However, each time I make this attempt, the "SAVE" box appears followed by the "DOWNLOAD" box that disappears after one second so that I cannot t

  • Full Screen Mode has letterbox effect

    Hopefully this is an easy one and I am just missing something, but when I open a photo in full screen mode it does not fill the entire screen. Instead, there is a title bar on top, an editing bar on the bottom and a fairly large blank area on either

  • Iphone 5 activation problem

    Hello Yesterday I had to restore my IPhone because it went in to recovery mode. Now i have restored it and i cant activate it with my giffgaff sim even though i have been using it since August 2013 How can i solve this? Thanks in advance

  • Type size and property presets?

    I ran across a video or article a while back and can't seem to find.  Here is what I'm trying to accomplish and maybe some tips/links from the Forum can help this fron-end designer out! building site pages via Photoshop for markup development, it suc

  • HT4910 displaying windows photos  on i cloud

    what is best way to view all photos stored on PC, Ipad, MAC and iphones on apple TV.