Creating a report for the following Query --Kindly help.

Here when we use select options
1) you have to use 4 different "Select Option" Statement to select this Below.
1) Sales Organisation  -- VBAK -VKORG
2) Distribution Channel -- VBAK - VTWEG
3) Division -- VBAK -- SPART
4) Created Date -- VBAK -- ERDAT.
The following fields have to be displayed.
1) Order no. -- VBAK - VBELN.
2) Created date -- VBAK - ERDAT
3) Sold To Party -- VBAK - KUNNR
4) Shiped to party -- VBPA -- KUNNR.
5) Item no -- VBAP -- POSNR
6) Material no. -- VBAP -- MATNR
7) Material Discription -- VBAP - ARKTX.
By using the select options of Sales organisation, Distribution channnel and so on I am not able to get the out put of the order no , created date , sold to party , shipped to party (Which is in a different tableVBPA) and Item no Material No and material Discription which are in table VBAP.Here I am getting a run time error.
Kindly help and inform how to code this .
Also When we click the Order no in the list we have to get the screen VA03.
Regard

Hi John,
Use the following Select statement for Query  :-
Code A )
SELECT vbak~vkorg
       vbak~vtweg
       vbak~spart
       vbak~erdat
       vbak~vbeln
       vbak~erdat
       vbak~kunnr
       vbpa~kunnr
       vbap~posnr
       vbap~matnr
       vbap~arktx
       into corresponding fields of table ITAB
       FROM ( vbak INNER JOIN vbap
ON vbakvbeln = vbapvbeln
INNER JOIN vbpa
ON vbakvbeln = vbpavbeln
WHERE vbak~vkorg IN s_vkorg
AND vbak~vtweg IN s_vtweg
and vbak~spart in s_spart
AND vbak~erdat in s_erdat.
And Use this part of the code to show the selected Sales order  :-
code B)
FORM user_command USING r_ucomm LIKE sy-ucomm
rs_selfield TYPE slis_selfield.
CASE r_ucomm.
WHEN '&IC1'.
CASE rs_selfield-sel_tab_field.
WHEN 'ITAB-VBELN'.
CHECK NOT rs_selfield-value IS INITIAL.
SET PARAMETER ID 'AUN' FIELD rs_selfield-value.
CALL TRANSACTION 'VA02' AND SKIP FIRST SCREEN.
ENDCASE.
ENDCASE.
ENDFORM.
Award points if useful !
Regards
Hrishi

Similar Messages

  • Creating a Report for the following Query u0096 Kindly help

    Hi,
    Using selection options we have to give the name of
    1) Sales Organization  -- VBAK -VKORG
    2) Distribution Channel -- VBAK - VTWEG
    3) Division -- VBAK -- SPART
    4) Created Date -- VBAK -- ERDAT.
    Once we select this the following list should be displayed.
    1) Order no. -- VBAK - VBELN.
    2) Created date -- VBAK - ERDAT
    3) Sold To Party -- VBAK - KUNNR
    4) Shipped to party -- VBPA -- KUNNR.
    5) Item no -- VBAP -- POSNR
    6) Material no. -- VBAP -- MATNR
    7) Material Discription -- VBAP - ARKTX.
    The out put should be like this
    Sales Org  : **********
    Dist chan  : **************
    Division    : *********
    Created Date : ********
    Orderno  credate soltopar shiptopar itemno materiano materdes
    and so.
    Also When we click on the order no we should ge the transaction VA03.
    With Select options i was able to get the sales organization distribution channel and division and the when we give the values it is showing Run time errors.
    Kindly help me to proceed further.
    Even if I am able to generate the order list it will be fine. Going on to VA03 I will manage some how  If possible give the syntax for this also).
    Regard,
    Surjith

    Hi,
    Check the below code :
    REPORT  yvic_test_sales.
    TABLES vbak.
    TYPES:
      BEGIN OF ty_sales_data,
        vbeln  TYPE vbeln_va,
        erdat  TYPE erdat,
        kunnr   TYPE kunag,
        oid_ship TYPE kunwe,
        posnr    TYPE posnr_va,
        matnr    TYPE matnr,
      END   OF ty_sales_data.
    DATA : gt_data TYPE STANDARD TABLE OF ty_sales_data.
          CLASS gcl_handle_events DEFINITION
    CLASS gcl_handle_events DEFINITION.
      PUBLIC SECTION.
        METHODS:
              on_link_click FOR EVENT link_click OF cl_salv_events_table
                IMPORTING row column.
    ENDCLASS.                    "gcl_handle_events DEFINITION
    SELECTION-SCREEN BEGIN OF BLOCK b1.
    SELECT-OPTIONS:
    s_vkorg  FOR vbak-vkorg,
    s_vtweg  FOR vbak-vtweg,
    s_spart  FOR vbak-spart,
    s_erdat  FOR vbak-erdat.
    SELECTION-SCREEN END OF BLOCK b1.
    START-OF-SELECTION.
      SELECT  d1~vbeln
              d1~erdat
              d1~kunnr
              d2~oid_ship
              d2~posnr
              d2~matnr
              INTO TABLE gt_data
             FROM vbak AS d1
              JOIN vbap AS d2
        ON d1vbeln = d2vbeln
            WHERE d1~vkorg IN s_vkorg[]
            AND   d1~vtweg IN s_vtweg[]
            AND   d1~spart IN s_spart[]
            AND   d1~erdat IN s_erdat[].
          CLASS gcl_handle_events IMPLEMENTATION
    Subroutine call_transaction will get called
    when user clicks on BELNR (Acounting document) or EBELN(PO)
    CLASS gcl_handle_events IMPLEMENTATION.
      METHOD on_link_click.
        PERFORM call_transaction USING row column.
      ENDMETHOD.                    "on_link_click
    ENDCLASS.                    "gcl_handle_events IMPLEMENTATION
    END-OF-SELECTION.
      PERFORM display_data.
    *&      Form  DISPLAY_DATA
          text
    -->  p1        text
    <--  p2        text
    FORM display_data .
      DATA:
          lo_table         TYPE REF TO cl_salv_table,"table object
          lo_function      TYPE REF TO cl_salv_functions,
          lo_layout        TYPE REF TO cl_salv_layout,
          lo_columns       TYPE REF TO cl_salv_columns_table,
          lo_hotspot       TYPE REF TO cl_salv_column_table,
          lo_events_name   TYPE REF TO cl_salv_events_table,
        lo_click         TYPE REF TO gcl_handle_events,
          ls_key           TYPE salv_s_layout_key,
          lo_sorts         TYPE REF TO cl_salv_sorts,
          lo_aggregation   TYPE REF TO cl_salv_aggregations,
          lo_exception     TYPE REF TO cx_root,"exception object
          l_text           TYPE string." to hold exception message
    create a table object to display result table
      TRY.
          cl_salv_table=>factory( IMPORTING r_salv_table = lo_table
                                 CHANGING  t_table      = gt_data ).
    catch exception
        CATCH cx_salv_msg INTO lo_exception.
    get exception text and display it in message
          l_text = lo_exception->get_text( ).
    Message: & & & &
          MESSAGE i000(zzz) WITH l_text.
      ENDTRY.
    get column object of the table created
      lo_columns = lo_table->get_columns( ).
    FOR HOTSPOT on Doc no
      TRY.
          lo_hotspot  ?= lo_columns->get_column( 'VBELN' ).
          lo_hotspot->set_cell_type( if_salv_c_cell_type=>hotspot ).
        CATCH cx_salv_not_found INTO lo_exception.
    get exception text and display it in message
          l_text = lo_exception->get_text( ).
    Message: & & & &
          MESSAGE i000(zzz) WITH l_text.
      ENDTRY.
      lo_events_name = lo_table->get_event( ).
      CREATE OBJECT lo_click.
      SET HANDLER lo_click->on_link_click FOR lo_events_name.
      lo_table->display( ).
    ENDFORM.                    " DISPLAY_DATA
    *&      Form  CALL_TRANSACTION
          text
         -->P_ROW  text
         -->P_COLUMN  text
    FORM call_transaction  USING    pa_row
                                    pa_column.
      DATA ls_final_data TYPE ty_sales_data.
      IF pa_column = 'VBELN'.
        CLEAR ls_final_data.
        READ TABLE gt_data INTO ls_final_data INDEX pa_row.
        IF NOT ls_final_data-vbeln IS INITIAL.
          SET PARAMETER ID 'AUN' FIELD ls_final_data-vbeln.
          CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
        ENDIF.
      ENDIF.
    ENDFORM.                    " CALL_TRANSACTION
    Reward if helpful..
    Thanks

  • DRM-61026: Unable to create user session for the following reason: Login failed. Invalid user name or password.

    All Im very new to Oracle DRM and Im trying to get the app setup on Windows server running SQL Server 2008.  When I try to login to the Web Client I keep getting this error.
    DRM-61026: Unable to create user session for the following reason: Login failed. Invalid user name or password.
    Can you please help

    This might be due to The 'Oracle Instance' path may not have been set to a path relative to the 'CSS Bridge Host' (i.e. the Foundation Services machine) on the Configuration > Host Machines > CSS > General tab of the DRM Configuration Utility.
    if this is the case then
    1. Open the DRM Configuration Console.
    2. Go to the Configuration > Host Machines > CSS > General tab of the DRM Configuration Utility.
    3. Ensure that the path in 'Oracle Instance' has been set relative to the 'CSS Bridge Host' (i.e. the Foundation Services machine defined in 'CSS Bridge Host').
    4. If corrections are made to 'Oracle Instance' then restart the DRM services to pick up the change.
    Thanks,
    ~KKT~

  • How to  creat an xsl for the following code ?

    Hi all !
    Could any one help me to creat an xsl (in the form of table) for the following xml data ?
    <?xml version="1.0" encoding="UTF-8"?>
    <scenarioReport>
    <node name="V2_DR">
    <netObjId >1 </netObjId>
    <result>undefined</result>
    <report>xyz</report>
    <action>no action</action>
    <netObjId > 2 </netObjId>
    <result>defined</result>
    <report> sdfherh</report>
    <action>action</action>
    </node>
    <node name="V3_DR">
    <netObjId >1 </netObjId>
    <result>undefined</result>
    <report>xyz</report>
    <action>no action</action>
    <netObjId > 2 </netObjId>
    <result>defined</result>
    <report>dfhdfj</report>
    <action>action</action>
    </node>
    </scenarioReport>
    could you please send me as soon as possible !!!!

    To do that you would have to know what output the XSL should produce, based on the input. You haven't said anything about that. All you have posted is a single XML file which could be either the input or the output of this mythical XSL. Do what Steve said and read the tutorial.

  • Genearate a Report for the following data

    Hi All
    The following is of my requirement
    <b>Selection Screen Should be as follows:</b>
    Plant (required) <b>QALS-WERK</b>
    Storage Location <b>MCHB-LGORT</b>
    Material Number  <b>QALS-MATNR</b>
    Batch Number    <b> MCHB-MATNR</b>
    MRP Controller   <b>MARC-DISPO</b>
    Inspection Lot Number <b>QALS-PRUEFLOS</b>
    Inspection Lot Creation Date <b>QALS-ENSTEHDAT</b>
    Inspection Lot Origin <b>QALS-HERKUNFT</b>
    PO Number <b>QALS-EBELN</b>
    Vendor # <b>EKKO-LIFNR</b>
    Goods Receipt Date <b>MKPR-BUDAT</b>
    Delivery Number <b>QALS-KTEXTLOS</b>
    Marked in House Date
    Sterile Load # <b>ZC012-STBAT</b>
    Supplying Plant <b>EKKO-RESWK</b>
    Profit Center <b>QALS-PRCTR</b>
    <b>Radio Buttons for Selection Screen:</b>
    •     Show all stock (not just Q stock)
    •     Show only past due stock (GR Date + GR processing time > today)
    •     Include Serial Numbers
    <b>Fields for report:</b>
    Plant                    <b>QALS-WERK</b>
    STO/PO                    <b>QALS-EBELN</b>
    Delivery/Production Order #     <b>QALS-KTEXTLOS</b>
    Sterile Load #               <b>ZC013-STTYP</b>
    Inspection Lot Number          <b>QALS-PRUEFLOS</b>
    Material               <b>QALS-MATNR</b>
    Old Material                <b>MARA-BISMT</b>
    Serial #s (all serial #s with material      <b>ITOB-SERNR</b>
    batch combination)                    
    Batch                    <b>QALS-CHARG</b>
    Sloc (all SLOCs with Q status items)     <b>MCHB-LGORT</b>                         
    Batch Exp Date               <b>DFBATCH-MHD_IO</b>
    Quantity (in each SLOC)          <b>MCHB-CINSM</b>                    
    Profit Center               <b>QALS-PRCTR</b>
    Date Marked In House          <b>ZTMODE-TDATE</b>
    GR Date                    <b>QALS-ENSTEHDAT</b>
    Expected GR Processing Time     <b>MARC-WEBAZ</b>
    Date Moved to NCMR          <b>MKPF-BLDAT</b>     
    Days in House               System date – ZTMODE-TDATE
    Days in QI          System date - <b>QALS-ENSTEHDAT</b>
    Days from QI         <b>QALS-ENSTEHDAT - MKPF-BLDAT</b>
    Days in NCMR          System date - <b>MKPF-BLDAT</b>
    MRP Controller               <b>MARC-DISPO</b>
    MRP Controller Name          <b>T024D-DSNAM</b>
    Standard Cost               <b>MBEW-STPRS</b>      
    Extended Standard Cost     <b>MCHB-CINSM * MBEW-STPRS</b>
    How we can develop a report for the above, because they havn't given any conditional checking. Supress if any Ztables used.
    i would appreciate if you can send an earliest reply and reward points for the same.
    if any queries just reply me i can clarify.
    Regards
    Prabhu

    Hi Prabhakar,
    Well you can opt for ALV display...
    You want to generate report based on plant data..
    Once the user enters the plant, you can extract the remaining info from table MARA, QALS, EKKO.
    The radio buttons will decide your selection critera.
    I dont think any functional guy will give you everthing spoon feeded. You will have to explore those tables and the relevant fields.
    In case you are finding it to difficult to get the relations between the tables or finding list of tables,
    i shall send u docs which will help u solve the problem.
    Give me ur email id
    Regards,
    Tanveer.
    Mark helpful answers
    Message was edited by: Tanveer Shaikh

  • How to find the report for the SAP query (Query exists in table AQLQCAT)

    Hello Experts,
    I need to find the tables used in the SAP Query but i don't have access to transaction SQ01,SQ02 and SQ03 to check the same.
    Therefore i checked table AQLQCAT and got the SAP Queries in the system. Then searched for the reports that would have been generated for the same passing  AQusergroupquery name*  in transaction SE38.
    But unfortunately the program does not exists for the given paramenter.
    Could you please let me know how to get the report name for the SAP Query.
    Secondly please suggest any other way of checking the tables used in the SAP Query.
    Also the table name from where i can download the SAP Queries.
    Thanks in advance.
    Regards,
    Rahul Sinha

    I suggest you a simple method.
    Execute the query. When the selection screen is showed,  go to menu and click to SYSTEM->STATUS.
    Check the program name and double click it to access the program code.
    Search for tables or functions into the source code in order to understand where data are taken.
    If you do not find anything , go to the program atttribute and check for logic database, sometimes they are used....
    Best regards.

  • Can anyone please  suggest for the following query relating to OEDQ ?

    I have to process 10M  records through batch matching by Oracle EDQ.  There will be 10 file(.csv)  each size 1M. They will be placed landing area of EDQ one by one separately. Given, All 10 file should have same number of columns & same order of columns. I have to process them one by one sequentially through only single batch contact match job.
    Condition is : 
    Only one batch job will be executed 10 times to process them. At each iteration/operation, one file (.csv) will be taken as input in that job. As we know, only one source is present in  job. I have to create /run ShellScript which will be passing  one file to the single snapshot  via single datastore from the landing area of EDQ. Once the one input file  is passed and complete matching is done, Without changing anything, Is it possible to pass 2nd input file  to that snapshot via previously created datastore by that Shell-script.
    I mean, I want to pass one by one file  sequentially  via  single snapshot via single datastore to a batch job  using unix shellscript. 
    Is it feasible to consider in my project????
    Any suggestion will be highly appreciated. Thanks in advance.

    Hi Mike,
    Thanks for the quick response.
    Keeping in mind source will be changed sequentially/one after another but the target is constant & the same JOB will be executed each time.
    suppose, I have two file in the landing area of EDQ. These file are:  PersonData.csv  and goutam.csv
    PersonData.csv is used in current data store.
    File in the working area:    C:\Program Files\Datanomic\dnDirector\config\landingarea\PersonData.csv
    Snapshot is using  this datastore. I have right clicked on the snapshot. I have done setting externalize option enable.
    I am using the command:
    java -jar jmxtools.jar runopsjob -job "Testing for R3  source A" -project EDQ-CDS -runlabel Nov2014 -nowait -u dnadmin -p p4dqnvo2 localhost:9005
    This command is successfully executing batch job "Testing for R3  source A "   where source is PersonData.csv.
    Now, I  want to use the following command with externalize option to execute  the file goutam.csv as source  by the above job.
    I am using the below command:
    java -jar jmxtools.jar runopsjob -job "Testing for R3  source A" -project EDQ-CDS -runlabel Nov2014 -D externalized=goutam -nowait -u dnadmin -p p4dqnvo2 localhost:9005
    this command also executes the file PersonData.csv instead of goutam.csv file.  In the above command I have highlighted  externalize option with deep black color . please let me know how I write this externalize option in the command so that it should execute goutam.csv file.
    Meanwhile, I am googling to find solution.
    Regards,
    Goutam Samanta

  • Can someone help me in creating an Array for the following?

    Hi this is a flash banner done using AS3 but it is giving me bugs when published, can someone please look at the the following link http://webtemp2.idm.net.lb/alamflash/home.html 
    and below is the script, can i create an array?
    stop();
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    mc_animation.mc_scaffold.buttonMode = true;
    mc_animation.mc_prop.buttonMode = true;
    mc_animation.mc_ladder.buttonMode = true;
    mc_animation.mc_tower.buttonMode = true;
    mc_animation.mc_trade.buttonMode = true;
    ///////////////////// start ///////////////////////////////
    new Tween (mc_animation.mc_scaffold,"y", Elastic.easeInOut,-300,3,1.5,true);
    new Tween (mc_animation.mc_prop,"y", Elastic.easeInOut,-300,3,2,true);
    new Tween (mc_animation.mc_ladder,"y", Elastic.easeInOut,-300,3,2.5,true);
    new Tween (mc_animation.mc_tower,"y", Elastic.easeInOut,-300,3,3,true);
    new Tween (mc_animation.mc_trade,"y", Elastic.easeInOut,-300,3,3.5,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,-300,15,1,true);
    /////////////////////// scaffolding ////////////////////////////
    function scafoldinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_scaffold,"y", Elastic.easeInOut,-300,30,6,true);
    function closescafoldinfo(e:Event):void {
    new Tween (info_scaffold,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_scaffolding,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_scaffold.addEventListener(MouseEvent.CLICK,scafoldinfo);
    info_scaffold.btn_close.addEventListener(MouseEvent.CLICK,closescafoldinfo);
    ///////////////////////////////////////////////// propping///////////////////////////////////////////////////////////
    function proppinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_proping,"y", Elastic.easeInOut,-300,30,6,true);
    function closeproppinginfo(e:Event):void {
    new Tween (info_proping,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_propping,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_prop.addEventListener(MouseEvent.CLICK,proppinginfo);
    info_proping.btn_close.addEventListener(MouseEvent.CLICK,closeproppinginfo);
    //////////////////////////////////// Ladders //////////////////////////////////////////////////////
    function laddersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_ladders,"y", Elastic.easeInOut,-300,30,6,true);
    function closeladdersinfo(e:Event):void {
    new Tween (info_ladders,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_ladders,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_ladder.addEventListener(MouseEvent.CLICK,laddersinfo);
    info_ladders.btn_close.addEventListener(MouseEvent.CLICK,closeladdersinfo);
    //////////////////////////////////// towers //////////////////////////////////////////////////////
    function towersinfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_tower,"y", Elastic.easeInOut,-300,30,6,true);
    function closetowersinfo(e:Event):void {
    new Tween (info_tower,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_towers,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_tower.addEventListener(MouseEvent.CLICK,towersinfo);
    info_tower.btn_close.addEventListener(MouseEvent.CLICK,closetowersinfo);
    //////////////////////////////////// trading //////////////////////////////////////////////////////
    function tradinginfo(e:Event):void {
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,1000,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,1100,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,1200,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,1300,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,1400,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,-300,1.5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,-1100,0,5,true);
    new Tween (info_trading,"y", Elastic.easeInOut,-300,30,6,true);
    function closetradinginfo(e:Event):void {
    new Tween (info_trading,"y", Elastic.easeOut,30,300,5,true);
    new Tween (im_trading,"x", Elastic.easeInOut,0,-1100,2,true);
    new Tween (mc_animation.mc_scaffold,"x", Elastic.easeInOut,mc_animation.mc_scaffold.x,2.4,4,true);
    new Tween (mc_animation.mc_prop,"x", Elastic.easeInOut,mc_animation.mc_prop.x,197.3,3.5,true);
    new Tween (mc_animation.mc_ladder,"x", Elastic.easeInOut,mc_animation.mc_ladder.x,392.3,3,true);
    new Tween (mc_animation.mc_tower,"x", Elastic.easeInOut,mc_animation.mc_tower.x,587.5,2.5,true);
    new Tween (mc_animation.mc_trade,"x", Elastic.easeInOut,mc_animation.mc_trade.x,782.2,2,true);
    new Tween (mc_animation.mc_separators,"y", Elastic.easeInOut,mc_animation.mc_separators.y,30,2,true);
    mc_animation.mc_trade.addEventListener(MouseEvent.CLICK,tradinginfo);
    info_trading.btn_close.addEventListener(MouseEvent.CLICK,closetradinginfo);

    I am afraid this is undocumented usage of Tween class. According to the class documentation one needs to create instances of Tween. Since there are no explicit instances - I suspect that one Teen is overriding another or, perhaps, is not getting instantiated all together.
    So, the documented usage is:
    var tween:Tween = new Tween()
    Not just new Tween()
    Re: http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/fl/transitions/Tween.html
    I also would suggest you look into TweenLite or TweenMax classes - they are much more compact, easier to use and accommodate several properties tweening in one swoop.

  • I Need A Clasical Report For  The Following Specification Plz

    With out Using any ALVS .
                                                          SALESORDER REPORT
    TABLES : VBAK,
                       VBAP,
                        KNA1.
    INPUT FIELDS :  Sales Document  (RANGE)----
      (vbak-vbeln)
                                  Document Date (Date Received/Sent).(RANGE)----
    (vbak-audat)
                                  Sold-to party (PARAMETERS)----
    (kna1-kunnr)
    O/P FIELDS :
    Sales Document----
    (vbak-vbeln)
    Document Date (Date Received/Sent)----
    (vbak-audat)
    Sales Document Item----
    (vbap-posnr)
    Short text for sales order item----
    (vbap-arktx)
    Material Number----
    (vbap-matnr)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    CUSTMER NUMBER(Sold-to party) -
    (kna1-kunnr)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    ================================================================================
    VBAK :
                                                                                    (KNA1-KUNNR)
    Sales Document----
    (VBAK-VBELN)
    Document Date (Date Received/Sent)----
      (VBAK-AUDAT)
      Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    VBAP:
    Sales Document Item----
    (VBAP-POSNR)
    Short text for sales order item----
    (VBAP-ARKTX)
    Material Number----
    (VBAP-MATNR)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    KNA1:
    CUSTMER NUMBER(Sold-to party) -
    (KNA1-KUNNR)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    ====================================================================================================
    TABLES : VBAK,
    VBAP,
    KNA1.
    INPUT FIELDS : Sales Document (RANGE)
    Document Date (Date Received/Sent).(RANGE)
    Sold-to party (PARAMETERS)
    O/P FIELDS :
    Sales Document ....... VBAK-VBELN
    Document Date (Date Received/Sent).....VBAK-AUDAT
    CUSTMER NUMBER(Sold-to party)................VBAK-KUNNR
    Net Value of the Sales Order in Document Currency.....VBAK-NETWR
    Sales Organization......................................................VBAK-KORG
    Name of Person who Created the Object..................VBAK-ERNAM
    Sales Document Item ...............VBAP-POSNR
    Short text for sales order item..........VBAP-ARKTX
    Material Number.............................VBAP-MATNR
    Cumulative order quantity in sales units............VBAP-KWMENG
    Requested delivery date.................VBAP-CMKUA
    CUSTMER NAME..................KNA1-NAME1
    CUSTMER CONTRY..........................KNA1-LAND1

    Here is the sample code, please make the necessary modifications...
    REPORT ZTEST LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    Regards,
    Pavan.

  • I Need a Report For the following Specifications

    SALESORDER REPORT
    TABLES : VBAK,
                       VBAP,
                        KNA1.
    INPUT FIELDS :  Sales Document  (RANGE)----
      (vbak-vbeln)
                                  Document Date (Date Received/Sent).(RANGE)----
    (vbak-audat)
                                  Sold-to party (PARAMETERS)----
    (kna1-kunnr)
    O/P FIELDS :
    Sales Document----
    (vbak-vbeln)
    Document Date (Date Received/Sent)----
    (vbak-audat)
    Sales Document Item----
    (vbap-posnr)
    Short text for sales order item----
    (vbap-arktx)
    Material Number----
    (vbap-matnr)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    CUSTMER NUMBER(Sold-to party) -
    (kna1-kunnr)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    ================================================================================
    VBAK :
                                                                                    (KNA1-KUNNR)
    Sales Document----
    (VBAK-VBELN)
    Document Date (Date Received/Sent)----
      (VBAK-AUDAT)
      Net Value of the Sales Order in Document Currency----
    (VBAK-NETWR)
    Sales Organization----
    (VBAK-KORG)
    Name of Person who Created the Object----
    (VBAK-ERNAM)
    VBAP:
    Sales Document Item----
    (VBAP-POSNR)
    Short text for sales order item----
    (VBAP-ARKTX)
    Material Number----
    (VBAP-MATNR)
    Cumulative order quantity in sales units----
      (VBAP-KWMENG)
    Requested delivery date----
    (VBAP-CMKUA)
    KNA1:
    CUSTMER NUMBER(Sold-to party) -
    (KNA1-KUNNR)
    CUSTMER NAME -
    (KNA1-NAME1)
    CUSTMER CONTRY----
    (KNA1-LAND1)
    ====================================================================================================
    TABLES : VBAK,
    VBAP,
    KNA1.
    INPUT FIELDS : Sales Document (RANGE)
    Document Date (Date Received/Sent).(RANGE)
    Sold-to party (PARAMETERS)
    O/P FIELDS :
    Sales Document ....... VBAK-VBELN
    Document Date (Date Received/Sent).....VBAK-AUDAT
    CUSTMER NUMBER(Sold-to party)................VBAK-KUNNR
    Net Value of the Sales Order in Document Currency.....VBAK-NETWR
    Sales Organization......................................................VBAK-KORG
    Name of Person who Created the Object..................VBAK-ERNAM
    Sales Document Item ...............VBAP-POSNR
    Short text for sales order item..........VBAP-ARKTX
    Material Number.............................VBAP-MATNR
    Cumulative order quantity in sales units............VBAP-KWMENG
    Requested delivery date.................VBAP-CMKUA
    CUSTMER NAME..................KNA1-NAME1
    CUSTMER CONTRY..........................KNA1-LAND1

    Here is the sample code, please make the necessary modifications...
    REPORT ZTEST LINE-SIZE 103 LINE-COUNT 35(5) NO STANDARD PAGE
    HEADING.
    *TABLES DECLARATION
    TABLES : KNA1, VBAK, VBAP.
    *SELECT OPTIONS
    SELECT-OPTIONS: CUST_NO FOR KNA1-KUNNR.
    *INITIALIZATION
    INITIALIZATION.
    CUST_NO-LOW = '01'.
    CUST_NO-HIGH = '5000'.
    CUST_NO-SIGN = 'I'.
    CUST_NO-OPTION = 'BT'.
    APPEND CUST_NO.
    *SELECTION SCREEN VALIDATION
    AT SELECTION-SCREEN ON CUST_NO.
    LOOP AT SCREEN.
    IF CUST_NO-LOW < 1 OR CUST_NO-HIGH > 5000.
    MESSAGE E001(ZTJ1).
    ENDIF.
    ENDLOOP.
    *BASIC LIST SELECTION
    START-OF-SELECTION.
    SELECT KUNNR NAME1 ORT01 LAND1 INTO
    (KNA1-KUNNR, KNA1-NAME1,KNA1-ORT01,KNA1-LAND1)
    FROM KNA1
    WHERE KUNNR IN CUST_NO.
    WRITE:/1 SY-VLINE,
    KNA1-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    KNA1-NAME1 UNDER 'NAME',
    61 SY-VLINE,
    KNA1-ORT01 UNDER 'CITY',
    86 SY-VLINE,
    KNA1-LAND1 UNDER 'COUNTRY',
    103 SY-VLINE.
    HIDE: KNA1-KUNNR.
    ENDSELECT.
    ULINE.
    *SECONDARY LIST ACCESS
    AT user-command.
    IF SY-UCOMM = 'IONE'.
    PERFORM SALES_ORD.
    ENDIF.
    IF SY-UCOMM = 'ITWO'.
    PERFORM ITEM_DET.
    ENDIF.
    *TOP OF PAGE
    TOP-OF-PAGE.
    FORMAT COLOR 1.
    WRITE : 'CUSTOMER DETAILS'.
    FORMAT COLOR 1 OFF.
    ULINE.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'NAME',
    61 SY-VLINE,
    63 'CITY',
    86 SY-VLINE,
    88 'COUNTRY',
    103 SY-VLINE.
    ULINE.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR SECONDARY LISTS
    TOP-OF-PAGE DURING LINE-SELECTION.
    *TOP OF PAGE FOR 1ST SECONDARY LIST
    IF SY-UCOMM = 'IONE'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'SALES ORDER DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'CUSTOMER NO.',
    16 SY-VLINE,
    18 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'DATE',
    60 SY-VLINE,
    62 'CREATOR',
    85 SY-VLINE,
    87 'DOC DATE',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *TOP OF PAGE FOR 2ND SECONDARY LIST
    IF SY-UCOMM = 'ITWO'.
    ULINE.
    FORMAT COLOR 1.
    WRITE : 'ITEM DETAILS'.
    ULINE.
    FORMAT COLOR 1 OFF.
    FORMAT COLOR 3.
    WRITE : 1 SY-VLINE,
    3 'SALES ORDER NO.',
    40 SY-VLINE,
    42 'SALES ITEM NO.',
    60 SY-VLINE,
    62 'ORDER QUANTITY',
    103 SY-VLINE.
    ULINE.
    ENDIF.
    FORMAT COLOR 3 OFF.
    *END OF PAGE
    END-OF-PAGE.
    ULINE.
    WRITE :'USER :',SY-UNAME,/,'DATE :', SY-DATUM, 85 'END OF PAGE:',
    SY-PAGNO.
    SKIP.
    *& Form SALES_ORD
    *& FIRST SECONDARY LIST FORM
    FORM SALES_ORD .
    SELECT KUNNR VBELN ERDAT ERNAM AUDAT INTO
    (VBAK-KUNNR, VBAK-VBELN, VBAK-ERDAT, VBAK-ERNAM, VBAK-AUDAT)
    FROM VBAK
    WHERE KUNNR = KNA1-KUNNR.
    WRITE:/1 SY-VLINE,
    VBAK-KUNNR UNDER 'CUSTOMER NO.' HOTSPOT ON,
    16 SY-VLINE,
    VBAK-VBELN UNDER 'SALES ORDER NO.' HOTSPOT ON,
    40 SY-VLINE,
    VBAK-ERDAT UNDER 'DATE',
    60 SY-VLINE,
    VBAK-ERNAM UNDER 'CREATOR',
    85 SY-VLINE,
    VBAK-AUDAT UNDER 'DOC DATE',
    103 SY-VLINE.
    HIDE : VBAK-VBELN.
    ENDSELECT.
    ULINE.
    ENDFORM. " SALES_ORD
    *& Form ITEM_DET
    *& SECOND SECONDARY LIST FORM
    FORM ITEM_DET .
    SELECT VBELN POSNR KWMENG INTO
    (VBAP-VBELN, VBAP-POSNR, VBAP-KWMENG)
    FROM VBAP
    WHERE VBELN = VBAK-VBELN.
    WRITE : /1 SY-VLINE,
    VBAP-VBELN UNDER 'SALES ORDER NO.',
    40 SY-VLINE,
    VBAP-POSNR UNDER 'SALES ITEM NO.',
    60 SY-VLINE,
    VBAP-KWMENG UNDER 'ORDER QUANTITY',
    103 SY-VLINE.
    ENDSELECT.
    ULINE.
    ENDFORM. " ITEM_DET
    Regards,
    Pavan.

  • TOPLINK-6119 ERROR for the following query,

    any ideas as how to modify or make the query work? thanks,
    Query:
    ====
    ReadAllQuery query5 = new ReadAllQuery();
    query5.setReferenceClass( Instrument.class );
    query5.setSelectionCriteria( new ExpressionBuilder().get( "shortName" ).equal( shortName ) );
    query5.addBatchReadAttribute( query5.getExpressionBuilder().anyOf( "customFields" )
    .get( "stringValue" ).equal( "XYZ987" ) );
    Exception stack
    ===========
    Database exception: Exception [TOPLINK-6119] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070620)): oracle.toplink.exceptions.QueryException
    Exception Description: The join expression
    Relation operator =
    Query Key stringValue
    Query Key customFields
    Base QUERY OBJECT
    Constant XYZ987 is not valid, or for a mapping type that does not support joining.
    Query: ReadAllQuery(com.integral.finance.instrument.Instrument).
         at com.integral.persistence.PersistenceFactory.handleException(PersistenceFactory.java:793)
         at oracle.toplink.publicinterface.Session.handleException(Session.java:1951)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1021)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
         at com.integral.finance.instrument.test.InstrumentCustomFieldPTestC.testInstrument(InstrumentCustomFieldPTestC.java:588)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at junit.framework.TestCase.runTest(TestCase.java:154)
         at junit.framework.TestCase.runBare(TestCase.java:127)
         at junit.framework.TestResult$1.protect(TestResult.java:106)
         at junit.framework.TestResult.runProtected(TestResult.java:124)
         at junit.framework.TestResult.run(TestResult.java:109)
         at junit.framework.TestCase.run(TestCase.java:118)
         at junit.framework.TestSuite.runTest(TestSuite.java:208)
         at junit.framework.TestSuite.run(TestSuite.java:203)
         at junit.textui.TestRunner.doRun(TestRunner.java:116)
         at com.intellij.rt.execution.junit.IdeaTestRunner.doRun(IdeaTestRunner.java:69)
         at junit.textui.TestRunner.doRun(TestRunner.java:109)
         at com.intellij.rt.execution.junit.IdeaTestRunner.startRunnerWithArgs(IdeaTestRunner.java:24)
         at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:118)
         at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:40)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

    Hello,
    Your are adding a selection criteria through the addBatchReadAttribute api which isn't allowed. It is expecting only a query key type expression.
    Try:
      ReadAllQuery query5 = new ReadAllQuery();
      query5.setReferenceClass( Instrument.class );
      ExpressionBuilder exb = query5.getExpressionBuilder();
      Expression batchExpression = exb.anyOf( "customFields" );
      Expression expression = exb.get( "shortName" ).equal( shortName );
      expression = expression.and( batchExpression.get( "stringValue" ).equal ("XYZ987") );
      query5.setSelectionCriteria( expression );
      query5.addBatchReadAttribute( batchExpression );This will return all Instrument objects with the require shortName and having a customField with the stringName of "XYZ987". It will use batching to return all referenced customFields (not just the ones with a stringName of "XYZ987").
    Best Regards,
    Chris

  • What's the fastest way to create simple report for the web?

    I have Developer 6i and Oracle 9I installed.
    If i have a report already done, how can I make it available to users, so they can access them thru an IP or a host?
    can I achieve that just with my developer 6i (report builder) and my database (oracle 9i)???
    If so, how?

    1) pls see
    [     Publishing reports to web  - 10G  ]
    see
    [    All Docs for all versions    ]
    for 9i version of same document
    2) Better to have 9i builder - 9i ias combinations
    (not sure whether other combination is supported or not. but understandably it is best to have same combination]
    [    All Docs for all versions    ]
    http://otn.oracle.com/documentation/reports.html
    [     Publishing reports to web  - 10G  ]
    http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
    http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
    [   Building reports  - 10G ]
    http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
    http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
    [   Forms Reports Integration whitepaper  9i ]
    http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf
    ---------------------------------------------------------------------------------

  • I am getting an unknown error (-23). Stating there's a problem in downloading the software for the ipad. Kindly help. My ipad serial number is DM*******18C.

    Those are the error messages displayed when attempting to update ios in my ipad.
    <Edited By Host>

    If you are getting a message to contact iTunes Support then you can do so via this link and ask them why the message is appearing (we are fellow users here on these forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Purchases, Billing & Redemption

  • Can using query create aging report for GL Account

    Hi all expert,
    I have a challenge scenario which customer request print out aging report for the following GL Account.
    This is not a business partner account. However, customer want display like aging report.
    30 days aging report for the following GL accounts by projects:-
         i)     WIP (Work In Progress) account
         ii)     Accrued Revenue account
         iii)     Accrued Cost account
    Examples:
                            Current Balance       30 day   60 day  90 day   120 day
    Account  WIP         10000               2000        3000      5000     0
    Any idea or example given? If yes, can you provide a query here?
    Regards,
    Eric Tan

    Hi Eric
    In standard SAP Business One this is difficult as the reports are 2 dimensional. To achieve this you will need to write multiple select statements into a temporary table and then select the final result from the temp table. Here is a sample for you to test:
    USE [*DATABASE_NAME*]
    GO
    /****** Object:  StoredProcedure [dbo].[REPORT_NAME]    Script Date: 04/24/2009 13:17:21 ******/
    SET ANSI_NULLS ON
    GO
    SET QUOTED_IDENTIFIER ON
    GO
    CREATE proc [dbo].[*REPORT_NAME*]
    as
    set nocount on
    begin
    DECLARE @Day_no varchar(2)
    DECLARE @Month_no varchar(2)
    DECLARE @Year_no varchar(4)
    DECLARE @Start_Date Datetime
    SET @Day_no = DAY(GetDate())
    SET @Month_no = MONTH(GetDate())
    SET @Year_no = YEAR(GetDate())
    SET @Start_Date = @Year_No + '/' + @Month_no + '/' + @Day_no --  + '/' + @Year_No
    IF OBJECT_ID(N'tempdb..#CRDAGEING', N'U') IS NOT NULL
    drop table #CRDAGEING
    SELECT T0.[CardCode] AS [CardCode], T0.[CardName] AS [CardName], -T0.[Balance] AS [Balance], CAST(0 AS MONEY) AS [Current], CAST(0 AS MONEY) AS [1Week], CAST(0 AS MONEY) AS [2Weeks], CAST(0 AS MONEY) AS [3Weeks], CAST(0 AS MONEY) AS [4Weeks], CAST(0 AS MONEY) AS [5Weeks], CAST(0 AS MONEY) AS [6Weeks], CAST(0 AS MONEY) AS [Over6Weeks], CAST(0 AS MONEY) AS [Avg3Months], CAST (0 AS MONEY) AS [Onhand] INTO #CRDAGEING FROM OCRD T0 WHERE T0.[CardType] = 'S' -- and T0.[CardCode] <> '' --and T0.[DocDate] >= @FromDate AND T0.[DocDate] <= @ToDate
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] <= @Start_Date GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] >= DATEADD(DAY,1,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,8,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,8,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,15,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,15,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,22,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,22,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,29,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,29,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,36,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,36,@Start_Date) and T1.[DueDate] <= DATEADD(DAY,43,@Start_Date) GROUP BY T1.[ShortName]
    INSERT dbo.#CRDAGEING SELECT T1.[ShortName], NULL, 0, 0, 0, 0, 0, 0, 0, 0, -SUM(T1.[BalDueDeb] - T1.[BalDueCred]), 0, 0 FROM JDT1 T1, OCRD T2 WHERE T2.[CardType] = 'S' and T2.[CardCode] = T1.[ShortName] and T1.[DueDate] > DATEADD(DAY,43,@Start_Date)  GROUP BY T1.[ShortName]
    SELECT SR.[CardCode], MAX(SR.[CardName]), SUM(SR.[Balance]) AS [BalanceOwing], SUM(SR.[Current]) AS [Current], SUM(SR.[1Week]) AS [1Week], SUM(SR.[2Weeks]) AS [2Weeks], SUM(SR.[3Weeks]) AS [3Weeks], SUM(SR.[4Weeks]) AS [4Weeks], SUM(SR.[5Weeks]) AS [5Weeks], SUM(SR.[6Weeks]) AS [6Weeks], SUM(SR.[Over6Weeks]) AS [Over6Weeks] FROM dbo.#CRDAGEING SR GROUP BY SR.[CardCode] ORDER BY SR.[CardCode]
    END
    Go to Microsoft SQL Studio manager and select your company database. Then expand the list and select Programmability > Stored Procedures. Right click on Stored Procedures and select New Stored Procedure. Copy the above code over the code in the edit window and change the database name as well as report name. Then select Execute to create the stored procedure. If you make changes, remember to change the word CREATE to ALTER (with other words CREATE for the first execute, and ALTER thereafter). Then in SAP Business One create a new query and leave everything blank. Click on execute and select the pencil to change to edit mode. Remove the words SELECT and type in EXEC REPORT_NAME (change the REPORT_NAME to the name you used in SQL). Then execute again and the results will be displayed in SAP Business One.
    Let me know if you get stuck. Remember the above is an example and will need to be changed to use your tables and fields as required. The basic idea is to move across by one column with each select statement. So for example the first select statement does the CURRENT column, the second one the 30DAYS column, and so on.
    Kind regards
    Peter Juby

  • Creating multiple tab reports using the same query in Web intelligence

    Hi All,
    I have created a Universe on a BW Query which has fields as below
    AGE  Depaatment  Gender  Grade
    25       FIN                M            A
    27       LES               F            A+
    60       SWS            M             A++
    Based on this data i have created a WEbi report which shows all of these data under one tab.
    Now i create a new report tab in the same Webi Document by right cliicking the existing report and going to inset report and saving it.
    Similarly i create two more new report tabs.
    in each of these tabs i want to show data only for the concened departments.ie =1st report contains all the departments.
    2nd report contains only finance data, third contains only Les data  and fourth only SWs Data.
    Is it possible to create this report using the same query?
    Regards,
    Raj.

    You should use report filters, not query filters.
    A query filter will affect the entire document. Every report tab that pulls data from that query will be impacted. If you start with a single report, by default it shows the data from the query. If you duplicate that report tab, then it's still attached to the first query. There are various ways to create report filters (input controls, quick filter, invoking the filter area from the toolbar) and a report filter impacts only blocks on that report tab. You can even create block filters by clicking on the block first, then creating your filter.
    This is a fairly confusing bit for folks that are new to Web Intelligence.

Maybe you are looking for