Double-click ALV to call the transaction code and input parameters

Source: Internet
Author: User
Call Function 'Reuse _ alv_grid_display'
Exporting
I _callback_program = g_repid
I _callback_user_command = ' User_callback'
I _structure_name = 'T_ output'
I _grid_title = 'Document list'
Is_layout = gs_layout
Is_variant = g_variant
I _default = 'X'
I _save = 'A'
It_fieldcat = gt_fieldcat []
It_sort = gt_sort []
It_events = gt_events []
Tables
T_outtab = it_output
Exceptions
Program_error = 1
Others = 2 .
Endform . "Display_data

Form User_callback Using Rf_ucomm Type Sy-ucomm
Rs_selfield Type Slis_selfield.
Case Rf_ucomm.
When '& Ic1' .
Read Table It_output Index Rs_selfield-tabindex Assigning <Fs_output>.
If SY-SUBRC = 0 .
Set Parameter ID : 'Bln' Field <Fs_output>-belnr ." Parameter ID F1> technical information> parameter ID can be used to obtain
Set Parameter ID:'Buk' Field<Fs_output>-bukrs.
Set Parameter ID:'Gjr' Field<Fs_output>-gjahr.
Call Transaction 'Fb03' And Skip First Screen." Skip First Screen Ignore selection screen
Endif.
Endcase.
Endform."User_callback

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.