How to call database view in report

Hi i have a small problem in report
the problem is like this i had created a database view in which i got all the values displayed but can any one of you tell me how to declare this database view in report with example
i had created a database view named as znew1
and the fields are
             LIFNR  LIKE EKKO-LIFNR,
             EBELN  LIKE EKKO-EBELN,
             LIFNR1 LIKE LFA1-LIFNR,
             NAME1  LIKE LFA1-NAME1,
             EKBE   LIKE EKBE-EBELN,
             VGABE  LIKE EKBE-VGABE,
             MATNR  LIKE EKPO-MATNR,
             WERKS  LIKE EKPO-WERKS,
             NETWR  LIKE EKPO-NETWR,
             MENGE  LIKE EKPO-MENGE,
             MWSKZ  LIKE EKPO-MWSKZ,
             TXZ01  LIKE EKPO-TXZ01,
             KOSTL  LIKE EKKN-KOSTL,
        PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
             EBELN1 LIKE EKKN-EBELN,

Hi Mr. Rich
This is the program code and i want this output int he alv grid format
TABLES:EKKO,EKBE,EKPO.
DATA:BEGIN OF RTAB_ALV OCCURS 30,
             LIFNR  LIKE EKKO-LIFNR,
             EBELN  LIKE EKKO-EBELN,
             LIFNR1 LIKE LFA1-LIFNR,
             NAME1  LIKE LFA1-NAME1,
             EKBE   LIKE EKBE-EBELN,
             VGABE  LIKE EKBE-VGABE,
             MATNR  LIKE EKPO-MATNR,
             WERKS  LIKE EKPO-WERKS,
             NETWR  LIKE EKPO-NETWR,
             MENGE  LIKE EKPO-MENGE,
             MWSKZ  LIKE EKPO-MWSKZ,
             TXZ01  LIKE EKPO-TXZ01,
             KOSTL  LIKE EKKN-KOSTL,
        PS_PSP_PNR  LIKE EKKN-PS_PSP_PNR,
             EBELN1 LIKE EKKN-EBELN,
     END OF RTAB_ALV.
DATA:IZNEW1 TYPE TABLE OF ZNEW1 WITH HEADER LINE.
select * into table IZNEW1 FROM ZNEW1 UP TO 10000 ROWS.

Similar Messages

  • How to call a form from report? in 6i

    How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to Call Image Viewer from Form application

    Hi,
    how to call Image viewer using host command on oracle form 6i.
    i trying using host command on local/client application .. and it is working ...
    but when i try on server application (EBS - UNIX) it does not working ...
    thanks ..
    regards,
    safar

    Are you using Forms 6i in client/server mode or web deployed? I'm not sure what you mean by 'try on server application"
    Remember that when using a web deployed architecture, a host command will execute the command on the Forms application server, NOT on the client.
    To execute host commands on the client you would have to use WebUtil, but that's not available for Forms 6i. Perhaps there are PJC's out there that can do it for you, but I don't want to get in all those details without me knowing if it is relevant for you.

  • How to use Database views in XI

    Hi Folks,
    Any idea about how to use Database views for sending and receiving messages in XI ?
    Regards,

    Farooq,
    My doubt is do i have work in the same fashion as if i am working on a Database Table...?
    For Ex :
    Creating Source and Target Data structure for JDBC adapter in the same format....etc
    Regards.

  • How to call another view controller's method from a view controller?

    Hi,
    Iam new to webdynpro . so pls clarify my doubt.
    How to call another view controller's method from a view controller in the same Web Dynpro Component?
    Thanks,
    Krishna

    Hi,
         The methods in a view are only accessible inside same view. you cannot call it outside the view or
         in any other view although its in same component.
         If you want to have a method in both views, then create the method in component controller and
         from there you can access the method any where in whole component.

  • How to call a view from Interface view

    Folks,
    How to call a view from interface view (onPlugDefault method) . I was trying to set context of controller but it is not working . What is the work around.
    Manish

    Hi Manish,
    An interface view is created for each window that you have, which in-turn has views embedded, one of which is default. If you want to pass data which you have in your interface view, do the following
    - Add your component controller in your interface view properties
    - In the onPlugDefault method(I assume this is where you have the data available through URL parameters),set the component controller context variables like
    wdThis.wdGetComContr.wdGetContext().currentContextElement().setName("John");
    -Access these context variables in your view as well by adding the component controller as the required controller
    Your default view will appear automatically when you call the application.
    Regards,
    LM

  • How to call the Database views in  Reports?

    Hai experts,
                        i created one Database view in data dictionary for that how to call the that in my program?
                        are we write the select quries on views.
                         plz help me.
    thanks in adv.

    thanks for ur reply.
    how to maintain data in maintance  view . is it possible write the select query on that . I know it most be relate with forgien key.
    plz help.
    thanks in adv.

  • How to Call Crystal Viewer in a Web Appl such as VS 2005

    Post Author: RHerbert
    CA Forum: .NET
    I am new to web development and I was wondering if anyone knows of a document somewhere that explains the steps o how to incorporate Crystal Viewer inside to app to call crystal reports.  I found on on doing this for a standalone application, but don't know if any exist for web.
    I would appreciate if anyone could let me know or maybe provide some advice.
    Thanks
    Herb

    Post Author: Argan
    CA Forum: .NET
    http://support.businessobjects.com/communityCS/FilesAndUpdates/vbnet_web_samples.exe.asp

  • How to change database in crystal report design

    Hi experts
                         I have created a report in crystal addon using demo database, now I want to change the database to see the actual testing of report. I tried by Set Location option in Database expert I log off the current server then Log on It ask the database name I put new database name . But when I Run the report it show the previous database records.

    >
    Julie Jamieson wrote:
    > Try using a dot (.) as the server if you want to be able to run the report from inside SAP from a different database
    What do you mean by this?
    I have not yet installed the Crystal Addon for SAP (Using R1 Reports now) I would hope that Addon allows you to use a different database with Crystal, my current solution does and that is how I build most of my reports with views and sp's.
    I hope this is not to far off topic.
    Thanks
    Ken W.

  • How to call Discoverer viewer from froms

    Hi ,
    How to call the Discoverer (viewer) Report from the forms 10g.
    regards
    Mani

    In Forms, invoking a http request using e.g. :
    DECLARE
    urlstr VARCHAR2(1024);
    BEGIN
    urlstr := ...
    WEB.SHOW_DOCUMENT(urlstr,'_blank');
    END;
    How to build the urlstr :
    http://download.oracle.com/docs/cd/B14099_19/bi.1012/b13918/urlstart.htm#sthref826

  • How to call a view from another

    Hello Experts,
            I have embedded a view (let us call this view 'A') in standard homepage. This works fine. Now on click of a button on this embedded view I want to launch another view that is also created by me, in the same component in which I had created view A. But I do not know how to launch this second view
         Could you please tell me how to call/launch a view from another on click of a button?
    Regards,
    Prafful

    Hello Prafful,
    I guess by launching you mean substituting one view by another. It can be achieved by declaring a navigational link in the runtime repository from one view to another. You have to create an event handler on the button and outbound plug in your view using the wizard. Then, on the event handler you call an outbound plug where you trigger a navigation using this navigational link and the view A will be replaced by view B.
    A code which needs to be done in outbound plug:
    me->view_manager->navigate(
    source_rep_view = me->rep_view
    outbound_plug   = 'NAVLINKNAME'
    data_collection = iv_data_collection ).
    Best Regards,
    Yevgen

  • How to call LSMW from a Report program

    Hi,
    I have a requirment of extending vendor master data (Companycode data and Purchasing Organization data ) through Tcode XK02 using LSMW.Also I need to generate an error log file for validating the data from flat file and  must have an export option of the error log file.
    Can you help me how to proceed on this in steps.
    Also pls let me know how to call LSMW transaction through a Report.
    Based on the selection criteria I need to maintain two source structues,one for companycode data and the other for Purchasing Orgnization data for uploading  data thru LSMW.How to do this?
    pls respond ASAP,
    Thanks,
    Nagendra

    Hi,
    create 2 LSMW object (under same project and subproject)..
    one for extended vendor master data for company code data and other for  extended purchase organization data for company code data.
    Now check the radio buttons and based on that populate ur LSMW object.
    Store project
      project = < >.
    Store subproject
      subproj = < >.
    Store object
      object  = '6GSC022_TS3'.
    if r_ccode = 'X'.
    Store object
      object  = < >.
    else.
    Store object
      object  = < >.
    endif.
    Call the function module to display object (LSMW) maintenance screen
      CALL FUNCTION '/SAPDMC/LSM_OBJ_STARTER'
        EXPORTING
          project        = project
          subproj        = subproj
          object         = object
        EXCEPTIONS
          no_such_object = 1
          OTHERS         = 2.
    Generating error log:
    After the checking the field if u think for this u need to generate error message then In the Maintain Field Mapping and Conversion Rules option under the required field write the following code:
    data: v_msgtxt(100) type c.
    message  <msg ID>    <message type>   <message no>
                     with   <var1>  <var2>
                     into v_msgtxt.
    write v_msgtxt.
    Follow the next step in LSMW object till you reach the option  Convert Data.
    After you execute this option you will get the desired message here.
    Regards,
    Joy.

  • How to call specific view of used component

    Hi All,
    I have the following problem:
    I have component 1 which have two views: 1A and 1B. They are included in one window. Default view is 1A.
      Navigation between view 1A and 1B it made with buttons and plugs ("go to 1A", "go to 1B").
    I have main component 2 which uses component 1 (used component). Component 2 has view 2A and 2B. I have button "Z" in view 2A which calls method of component 1 and navigates to view 2B (where used component 1 is embedded).
    First time I press button I navigate to view 1A, its correct. Then I navigate to view 1B (within used component 1).
    when I go back (in main component 2) and press button "Z" again, the used component 1 is open with view 1B, not 1A (which is default). That is, used component 1 remember which view the navigation stayed on.
    I nee to always see view 1A first when I navigate with button "Z" (open used component).
    How I can do that?

    hi ,
    u must be using component usage ..
    in ur component2 , place the view 1B of ur used component in separate window
    pls refer this thread as well :
    How to call a Particular View from a View of Current Component
    regards,
    amit

  • How to call a view without event handler onaction method.

    Hi Experts,
    I have develop a WD application. It has three views let view1, view2 and view3.
    In view1 one button is there (onaction) which navigates to view2 through outbound plug  wd_This->Fire_Out_Screen1_Plg(   ). where Out_Screen1 is outbound plug of view1.
    Now view2 appears , I want that after 10 seconds view2 automatically call view3, without action on view2.
    I have written like  wd_This->Fire_OUT_SCREEN2_Plg(  ). where OUT_SCREEN2 is outbound plug of view2, which navigates to inbound plug of view3.
    But its not working. Please suggest how to and where to write code to call a view without action .
    for ur ref.

    Hi Bhagat,
    Yes, you can attach media objects into a view
    Using IFRAME ui element and html mime object.
         Please refer the below link
    To insert video in webdynpro - Web Dynpro ABAP - SCN Wiki
    Using Flash Islands
              Here, you need to have your audio/video file as flash object
         Please refer the below tutorial on flash islands( a generic example )
         Adobe Flash Islands for Webdynpro ABAP
    Hope this helps you.
    Regards,
    Rama

  • How to call Reportwriter in another report

    Hi All,
            Can we call report writer in another custom program
    using submit statement.
    How can i achive this?
    We can call using Call transaction, but i require the output in my called report for comparison of data.
    How to call the report writer and get the output generated by this into my report.

    Hi,
    Using se93 i got name got the name of the report for a given report writer.
    I used report name of report writer in submit statement.
    I am getting short dump as report name does not exists.
    Is there any function module that calls transaction and returns the result.

Maybe you are looking for

  • Photoshop Elements Organizer 9 will not read in Canon 70D raw files. All updates have been made.

    Photoshop Elements Organizer 9 will not read in Canon 70D raw files. All updates have been made.

  • Using a powerbook g4 laptop

    I have an Airport Express that does not show up in the newer Airport Utility and have stopped using it.  I have a friend with a Powerbook G4 17" Laptop. They want to get wifi in their den to stream Netflix.  Will the Powerbook pick up this older Airp

  • Timestamp error in j2se5.0

    I am working on opensource project and i am buiding it from source. it will work on jdk1.5 and orackle 10g, when i am buindling, i am getting error of timestamp as: "reference to Timestamp is ambiguous, both class java.sql.Timestamp in java.sql a nd

  • Web Service will not start

    I tried installing ColdFusion 9 and linking apache to the install. Because the Apache binary was 64bit I had to convert it to 32bit to for the ColdFusion install to work. I backed up the 64bit version and made the new 32bit version my httpd file. Aft

  • Activity through BAPI_ACTIVITYCRM_CREATEMULTI or CRM_ORDER_MAINTAIN

    Hi All,           I have to create activity from Legacy file, so which one would be convenient as FM CRM_ORDER_MAINTAIN is a generic FM and it can create Opprtunity,Activity etc.and there is a BAPI FM ( which creates Activity )BAPI_ACTIVITYCRM_CREATE