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

Similar Messages

  • Not able to query data from View

    Hi,
    I am not able to fetch data from views even while running simple select statements. I am using SQL Developer Version 3.0.04,
    Same query is fetching data on other computers running SQL Developer or Toad.
    Has anyone faced this issue??

    Is that the first version ever you installed? You unzipped in a clean directory, right?
    What OS/JDK/DB versions?
    So do you get an error or what?
    K.

  • Select data from  view ( V_T856 ).

    Hi All,
    i need to download transaction type and text from V_T856 ,  but the data is not selected from V_T856 view.
    how to select data from a view, is there any special conditions.
    i declared V_T856 in tables statement, even though select statement not exicuted.
    pls suggest me with relevant information..
    thank you
    Regards
    Ramesh.

    hi ramesh,
    using Select statement you cannot retrieve the data from view.
    use the FM - VIEW_GET_DATA.
    call function 'VIEW_GET_DATA'      " func. mod to get data from maintenance view.
        exporting
          view_name = view
        tables
          data      = gt_data.
    Regards,
    Sakthi.

  • 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

  • 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

  • Reading data from View

    HI all,
    Can anyone help me please. I want to read data from view with below simple program
    Report zread_view.
    DATA: it_t053 TYPE TABLE OF V_T053,
               wa_t053 like line of it_t053.
    *SELECT * INTO TABLE it_t053 from v_t053.*
    LOOP AT it_t053 INTO wa_t053.
      WRITE: / wa_t053-KURZT.
    ENDLOOP.
    But when activating this message is show:
    'V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view.
    Need for anyone help...?
    Thanks,
    Ramses

    hi,
    which view you are accessing in the program? you can able to access only database view and projection view from prgram.
    the view which you are using in the program is niether database view nor projection view. that is why you are getting that error message ''V_T053" is not defined in the ABAP Dictionary as a table, projection view, or database view".
    hope this will help you.
    Regards,
    Kiran

  • Deletion of data from view

    hi all
    i have to delete data from a view .i deleted data from all dimension tables but still data exists in one of the table which is a view
    can any one give me some inputs
    thanks in advance
    surya

    Hi,
    Basically the view doesn't contain any data. It is the table which contains the data. So you can find out the tables on which the view is based and delete the data from them. In SE11, find out the definition of view, there you will also find the tables involved.
    Regards,
    Yogesh.

  • Getting data from view object into backing bean

    Hi,
    My requirement is explained below -
         I have a ADF editable table in a jsf page which is connected to backend database table. In the table there are 6 columns and only 2 are editable. So when user inputs a value in first input column an event is triggered such that the data for all the remaining columns should be fetched from another database table.
    Typically if we are not using ADF development environment. We would have had a simple business method which creates the sql query by taking the input from textbox with simple where clause and I would have got the data. I am not getting any idea how to do this in ADF. I have the second table as view object but how to access the view object from backing bean and get data based on the input given.

    Hi,
    step 1) Expose a method on the ViewObject Impl class
    step 2) define arguments for the method as needed to identify the row to read data from
    step 3) retrieve the row from the VO that holds the data you want to add and return a HashMap with this information
    step 4) expose the method on the client interface (Java menu selection on the View Object)
    step 5) In the PageDef file, create a method binding to the method you exposed on the ViewObjectImpl
    step 6) Call the method binding from the managed bean like
    OperationBinding getDataFromVO = (OperationBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("Name of method binding);
    getDataFromVO.getParamsMap().put("name of arguments1", value1);
    getDataFromVO.getParamsMap().put("name of arguments2", value2);
    Object retData = getDataFromVO.execute();
    if(retData != null && getDataFromVO.getErrors().size()==0){
      HashMap retDataMap = (HashMap) retData;
    ... follow the rest of your logic ....
    Frank

  • Get data from view and displaying the table data into Excel  pivot table

    Hi All,
    I have a small reqirement inthat When i get the data from the View that would displayed as Excel Pivot table.
    For displaying gerneral data to Excel I have followed Binarcy cachey
    Please suggest me in this.
    Thanks,
    Lohi.
    Message was edited by:
            Lohitha M

    Try this:
    http://download-west.oracle.com/docs/html/B25947_01/bcservices005.htm#sthref681
    Specifically code sample 8-10 for accessing the AM object.
    Then use the findView method to get a pointer to the VO.

  • 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

  • How to fetch user specific data from View?

    Hi
    I have a requirement in which I need to display table data specific to Session_user only. Scenario is if user belongs to a specific region he should be able to see data related to that specific region only.
    I am thinking of passing session_user name in view query but do not know whether it's possible or not.If possible how to do this.
    What is the best way to achieve it?
    Thanks
    Vibzz

    Hello
    Vibzz,
    First thing is that you need to implement security in your application, if you configured security then, Take a session scope bean in your un bounded task flow
    inside that session bean , you can get the information from security context, then write a static block inside your session bean and modify the fallowing code according to your requirement
    ADFContext adfc=ADFContext.getCurrent();// get the context instance
    SecurityContext securityContext=adfc.getSecurityContext();// instantiate the SecurityContext
    String username=securityContext.getUserName(); // returns the username from the security Context who are currently logged in
    Once you written this code just assign this username to session scope variable
    Map sessionScope =
    (Map)ADFContext.getCurrent().getSessionScope().put("UserName", username);
    So that the username with the key UserName will be available throughout your session
    and Apply in where clause according to the user logged in, or else you may directly use
    adf.context.securityContext.userName at the bind variable what ever you used inside your view criteria.

  • Selecting all data from employee where foreign key = null and show it in view

    Hi guys i have view like following :
    SELECT dbo.Nationality.NationalityName, dbo.Employee.DriverName, dbo.Employee.DriverID, dbo.Employee.NationalityID, dbo.Employee.ResidentNo,
    dbo.Country.CountryName, dbo.Employee.CountryID, dbo.Branch.BranchName, dbo.Employee.BranchID, dbo.Employee.JoinDate,
    dbo.Employee.ResignDate, dbo.Employee.HealthCarNo, dbo.Employee.JobID, dbo.Jobs.JobName, dbo.Department.DepartmentName,
    dbo.Jobs.DepartmentID, dbo.Employee.PlaceIssue, dbo.Employee.Deduction, dbo.Employee.ExpireDateMedical, dbo.Employee.PolicyNumber,
    dbo.Employee.Owner, dbo.Employee.Version, dbo.Employee.ExpireDateResident, dbo.Employee.Salary, dbo.Employee.SexID, dbo.Sex.SexType,
    dbo.Sex.FlagSex, dbo.Employee.MiritialID, dbo.Miritial.MiritualStatus, dbo.Status.StatusType, dbo.Employee.StatusID, dbo.Employee.UnactiveReason,
    dbo.Employee.BirthDate, dbo.Employee.DateToday, dbo.Employee.UserID, dbo.Employee.PassportNo, dbo.Employee.Period,
    dbo.Employee.AccountNo, dbo.Employee.Bonus, dbo.Employee.AccountType, dbo.Employee.PlaceOfBirth, dbo.Employee.EmplyeeName,
    dbo.Employee.ExpireDateresidentHijri, dbo.Employee.PassportDateStart, dbo.Employee.PassportDateExpire, dbo.Religon.ReligonName,
    dbo.Employee.ReligonID
    FROM dbo.Nationality INNER JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID INNER JOIN
    dbo.Country ON dbo.Employee.CountryID = dbo.Country.CountryID INNER JOIN
    dbo.Branch ON dbo.Employee.BranchID = dbo.Branch.BranchID INNER JOIN
    dbo.Jobs ON dbo.Employee.JobID = dbo.Jobs.JobID INNER JOIN
    dbo.Department ON dbo.Jobs.DepartmentID = dbo.Department.DepartmentID INNER JOIN
    dbo.Sex ON dbo.Employee.SexID = dbo.Sex.SexID INNER JOIN
    dbo.Miritial ON dbo.Employee.MiritialID = dbo.Miritial.MiritialID INNER JOIN
    dbo.Status ON dbo.Employee.StatusID = dbo.Status.StatusID INNER JOIN
    dbo.Religon ON dbo.Employee.ReligonID = dbo.Religon.ReligonID
    suppose i need to show all data from Employee table (NationalityName,BranchName,JobName) where
    NationalityID =NULL OR BranchID=NULL OR JobID=NULL
    WHAT I DO
    Notes : I mean in topic(selecting all data from view not table
    meaning i need to show all data in employee table by view
    in case of forign key(any forign key)equal null

    I think you need to change 
    FROM dbo.Nationality INNER JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID
    to
    FROM dbo.Nationality
    LEFT JOIN
    dbo.Employee ON dbo.Nationality.NationalityID = dbo.Employee.NationalityID
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Get the data from the structure OR View

    Hi All,
    how wud i take data from the structure OR View? when i m writing the select query then its saying that its not defind in data dictionary.
    I hav the requirement to develop a report for PM module..
    in that i hav all structure like AFVGD,CAUFVD,PMCOEA...
    Plz tel me how to write a select quary for this...

    Hi,
    You cannot select data from a structure.
    A structure / work area contains data only at the run-time.
    You can select data from views and tables.
    The data you need to select will be in Database tables. All you need to do
    is to find those table and select from there.
    Let me know if you need further help.
    Regards,
    Rajat

  • Error in Information Steward when viewing data on Views (Data Insight)

    Hello
    In SAP Information Steward -> Data Insight ->
    Project -> Views -> for example
    selecting "Customer Master Company Code KNB1" -> view data
    brings this error message:
    Data Services execution failed for CUSTOMER MASTER COMPANY CODE KNB1.
    Error :
    (14.2) 05-14-14 13:37:08 (R) (1536:4256) R3C-150605: |Data flow
    vviewdf_434_f39d42a2_e2ba_4ee3_add3_b4fa4ae25dad|Embedded Dataflow
    EDF_VIEW434|Reader EID_2_EABAPDF_VIEW434_0|Transform
    EID_2_EABAPDF_VIEW434_0__Driver The SAP job was canceled for host < >,
    job name <ZISCUSTOMERMASTERCOMPANYC 05/14/14 13:36:40>, job count
    <13364100>, job log from SAP < 14.05.2014 13:36:42 Job started
    14.05.2014 13:36:42 Step 001 started (program ZW09148001, variant
    &0000000000000, user ID REBERLE) 14.05.2014 13:36:44 Internal session
    terminated with a runtime error RAISE_EXCEPTION (see ST22) 14.05.2014
    13:36:44 Job cancelled >.(14.2) 05-14-14 13:37:08 (E) (1536:4256) R3C-
    150605: |Data flow
    vviewdf_434_f39d42a2_e2ba_4ee3_add3_b4fa4ae25dad|Embedded Dataflow
    EDF_VIEW434|Reader EID_2_EABAPDF_VIEW434_0|Transform
    EID_2_EABAPDF_VIEW434_0__Driver The SAP job was canceled for host
    <*****>, job name <ZISCUSTOMERMASTERCOMPANYC 05/14/14 13:36:40>, job
    count <13364100>, job log from SAP <*****>. This message contains some
    internal system details which have been hidden for security. If you
    need
    to see the full contents of the original message, ask your
    administrator
    to assign additional privileges to your account. (COR-10690)
    OR
    Data Services execution failed for GENERAL MATERIAL DATA MARA. Error :
    (14.2) 05-14-14 17:48:18 (E) (1256:6164) RES-020106: |SESSION JOB_VView_427_cc24f0fc_5063_4c78_8069_9284f1b90848|DATAFLOW EABAPDF_VIEW427_0|STATEMENT <GUID::'c653fd4c-0efa-473f-b280-f4430440939e::40f26e19-6a6d-4def-838c-c27f60f8fd49::3f2886f5-6c62-42af-8a97-cf3be217727a' READ TABLE ICCDS_92."".MARA OUTPUT(IS_VIEW_RDR_222_0)> Table <MARA> for owner <> was not found in the repository for datastore <ICCDS_92>. Import this table from the external source. If the name is case-sensitive in the database (and not all uppercase), enter the name as it appears in the database and use double-quotation marks around the name to preserve the case. (COR-10690)
    Im not sure if the rfc connection to the SAP ERP is functional because this error appears:
    Error Details ERROR: program SAPDS not registered
    Error Details LOCATION: SAP-Gateway on host xxxxxxx /
    sapgw00
    Error Details DETAIL: TP SAPDS not registered
    Error Details COMPONENT: SAP-Gateway
    Viewing data from tables is working but viewing data from views gives errors above.
    Any ideas ?
    Best regards,
    Robert Eberle

    Hi
    well that makes sense, I did't see the transport files you mentioned in the Transport Queue in the
    ERP system.
    But, in KB 1971036 it is explained that the newer transport files should be imported from
    OSS Note 1916294 after deleting the functions /BODS/BODS. (see attachment)
    Do you think I should import first the transport files from the Admin
    directory, then reimport those from note 1916294 or not ?
    Regards,
    Robert

  • Inserting the column values into table from view through procedure!!!

    below is my example code
    Create or replace procedure test_proc
    is
    cursor test_cur is
    select a.col1 , b.col2, c.col3, d.col4, e.col5
    from tableA a, tableB b, tableC c, tableD d, tableE e;
    test_cur_rec test_cur%rowtype;
    Begin
    insert into test_stg ( col1, col2, col3, col4, col5, col6, col7)
    Values ( test_cur_rec. col1,
    test_cur_rec .col2,
    test_cur_rec .col3,
    test_cur_rec .col4,
    test_cur_rec .col5
    -- col6, col7 );
    create view test2 (
    select f.col6, g.col7 from tableF f,tableG g);
    I m trying to insert values into the table test_stg but for col6 and col7 i need to get the data from the view test2.
    In simple word, all i need to do is get the 2 columns data from view and insert into a table through procedure. The above code is the example which looks very much like my actual code.
    How do i accomplish this task ??

    well there is joining condition for a, b,c ,d, e tables, i have not mentioned here. The where condition has nothing to do with the other two columns of the view.
    There is no relation ship between the these tables the view. The col 6 and 7 i m inserting from view is sysdate timestamp and the job_id number.
    so its pretty straight forward insertion into the table from view columns. These two columns has just one row with id number and timestamp. so i need to insert these data into the the table when i run a procedure.
    Thank you so much!!!

Maybe you are looking for

  • Upgrade help for a newbie..please (PSE 3.0 to 7.0)

    I have just bought a new computer & am in the process of transferring everything over.  I am now using Vista. I have been using PSE 3.0 on my old computer, & would like to now upgrade to the newest edition of PSE.  I only used PSE for editing & not p

  • How do you make a contact photo bigger?

    When I select a person in my contact list, it shows a little picture, name, phone number, etc. The pictures are too small for me to see. How do I make the pictures bigger? I tried tapping on the picture, doing the two-finger motion to zoom in, etc.

  • Calling javascript function from report customization form

    I have been unable to call any user-defined javascript function from Portal Report Customization forms. Even a simple Message Box function doesn't work. I've been placing my code in the ..after header PL/SQL section for the report customization form.

  • SAP-CRM 5.0

    Hi All   Could you please tell me when sap-crm 5.0 likely to be launched offically?what will be the difference between crm4.0 and crm 5.0? Regards Gareth

  • Show random all images in a repeat region

    Hello, I have a repeat region that shows images from a db in ascending order. Is it possible to show the images random on another place? Example: you have image "A" - "B" - "C" after a refresh page you have "C"-"A"-"B" or "B" - "C" - "A" Is this poss