Question reg. converting code from ALV list to ALV grid

I created a report based on a code posted by an SDN user in ABAP forums. The code is below. Now I want to create the same functionality using ALV grid and not simple ALV list. Can you please tell me what modifications to be done to the below coding?
Appreciate your help and input.
Thanks a lot,
Krishen
******************Code start*******************
**Change required before executing the report..
1)
Create a GUI status for the program in SE41 by copying
from the program SAPLKKBL and Status 'STANDARD'..
and store the resulting in status 'TEST2'.
2)
I have used table name as ZTABLE..Change accordingly
to your ztable name..
**Endchange
declarations.
TABLES: ztable.
TYPE-POOLS: slis.
DATA: t_fieldcatalog TYPE slis_t_fieldcat_alv.
DATA: s_fieldcatalog TYPE slis_fieldcat_alv.
DATA: s_layout TYPE slis_layout_alv.
DATA: BEGIN OF t_ztable OCCURS 0.
INCLUDE STRUCTURE ztable.
DATA: BOX TYPE c,
END OF t_ztable.
DATA: v_repid TYPE syrepid.
selection screen
SELECT-OPTIONS so_id for ztable-id.
SELECT-OPTIONS so_date for ztable-date.
start-of-selection.
Get the data.
SELECT * FROM ztable
INTO TABLE t_ztable.
where id in so_id
and date in so_date.
IF sy-subrc <> 0.
MESSAGE s208(00) WITH 'No data found'.
LEAVE LIST-PROCESSING.
ENDIF.
v_repid = sy-repid.
Get the field catalog.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = v_repid
i_structure_name = 'ZTABLE'
CHANGING
ct_fieldcat = t_fieldcatalog.
Set the layout.
s_layout-box_fieldname = 'BOX'.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
is_layout = s_layout
i_callback_pf_status_set = 'SET_PF_STATUS'
i_callback_user_command = 'USER_COMMAND'
it_fieldcat = t_fieldcatalog[]
TABLES
t_outtab = t_ztable.
FORM SET_PF_STATUS *
--> EXTAB *
FORM set_pf_status USING extab TYPE slis_t_extab.
SET PF-STATUS 'TEST2'.
ENDFORM.
FORM user_command *
--> UCOMM *
--> SELFIELD *
FORM user_command USING ucomm LIKE sy-ucomm
selfield TYPE slis_selfield.
Check the ucomm.
IF ucomm = 'DELETE'.
LOOP AT t_ztable WHERE box = 'X'.
DELETE FROM ztable WHERE matnr = t_ztable-matnr.
COMMIT WORK.
DELETE t_ztable.
ENDLOOP.
ENDIF.
selfield-refresh = 'X'.
ENDFORM.
**********Code ending**********************

I believe that the only change would be to replace the work LIST with GRID in the function call.
CALL FUNCTION 'REUSE_ALV_<b>GRID</b>_DISPLAY'
     EXPORTING
        i_callback_program = v_repid
        is_layout = s_layout
        i_callback_pf_status_set = 'SET_PF_STATUS'
        i_callback_user_command = 'USER_COMMAND'
        it_fieldcat = t_fieldcatalog[]
     TABLES
        t_outtab = t_ztable.
The function module interface should be exactly the same.
Regards,
Rich Heilman

Similar Messages

  • Please, HELP to convert code from AS2 to AS3!!!

    there is source code from paint application, thank to human who will convert this code, it's codeimportant for us.
    stop();
    var arrSloy:Array = new Array();
    //Initial
    //OnMove
    _root.onMouseMove = function() {
              if (checkPole() && onTool) {
                        Mouse.hide();
                        _root.kist._visible = true;
                        _root.eras._visible = true;
                        _root.pen._visible = true;
                        _root.line._visible = true;
              } else {
                        Mouse.show();
                        _root.kist._visible = false;
                        _root.eras._visible = false;
                        _root.pen._visible = false;
                        _root.line._visible = false;
              updateAfterEvent();
    //OnMove
    //New
    _root.panelMane.butNew.onRelease = function() {
              _root.newClip1.removeMovieClip();
              _root.clipMask.removeMovieClip();
              onTool = false;
              Mouse.show();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
              _root.gotoAndStop("newImg1");
    _global.XO = null;
    _global.YO = null;
    _global.WO = null;
    _global.HO = null;
    //creatNewPalitra
    function creatNewPalitra(color:String, w:Number, h:Number) {
              XO = 120;
              YO = 130;
              WO = w;
              HO = h;
              gotoAndStop(51);
              _root.createEmptyMovieClip("newClip1",0);
              newClip1.lineStyle(0,"0xFFFFFF");
              newClip1.beginFill(color);
              newClip1.moveTo(XO,YO);
              newClip1.lineTo(XO+w,YO);
              newClip1.lineTo(XO+w,YO+h);
              newClip1.lineTo(XO,YO+h);
              newClip1.lineTo(XO,YO);
              newClip1.endFill();
              _root.createEmptyMovieClip("clipMask",1);
              clipMask.lineStyle(0,"0xFFFFFF");
              clipMask.beginFill("0xFFFFFF");
              clipMask.moveTo(XO,YO);
              clipMask.lineTo(XO+w,YO);
              clipMask.lineTo(XO+w,YO+h);
              clipMask.lineTo(XO,YO+h);
              clipMask.lineTo(XO,YO);
              clipMask.endFill();
              newClip1.setMask(clipMask);
    function checkPole() {
              if (WO == null) {
                        return false;
              if ((_xmouse>=XO && _xmouse<=XO+WO) && (_ymouse>=YO && _ymouse<=YO+HO)) {
                        return true;
              } else {
                        return false;
    //New
    _root.panelTool.butCursor.onRelease = function() {
              onTool = false;
              Mouse.show();
              _root.kist.removeMovieClip();
              _root.pen.removeMovieClip();
              _root.line.removeMovieClip();
    //PEN
    creatClip = 10;
    _root.panelTool.butPen.onRelease = function() {
              onTool = true;
              _root.attachMovie("pensil","pen",1000000);
              Mouse.hide();
              _root.pen.startDrag(true);
              function drawPen() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.pen.onMouseDown = function() {
                        if (checkPole()) {
                                  drawPen();
                                  pen_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.pen.onMouseUp = function():Void  {
                        pen_draw_flag = false;
              _root.pen.onMouseMove = function():Void  {
                        if (pen_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //BRUSH
    _root.panelTool.butkist.onPress = function() {
              onTool = true;
              _root.attachMovie("kister","kist",1000000);
              Mouse.hide();
              _root.kist.startDrag(true);
              function drawKist() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleFill.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.kist.onMouseDown = function() {
                        if (checkPole()) {
                                  drawKist();
                                  kist_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.kist.onMouseUp = function():Void  {
                        kist_draw_flag = false;
              _root.kist.onMouseMove = function():Void  {
                        if (kist_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //LINE
    _root.panelTool.butLiner.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawLine() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawLine();
                                  line_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        line_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (line_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //ERASER
    _root.panelTool.butEras.onPress = function() {
              onTool = true;
              _root.attachMovie("eraser","eras",1000000);
              Mouse.hide();
              _root.eras.startDrag(true);
              function drawEras() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = "0xFFFFFF";
                        lineAlpha = "100";
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.eras.onMouseDown = function() {
                        if (checkPole()) {
                                  drawEras();
                                  eras_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  clip.moveTo(this._x,this._y);
              _root.eras.onMouseUp = function():Void  {
                        eras_draw_flag = false;
              _root.eras.onMouseMove = function():Void  {
                        if (eras_draw_flag) {
                                  if (checkPole()) {
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //CURV
    _root.panelTool.butCurv.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              anchor1X = anchor2X=controlX=null;
              anchor1Y = anchor2Y=controlY=null;
              onClic = 0;
              function drawCurv() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              _root.line.onMouseDown = function() {
                        if (onClic == 0) {
                                  if (checkPole()) {
                                            drawCurv();
                                            anchor1X = this._x;
                                            anchor1Y = this._y;
                                            onClic = 1;
                                            _root.attachMovie("point","point1",1000001);
                                            point1._x = anchor1X;
                                            point1._y = anchor1Y;
                        } else if (onClic == 1) {
                                  if (checkPole()) {
                                            anchor2X = this._x;
                                            anchor2Y = this._y;
                                            onClic = 2;
                                            _root.attachMovie("point","point2",1000002);
                                            point2._x = anchor2X;
                                            point2._y = anchor2Y;
                        } else if (onClic == 2) {
                                  if (checkPole()) {
                                            controlX = this._x;
                                            controlY = this._y;
                                            onClic = 0;
                                            curv_draw_flag = true;
                                            point1.removeMovieClip();
                                            point2.removeMovieClip();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
              _root.line.onMouseUp = function():Void  {
                        curv_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (curv_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.moveTo(anchor1X,anchor1Y);
                                            clip.curveTo(this._x,this._y,anchor2X,anchor2Y);
                                  updateAfterEvent();
    //STAR
    _root.panelTool.butStar.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              Mouse.hide();
              _root.line.startDrag(true);
              function drawStar() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
              thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawStar();
                                  star_draw_flag = true;
                                  clip.lineStyle(lineSize,lineColor,lineAlpha);
                                  thisx = this._x;
                                  thisy = this._y;
                                  clip.moveTo(thisx,thisy);
              _root.line.onMouseUp = function():Void  {
                        star_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (star_draw_flag) {
                                  if (checkPole()) {
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,this._y);
                                  updateAfterEvent();
    //KVADRAT
    _root.panelTool.butRecttangle.onRelease = function() {
              onTool = true;
              _root.attachMovie("liner","line",1000000);
              _root.line.startDrag(true);
              Mouse.hide();
              function drawRecttangle() {
                        creatClip++;
                        lineSize = _root.panelProperties.poleSizeLine.text;
                        lineColor = _root.panelProperties.poleColorLine.text;
                        lineAlpha = _root.panelProperties.poleAlphaLine.text;
                        fillColor = _root.panelProperties.poleFill.text;
                        clip = _root.newClip1.createEmptyMovieClip("newClip"+creatClip, creatClip);
                        arrSloy.push(clip);
                        thisx = thisy=null;
              _root.line.onMouseDown = function() {
                        if (checkPole()) {
                                  drawRecttangle();
                                  kvadrat_draw_flag = true;
                                  thisx = this._x;
                                  thisy = this._y;
              _root.line.onMouseUp = function():Void  {
                        kvadrat_draw_flag = false;
              _root.line.onMouseMove = function():Void  {
                        if (kvadrat_draw_flag) {
                                  if (checkPole()) {
                                            clip.clear();
                                            clip.lineStyle(lineSize,lineColor,lineAlpha);
                                            clip.beginFill(fillColor,lineAlpha);
                                            clip.moveTo(thisx,thisy);
                                            clip.lineTo(this._x,thisy);
                                            clip.lineTo(this._x,this._y);
                                            clip.lineTo(thisx,this._y);
                                            clip.lineTo(thisx,thisy);
                                            clip.endFill();
                                  updateAfterEvent();
    //Clear
    _root.panelMane.butClear.onRelease = function() {
              for (a=0; a<arrSloy.length; a++) {
                        clip = arrSloy[a];
                        clip.removeMovieClip();
                        delete arrSloy[a];
    //Back
    _root.panelMane.butBack.onRelease = function() {
              i = arrSloy.length-1;
              clip = arrSloy[i];
              clip.removeMovieClip();
              arrSloy.pop();
    Thank you very much!!!

    Zhanbolat,
    In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
    In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
    With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

  • Problems converting ALV LIST to ALV GRID

    Hey guys
    when i changed the name of the function REUSE_ALV_LIST_DISPLAY to REUSE_ALV_GRID_DISPLAY..in a report..I get the GRID in next page..
    whys is it so??
    like the rpeort has the the ALV to be displayed in END_OF_LIST event...(the report has oen HIERARCHIAL ALV as the main ALV LIST and in the END OF LIST it has another ALV)
    when i change LIST to GRID ...
    the GRID gets itno 2nd page while the rest of the report gets into page 1...
    i want both these in 1st page only

    you can do it with blocks, but the whole thing will be in list mode
    REUSE_ALV_BLOCK_LIST_INIT
    REUSE_ALV_BLOCK_LIST_HS_APPEND (for hierarchical list)
    REUSE_ALV_BLOCK_LIST_APPEND (for simple grid list)
    REUSE_ALV_BLOCK_LIST_DISPLAY

  • Whi is the winner? ALV LIst or ALV Grid OO?

    Hi Guys,
    Hope you are all well.
    My company is still mostly using the ALV List Function Modules when creating reports. Yes, they are using the SLIS pools.
    I have written a template program for them to start doing things the OO way. That is to say, using ALV Grid Objects.
    We are now thinking of COMPLETELY going over into ALV Grid Objects, but some of us are still arguing which one is best?
    The biggest argument is :
    Is ALV too "expensive" with regards to using system recources?
    Please give me your thoughts as Im all for going for OO, but I would understand if it would make things slower.
    Points will be awarded for useful arguments.
    tks
    Christiaan

    SLIS is OLD,  OBSOLETE DINOSAUR technology.
    With the new classes you can create new reports really quickly and easily and add all sorts of functionality to them.
    There's a small learning curve -- but what ought to appeal to management is that once you get the hang of it you can produce a report in hours (or even minutes) which done in the old way could take a week or more.
    These days Human development time is far far more expensive than machine time so there's NO CONTEST. 
    The advantages in general of OO are too numerous to list here but if you look at the sample code I've listed here you can see how easy and quicklly you can get an application up and running even if you haven't got my Z_class definition listed in the program (it's a global class now defined with SE24).
    With either cl_gui_alv_grid or even easier (if you don't need  edit capability)  the salv_table type class it only takes a few lines to code your program and display the grid.
    All you ever now need to do in an alv program is the following.
    1) define your data structures
    2) use RTTI to generate dynamic field catalog from your data structures
    3) create dynamic table
    4) populate it
    5) display grid.
    You should have all the events etc you need such as cell selection etc etc.
    Your whole code could be quite small.
    For example I've got a generalized Z_cLass for my alv grid.
    Now here's a sample program to display program names in the system. When I double click a program SE38 is entered and on exit unlike the standard sap transaction my list is re-displayed where I can choose another program.
    Note how small the code is.
    You won't be able to copy and run this  program directly as you'll need the Z_class definitions.
    In this Z_class there's also functionality for ON  data change, multiple cell selection , toolbar additions etc.
    These methods are available to EVERY program calling the class.
    If you need the extra functionality using SLIS you have to program it in every time for each individual program.
    You can therefore concentrate in your application program on just getting the data and displaying it. All the complicated functionality is in the Z_class.
    Incidently using ALV classes can also render the whole idea of classical dynpros with Table controls as also obsolete.
    program  zzjimboprogs.
    tables : trdirt.
    include my_zdata.  "data references to my Z_Class etc.
    * Front end to call SE38 Program list
    * When you use the search Program facility in SE38
    * the system loses the LIST after you choose a program and enter
    * transaction SE38
    * double click on the Program module you want SE38 to use.
    * After exiting SE38 you will return to the list .
    types:  begin of s_elements,
      name  type trdirt-name,
      text   type trdirt-text,
    end of  s_elements.
    data: progname type trdirt-name.
    data: wa_elements type s_elements.
    selection-screen begin of block one with frame title text-t01.
    select-options:  s_prog for trdirt-name obligatory.
    selection-screen end of block one.
    at selection-screen.
    initialization.
       invoker = sy-repid. "Name of calling program for alv class.
    start-of-selection.
      create data dref type s_elements.
      assign dref->* to <fs>.
      i_gridtitle = 'Program List'.
      invoker = sy-repid.
      i_zebra = ' '.
      i_edit = 'X'.
      create object z_object
           exporting
                      z_object = z_object
                      cfname = 'CCONTAINER1'.
         assign z_object to <fs1>.
      i_object = <fs1>.
      call method i_object->build_dynamic_structures
      exporting
        my_line = <fs>
        calling_program = invoker
      importing
        dy_table = dy_table
      changing
        it_fldcat = it_fldcat.
    perform populate_dynamic_itab
    changing dy_table.
    perform modify_fldcat.
    i_screen = '100'.
    i_text = 'Prog List'.
    perform display_grid
           using
             i_screen
             i_text
             it_fldcat
             <dyn_table>.
    end-of-selection.
    form populate_dynamic_itab changing dy_table.
      assign dy_table->* to <dyn_table>.
      create data dy_line like line of <dyn_table>.
      assign dy_line->* to <dyn_wa>.
      select *
            from trdirt
             into  corresponding fields of table <dyn_table>
             where name in s_prog
             and sprsl eq sy-langu.
    endform.
    form display_grid
    using i_screen
         i_text
         field_catalog
         dynamic_table.
    call method i_object->display_data
             exporting
               i_gridtitle = i_gridtitle
               i_edit = ' '
               i_zebra = ' '
               i_opt  = ' '
               title_text    = i_text
               program       = invoker
               screen_number = i_screen
               z_object = i_object
                changing
               it_fldcat = field_catalog
               gt_outtab = dynamic_table
               e_ucomm = e_ucomm.
             if e_ucomm  = 'BACK'.
               leave to screen 0.
          else.
            leave program.
          endif.
    endform.
    form verwerk.
    endform.
    form refresh.
      call method i_object->refresh_grid.
    endform.
    form dubbelklik using
            e_row   type lvc_s_row
            e_column type lvc_s_col
            es_row_no type lvc_s_roid.
      read table <dyn_table> index e_row into wa_elements.
    progname = wa_elements-name.
        set parameter id 'RID'  field progname.
         call transaction  'SE38'.
      perform refresh.
      row_number-row_id = e_row.
      call method z_object->set_cell
        exporting
                e_column = e_column
                es_row_no = row_number.
    endform.
    form modify_fldcat.
      col_name it_fldcat 1 'Programe' 25.
      col_name it_fldcat 2 'description' 50.
    endform.

  • Change an ALV list to ALV grid !!

    Hi Everybody!
    Please, I need some ideas to change an ALV List to an ALV Grid.  I think its not to difficult but I don´t now how to do it. I'm newbie
    Or if you have some manual or function.. or anythink
    Thanks so much !!
    JC

    Hey.. thanks to all of you..  IT Works !!  lol.. i'm happy.. my first modifying program..
    First I use a radio button to select a list or a grid..
    <i>selection-screen begin of block blk3 with frame title text-002.
    parameter:
    Lista radiobutton group g1,
    Grid radiobutton group g1.
    selection-screen end of block blk3.</i>
    then use a, if
    <i>if ALV = 'X'.
    PERFORM REPORT_ALV.
    PERFORM DATOS_ALV.
    Else.
    LOOP AT ZPERNR.</i>
    then..
    <i>PERFORM DATOS_ALV.
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    bla bla..</i>
    and each field like this..
    <i>FORM ALV_RUT.
            ADD 1 TO COL_POS.
            CLEAR FIELDCAT_LN.
            fieldcat_LN-DDICTXT = 'L'.
            fieldcat_LN-OUTPUTLEN = 12.
            fieldcat_LN-SELTEXT_L = 'RUT'.
            fieldcat_LN-SELTEXT_M = 'RUT'.
            fieldcat_LN-SELTEXT_S = 'RUT'.
            FIELDCAT_LN-REF_TABNAME = 'ZPERNR'.
            FIELDCAT_LN-FIELDNAME = 'RUT'.
            APPEND FIELDCAT_LN TO FIELDCAT.
    ENDFORM.</i>
    It took me some time and need some improve, but works 
    Once more, Thanks to all.  For your help.
    Regards,
    Jessica

  • Convert Code from MSSSQL7 to Oracle8

    Hi
    Is there any easy way or a tool to convert the sqlcode that's in Sqlserver7 to Oracle8 ??
    Thanks
    -Vijaya
    null

    Zhanbolat,
    In theory, conversion of this code is not difficult, especially because it is clear what the logic is designed to do. The issue is that you will not have an expected result once only this code is converted in isolation. This puppy uses some other objects that are written in AS2 including entities in the FLA library.
    In short, it looks like this application needs a total overhaul at every level in order for it to properly function as an AS3 program.
    With that said, although this is, again, not a difficult task, it is unlikely to find someone to do it for free. You may have a better luck if you start conversion yourself and post focused questions as you go.

  • Converting code from AS 2.0 to 3.0

    Hey guys,
    I'm doing my dissertation, using Flash to build a website.  I found this amazingly helpful book that has given me step by step instructions on what to do.  It advised me to open an AS 3.0 file to do all my developing in & that has worked fine up until now!!!  I found a really great radiating circle design to use but the code is only suitable for AS 2.0.
    Does anyone know if I can convert my website to AS 2.0 or what code I should use for AS 3.0 to make the animation compatible with the rest of website???!!!!
    AS 2.0 code used:
    keyframe 1:
    i = 0;
    setProperty("circle", _visible, false);
    keyframe 2:
    duplicateMovieClip("circle", "circle" + i, i);
    removeMovieClip("circle" + (i-15));
    if (i > 14) {
        i = 0;
    i++;
    keyframe 3:gotoAndPlay(_currentframe - 1);

    I would highly recommend against attempting to downgrade your code to AS2 from AS3.  There is a lot of functionality in AS3 that does not exist in AS2.
    That said, it may be a bit of a task to upgrade the AS2 to AS3, but should definitely be feasible.
    Do a quick search for "AS2 to AS3 converter" - run the code through what you find.  Try to integrate it into your AS3 project, and, if it doesn't work, post the code and any errors up here.

  • RE : BI APO Question Reg Data feeding from cube to Planning area.

    Hi BW Experts,
    iam working in an Implementation project for SCM in BW prcisely working with APO Bw..
    For that I have taken historical data as a flat file and loaded it in to the external BW Infocube and its fine...
    Second step I have created generate export datasource on topr of BW infocube and replicated in to Bw and used this export datasource as datasource for APO BW Infocube which is inbulit BW System from External Bw..
    also I have created tranformations and data is loaded in the BW cube in APO system.Also Included Version charecterstics..
    When I try to fed the APO Cube data to planning area Iam gettinga the following  warning itsnot an error:
    1.Key figure copy: InfoCube - planning area (DP) 01.01.2010 to 31.12.2010-- Successful
    *2.No data exists for the selection made (see long text*
      Diagnosis:Data could not be loaded from the Cube for the selection you made. Check whether the Cube actually contains data that is relevant for your selection.
    For the second point I have time charecterstics filled in the infocube which Iam feding to a Planning area like 0CALMONTH,0CALWEEK,FiscVarnt,0CALMONTH
    3.Characteristic assignment: No data copied --- Message
    Can you please help me with your thoughts so that i wll try to corner the issue I will be highly obliged

    Hi,
    As I understood, you have loaded data from external BW cube to APO BW cube and now loading planning area from APO BW cube.
    I hope your settings in /SAPAPO/TSCUBE transaction code would be correct and you have selected the correct planning version with correct cube.
    Check if Data in APO BW cube is available for reporting or not and data is avilable for given selction (if any but I guess you are not giving any).
    Thanks,
    S

  • Converting code from as2 to as3 and getting errors

    I am trying to get a counter that I found in as2 to work in as3 but I am getting errors when I publish.
    Here is my code:
    stop();
    var currSlide;
    addEventListener(Event.ENTER_FRAME, onEnterFrame);
    function onEnterFrame(evt:Event):void
    currSlide = root.rdinfoCurrentSlide +1;
    this.curSlide_txt.text = currSlide;
    this.totSlide_txt.text = root.rdinfoSlideCount;
    any suggestions?

    no code should be attached to objects.
    most of that looks like it's useless or worse than useless.   in particular, everything in the enterframe loop looks like it serves no purpose and repeatedly does useless things.  if it is doing something useful, it doesn't need to be done in a loop.
    and setting the rgb of a color instance does nothing useful.
    the only thing useful is setting brushColor when that brush movieclip is clicked.
    so, if you have a movieclip with class = "brush" in your library, you can use:
    var brushColor:uint;
    var blackBrush:brush=new brush();
    blackBrush.col = 0x000000;
    addChild(blackBrush);
    blackBrush.addEventListener(MouseEvent.CLICK,clickF);
    function clickF(e:MouseEvent):void{
    brushColor = MovieClip(e.currentTarget).col

  • Convert code from LabVIEW 2009 to LabVIEW 8.6

    Hi Everyone,
    Could a kind person with LabVIEW 2009 please save the attached code in LabVIEW 8.6.
    The code is of the Creating an Office 2007-like Ribbon in LabVIEW community page. 
    It would be very helpful!
    PS. Will reward kudos.  
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!
    Solved!
    Go to Solution.
    Attachments:
    LabVIEW Ribbon.zip ‏306 KB

    Any problems let me know and I will look at again
    David
    www.controlsoftwaresolutions.com
    Attachments:
    New Folder (2).zip ‏108 KB

  • Classical List to ALV format in sap abap report

    Hi All,
    I have a requirement to change the existing abap report in which teh output is dispalyed in classical list format.
    I want to convert this list report output into ALV format.
    COuld anyone please help me how to convert this from Classical list to ALV format?
    Thanks,
    Komal.
    Moderator message: sorry, this not the place to teach the basics, please search for available information. If you understand the classical list and how to use ALV, then you can also do the transfer yourself.
    Edited by: Thomas Zloch on Aug 12, 2011 4:44 PM

    This will be very difficult for you.....
    Since you are getting a time out error....it looks like, you are runnning this report in foreground....................
    Try running it in background it will work...
    ELSE....you have to fetch in small chunks....but the question is how will you do it. Since the USR02 only has BNAME as primary key...
    Either put the BNAME as part of selection screen and fetch the data.....it will solve your problem....
    Only fetch for those BNAME which is entered in the selection screen...
    Hope it helps!

  • ALV Grid and ALV List difference?

    Hello,
    Can you help me differentiate ALV List and ALV grid and the low-level definition or context of each?
    Also, can you give me a transaction code that outputs an ALV list as well as a tcode for ALV grid?
    Thanks,
    Jennah

    Hi Kirtish,
    Thanks but I  havent done any function module stuff as I am not an ABAPer but anyway can you guide me through thios?
    "I hope this might slove your query. For more please refer to documentation on ALV and also implement the ALV LIST and GRID reports. By using class Class CL_GUI_ALV_GRID, Function module REUSE_ALV_LIST_DISPLAY , REUSE_ALV_GRID_DISPLAY and some more functions like that only."
    I will give you some tcode can you please try tcode FBL1n? then execute the report. What is the output is it an ALV list?
    I wish to see an ALV list also an ALV grid to see difference.
    Tjhakns,
    Jennah

  • How can I fixed alv list?

    how can I fixed alv list?
    alv list always change size(scaled) I mean cannot fixed
    I did using some parameters following .I want to fixed the length of ALV column but still not work.
    fieldcat_ln-intlen = 13
    fieldcat_ln-outputlen   = 13.
    becuase I need to know print size and so on etc..
    What I have to do? anything wrong?

    Hi Yi,
    1. If u are talking about fixing
        the size of the column,
      then u are right.
      outputlen is the right property.
    2. Along with that we need to do one more thing.
       This is regarding the column heading
       which appears either LONG, SHORt, MEDIUM,
       from the data element defition.
      set ddictxt = M
      or L, S (short)
    Regards,
    Amit M.

  • Need class name to display ALV list (not Grid) in objects..

    hi,
    i need to display ALV list ( not ALV Grid ) in objects.. i dont the class name for tat.. so plz can anyone help me out for the same..
    thanks in advance..

    With cl_salv_table you can have both grid or list, depending what you want.
          cl_salv_table=>factory(
             EXPORTING
               list_display   = 'X'  "when space then GRID, when 'X' then LIST
             IMPORTING
               r_salv_table  = ref_table
             CHANGING
               t_table       = gt_sflight ).
    Regards
    Marcin

  • Move data from multiple Tables to a Single Table & Convert the list to ALV.

    Hi,
    My aim is to get the list of Materials with their descriptions, with MRP Controller, with Unrestriced Qty. & the Reorder Qty. So, I have to fetch the data from different tables. But finally I am not able to copy or move the fetched data from multiple tables into the single final table.
    Also tell me how to convert this list into ALV.
    Below is the program code.
    *& Report  Y_REORDER_REPORT
    REPORT  Y_REORDER_REPORT.
    tables : marc,makt, mard.
    DATA: Begin of i_final occurs 0,
            matnr type marc-matnr,
            maktx type makt-maktx,
            DISPO type marc-DISPO,
            MINBE type marc-MINBE,
            LABST type mard-LABST,
          end of i_final.
    DATA: Begin of i_marc occurs 0,
           matnr type marc-matnr,
           DISPO type marc-DISPO,
           MINBE type marc-MINBE,
          end of i_marc.
    DATA: Begin of i_makt occurs 0,
           matnr type makt-matnr,
           maktx type makt-maktx,
          end of i_makt.
    DATA: Begin of i_mard occurs 0,
           matnr type mard-matnr,
           LABST type mard-LABST,
           LGORT TYPE MARD-LGORT,
          end of i_mard.
    SELECT  matnr
            dispo
            minbe from marc
            into corresponding fields of table i_marc
            where dispo EQ 'STR'.
    SORT I_MARC by MATNR.
    WRITE: /10  'Material',
            75  'MRP',
            80  'Reorder Qty.'.
    LOOP at i_marc.
    Write: /10  i_marc-matnr,
            75  i_marc-dispo,
            80  i_marc-minbe.
    ENDLOOP.
    write: /.
    SELECT  matnr
            MAKTX from makt
            into corresponding fields of table i_makt
            for all entries in i_marc
            where matnr = i_marc-matnr.
    LOOP at i_makt.
    Write: /10 i_makt-matnr,
            30 i_makt-maktx.
    ENDLOOP.
    SELECT  matnr
            LGORT
            LABST from mard
            into corresponding fields of table i_mard
            for all entries in i_marc
            where matnr = i_marc-matnr.
    LOOP at i_mard.
    Write: /10 i_mard-matnr,
            30 I_MARD-LGORT,
            40 i_mard-labst.
    ENDLOOP.
    move  i_mard-matnr to i_final-matnr.
    move  i_marc-dispo to i_final-dispo.
    move  i_marc-minbe to i_final-minbe.
    move  i_makt-maktx to i_final-maktx.
    move  i_mard-labst to i_final-labst.
    WRITE: /10  'Material',
            30  'Material Desc.',
            75  'MRP',
            80  'Reorder Qty.',
            105 'Current Stock'.
    LOOP at i_final.
    Write: /10  i_final-matnr,
            30  i_final-maktx,
            75  i_final-dispo,
            80  i_final-minbe,
            105 i_final-labst.
    ENDLOOP.
    *LOOP at i_mard.
    *Write: /10  i_mard-matnr,
           30  i_makt-maktx,
           75  i_marc-dispo,
           80  i_marc-minbe,
           105 i_mard-labst.
    *ENDLOOP.
    Regards,
    Vishal

    Change like this,
    SELECT matnr
    lgort
    labst FROM mard
    INTO CORRESPONDING FIELDS OF TABLE i_mard
    FOR ALL ENTRIES IN i_marc
    WHERE matnr = i_marc-matnr.
    LOOP AT i_mard.
       WRITE: /10 i_mard-matnr,
       30 i_mard-lgort,
       40 i_mard-labst.
    ENDLOOP.
    LOOP AT i_marc.
       READ TABLE i_mard WITH KEY matnr =  i_marc-matnr.
       READ TABLE i_makt WITH KEY matnr =  i_marc-matnr.
       MOVE i_mard-matnr TO i_final-matnr.
       MOVE i_marc-dispo TO i_final-dispo.
       MOVE i_marc-minbe TO i_final-minbe.
       MOVE i_makt-maktx TO i_final-maktx.
       MOVE i_mard-labst TO i_final-labst.
       APPEND i_final.
    ENDLOOP.
    WRITE: /10 'Material',
    30 'Material Desc.',
    75 'MRP',
    80 'Reorder Qty.',
    105 'Current Stock'.

Maybe you are looking for