Problem retreiving data

Hi
From COEP table Im trying to retrieve data from fields WTGBTR , OBJNR , KSTAR , VRGNG . But the problem is if the value in the field WTGBTR is repeated for a particular OBJNR and KSTAR Im not getting those values to the internal table . Why?

Can u provide that OBJNR value. or if OBJNR value is starting with  'KS' or 'OR'  use the following example.
select belnr objnr pernr megbtr into table itab_hours
      from coep for all entries in itab_belnr
     where belnr = itab_belnr-belnr
                 and = ( objnr like 'KS%' or objnr like 'OR%' ).
Thanks & Regards,
Vallamuthu.M
Edited by: vallamuthu madheswaran on Jun 7, 2010 3:34 PM

Similar Messages

  • Retreive data from wa structure into fields.

    Hi friends,
                I am having a query regarding classical report.I want to retreive data for vendor billwise realisation report.I am getting few fields into my list screen(fields from bsis table).Remaining fields i want to retreive from table bseg(augdt,augbl....)with the condition that the belnr of both the tables should be same and Account type = 'k'(vendors).
    I tried it using select queries for the bsis and bseg..but data is retreived only from one table bsis and not from bseg.so for data from bseg i used workarea(wa).data is retreived for only single doc no. and not for other documents.
       If any problem in understanding this pls give me the mail id i will send in detail.
    Thanks and regards,     
    Anand.

    Hi Anand,
    You should not use Workarea, if you are exepecting N number of records. Please use internal table.
    SELECT * FROM BSIS
        into table i_bsis
         where ....
    if not i_bsis[] is initial.
    sort i_bsis by belnr.
    SELECT * FROM BSEG
    into table i_bseg
    for all entries in i_bsis
    where belnr = i_bsis-belnr.
    endif.
    Best regards,
    Prashant

  • Using DBLINK in ABAP to retreive data from externam system

    Hi All,
    Please help me, if anyone knows the answer.
    The basis team has created a dblink 'DBL_TEST.YY.XXX.COM'.
    Now I have to fetch data from another non-sap external system using this dblink only. Cannot have any entry in DBCON.
    I know the procedure of retreiving data using DBCON entry. But since DBCON will not be used here, so I have to use the DBLINK to get data from an external oracle table (say, ZTEST).
    I need the procedure to implement the logic in abap program.
    Thanks in advance,
    Ipsita

    My problem is now solved. We created views @the database level, and fetched data using the database view in Native SQL.
    In case anybody needs to do, I am giving a short code dump;
        TRY.
            EXEC SQL PERFORMING f_loop_output.
              select alias_type_id,
                     name,
                     molecule_id
              into   :w_tab
              from   ext.V_XXXX
              where molecule_id in
               (Select mh.MOLECULE_ID
                from  ext.V_YYYY mh, ext.V_XXXX al
                where  mh.molecule_id   = al.molecule_id
                and    mh.IS_CURRENT    = 'Y'
                and    al.ALIAS_TYPE_ID = :c_type_id
                and    al.NAME                  = :l_number
              and ALIAS_TYPE_ID in ('AAA','B','CCCC')
            ENDEXEC.
          CATCH cx_sy_native_sql_error INTO l_check_rs.
            l_text  = l_check_rs->get_text( ).
            MESSAGE i005 WITH l_text.
            LEAVE LIST-PROCESSING.
        ENDTRY.

  • Unable to retreive data from Lotus Notes Database

    Hi there,
    I have problems to connect to a view in Lotus notes via Lotus Notes SQL Driver.  The following message appear when trying to retreive data via WebI
    Database error: [Microsoft][ODBC Driver Manager] Driver's SQLAllocHandle on SQL_HANDLE_DBC failed. Contact your Business Objects administrator or database supplier for more information. (Error: WIS 10901)
    I also tried via Desktop Intelligence and I got this error:
    Exception: DBD, [Lotus][ODBC Lotus Notes]Column not found - ActualApproverState: S0022
    Environment:
    - Lotus Notes Client 8.5
    - Lotus Notes SQL Driver 8.50.2009.317
    - BOE Professional XI R2 SP2
    I test connection in the Universe and it's working fine.
    thanks,
    Ricardo

    Hi,
    If you are trying to access the tables from a different user other than the user who created the table, then you have to enable the "Require fully qualified table names " check box. This check box will be available when you right click the "Datasource name".
    Here is an example:
    Lets assume Table1 is created by user1. If u try to access the Table1 using user2, you cannot access directly. Instead you need to access like "user1.table1".
    Hope this resolves ur issue.
    Regards,
    Arul

  • Strange problem retreiving string from database

    Hi,
    I am receiving a very strange problem retreiving a string from a database. The database I am using is Access. I am using .getString(COLUMN_NAME) to get the data from the particular record in the result set. The problem is that sometimes it does not seem to get the entire information that is in the cell. I have found that it is completely random on when it will get the entire contents and when it will only get a portion. It seems like once it gets only a portion though, that every other retrieval of the same field on a different record in the result set will yield the same cut-off point. Of course to make my life even more difficult, it is not always the same cut-off point on a different result set.
    Has anyone else experienced anything along these lines? Any help would be greatly appreciated as I am running out of ideas as to the cause.
    Thank you

    I've printed out exactly what is being retrieved from the fields in question and that's how I narrowed it down to that it has to do with the retrieval of the information from the result set. I've found the exact line of code where I am suddenly receiving only part of the data. And all I'm doing there is just getting the data from the result set. Nothing fancy at all. So unless the result set is becomming corrupt somehow...not sure how that would happen though by just cycling through?

  • How to retreive data from a maintainence view?

    Hi all,
    I have used select query to retreive data from a maintainence view. But it gave me a syntactical error that XYZ is not in abap dictionary , it's a database / projection view?
    So can't we get data from a view using select query?
    Please share if u have answers.
    Thanks & regards,
    Chandru

    Hi,
    Maintenance view will be created for database tables only.
    Just display the maintainence from SE11 and click Tables tab in the screen
    Here you can find the list of tables used to created for Maintainence view.
    YOu can use these tables to write SELECT.
    If you give us the maintainence table, we will help you.
    Thanks,
    Ramakrishna

  • Problem while  data processing TRANSACTION data from DSO to CUBE

    Hi Guru's,
    we are facing problem while  data processing TRANSACTION data from DSO to CUBE. data packets  processing very slowly  and updating .Please help me regarding this.
    Thanks and regards,
    Sridhar

    Hi,
    I will suggest you to check a few places where you can see the status
    1) SM37 job log (give BIrequest name) and it should give you the details about the request. If its active make sure that the job log is getting updated at frequent intervals.
    2) SM66 get the job details (server name PID etc from SM37) and see in SM66 if the job is running or not. See if its accessing/updating some tables or is not doing anything at all.
    If its running and if you are able to see it active in SM66 you can wait for some time to let it finish.
    3) RSMO see what is available in details tab. It may be in update rules.
    4) ST22 check if any short dump has occured.
    You can also try SM50 / SM51 to see what is happening in the system level like reading/inserting tables etc.
    If you feel its active and running you can verify by checking if the number of records has increased in the cube.
    Thanks,
    JituK

  • Having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this

    having a problem with dates when I send my numbers doc to excel. dates are all out and that they have to cut and paste individual entries onto their spreadsheet. Any idea how I can prevent this.
    I'm using Lion on an MBP and Numbers is the latest version

    May you give more details about what is wrong with your dates ?
    M…oSoft products aren't allowed on my machines but I use LibreOffice which is a clone of Office.
    When I export from Numbers to Excel and open the result with LibreOffice, the dates are correctly treated.
    To be precise, dates after 01/01/1904 are correctly treated. dates before 01/01/1904 are exported as strings but, as it's flagged during the export process, it's not surprising.
    Yvan KOENIG (VALLAURIS, France) mardi 3 janvier 2012
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • Problem with date format when ask prompt web-intelligence

    Bo XIR2 with 5 SP. Instaled on Windows 2003 with support Russian.
    Inside BO every labels, buttons - use russian. But when invoke web-report and Prompt appear there is problem with date format.
    Looks like korean format of date 'jj.nn.aaa H:mm:ss'.  I see system settings of date in Win .. everything right
    What i have to do?
    Where i can change format date for bo?

    GK, try this...
    decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
                                                                      to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn

  • Problem with Date format

    Got one more problem Merilyn and Radhakrishnan...
    Regarding the soln y provided me earler with the thread "Problem with date format"...
    What is happening is....I am able to change the 2400 to 0000 but when it is changed from 2400 on jan 1st to 0000 the hour is changing but not the date....the date still remains as jan 1st instead of jan 2nd....
    Eg: Jan 1st 2400 -- changed to -- jan1st 0000
    instead of jan 2nd 0000
    Could you please help me in this issue...
    Thanks,
    GK

    GK, try this...
    decode(instr(packagename.functionname(param1 ,param2),'2400'), 0, to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" hh24mi'),'mm/dd/yyyy hh24mi'),'mm/dd/yyyy hh24mi'),
                                                                      to_date(to_char(to_date(rtrim(packagename.functionname(param1 ,param2),'(PT)'), 'Month dd, yyyy "at" "2400"')+1,'mm/dd/yyyy "0000"'),'mm/dd/yyyy "0000"'))-Marilyn

  • Problem with date calculation

    I am a rookie in SAP i have a small problem with date.Do we have any function module to find out the first day in a month if we give out the system current date ?? Pls help me out.

    Hi,
    As Ganesan told,you can do.
    Here is the sample code.
    data v type sy-datum.
    data d type DTRESR-WEEKDAY.
    v+6(2) = '01'.
    v4(2) = sy-datum4(2).
    v0(4) = sy-datum0(4).
    CALL FUNCTION 'DATE_TO_DAY'
      EXPORTING
        date          = v
    IMPORTING
       WEEKDAY       = d.
    write d.

  • Problem with date format from Oracle DB

    Hi,
    I am facing a problem with date fields from Oracle DB sources. The date format of the field in DB table is 'Date base type is DATE and DDIC type is DATS'.
    I mapped the date fields to Date characters in BI. Now the data that comes to PSA is in weird format. It shows like -0.PR.09-A
    I have changing the field settings in DataSource  to internal and external and also i have tried mapping these date fields to text fields with out luck. All delivers the same format.
    I have also tried using conversion routines like, CONVERSION_EXIT_IDATE_INPUT to change format. It also delivers me the same old result.
    If anybody of you have any suggestions or if anybody have you experienced such probelms, Please share your experience with me.
    Thanks in advance.
    Regards
    Varada

    Thanks for all your reply. I can only the solutions creating view in database. I want some solution to be done in BI. I appreciate if some of you have idea in it.
    The issue again in detail
    I am facing an issue with date fields from oracle data. The data that is sent from Oracle is in the format is -0.AR.04-M. I am able to convert this date in BI with conversion routine in BI into format 04-MAR-0.
    The problem is,  I am getting data of length 10 (Output format) in the format -0.AR.04-M where the month is not in numericals. Since it is in text it is taking one character spacing more.
    I have tried in different ways to convert and increased the length in BI, the result is same. I am wondering if we can change the date format in database.
    I am in puzzle with the this date format. I have checked other Oracle DB connections data for date fields in BI, they get data in the format 20.081.031 which will allow to convert this in BI. Only from the system i am trying creating a problem.
    Regards
    Varada

  • Problem with date format dd/mm/yyyy. But I need to convert yyyy-mm-dd.

    Dear friends,
    I have the problem with date format. I receiving the date with the format dd/mm/yyyy. But I can upload to MySQL only in the format of yyyy-mm-dd.
    how should I handle this situation, for this I've created these code lines.But I have some problem with these line. please help me to solve this problem.
    String pattern = "yyyy-mm-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("2006-02-12");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I need the date format in yyyy-mm-dd.
    regards,
    maza
    thanks in advance.

    Thanks Dear BalusC,
    I tried with this,
    rs.getString("DATA_SCAD1")// where the source from .xls files
    String pattern = "yyyy-MM-dd";
    SimpleDateFormat format = new SimpleDateFormat(pattern);
    try {
    Date date = format.parse("DATA_SCAD1");
    System.out.println(date);
    } catch (ParseException e) {
    e.printStackTrace();
    System.out.println(format.format(new Date()));
    this out put gives me Tue Apr 03 00:00:00 IST 2007
    But I want to display the date format in yyyy-mm-dd.
    regards,
    maza

  • Is it possible to retreive data and store it in database from a AWM cube?

    Hi all,
    Table to cube is possible by maintaining..but Is it possible to retreive data as it stored in cube and store it in database from a AWM cube?
    Regards,
    Arjun Jkoshi

    Hi there,
    Yes, it is possible - and very easy. Remember an OLAP cube is fully integrated with the Oracle database and therefore treated very much as a native object.
    With 11g OLAP, cube views are created automatically when you define a cube using AWM. These views provide SQL access to the data in the OLAP cube meaning that it is very easy to transfer data into a table using techniques such as 'create table as select * from cube_view' or 'insert into table select * from cube_view'. You can use WHERE clauses to filter specific values from the cube into the table, and in 11g, an optimisation has been added to ensure that NULL rows are eliminated from the result set automatically (OLAP cubes are typically very sparse and therefore contain many NULL values)
    With 10g OLAP, cube views can be added on top of existing cubes that have been created using AWM. It is easiest to do this using the [view generator|http://www.oracle.com/technology/products/bi/olap/viewGenerator_1_0_2.zip] utility from the [OTN OLAP home page|http://www.oracle.com/technology/products/bi/olap/index.html]. With the views in place it is once again very easy to transfer data into a table using techniques such as 'create table as select * from cube_view' or 'insert into table select * from cube_view'.
    I hope this is clear and makes sense. Which version of Oracle OLAP are you using?
    Thanks
    Stuart

  • "evdre encountered a problem retrieving data from the webserver"

    Hi
    We are using a big report which takes very long time to expand and sometimes we get the error message "evdre encountered a problem retrieving data from the webserver" when expanding the report, but not very often for most of our users. But we have one user who gets this error message almost every second time he expands the report. This user have a computer with same capacity as the rest of us, can there be some setting on the computer or in the client installtion the cause this problem?
    We are using BPC 5.1 SP 5
    /Fredrik

    Hi,
    This error occurs usually if we have huge data in combination of our dimensions.
    Even, if the selection of your memberset is not apt to the combination of the data present in the back end, you may encounter a data retrival error.
    regards
    sashank

Maybe you are looking for

  • HP OfficeJet 6500 wireless twain driver( for scan to quickbooks) needed

    I have an extra HP OfficeJet 6500 wireless printer around and I wanted to see if it had a twain driver so we could use it to scan to attach directly to QuickBooks.  QuickBooks lists scanners they think would work and it is not on the list but they al

  • New iPod Touch 64GB not syncing photos

    Hi, I am really excited to have have just bought my 2nd iPod (ran out of space on my older, 2nd Gen, 16GB iPod). This one is a 3rd Gen 64GB iPod. I have spent a ton of hrs transferring all my music, movies, contacts, fave sites and links, Kindle and

  • JMS Persistance Store "WLStore"

    JMS Persistence Store was using WLStore table, to persist the JMS message, but on production server restart the Weblogic is not able to read that WLStore Table anymore and giving below Error. <WebLogicServer> <BEA-000365> <Server state changed to STA

  • Printing puzzle

    Hi, I'm kinda new to this stuff... i wanna print a puzzle ... here is the code... basically it prints all the lines beside the first line (top line) ... is there any way of printing the top line without creating a new method, which has to draw this l

  • Timecard workflow-encountered error ORA-20001-approver has been terminated

    Hi All, Getting below error in OTL. Timecard (06-AUG-2011 to 12-AUG-2011) workflow for Rajfee encountered error ORA-20001: This approver has been terminated. When i checked the supervisor and project manager they are active in system, not sure what w