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

interactive alv tutorial

Former Member
0 Likes
1,445

Can anyone tell how to learn ALV interactive?

how can I learn it easily? Pls use the function modules since i dont have any idea about the classes ....

Whats the easies and best way ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,387

Hi,

Follow the below links.........

ALV

http://www.geocities.com/mpioud/Abap_programs.html

Conversion ALV to E-mail,PDF

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

http://www.sapdevelopment.co.uk/reporting/reportinghome.htm

See the example code..........

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = i_repid

i_callback_user_command = 'USER_COMMAND_PERNR'

it_fieldcat = header

is_layout = gt_layout

i_callback_top_of_page = 'TOP-OF-PAGE1'

i_grid_title = text-t35

it_sort = gt_sort[]

i_default = 'X'

i_save = 'U'

is_variant = gt_variant

it_events = gt_events

TABLES

t_outtab = ITAB.

clear itab.

----


  • FORM USER_COMMAND_PERNR

----


FORM USER_COMMAND_PERNR USING u_ucomm LIKE sy-ucomm

us_selfield TYPE slis_selfield."#EC CALLED

CASE u_ucomm.

when '&IC1'.

if us_selfield-fieldname = 'PERNR'.

  • read table ITAB index us_selfield-tabindex.

  • set parameter id 'PER' field ITAB-PERNR.

set parameter id 'PER' field us_selfield-value.

call transaction 'XYZ' and skip first screen.

endif.

ENDCASE.

ENDFORM. " USER_COMMAND_PERNR

Thanks.

If this helps you reward with points.

10 REPLIES 10
Read only

Former Member
0 Likes
1,387
Read only

Former Member
0 Likes
1,387

HI,

give me your mail id ..i'll forward the tutorial to you..

regards

satesh

Read only

0 Likes
1,387

Hi satesh,

Can you forward the material to me too. My mail id is vijayk_sap@yahoo.co.in

Regards,

Varun.

Read only

0 Likes
1,387

my email is georgy.abraham@gmail.com

Read only

0 Likes
1,387
Read only

jayanthi_jayaraman
Active Contributor
0 Likes
1,387

Hi,

Check this link and kindly reward points by clicking the star on the left of reply,if it helps.

http://www.geocities.com/mpioud/Abap_programs.html

Read only

Former Member
0 Likes
1,387

Hi George,

Just message me your mail ID to ramanan_9@yahoo.co.in, will send you a document on ALV. It will be very helpful.

Regs,

Venkat Ramanan

Read only

0 Likes
1,387

Please send me a copy to saratbabu4u@yahoo.com

Regards,

Sarat

Read only

Former Member
0 Likes
1,388

Hi,

Follow the below links.........

ALV

http://www.geocities.com/mpioud/Abap_programs.html

Conversion ALV to E-mail,PDF

http://www.sapdevelopment.co.uk/reporting/rep_spooltopdf.htm

http://www.sapdevelopment.co.uk/reporting/reportinghome.htm

See the example code..........

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = i_repid

i_callback_user_command = 'USER_COMMAND_PERNR'

it_fieldcat = header

is_layout = gt_layout

i_callback_top_of_page = 'TOP-OF-PAGE1'

i_grid_title = text-t35

it_sort = gt_sort[]

i_default = 'X'

i_save = 'U'

is_variant = gt_variant

it_events = gt_events

TABLES

t_outtab = ITAB.

clear itab.

----


  • FORM USER_COMMAND_PERNR

----


FORM USER_COMMAND_PERNR USING u_ucomm LIKE sy-ucomm

us_selfield TYPE slis_selfield."#EC CALLED

CASE u_ucomm.

when '&IC1'.

if us_selfield-fieldname = 'PERNR'.

  • read table ITAB index us_selfield-tabindex.

  • set parameter id 'PER' field ITAB-PERNR.

set parameter id 'PER' field us_selfield-value.

call transaction 'XYZ' and skip first screen.

endif.

ENDCASE.

ENDFORM. " USER_COMMAND_PERNR

Thanks.

If this helps you reward with points.

Read only

Former Member
0 Likes
1,387

Hi,

Go to transaction se83.

choose Control on the left side .

Then double click ALV Grid and choose Examples.

You can get a lot of examples.

Hope it helps.