Field selection in query not appropriate

hi all,
       i have written following code.
         SELECT EBELN BUKRS BSART AEDAT LIFNR ERNAM EKGRP FROM EKKO
                 INTO CORRESPONDING FIELDS OF TABLE IT_EKKO
                 WHERE BUKRS IN S_BUKRS
                 AND BSART IN S_BSART
                 AND AEDAT IN S_AEDAT
                 AND FRGKE EQ 'R'.
*SELECT * FROM EKKO INTO CORRESPONDING FIELDS OF TABLE IT_EKKO.
IF NOT IT_EKKO[] IS INITIAL.
SELECT EBELN EBELP VGABE MENGE BWART FROM EKBE INTO
CORRESPONDING FIELDS OF TABLE IT_EKBE
  FOR ALL ENTRIES IN IT_EKKO
  WHERE EBELN EQ IT_EKKO-EBELN
     VGABE EQ '1'.
endif.
now in the above query in it_ekbe table i am getting two line item for doc. no say 75100.
but if i am putting the same doc no in ekbe table in se16 i am getting three line items for same selection as in above query
where doc no = 75100
and vgabe = 1.
plz help.
regards,
Ashmita

SELECT EBELN EBELP VGABE MENGE BWART FROM EKBE INTO
CORRESPONDING FIELDS OF TABLE IT_EKBE
FOR ALL ENTRIES IN IT_EKKO
WHERE EBELN EQ IT_EKKO-EBELN
VGABE EQ '1'.
Press F1 on for all entries and read it , you will come to know

Similar Messages

  • Additional text field in Infoset deleted but not reflected in field selection in Query

    Hi,
    I have deleted an additional text field in infoset. It was used in one query.
    Even in the query it is deleted, but when in field selection screen i am not able to delete.
    If i try to execute the query, I get dump (syntax error) saying in field type(additional field) doesnot exist.
    Can anyone pleassseee help me in this.

    Hi San,
    I am trying to understand. How could you separately delete an additional text field associated with a main field?
    Jogeswara Rao K

  • Field Selection in Query

    Hi Experts,
    I created a query with a join on 2 tables( Table A and B). B may not have records all the time so I joined them with left outer join. Now I get all records from A based on selection criteria showing blank in fields from B if no entries are found in B.
    Now I have entires from B that repeat in output. I want to stop multiple entries from B (Eg: value field). I have 2 entries in table B, with value 0 and value $$. <b>I want all entries from A with entries from B ( but only those entries from B that have value $$) AND blank entries but NOT entries with value=0.</b> I cannot select value field in <i>selection</i> and do an exclusion as this will exclude my blank entries from table B.
    Is there a way to select entries from 1 table based on a field entry eg: Select only those fields with value $$ but NOT Value 00, while joining tables in Query.
    Thanks
    ABAP, Query, Joins, Field selection, Exclusion

    you can do a where condition as below example..
    SELECT
        SALESREP.EMPID,
        ORDERNO,
        CUSTID,
        ORDDATE,
        BILLED,
        PAID
    FROM
        SJD.SALESREP SALESREP
        LEFT OUTER JOIN SJD.SALESORD SALESORD
        ON
        SALESREP.EMPID = SALESORD.EMPID
    WHERE
        SALESORD.PAID NE 00.

  • Nested CASE Statements in my SELECT of Query not calculating correctly

    Hi - Am doing simple query to calculate statistics on students per course, the WHERE includes a parameter for Academic Year, so need If Academic Year = x then calculate age in the 1st Sept of that Year, then count number of 19Yrs&Over. Have included my successful lines for sum of other data, in my CASE the calculations are not distinguishing whether age is over or under 19 just counting all. Presume is problem with Date calculation or CASE?? Runs without error..I'm guessing I can nest a CASE?!
    Many thanks!
    SELECT ......
    various fields bought through then
    count(p.PERSON_CODE) All_Enrolments,
    sum(DECODE(ru.FES_PROGRESS_CODE,'ACT',1,0)) Active,
    sum(DECODE(ru.FES_PROGRESS_CODE,'WNS',1,0)) NonStarter,
    sum(DECODE(ru.FES_PROGRESS_CODE,'WTH',1,0)) Withdrawn,
    sum(DECODE(ru.FES_PROGRESS_CODE,'TRN',1,0)) Transfers,
    sum(DECODE(la.completion,'2',1,0)) Completed,
    sum(DECODE(la.outcome,'1',1,0)) Achieved,
    sum(DECODE(p.sex,'F','1','0')) Female,
    sum(DECODE(p.sex,'M','1','0')) Male,
    SUM(
    CASE
    WHEN uio.CALOCC_OCCURRENCE_CODE='04'
    THEN
    CASE
    WHEN ((to_date('01-08-2004','dd-mm-yyyy')-to_date(p.date_of_birth,'dd-mm-yyyy'))/365.25)<'19'
    THEN '0'
    ELSE '1'
    END
    WHEN uio.CALOCC_OCCURRENCE_CODE='05'
    THEN
    CASE
    WHEN ((to_date('01-08-2005','dd-mm-yyyy')-to_date(p.date_of_birth,'dd-mm-yyyy'))/365.25)<'19'
    THEN '0'
    ELSE '1'
    END
    WHEN uio.CALOCC_OCCURRENCE_CODE='03'
    THEN
    CASE
    WHEN ((to_date('01-08-2003','dd-mm-yyyy')-to_date(p.date_of_birth,'dd-mm-yyyy'))/365.25)<'19'
    THEN '0'
    ELSE '1'
    END
    ELSE '0'
    END ) Over19sInc19
    FROM .......

    you can use this formula to check on the age:
    TRUNC(MONTHS_BETWEEN(to_date('01-08-2004','dd-mm-yyyy'),to_date(p.date_of_birth,'dd-mm-yyyy'))/12)hope this helps.

  • How do I resolve: Field Selection dialog [Pick... button] in "Mark as read-only" section of Signed tab for Digital Signature field is not working

    I am using Acrobat Pro X on Windows 7 Enterprise x64 to create a form. When I have a simple form with a few fields, I am able to use the "Pick..." button to select the fields I want to select, but in a more complex form (20 fields with 3 Signature fields) The Field Selection dialog does not work. I can make the selections, but they are not saved. Removing fields does not resolve issue. IF I start with a blank form and add a few fields, the dialog will work, but after adding more, it quits working. Reader XI is also installed.

    And that is why many responders use only the custom JavaScript calculation option.
    The UI for the select fields and simplified field nations are only a way to pass field names to a JavaScript function that performs the actual calculation. Sometimes these functions call other functions and pass the parameters can lead to errors in the attempted code.
    I would start to learn code JavaScript for Acrobat.
    The pick field dialog is for performing calculations involving sums, products, averages, minimum, and maximum. I am not sure how that would work with a digital signature. Once a signature is applied the form fields could be locked.

  • Addition of checkbox and 2 fields in ABap query selection screen

    Hi
    I need to add chack boxes and 2 fields in ABAP query which is using LDB QMI. can u pls let me know how to do that.

    Hi Tarun,
    I am still not clear with the problem..I guess you require plant in your selection screen which you have.
    i guess if you go to sq01tcode there is a option infoset query from where you can give your selection options and value.
    have you selected all the fields in infoset and made a selection screen?
    When you have done with your infoset you just need to diplay the fields and there is a automatic program generated.
    Let me know...
    Regards,
    Nihkil.

  • RSDMWB - Create Model  - BW Query Model Field Selection - Problem

    I am trying to create a Data Mining model.
    In RSDMWB I select "Create Model" in the right click context menu after selecting a Data Mining model.
    In the "Create Model" window I try to select a BW Query I have previously created as source for Model Field Selection.
    To find the query I press F4 and get a list of available objects sorted by InfoAreas. However, the InfoArea containing my InfoProviders and the BW Queries is not visible.
    If I try selecting a BW Query that is visible this BW query does not appear in the BW Query field in the Create Model window.
    However as I press 'enter' I get a field selection list!
    Last but not least, I cannot type manually a BW Query name in the abovementioned BW Query field.
    I am not sure it is related, but I found a note about some UI problem at model creation
    "Data Mining: UI adjustment SAP Note Number: 851886". It says that BW35 SP14 should be needed. I am currently on SP12.
    Does anyone have the same problem. What is the solution to it?
    Claudio Ciardelli
    SAP BI Consultant at Unisys.

    Hi,
    - do you see the variables from the BW query in Crystal Reports ?
    - where in the BW query are the variables defined ?
    Ingo

  • Selection criteria are not applied to summary fields on group footers.

    I wonder if anyone can help me with this problem.  I am using Crystal reports version 11.2, and my data source is a Sql Server view.
    The records on the view have a date field, and I have selected all records within a given date range in "Selection Formulas".
    The records are then grouped, and the Crystal summary facility used to summarise number fields on the group footers.
    So for example, if my view contains four records, one with field "amount" = 2, one with field "amount" = 8, one with field "amount" = 6, one with field "amount" = 3, but only the first two records are within the valid date range, you would expect to see the first two records listed out at detail level, then field "amount" summarised at group level, with a summarised value of 10.
    ie ....                record1                      2
                           record2                      8   
                           group level total         10
    This works fine when I run the report using Crystal's "print preview" facility.  However, when the report is run from within an application written in C#.NET, the selection criteria are not applied to the summary field, so you get ..
                           record1                      2
                           record2                      8   
                           group level total          19
    I tried putting the date selection criteria at both record and group level, but that did not work.
    I googled the problem and found an article explaining that Crystal first performs the record-level selection, then it creates the groups and totals up any summary fields, and only then does it apply the group-level selection criteria, which can lead to problems like the one I have described above.  However, since I have put my date selection criteria at both record and group level, I do not understand why I still get the problem.
    In one report I got round this problem by creating a formula that returned zero if the record date was outside of the valid date range, and returned the number field to be summarised if the date was valid, then summarising that formula, instead of summarising the number field directly.
    In other reports I created one formula to set a shared variable as zero, then another formula to accumulate it at detail record level, then another formula to display the variable at the group footer.  In other words, I did not bother with the Crystal summary facility at all, but created my own summary facility.
    While googling the problem to see what other people did in this situation, I noticed that most fixes used variations of the "shared variables and formulae" fix to get round the problem.
    The problem is that I have lots of complex reports and it will take ages to replace the summarised fields with shared variables and formulae.  The reports were initially tested with "Print Preview" so we did not notice this problem until the C#.Net application was ready to use them.  And I can't believe that you are simply meant to ignore the summary facility and re-invent the wheel by doing it all manually.
    Please tell me that there is something simple that I have been doing wrong!!!  If I have not given enough information for you to answer, please let me know.
    Thanks,
    Anne-Marie

    Hi, Anne-Marie;
    You may be running into a common issue that is docuemented here:
    [SelectionFormula|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233303334333833393335%7D.do]
    Regards,
    Jonathan
    Edited by: Jonathan Parminter on Mar 16, 2009 8:03 AM

  • The parameter name [...] in the query's selection criteria does not match..

    Hi all,
    I'm trying to pratice EJB 3 (which I learnt at school), with JSF and JPA, but i'm really stuck with that error :
    Exception [TOPLINK-6094] (Oracle TopLink Essentials - 2.0 (Build b41-beta2 (03/30/2007))): oracle.toplink.essentials.exceptions.QueryException
    Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query.
    Query: ReadAllQuery(oracle.datamodel.Employees)
    I will try to explain clearly what i'm trying to do :
    In fact, i'm following that tutorial :
    http://www.oracle.com/technology/obe/obe1013jdev/10131/ejb_and_jpa/master-detail_pagewith_ejb.htm
    But, as i didn't have any oracle database, but had a mysql one on my machine, i decided to use that DB instead of the the oracle DB... So i created a set of example data (to replace the oracle example set) ...so i created the tables EMPLOYEE, and DEPARTMENT... with the correct relations (FK) and PK)
    All was ok, i choose my "mysql-connector" (jdbc) instead of the oracle jdbc connector... so i could follow the tutorial.
    My problem appears at the step 12 (of "Creating a Master-Detail JavaServer Faces Page"), when i run the file deptEmployees.jspx.
    The information of the first departement displays correctly :
    departmentID 1
    departmentName ... etc
    but it can't display the employees belonging to that department !
    the error is :
    JBO-29000: Exception Description: The parameter name [departmentID] in the query's selection criteria does not match any parameter name defined in the query. Query: ReadAllQuery(oracle.datamodel.Employees)
    I think i understand what is the problem... I think that the query in charge of gathering the data of a specific departement need a parameter, but couldn't find it. But i don't know why :-/ I have tried many things and read the topics talking about that error... but it didn't solved the problem. I don't know anymore where to investigate.
    I have created a Zip file of my work (it's an EJB/JSF Application.. with jdev 10.1.3.3.0)
    (available here : http://dl.free.fr/mQ5esdQuS/EJB_appli.zip)
    I would be glad if someone could take few minutes to help me.
    Thank you in advance,
    Thomas B (student)

    Hello,
    This is a common mistake. Java string comparisons in TopLink are case sensitive by default, and since column names are uppercase when defaulted, TopLink cannot find the "departmentID" column name. In this case, Departments ID column defaults to "DEPARTMENTID" as required by the JPA specification.
    Either change Departments id annotation to     @Id
        @Column(name="departmentID", nullable = false)
        private Integer departmentID;or change Employees' ManytoOne annotation to:
        @ManyToOne
        @JoinColumn(name = "departmentID", referencedColumnName = "DEPARTMENTID")
        private Departments departments;Best Regards,
    Chris

  • Warning message in Query "Currency field CCCUR-WAERS will not be filled"

    Hi
    I generated a infoset using table COSP, when I click in generate infoset, sap shows this warning message:
    Compare field group fields with Data Dictionary
    Currency field CCCUR-WAERS will not be filled
    Currency field TKA01-WAERS will not be filled
    How can I fix the value for fields CCCUR-WAERS and TKA01-WAERS in my query ? when I execute the query this dont show the correct values for some fields because waers field.
    Thanks & Regards
    Ramesh Narayanan

    Dear,
    Yeah system shoots this warning because system is unable to get the currency key for the amount in the report, may be because the primary table is unable to provide this information.....better take currency key by joing any other header table....
    Not a big worry
    Regards,
    Chintan Joshi

  • Transfer Purchase Order - Error message "Field selection ZTR not defined"

    Hi all,
    I've customized a new transfer purchase order type : TRA.
    When I go to ME21N and choose TRA type, SAP displays this error message :
    "Field selection ZTR not defined
    Message no. ME028
    The field selection required by the system is not defined in table 162.
    Further processing is currently not possible."
    How can I fix that please ?
    Regards,
    Bahia.

    Hello,
    Check in IMG - MM - Purchasing - Purchase order -define screen layout - Check any field selction ZTR has been configured. And also check in Purchasing - purchase order - define document types - your PO doc type has reference to field selection group ZTR - if yes change it..
    Regards
    Mahesh Naik

  • Transaction SE16: Field selection (User-Specific Settings) is NOT working for ALL tables

    Hi Guru’s,
    I have an issue in Transaction SE16, Field selection (User-Specific Settings) is NOT working in Tables (ALL tables).
    Following is the screenshot attached for your kind reference,
    That is in the initial screen of transaction SE16 if I choose Filed Name or Filed Label only the technical details (Field Names) are appearing and not the descriptions like Client, Purchasing Doc, and Company Code Doc. Category Document Type etc…
    Right now I am using ECC6 and EHP7 SAP system.
    Please help me to resolve this issue by implementing any OSS note or User Role creations or any technical changes required in system.
    Hope the requirement is clear and in case need any clarification please revert back.
    NOTE: Right now in Development System we don’t have any successful user to compare the settings.
    Regards,
    Kumar.S

    Thanks Patra.
    Even I searched in SAP portal and couldn't able to find the relevant OSS note.
    Following is my BASIS team response,
    "Only you can view Table Field values from higher release"
    Can you suggest / guide on this comment as well.
    Looking forward to your speedy response.
    Regards,
    Kumar.S

  • Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE

    While executing BAPI_PO_CREATE1 by using Adaptive RFC Model in Webdynpro
    I was facing the following Error
    Field Selection PTFF not defined , error key : RFC_ERROR_SYSTEM_FAILURE
    But while trying to create BAPI_SALEORDER_CREATE is working properly with the same configuration.
    If anyone come accross this issue please help me out

    This is beacuase of some issues in the parameters that are passed and is rectified.
    krishna

  • I need use conditions in the select fields of a query.

    Hello,
    Is possible, that I can have conditions in the select fields of a query? In a invoice when the type is cancellation I want to put *-1 to price and if is other type the price is normally.
    If VBRK.FKART = 'S1' THEN KWERT*-1 else KWERT .
    Thank you very much.

    you can do two things:
    1. select the data into internal table and loop through the internal table and do the necessary changes
    SELECT fkart kwert
    FROM vbrk
    INTO TABLE itab
    WHERE ...
    LOOP AT itab.
    IF itab-fkart EQ 'S1'.
    itab-kwert = itab-kwert * -1 .
    MODIFY itab.
    ENDIF.
    ENDLOOP.
    2. use select-endselect and change the data acc. to your needs inbetween and append the internal table.
    SELECT fkart kwert
    FROM vbrk
    INTO wa
    WHERE ...
    IF wa-fkart EQ 'S1'.
    wa-kwert = wa-kwert * -1 .
    ENDIF.
    APPEND wa TO itab.
    ENDSELECT.
    (The first approach is probably faster.)

  • Multiple selection in Query Panel. Operator Does not equal generates error.

    Hi,
    I'm using Jdeveloper 11.1.1.4 and creating Oracle Fusion Web Application with ADF Business Components.
    I want to use multiple selection on LOV in ADF Query Panel with Table, but I get the following error
    when I use operator "Does not equal":
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    A simple example:
    Schema: HR
    Generate default Business Components for tables Departments and Employees.
    Model:
    Create List of Values for EmployeesView(DepartmentId)
    List Data Source: DepartmentsView1
    List Attribute: DepartmentId
    Display Attributes: DepartmentName (UI Hints)
    Create View Criteria EmployeesByDepartmentVC for EmployeesView
    Criteria Item:
    Attribute: DepartmentId
    Operator: Equals
    Operand: Literal
    Select "Support Multiple Value Selection" (UI Hints)
    ViewController:
    Create blank JSF Page: showEmployees.jspx
    Drag EmployeesByDepartmentVC from Data Controls to showEmployees.jspx
    Create Query=>ADF Query Panel with Table
    Run application.
    Press Advanced button.
    Select operator "Does not equal" and department names "Administration;Marketing"
    Press Search
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    Note: it works fine with operator "Equals"
    Best,
    Kees.

    Hi,
    I was reading:
    http://www.oracle.com/technetwork/developer-tools/jdev/jdev-11gr2-nf-404365.html#bugs_fixed_in_11.1.2.2.0
    Bugs Fixed in 11.1.2.2.0
    Bug.No. 13508184
    unsupported model type error thrown for multi select view criteria
    I have tested the use case described in this thread with JDeveloper 11.1.2.2.0 but I still get the same error.
    when I use operator "Does not equal":
    Error: Unsupported model type.
    SelectMany does not support a model of type class java.lang.Integer.
    Is there anybody who can tell me more about this bug fix?
    Thanks,
    Kees.

Maybe you are looking for

  • How can I sync my calendar form mac to iPhone without having to use iCloud?

    There used to an option called sync calendar under the summary of your iPhone on iTunes, but I could no longer find that option. I wouldn't really want to sync my calendar using iCloud because my calendar on iCloud is blank and I don't really want to

  • Goods Issue based on Goods receipt.

    Hello, Can any body suggest query on "Goods Issue based on Goods receipt." Scenario : Suppose P.O has been created @10/- for 100 Quantity . GR has done for 100/-in Month of June, now another P.O has created @12/-  for 100 Quantity in Month of July  a

  • Logical System Name after System Copy

    Hello, I have three questions about the logical system name after system copy. Q1) When I change SID D22 to S11 during system copy, do I have to change the logical system name of all clients in the target system? The target system is used for test, a

  • Print Multiple Page From Different Trays

    Dear Sir . / Mom   How are you ? Hope everything goes well with you !  I hope this massage will find you as soon as before happy and healthy for you and family . and every thing is OK . Tanks so much for your good support Please send your answer to m

  • My photos come ALIVE when i zoom in

    fce, making a huge slide show. when i zoom in (kens burn effect) any sharp edge, blinds..edges of desks etc become really wavy to the point of ugly distraction to photo. so i tried to reproduce this by taking the original photo in iphoto altered it i