Create Alv Border

Hi all,
I want to create a alv with some rows.For this i have some requirements:
In every row contains different numbers of columns.
Which will be displaying like an excel file with differeny columns in different rows.
Sugess How is it possible?
Points will be sured.
Thanks
Sanket Sethi

Hi this will help u.
DOWNLOAD ALV LIST TO EXCEL AUTOMATICALLY
TYPES:
  BEGIN OF ty_upload,
    field1 TYPE c length 12,
    field2 TYPE c length 12,
    field3 TYPE c length 12,
  END OF ty_upload.
  DATA it_upload TYPE STANDARD TABLE OF ty_upload WITH DEFAULT KEY.
  DATA wa_upload TYPE ty_upload.
  DATA itab TYPE STANDARD TABLE OF alsmex_tabline WITH DEFAULT KEY.
  FIELD-SYMBOLS: <wa> type alsmex_tabline.
  CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
    EXPORTING
      filename    = filename
      i_begin_col = 1
      i_begin_row = 1
      i_end_col   = 3
      i_end_row   = 65535
    TABLES
      intern      = itab.
  LOOP AT itab ASSIGNING <wa>.
    CASE <wa>-col.
      WHEN '0001'.
        wa_upload-field1 = <wa>-value.
      WHEN '0002'.
        wa_upload-field2 = <wa>-value.
      WHEN '0003'.
        wa_upload-field3 = <wa>-value.
    ENDCASE.
    APPEND wa_upload TO it_upload.
    CLEAR wa_upload.
  ENDLOOP.
CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
EXPORTING
I_FIELD_SEPERATOR =
I_LINE_HEADER =
i_filename =
I_APPL_KEEP = ' '
tables
i_tab_sap_data =
CHANGING
I_TAB_CONVERTED_DATA =
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Another FM –
MS_EXCEL_OLE_STANDARD_DAT
A simple option:
a) form download_file .
call function 'WS_EXCEL'
importing
filename = excel_name
tables
data = itab.
b) call function 'WS_DOWNLOAD'
exporting
filename = o_file
filetype = 'DAT'
tables
data_tab = i_tab
exceptions
file_open_error = 1
file_write_error = 2
invalid_filesize = 3
invalid_type = 4
no_batch = 5
unknown_error = 6
invalid_table_width = 7
gui_refuse_filetransfer = 8
customer_error = 9
no_authority = 10
others = 11.
if sy-subrc = 0.
message 'File is downloaded successfully' type 'I'.
endif.
with regards,
Hema Sundara.
pls give points if it helps u.

Similar Messages

  • Creating ALV reports using OOP concept

    After creating many reports i found out that 90% of the coding in a report is copy paste i.e. only 10% of coding effort is required which includes
        creating the custom data types and internal table variables  ...
        populating the data
        creating screen,GUI status and GUI title
    Just copy paste the below code and do as stated  :
    *ALV TEMPLATE
    *create screen no. 2000
    *change flow logic in screen if necessary
    *create GUI status and GUI title
    *change selection texts and text symbols*
    REPORT  Y_TEMPLATE_ALV.
    TABLES : ."use if range of values required on selection screen.
    DATA: zcl_alvgrid        TYPE REF TO cl_gui_alv_grid,
           zcl_ccontainer     TYPE REF TO cl_gui_docking_container,
           wa_layout    TYPE lvc_s_layo,
           it_fieldcat  TYPE STANDARD TABLE OF lvc_s_fcat,
           wa_fieldcat  TYPE lvc_s_fcat,
           z_document         TYPE REF TO cl_dd_document,
           o_docking TYPE REF TO cl_gui_docking_container,"Docking Container
           o_split TYPE REF TO cl_gui_easy_splitter_container, "Splitter
           o_top_container TYPE REF TO cl_gui_container,   "Top Container
           o_bottom_container TYPE REF TO cl_gui_container."Bottom Container
    TYPES : BEGIN OF TY_FINAL,
    "All columns which are to be displayed in the report should be included here
    END OF TY_FINAL.
    *Add additional Internal Tables's if data is to be extracted from multiple tables
    *Then loop at main table and Read the other tables
    DATA :IT_DATA TYPE STANDARD TABLE OF , "data extracted from tables can be stored in this internal table variable ..
           WA_DATA TYPE ,
           iT_alv      TYPE STANDARD TABLE OF TY_FINAL, " pass to  the method SET_TABLE_FOR_FIRST_DISPLAY of class
    ZCL_ALVGRID [Already done ; its  just fyi]
           WA_alv      TYPE                   TY_FINAL.
    DATA :V_CLN(255) TYPE C, " For no. of records
           V_LINE TYPE I. " for conversion of integer to character
    *                 Selection Screen                                     *
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS:
    SELECT-OPTIONS: " PARAMETERS and Range on selection screen
    SELECTION-SCREEN END OF BLOCK B1.
    AT SELECTION-SCREEN OUTPUT.
    *                        START  OF  SELECTION                          *
    START-OF-SELECTION.
    *  SELECT * FROM INTO CORRESPONDING FIELDS OF TABLE IT_DATA WHERE ....in ....
       IF SY-SUBRC = 0.
         LOOP AT IT_DATA INTO WA_DATA.
           MOVE-CORRESPONDING WA_DATA TO wa_alv. " if data is fetched from only one table
           APPEND wa_alv TO it_alv.
           CLEAR : wa_alv,WA_DATA.
         ENDLOOP.
         DESCRIBE TABLE it_alv LINES V_LINE.
         V_CLN = V_LINE.
       ENDIF.
    END-OF-SELECTION.
       PERFORM DISPLAY_ALV.
    *&      Module  STATUS  OUTPUT
    *       text
    MODULE STATUS_2000 OUTPUT.
       SET PF-STATUS 'STATUS'.
       SET TITLEBAR 'ALV'.
    *  ** Creating Docking Container
       CREATE OBJECT o_docking
       EXPORTING
    *    side = cl_gui_docking_container=>dock_at_right
         ratio = '95'.
       IF sy-subrc EQ 0.
    * Splitting the Docking container
         CREATE OBJECT o_split
         EXPORTING
           parent        = o_docking
           sash_position = 05 "Position of Splitter Bar (in Percent)
           with_border   = 0. "With Border = 1 Without Border = 0
    *   Placing the containers in the splitter
         o_top_container = o_split->top_left_container .
         o_bottom_container = o_split->bottom_right_container .
    *   Creating the document
         CREATE OBJECT z_document
         EXPORTING
           style = 'ALV_GRID'.
       ENDIF.
    * Calling the methods for dynamic text
       CALL METHOD z_document->add_text
       EXPORTING
         TEXT         = 'No. of Records:'
         sap_emphasis = cl_dd_area=>strong. " For bold
    * Adding GAP
       CALL METHOD z_document->add_gap
       EXPORTING
         width = 10.
    * Adding Text
       CALL METHOD z_document->add_text
       EXPORTING
         TEXT = v_cln.
    * Adding Line
       CALL METHOD z_document->new_line.
    * Display the data
       CALL METHOD z_document->display_document
       EXPORTING
         parent = o_top_container.
       IF zcl_alvgrid IS INITIAL .
    *----Creating ALV Grid instance
         CREATE OBJECT zcl_alvgrid
         EXPORTING
           i_parent          = o_bottom_container
         EXCEPTIONS
           error_cntl_create = 1
           error_cntl_init   = 2
           error_cntl_link   = 3
           error_dp_create   = 4
           OTHERS            = 5.
         IF sy-subrc <> 0.
           MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
         ENDIF.
    * Calling the method of ALV to process top of page
         CALL METHOD zcl_alvgrid->list_processing_events
         EXPORTING
           i_event_name = 'TOP_OF_PAGE'
           i_dyndoc_id  = z_document.
    * Preparing field catalog.
         PERFORM T_FIELDCAT USING:
                    '1'        'BRNCD'      'BRAND'.
    *          'Column no' 'FIELDNAME' 'Column Heading' 
         WA_LAYOUT-CWIDTH_OPT = 'X'.
         WA_LAYOUT-ZEBRA = 'X'.
         WA_LAYOUT-SEL_MODE =  'A'.
    * Setting table for first display
         CALL METHOD ZCL_ALVGRID->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
           IS_LAYOUT                     = WA_LAYOUT
         CHANGING
           IT_OUTTAB                     = it_alv
           IT_FIELDCATALOG               = IT_FIELDCAT
         EXCEPTIONS
           INVALID_PARAMETER_COMBINATION = 1
           PROGRAM_ERROR                 = 2
           TOO_MANY_LINES                = 3
           OTHERS                        = 4.
         IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ELSE.
         CALL METHOD ZCL_ALVGRID->REFRESH_TABLE_DISPLAY
         EXCEPTIONS
           FINISHED = 1
           OTHERS   = 2.
         IF SY-SUBRC <> 0.
           MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
         ENDIF.
       ENDIF.
    ENDMODULE.                 " STATUS  OUTPUT
    MODULE USER_COMMAND_2000 INPUT.
       DATA: V_OK_CODE TYPE SY-UCOMM,
             V_SAVE_OK TYPE SY-UCOMM.
       V_OK_CODE = SY-UCOMM.
       V_SAVE_OK = V_OK_CODE.
       CASE SY-UCOMM.
         WHEN 'BACK'.
           SET SCREEN 1000.
         WHEN 'EXIT'.
           LEAVE program.
         WHEN OTHERS.
           SET SCREEN 1000.
       ENDCASE.
       CLEAR V_SAVE_OK.
       SET SCREEN 0.
       LEAVE SCREEN.
    ENDMODULE.                 " USER_COMMAND_2000  INPUT
    *&      Form  T_FIELDCAT
    *       text
    *      -->x   text
    *      -->y   text
    *      -->z   text
    FORM T_FIELDCAT  USING VALUE(X) TYPE ANY
           VALUE(Y) TYPE ANY
           VALUE(Z) TYPE ANY.
       WA_FIELDCAT-COL_POS = X.
       WA_FIELDCAT-FIELDNAME = Y.
       WA_FIELDCAT-COLTEXT  = Z.
       APPEND WA_FIELDCAT TO IT_FIELDCAT.
       CLEAR WA_FIELDCAT.
    ENDFORM.                      " T_FIELDCAT
    *&      Form  DISPLAY_ALV
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM DISPLAY_ALV .
       IF NOT it_alv[] IS INITIAL.
         CALL SCREEN 2000.
       ELSE.
         MESSAGE 'No data for Display' TYPE 'I'.
       ENDIF.
    ENDFORM.                    " DISPLAY_ALV

    Hello Jay,
    Calling methods, creating instances, casting etc are not OOP. When you say you've developed an OO-report you think OO, refer to this blog to see what i mean - Global Data in ABAP OO Programs
    BR,
    Suhas

  • How to create a border for a paragraph ?

    Can anyone tell me how to create a border for a paragraph ? Is this even possible without creating a table ?
    I would like to have the page header with a single line below it and the page footer with a single line above it. Inserting a line seems to force unnecessary space above of below the line and using a table seems to force a blank line below the table also creating unnecessary space.
    Thanks

    Thanks, I had the problem with this approach that the line never appeared on each page but adding to the section master would fix it.
    Still being able to set a border would be good! I did try using the text box but the border options are pretty inflexible. I was unable to just set the top or bottom borders. Did I miss something basic here or is this option just not available ?
    Any idea if this is coming in a future release ?

  • Need to create alv report to show pan card number.

    Hi,
    I need to create alv report to show employee and vendor  name , number ,  Pan card number .This is for hr module.
    could any one tell me table and fields for this and how I can relate them with foriegn and primary key.
    Regards,
    Moderator Message: Do your own work
    Edited by: kishan P on Oct 5, 2010 10:38 AM

    Yes, but it only has one generic Date column, no start date and end date. I can't use that twice in the prompt. Although I can specify it to be 'between', but I'm not sure I can pass values to both variables like that.
    Currently I have used Campaign Start Date and Campaign End Date to enter values in calender format to the variables.

  • Is it possbile to create ALV Grid using Class &  without using SE51

    Is it possible to create a alv grid using Class, with out using the screen painter(SE51).

    Hi Preethi,
    It is possible to creat ALV grid using class, provided u have to create a custom control in the screen dialog.
    Try with the foll code. This is an example for flight detail.
    DATA: container TYPE REF TO cl_gui_custom_container,
          alv_con TYPE REF TO cl_gui_alv_grid.
    data : it_sflight like table of wa with header line,
           g_fieldcat type lvc_t_fcat.
    /* Paste the code the PBO
        CREATE OBJECT container
          EXPORTING
            container_name              = 'C_SPFLI'. "Specify the container name which u created in the dialog screen.
        CREATE OBJECT alv_con
          EXPORTING
            i_parent          = container.
    /* Use the foll. to dislay the report
    CALL METHOD cl_grid->set_table_for_first_display
            EXPORTING
             I_STRUCTURE_NAME              = 'SFLIGHT'
            CHANGING
              it_outtab                     = it_sflight[]
              IT_FIELDCATALOG               = g_fieldcat.
    First create the container and then place the ALV in the container and for dislaying pass the necessary table.
    Hope this will useful for u.
    Get back if u r unable to do it.
    Regards
    Router

  • Create ALV with to containers with the option to drag fields

    HI All ,
    I need to create ALV report that the report have containers that you can drag
    some fields from one containers to the second one (if its not possible maybe to mark some fields and push on button and the marked fields will be shown on the second container ) there is sample that i can use
    and can help me to do that ?
    Regards
    Alex

    Hi Alex,
    You can do that with OOP ALV.
    You need to create two custom containers on the screen for displaying two layouts. Then with the help of ondrag, ondrop and ondropcomplete events you can drag a record from one layout to drop into another table.
    Please refer report 'BCALV_TEST_GRID_DRAG_DROP' which has detailed description and explanation for each of the required events' definition and implementation.
    Hope this helps.
    Thanks.
    Abhijeet
    Edited by: Abkaps on Jun 28, 2010 12:50 PM

  • Sample Program for Creating ALV Tree

    Hello Guys,
    Can some One Send me some sample program for creating ALV Tree.
    my Requirement is like below Diagram.
    ALV Tree |   ALV GrId
       |
       |
    I want to also about event in ALV , As per requirement when user select (Double click or press any push button) a node of ALV Tree That Node (Contain Sales order and as a child billing Doc No)  In the ALV Grid All the details about Sales order Will be display.
    Please guide me.
    Thanks
    Swati....

    Hi..
    check the following demo programs:
    RSDEMO_DRAG_DROP_EDIT_TREE
    RSDEMO_DRAG_DROP_TREE_MULTI
    BCALV_GRID_DND_TREE
    BCALV_GRID_DND_TREE_SIMPL
    BCALV_TEST_COLUMN_TREE
    BCALV_TEST_SIMPLE_TREE
    BCALV_TREE_01
    BCALV_TREE_02
    BCALV_TREE_03
    BCALV_TREE_04
    BCALV_TREE_05
    BCALV_TREE_06
    BCALV_TREE_DEMO
    BCALV_TREE_DND
    BCALV_TREE_DND_MULTIPLE
    BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_EVENT_RECEIVER
    BCALV_TREE_ITEMLAYOUT
    BCALV_TREE_MOVE_NODE_TEST
    BCALV_TREE_SIMPLE_DEMO
    BCALV_TREE_VERIFY
    hope this helps..
    -kothai

  • Is it possible, automatically, to create a border when a text is inserted.

    Is it possible, automatically, to create a border when a text is inserted.
    Example:
    List with subjects is:
    Name:
    address:
    etcetera...
    When the first subject (Name) is typed then a border will appear around the whole text
    Is this possible in Indesgn?
    Hans

    No. Indesign can't draw borders around text during an interaction. You can either set a border for a text frame or draw an unfilled rectangle around text, which then is an overlaying object, but this can't be automated.
    For an interactive PDF with forms, you can assign actions to a form field, but none to make a frame visible, a frame that would surround the text or show a border on one side.

  • I want to create a border...

    but it is not working!!!!!!! I want to create a border around a box. What I have done is create 2 separate transform groups one with the filled boxes and another with lines. The border works fine if it is just around one box in any position but when it is placed around a group of boxes it doesn't work! Consider the board a boardgame board... there have to be borders around the boxes so that the users can know where a square ends and begins spent all day on this today... didn't think that something so simple would be so difficult!! Thank you in advance for helping! Below is the code
    //This is the code for creating the squares
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.image.TextureLoader;
    public class Square
         public static final float LENGTH = (float)0.05;
         public static final float DEPTH = (float)0.0125;
         public int column;
         public int row;
         public float x;
         public float y;
         public float z;
         private TransformGroup trans;
         private TransformGroup blackLines;
         private Box square;
         private Box lineSquare;
         private Group subGroup;
         private Group lineGroup;
         public Square(Texture boardpic, int column, int row)
              this.column = column;
              this.row = row;
              subGroup = new BranchGroup();
              lineGroup = new BranchGroup();
              Color3f grey = new Color3f(0.5f,0.5f,0.5f);
              Color3f black = new Color3f(1.0f,1.0f,1.0f);
         Transform3D t = new Transform3D( );
              float distanceToEdge = ( LENGTH * (float)4.0 ) - ( LENGTH / (float)2.0 );
              //System.out.println(distanceToEdge);
              trans= new TransformGroup();
              blackLines = new TransformGroup();
              x = -distanceToEdge + ( column * LENGTH ) ;
         y = distanceToEdge - ( row * LENGTH ) ;
              z = -DEPTH;
    Vector3f v = new Vector3f(x, y, z);
              t.setTranslation(v);
              trans.setTransform(t);
              trans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              trans.setCapability(TransformGroup.ALLOW_TRANSFORM_READ);
              blackLines.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              blackLines.setTransform(t);
              //sets a black line around a square                    
              Appearance blackLineApp = new Appearance();
              blackLineApp.setColoringAttributes(new ColoringAttributes(black,ColoringAttributes.NICEST));
              PolygonAttributes blPolyAt=new PolygonAttributes(PolygonAttributes.POLYGON_LINE,
                                            PolygonAttributes.CULL_FRONT,0f);
              //blPolyAt.setPolygonOffset(100.0f);
              //blPolyAt.setPolygonOffsetFactor(100.0f);
              blackLineApp.setPolygonAttributes(blPolyAt);
              lineSquare = new Box((LENGTH / 2.0f), (LENGTH / 2.0f), DEPTH, blackLineApp);
              subGroup.addChild(lineSquare);
              //Attributes for creating the filled box
              Appearance appearance = new Appearance();
              PolygonAttributes polyAt=new PolygonAttributes(PolygonAttributes.POLYGON_FILL,
                                            PolygonAttributes.CULL_NONE,0f);
              polyAt.setPolygonOffset(0.1f);
              polyAt.setPolygonOffsetFactor(0.1f);
              appearance.setPolygonAttributes(polyAt);
              appearance.setColoringAttributes(new ColoringAttributes(grey,ColoringAttributes.NICEST));
              appearance.setTexture(boardpic);
              TextureAttributes texAttr = new TextureAttributes();
              texAttr.setTextureMode(TextureAttributes.MODULATE);
              appearance.setTextureAttributes(texAttr);     
              Box square = new com.sun.j3d.utils.geometry.Box((LENGTH / 2.0f), (LENGTH / 2.0f), DEPTH, appearance);
              trans.addChild(square);
              subGroup.addChild(trans);
              subGroup.addChild(blackLines);
         public Group getGroup()
              return subGroup;
         public Group getLines()
              return lineGroup;
    //this the code for creating the board
    import java.util.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.awt.GraphicsConfiguration;
    import javax.media.j3d.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.universe.*;
    import com.sun.j3d.utils.geometry.*;
    import com.sun.j3d.utils.image.TextureLoader;
    public class Board extends JFrame
         public Square[][] fullBoard = new Square[23][23];
         public Board()
              GraphicsConfiguration config = SimpleUniverse.getPreferredConfiguration();
              Canvas3D c = new Canvas3D(config);
              BranchGroup bg = new BranchGroup();
              TextureLoader picload = new TextureLoader("brown001.gif", this);
              Texture texture = picload.getTexture();
              texture.setMagFilter(Texture.BASE_LEVEL_LINEAR | Texture.NICEST);
              texture.setMinFilter(Texture.BASE_LEVEL_LINEAR | Texture.NICEST);
              for(int col = 1; col < 23; col++)
                   for (int row = 1; row < 23; row++)
                        fullBoard[col][row]=new Square(texture, (col-11), (row-11));
                        bg.addChild(fullBoard[col][row].getGroup());
                        //bg.addChild(fullBoard[col][row].getLines());
              TransformGroup tg = new TransformGroup();
              tg.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
              Transform3D rotation = new Transform3D();
              rotation.rotX(java.lang.Math.toRadians( -45 ));
              tg.setTransform(rotation);
              tg.addChild(bg);
              BranchGroup scene = new BranchGroup();
              scene.addChild(tg);
              scene.compile();
              SimpleUniverse u = new SimpleUniverse();
              u.getViewingPlatform().setNominalViewingTransform();
              u.addBranchGraph(scene);
              System.out.println("I am here now");
         public static void main (String [] args)
              Board b = new Board();
    Thanks again...
    -JET-

    Sorry the line:
    subGroup.addChild(lineSquare);
    should read:
    blackLines.addChild(lineSquare);

  • Creating a border around objects?

    This should be simple but as a human being I'm useless and I can't figure it out
    I want to create a border around images like the triangles on
    this website.
    http://www.htmlandcssbook.com/code-samples/chapter-15/example.html
    Baby steps please, as I said I'm an invalid

    I'm 73 you will get that math soon hopefully you also get to 73 some day take your time. By 15 I had to take it in school.
    Equilateral triangle have three equal length sides and all three angle are 60degree  only these will expand with equal size borders added on the three sides.. Some triangle will expand with two equal size borders other all the borders will be different sizes. Symmetric things like squares and circles expand evenly.
    Equilateral triangle:
    You may find this helpful http://www.mathsisfun.com/geometry/symmetry-line-plane-shapes.html

  • Creating a border

    i need help creating a border around an image, that follows the shape of the image around 15mm away. this image is going to be printed onto cardboard to create a cardboard cut out. the border will be the cutting lines. i have been teaching myself so far but i cant think of the easiest way to solve this.

    It's difficult to offer specific advice without really knowing the nature of the artwork, but here's one way that might be applicable:
    Artwork composed of vector shapes. Choose Edit > Copy, then Edit > Paste in Front.
    With the pasted shapes still selected Click the Unite button in the Pathfinder panel to unite the selected shapes into one:
    With the new united shape still selected, choose Object > Path > Offset Path and enter a value of 15mm:

  • Steps to create ALV grid

    Hi All
    I tried created ALV grid control,but facing error in the declaration of the data variables.
    Please help ..where do we declare data for internal table and reference variables for
    container and grid in the program.Acc. to its in the TOP include part.But its giving error
    that data not accessible.
    Thanks in advance..
    Abhinandan Kumar

    Hi,
    Find the code below.
    REPORT ZTESTQ.
    TABLES: t001.
    *INTERNAL TABLE
    DATA: gt_001 TYPE STANDARD TABLE OF t001.
    *NAME OF CUSTOM CONTAINER ADDED ON SCREEN
    DATA : gd_container_alv TYPE scrfname VALUE 'ALV_CON'.
    *ALV GRID CONTAINER INSTANCE
    DATA : go_cus_alv_container TYPE REF TO cl_gui_custom_container.
    DATA : go_grid TYPE REF TO cl_gui_alv_grid.
    *FIELD CATALOG
    DATA : gt_fieldcat TYPE lvc_t_fcat,
           gs_fieldcat TYPE lvc_s_fcat.
    *LAYOUT
    DATA : gs_layout TYPE lvc_s_layo.
    *Class Definition
    CLASS gcl_alv DEFINITION.
      PUBLIC SECTION.
        METHODS populate_tab.
        METHODS create_field_catalog.
        METHODS create_layout.
        METHODS display_alv.
        METHODS refresh_alv.
      PRIVATE SECTION.
       DATA : bukrs TYPE t001-bukrs.
    ENDCLASS.
    *Class implementation
    CLASS gcl_alv IMPLEMENTATION.
      METHOD populate_tab.
        SELECT * FROM t001
                        INTO TABLE gt_001.
      ENDMETHOD.
      METHOD create_field_catalog.
        gs_fieldcat-col_pos = '1'.
        gs_fieldcat-fieldname = 'BUKRS'.
        gs_fieldcat-tabname = 'gt_001'.
        gs_fieldcat-coltext = 'Company Code'.
        APPEND gs_fieldcat TO gt_fieldcat.
        gs_fieldcat-col_pos = '2'.
        gs_fieldcat-fieldname = 'BUTXT'.
        gs_fieldcat-tabname = 'gt_001'.
        gs_fieldcat-coltext = 'CC Text'.
        APPEND gs_fieldcat TO gt_fieldcat.
      ENDMETHOD.
      METHOD create_layout.
        gs_layout-grid_title = 'Company Code Report'.
        gs_layout-zebra = 'X'.
      ENDMETHOD.
      METHOD display_alv.
       CALL METHOD GO_GRID->SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING
            I_DEFAULT                     = 'X'
            IS_LAYOUT                     = gs_layout
         CHANGING
            IT_OUTTAB                     = gt_001
            IT_FIELDCATALOG               = gt_fieldcat
         EXCEPTIONS
            INVALID_PARAMETER_COMBINATION = 1
            PROGRAM_ERROR                 = 2
            others                        = 3.
      ENDMETHOD.
      METHOD refresh_alv.
        REFRESH gt_001.
        SELECT * FROM t001
                 INTO TABLE gt_001.
        CALL METHOD GO_GRID->REFRESH_TABLE_DISPLAY.
      ENDMETHOD.
    ENDCLASS.
    DATA : go_alv TYPE REF TO gcl_alv.
    START-OF-SELECTION.
      CREATE OBJECT go_alv.
      CALL METHOD go_alv->populate_tab.
      CALL SCREEN 0100.
    *&      Module  PBO_100  OUTPUT
          text
    MODULE PBO_100 OUTPUT.
    *Set the GUI status
      SET PF-STATUS '0100'.
    *Create the container to be placed in the screen
      CREATE OBJECT GO_CUS_ALV_CONTAINER
        EXPORTING
          CONTAINER_NAME              = gd_container_alv.
    *Create the ALV Grid Container within the parent container
    CREATE OBJECT GO_GRID
       EXPORTING
          I_PARENT          = go_cus_alv_container.
      CALL METHOD go_alv->create_field_catalog.
      CALL METHOD go_alv->create_layout.
      CALL METHOD go_alv->display_alv.
    ENDMODULE.                 " PBO_100  OUTPUT
    *&      Module  PAI_100  INPUT
          text
    MODULE PAI_100 INPUT.
      CASE sy-ucomm.
        WHEN 'REFRESH'.
          CALL METHOD go_alv->refresh_alv.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        WHEN 'EXIT'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " PAI_100  INPUT

  • LR3 How to create a border preset

    Hi
    Is it possible to create a standard border for my images I upload to Flickr.   I have the Flickr LR3 export set up for a particular size. Sometimes I have to create a border in PS CS5 before exporting to Flickr. Its a bit of a pain so wondered if somehow I could create a standard sort of preset which I could select for my Flickr uploading
    Thanks

    For that I would look at Mogrify

  • Create ALVs in Webdynpro

    Hi
    Does sombedy has some information for create ALVs  in Webdynpro for begginer.
    I searched in forum but i found threads with specific doubts for ALVs already createds, not for create an ALV since begin.
    Any help will be usefull.
    Regards
    Frank

    Hi Frank,
    Pelase check this wiki, step by step ALV Creation.
    http://wiki.sdn.sap.com/wiki/display/WDABAP/CreatinganALVListinWebDynpro+Application
    http://wiki.sdn.sap.com/wiki/display/WDABAP/SAPListViewer-ALV
    http://www.scribd.com/doc/3335981/Creating-a-WebDynpro-ALV-Application
    http://sapient.wordpress.com/2007/06/15/programming-the-alv-configuration-model-in-web-dynpro-for-abap/
    Cheers,
    Kris.

  • Creating a border in a poster

    I want to create a border for a poster I'm making. I put a white rectangle on the poster. I tried to put another rectangle, smaller, in the center to create a transparent area so that just the "border" remained. I can't seem to get the inner rectangle to turn transparent.
    Recommendations are appreciated.
    Thanks.

    Well you want the layer to be transparent. Double click on the background name, a dialog will appear m saying new layer. Rename it frame
    Draw the marquis for the opening rectangle witht he marquis tool
    Hit delete
    you will now see the transparency grid.
    Now you can place as many images on different layers below it so you can reposition them t your liking.
    You can turn one on at a time.
    I assume you want to use more than one image there are other ways if you want different size borders for different sizes images.
    Here is a screen shot of the result.

Maybe you are looking for