Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

regarding the function module 'REUSE_ALV_GRID_DISPLAY'

Former Member
0 Likes
836

wat do these things do in 'REUSE_ALV_GRID_DISPLAY' function module and how to use them??

IS_VARIANT =

IT_EVENTS =

IT_EVENT_EXIT =

IS_PRINT =

IS_REPREP_ID =

I_SCREEN_START_COLUMN = 0

I_SCREEN_START_LINE = 0

I_SCREEN_END_COLUMN = 0

I_SCREEN_END_LINE = 0

I_HTML_HEIGHT_TOP = 0

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
670

Hi!

Check out this link...

http://www.erpgenie.com/sap/abap/controls/alvgrid.htm

Regards

Tamá

4 REPLIES 4
Read only

JozsefSzikszai
Active Contributor
0 Likes
670

you should have a look at the documentation of the FM, after that you can come back with <i>specific</i> questions

Read only

Former Member
0 Likes
671

Hi!

Check out this link...

http://www.erpgenie.com/sap/abap/controls/alvgrid.htm

Regards

Tamá

Read only

Former Member
0 Likes
670

Hi Nikesh,

check this standard program where it_special_groups is used

BALVSD01

If in the field catalog the columns were grouped together with field SP_GROUP, you must pass a table with texts for these groups.

In the current layout window, it is then possible to use a list box to restrict column selection to one of these groups.

or go through this link which ll help you to give the details about REUSE_ALV_GRID_DISPLAY'

http://sap.ittoolbox.com/code/archives.asp?i=10&a=c

Reward if helpful.

Regards,

Harini.S

Read only

Former Member
0 Likes
670

Hi

See the function module Documentation,

Passing an EXIT routine indicates to the ALV that the application wants to respond to certain function codes.

Generally, these are function codes that are unknown to the ALV (that is, are not standard ALV functions) and that were defined and set by a user status.

See also the documentation on parameter I_CALLBACK_PF_STATUS_SET.

The interface of the form routine specified must be defined as follows:

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

Parameter R_UCOMM contains the function code triggered.

Structure RS_SELFIELD contains the following information:

tabname : Name of the internal output table

tabindex : Index of the internal output table

fieldname: Field name

endsum : Cursor is located on the totals line

sumindex : If >0, the cursor is located on a subtotals line

value : Value of the field on the list

refresh : (Exporting) List should be set up again

col_stable:(Exporting) Keep column position when list is set up again

row_stable:(Exporting) Keep row position when list is set up again

exit :(Exporting) Exit list (and ALV)

before_action: Call before standard action execution

after_action : Call after standard action execution, before list setup

ignore_multi : Internal use

sel_tab_field: Internal use

The EXIT routine is called whenever a function unknown to the ALV is triggered or if the routine call before/after the execution of a standard function code has been defined by interface parameter IT_EVENT_EXIT.

See also the documentation on parameter IT_EVENT_EXIT.

The function code and the current cursor position are then passed on to the calling program through the EXIT routine.

If the user has selected multiple rows by selecting checkboxes, the output table field designated as the checkbox contains the current state of the checkbox in the list.

Top_Of_page :

If the caller specifies an EXIT routine, this routine must have the following form:

FORM top_of_page.

Module REUSE_ALV_COMMENTARY_WRITE can then be called within the EXIT routine. This module is responsible for formatting the header information and also ensures online HTML formatting. In the print preview or in batch mode, the text passed is then output in the normal format.

If module REUSE_ALV_COMMENTARY_WRITE cannot be used, you must use two parameters instead. In I_CALLBACK_TOP_OF_PAGE you pass the form routine that is responsible for normal formatting in batch mode or in the print preview mode. The form routine that is responsible for online formatting, is passed in parameter I_CALLBACK_HTML_TOP_OF_PAGE. If one of these parameters is not filled, top-of-page is not output in the respective mode.

The important parameters are :

I. Export :

i. I_callback_program : report id

ii. I_callback_pf_status_set : routine where a user can set his own pf status or change the functionality of the existing pf status

iii. I_callback_user_command : routine where the function codes are handled

iv. I_structure name : name of the dictionary table

v. Is_layout : structure to set the layout of the report

vi. It_fieldcat : internal table with the list of all fields and their attributes which are to be printed (this table can be populated automatically by the function module REUSE_ALV_FIELDCATALOG_MERGE

vii. It_events : internal table with a list of all possible events of ALV and their corresponding form names.

II. Tables :

i. t_outtab : internal table with the data to be output

<b>REward if usefull</b>