How to retreive data from  view

hi,
i have created a view with 8 fields. including reference unit for netwr field.
REPORT  ZVIEWTEST.
data: begin of itab occurs 0,
      kunnr type kunnr,
      name1 type name1,
      ort01 type ort01,
      land1 type land1,
      vbeln type vbeln,
      erdat type erdat,
      netwr type netwr,
      end of itab.
      select * from zview001 into table itab.
      loop at itab.
      write: / itab-kunnr,
               itab-name1.
  endloop.  
when i am executing this program i am getting syntax error.
"the type of the database table and work area(or internal table)"itab" are not unicode convertible."
what does it mean?

Hi Prashanth,
Declare the internal table with the type of View.
Data : itab type table of zview001.
or write select query as
select * from zview001 into corresponding fields of itab.
Also you can uncheck the Unicode checks active (checkbox) in the program attributes.
{When you check that unicode checkbox, you should use an internal table without a header line. Instead you should declare a work area)
Hope it helps...
Lokesh Aggarwal
Please reward appropriate points
Message was edited by: Lokesh Aggarwal

Similar Messages

  • How to select data from view V_TCURR

    Hi all,
    how to fetch data from view V_TCURR.
    I have to fetch 2 fieds:   kursp  and   *tfact
    (what does this * indicates in field name   *tfact)

    The view is a maintenance view and it doesn't even have field tfact available.
    Just select from the table directly
    PARAMETERS: p_kursp for tcurr-kurst,
                p_fcurr for tcurr-fcurr,
                p_tcurr for tcurr-tcurr,
                p_date  for tcurr-gdate.
    SELECT SINGLE
           kursp
           tfact
           INTO ( lv_kursp, lv_tfact )
           FROM tcurr
           WHERE kurst eq p_kurst
           AND   fcurr  eq p_fcurr
           AND   tcurr  eq p_tcurr
           AND   gdatu le p_date. 
    Hope that helps,
    Michael

  • 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

  • How to retreive data from a table and a structure

    Hi experts,
    I have a requirement to create an ALV report. I have to include fields from two tables 'PA0001' and 'CATSDB' and from one structure 'CATSAPPR'. I am able to retrieve data from tables using INNERJOIN. But i have no idea how to deal with Structure.
    I know that structure does not contain any data.
    But  i am not able to find any transparent table which has field 'ORDERTEXT' . I found field 'ORDERTEXT' only in structure 'CATSAPPR'.
    So please anyone tell me, either any transparent table which has field 'ORDERTEXT' or please tell me how to deal with structure, in this case.
    Please help me,
    Thanks in advance
    Anu

    check this
      Table-Fields                     Short descriptn
      AUFK- KTEXT          Order master data
    COCH- KTXT              Process Management: Control Recipe Header
    COCHP- KTXT             PI sheet: Control Recipe Header
    COMPHDR- KTEXT    OCM: Comparison results, indiv. records for order headers
    HIKO- KTEXT              Order master data history
    MAAVC_MDO-  KTEXT      MPO: Individual Master Data for Orders
    MCHPVS- AUFTEXT                           Batch Record: Shadow Table for Link to Archive
    OCMHOMO_ARCH- KFELD          Backup Table of Homogeneity List in Case of Archiving
    PSJHIEDATA- KTEXT                       Hierarchy data to test LDB PSJ
    TEWOCODEST- DESCRIPTION                      Order Codes (Texts)
    TEWOCODET- KTEXT           Allocation of Message Codes to Order 
    VLCSMORDER- KTEXT                                                   VELO : Service Order
    VSAUFK_CN- KTEXT               Version: Order master data
    Yogesh N

  • How to Retreive data from custom list on specify conditions?

    Hi All,
    I have custom list.And the custom list data contains 100 rows of data.
    my requirement is  how to retrieve custom list data from specific condition like 20-30,50-70.
    Assume that i want to fetch 20 record to 30th record.
    How to use the caml query for the above situation.
    Please assist me.
    Rama

    Hi 
    Thanks for posting your issue, Kindly browse the below mentioned URL to find related the CAML query example
    http://karinebosch.wordpress.com/2012/02/03/caml-and-the-client-object-model/
    I hope this is helpful to you, mark it as Helpful.
    If this works, Please mark it as Answered.
    Regards,
    Dharmendra Singh (MCPD-EA | MCTS)
    Blog : http://sharepoint-community.net/profile/DharmendraSingh

  • How to retreive data from structure MDEZ in T.code CO09

    As per our requirement 2 new columns are needed in a customize report .i.e
    - u201Cinc. lot dateu201D
    - u201Cavailable inc. lotu201D
    u201Cinc. lot dateu201D:to get the values for inc.lot.date
    From second screen of CO09(program: SAPLATP4 and screen number: 400) pick first date where MRP element is u201CPOitemu201D, u201CShpgNtu201D or u201CPrdOrdu201D.
    u201Cavailable inc. lotu201D: to get the values for available inc.lot
    Pick u201CCum. ATP QTyu201D from the same row.
    These data are stored in structure MDEZ. Actually I want dat00 and MNG04 based on field DELB0. If DELB0 filed is POitem or Prdord or ShpgNt then only I should retrieve the dat00 and MNG04. IF there are more than one POitem in MRP element then we should pick the first POitems' mrp date and *** ATP qty  .Can you please help me out how to get these data from the structure MDEZ.
    input parameters to get the values are material number and plant.

    Hi,
    First of all data is never stored in structure so there is no way you can retrive data from structure.
    you are looking into the screen field and it is not mandatory that it will always point to a table.
    Now  the qestion remains how to get the data ?  you need to find database table for that field there are many ways like SE84 or SE11 where used etc.
    Try to find the table if you still have the problem feel free to get back.
    Regards
    Bikas

  • How to retreive data from the column of CLOb  dataype in BPEL.

    Hello Everyone,
    I have a scenario in which i have two databses primary and secondary. In first bpel process i am checking if primary database is down then store the payload in temp staging table in secondary database. That payload is getting stored in a cloumn of CLOB datatype in a text format.
    Now in second bpel process when primary is up i have to pull the data from the temp staging table...but here i want the data in the same format (like it came in the first process...the input payload format)....but as the CLOB will store the data as a text then how to reform that data in to ealier payload format.
    Can any one pls suggest me the solution...
    Thanks

    Confirm that you have the VISA Run Time Engine on the target machine. If you do not have it installed, you can install the VISA Run Time Engine from ni.com.
    Error -1073807346 Using VISA When Running LabVIEW Executable On Target Computer
    Message Edited by Mathan on 10-12-2009 07:11 AM

  • How to retreive data from a field that contains a "|" symbol

    Hi,
    Hopefully my title won't confuse anyone .
    Well I am trying to create a group which would display an employee name(s).
    In my case, the value comes from a field which can contain multiple values separated by a "|" symbol. See picture below.
    I am pretty sure I will have to write a formula for this but simply don't know where to begin or how to write it.
    Table use in this example is "ProductionProjectGroups" and will be linking this table to the "Employees" table which will display the actual employee name.
    Does anyone knows how to display data if there is a "|" symbol in the field?
    If you request more info please let me know.
    Thank you in advance for the help.
    Joe

    Hi Abhilash,
    I am looking for help on how to extract the employee's name from this field.
    I have also posted more pictures with details as requested.
    Thank you
    Joe

  • How to retreive data from alv when using CL_GUI_ALV_GRID

    Hi All,
      I am using two subscreens to display 2 ALV grids in a screen using the OOPs concept and the class CL_GUI_ALV_GRID. I would like to download data from these two alv grids into an excel after any changes, i.e sort, filter or summation. I was able to capture data for sort and filter. The logic to capture summation and subtotals is becoming very complex. I need to simplify for better. I need help to see if there is any method which captures the changed data on the screen so that i can just call the method and retrieve the data to push into an internal table before downlaoding to excel.
    Your help is greatly appreciated.
    Thanks in advance.
    Roopa

    Step 1, define the method in class grid_hdr:
    METHODS:handle_data_changed CHANGING e_valid TYPE c.
    Step 2, process the method:
      METHOD  handle_data_changed.
        CALL METHOD zgrid->check_changed_data
          IMPORTING
            e_valid = e_valid.
      ENDMETHOD.                    "handle_data_changed
    Step 3, use the method in PAI:
      DATA l_valid TYPE c.
      CALL METHOD grid_hdr->handle_data_changed
        CHANGING
          e_valid = l_valid.
      IF l_valid = 'X'.
      ENDIF.
    Also you can search  BCALV_EDIT_* in your system.
    Edited by: SAM XIAO on Nov 17, 2009 8:03 AM

  • How to retreive data from disabled iPhone 4

    Hi.
    I have permanently disabled iPhone 4. it is my wife`s phone who passed away.
    i need to get photos and videos from the phone. The original computer which i  synced it with doesn't help.
    I have 2 computer and don't remember which one was that i synced it with,on one of them i had hard drive which crashed so i installed new one, so basically when i am connecting to iTunes on both computer it says "enter your pass code before connecting to iTunes" but on the phone there is no keypad to enter pass code, it says only "iPhone is disabled connect to iTunes"
    i have all paperworks and proof that phone and phone number belongs to me.
    So far nothing works.
    1.  I tried iFaith to dump SHSH blobs, but later found out that building IPSW is only for restoring, that it will not retrieve my data.
    2. I tried iPhone Browser but it doesn't see my device
    3. i did not try this yet, not sure how to do this
      "     http://modmyi.com/forums/file-mods/237321-how-iphone-data-recovery.html      "
    any suggestion, is there any body who have gotten data back from disabled iPhone?
    please help me, i will really appreciate it. and will pay $$$$
    i have all paperworks and proof that phone and phone number belongs to me.
    here is my E-mail: [email protected]
    Albert.

    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

  • How to retreive data from and external program

    Hiii
    I have a Zreport which produce an ALV and also the VF02 transaction which produce a amartform.
    I will need to
    1:  From a new program extract from the Zreport the alv in sort of excel sheet and submit it by mail
    2.  From a new program extract the smartfroms found on VF02 and submit it by mail
    please advise how i can get access to those two external program

    Hi,
    1: When you have an output in ALV why don't you use an EXCEL-Layou in this Report?
    2: Print the smartform and send this as email from the spool (lot of examples in SDN, serach for this).
    Regards, Dieter

  • How  to Retreive data from the SAP  by using  BAPI's  through the Web .

    Shashi

    <copy&paste_and_everything_else_removed_by_moderator>
    Edited by: Julius Bussche on Sep 3, 2008 8:54 AM

  • Extract data from views

    Hi friends,
    Does anyone know how to extract data from views in a poduction system for e.g
    TXW_ANLA
    TXW_ANLB
    TXW_ANLC
    TXW_ASSCLA
    Thanks.
    kris

    You could create a query in SQ00, create an InfoSet that uses the logical database "ADA".
    Markus

  • Data from views

    Hi friends,
    Does anyone know how to extract data from views in a poduction system for e.g
    TXW_ANLA
    TXW_ANLB
    TXW_ANLC
    TXW_ASSCLA
    Thanks.
    kris

    Hi;
    [Query|http://help.sap.com/saphelp_erp2005/helpdata/en/f6/c39138e4a0341fe10000009b38f8cf/content.htm]
    Below are the steps to create an infoset.
    1. Go to transaction SQ02.
    2. Create a Zinfoset. (give a name for infoset and click on create).
    3. Select "Direct Read of Table" in the Data source tab and provide the name of the table (in your case BSEG).
    4. In the next pop-up, Choose "Select all fields".
    5. Save the infoset.
    Now, you go to RSO2 and create a data source based on this infoset.
    You need to Generate the infoset.
    Hope this helps
    Regards
    Shashi

  • How to extraxct  data from a view.

    hi,
        i'm tying to extrct data from a view vbdka, with select. but i;m getting a syntax error that it anot a DB Table or DB view, pls tell me how to extract data from that view.
    thanks.

    hi,
    just check out if u have declared the table or not n see if it is not a structure also
    madhuri.

Maybe you are looking for

  • ITunes 8.0 only Plays One Song at a Time, then Stops! AARGH!

    Someone, please help. I have tried everything I can think of, to no avail. For some reason, when I play a song in my Music Library on my laptop iTunes 8.0, it stops playing after each song. When the song ends, iTunes stops; it does not move to the ne

  • How can I open new window from a link in another window?

    Hello everyone! Can anyone help me with my problem. I need to open a child window from a link in the mother/master window. Actually, the link that would open the child window is directed to a servlet that retrieves data from the database. The data wi

  • Itunes not working with windows vista

    Downloaded latest iTunes to laptop running Windows Vista... After install, the program won't launch. You get an error message stating iTunes is shutting down and then get a Windows error message.

  • Wild card usage in standard F4 help - issue

    Hi Friends, i want to list a function module which - second character  should be 'Z' .........HOW TO DO THAT ... usually  we will put : in se37 - IN THE FIELD VALUE COLUMN    :     %z* but wild card % or ? is not accepting ....give me your help on th

  • Problem with using Callable Statements via JDBC/JSP

    Hi Pals,I have this scenario; If a stored procedure has being created for me on Oracle database and i need to execute the stored procedure via my JSP ,where i capture some parameters in my JSP,send this parameters to the Stored Procedure . Then the S