This document shows code for creating an ALV grid in ABAP to display data from a MARA internal table. It creates a custom container object and assigns it to a grid object. The grid's SET_TABLE_FOR_FIRST_DISPLAY method is called to display the MARA data in the grid, which is then displayed on a screen.
Attacking and defending HTML5 postMessage in mobile websitesLukas Klein
Inspired by the paper "The Postman Always Rings Twice" by Sooel Son and Vitaly Shmatikov (https://www.cs.utexas.edu/~shmat/shmat_ndss13postman.pdf) I researched how many of the dedicated mobile sites of the Alexa Top 10.000 have vulnerable postMessage receivers. This was part of a talk I gave at my uni, the Ruhr University Bochum.
Grave denuncia en contra de transnacional minera Vale que expone sus métodos ...Crónicas del despojo
E-mails, documentos, fotos y denuncias de un ex responsable por la seguridad de la Vale presentan como la empresa espiona movimientos sociales, sus propios empleados y hasta periodistas para defender sus intereses.
Attacking and defending HTML5 postMessage in mobile websitesLukas Klein
Inspired by the paper "The Postman Always Rings Twice" by Sooel Son and Vitaly Shmatikov (https://www.cs.utexas.edu/~shmat/shmat_ndss13postman.pdf) I researched how many of the dedicated mobile sites of the Alexa Top 10.000 have vulnerable postMessage receivers. This was part of a talk I gave at my uni, the Ruhr University Bochum.
Grave denuncia en contra de transnacional minera Vale que expone sus métodos ...Crónicas del despojo
E-mails, documentos, fotos y denuncias de un ex responsable por la seguridad de la Vale presentan como la empresa espiona movimientos sociales, sus propios empleados y hasta periodistas para defender sus intereses.
How to capture a variable in C# and not to shoot yourself in the footPVS-Studio
Back in 2005, with the release of C# 2.0 standard we got a possibility to pass a variable to the body of an anonymous delegate by capturing it from the current context. In 2008 the C# 3.0 brought us lambdas, user anonymous classes, LINQ requests and much more. Now it January, 2017 and the majority of C# developers are looking forward to the release of the C# 7.0 standard that should provide us a bunch of new useful features. However, there are still old features that need to be fixed. That's why there are plenty of ways to shoot yourself in the foot. Today we are going to speak about one of them, and it is related with quite an unobvious mechanism of variable capture in the body of anonymous functions in C#.
How to capture a variable in C# and not to shoot yourself in the footSofia Fateeva
Back in 2005, with the release of C# 2.0 standard we got a possibility to pass a variable to the body of an anonymous delegate by capturing it from the current context. In 2008 the C# 3.0 brought us lambdas, user anonymous classes, LINQ requests and much more. Now it January, 2017 and the majority of C# developers are looking forward to the release of the C# 7.0 standard that should provide us a bunch of new useful features. However, there are still old features that need to be fixed. That's why there are plenty of ways to shoot yourself in the foot. Today we are going to speak about one of them, and it is related with quite an unobvious mechanism of variable capture in the body of anonymous functions in C#.
Virtual machines are used for very different tasks. Personally I have been using VirtualBox for many
years to test software and simply study various Linux distributions. And now, after years of using the
tool and encountering undefined behavior every now and then, I've decided to make use of my
experience in analysis of open-source projects and check the source code of Oracle VM Virtual Box.In
this article, I will continue describing the numerous suspicious fragments found in the project.
The first part of the article: Checking Oracle VM VirtualBox. Part 1.
How to capture a variable in C# and not to shoot yourself in the footPVS-Studio
Back in 2005, with the release of C# 2.0 standard we got a possibility to pass a variable to the body of an anonymous delegate by capturing it from the current context. In 2008 the C# 3.0 brought us lambdas, user anonymous classes, LINQ requests and much more. Now it January, 2017 and the majority of C# developers are looking forward to the release of the C# 7.0 standard that should provide us a bunch of new useful features. However, there are still old features that need to be fixed. That's why there are plenty of ways to shoot yourself in the foot. Today we are going to speak about one of them, and it is related with quite an unobvious mechanism of variable capture in the body of anonymous functions in C#.
How to capture a variable in C# and not to shoot yourself in the footSofia Fateeva
Back in 2005, with the release of C# 2.0 standard we got a possibility to pass a variable to the body of an anonymous delegate by capturing it from the current context. In 2008 the C# 3.0 brought us lambdas, user anonymous classes, LINQ requests and much more. Now it January, 2017 and the majority of C# developers are looking forward to the release of the C# 7.0 standard that should provide us a bunch of new useful features. However, there are still old features that need to be fixed. That's why there are plenty of ways to shoot yourself in the foot. Today we are going to speak about one of them, and it is related with quite an unobvious mechanism of variable capture in the body of anonymous functions in C#.
Virtual machines are used for very different tasks. Personally I have been using VirtualBox for many
years to test software and simply study various Linux distributions. And now, after years of using the
tool and encountering undefined behavior every now and then, I've decided to make use of my
experience in analysis of open-source projects and check the source code of Oracle VM Virtual Box.In
this article, I will continue describing the numerous suspicious fragments found in the project.
The first part of the article: Checking Oracle VM VirtualBox. Part 1.
GLPK stands for GNU Linear Programming Kit
It was developed, and is maintained, by Andrew Makhorin
Department for Applied Informatics, Moscow Aviation Institute
1. REPORT zgs_simple_alv.
DATA : it_mara TYPE TABLE OF mara.
DATA : container TYPE REF TO cl_gui_custom_container,
grid TYPE REF TO cl_gui_alv_grid.
SELECT * FROM mara INTO TABLE it_mara UP TO 10 ROWS.
CREATE OBJECT container
EXPORTING
* PARENT =
container_name = 'CONTAINER'
* STYLE =
* LIFETIME = lifetime_default
* REPID =
* DYNNR =
* NO_AUTODEF_PROGID_DYNNR =
* EXCEPTIONS
* CNTL_ERROR = 1
* CNTL_SYSTEM_ERROR = 2
* CREATE_ERROR = 3
* LIFETIME_ERROR = 4
* LIFETIME_DYNPRO_DYNPRO_LINK = 5
* others = 6
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CREATE OBJECT grid
EXPORTING
* I_SHELLSTYLE = 0
* I_LIFETIME =
i_parent = container
* I_APPL_EVENTS = space
* I_PARENTDBG =
* I_APPLOGPARENT =
* I_GRAPHICSPARENT =
* I_NAME =
* I_FCAT_COMPLETE = SPACE
* 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.
CALL METHOD grid->set_table_for_first_display
EXPORTING
* I_BUFFER_ACTIVE =
* I_BYPASSING_BUFFER =
* I_CONSISTENCY_CHECK =
i_structure_name = 'MARA'
* IS_VARIANT =
* I_SAVE =
* I_DEFAULT = 'X'
2. * IS_LAYOUT =
* IS_PRINT =
* IT_SPECIAL_GROUPS =
* IT_TOOLBAR_EXCLUDING =
* IT_HYPERLINK =
* IT_ALV_GRAPHICS =
* IT_EXCEPT_QINFO =
* IR_SALV_ADAPTER =
CHANGING
it_outtab = it_mara
* IT_FIELDCATALOG =
* IT_SORT =
* IT_FILTER =
* 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.
CALL SCREEN 100.
http://www.erpgenie.com/abap/controls/alvgrid.htm
Go to the following link which gives you sample codes with brief description of
the programs.
OOALV
Then coming to steps for creation of ALV in OOABAP.
1. Create a program in se38 and just activate it without any code for now.
2. Go to module pool and create a screen, put a custom container control on to
the screen. (You will find this control on right side tool box).
3. Give a name to the control created in step 2.
4. Activate the screen.
5. Come to the program declare two variables to hold instances of 2 classes
CL_GUI_CUSTOM_CONTAINER, CL_GUI_ALV_GRID.
6. create an instance of the class CL_GUI_CUSTOM_CONTAINER passing container
name created in step 3.
7. create an instance of the class CL_GUI_ALV_GRID passing INSTANCE VARIBALE
name created in step 6.
3. 8. using the ref. variable of previous step call method SET_TABLE
FORFIRST_DISPLAY method and pass structure name and internal table containing
data.
9. then call screen created in step 2.
Hey... execute the program . You are there with your OOALV.