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

alv interacive report issue

Former Member
0 Likes
589

Hi this is Saroj.

i am creating a alv interactive report using VBRK VBRP tables.

but i am not getting the secondary list for VBRP while double clicking VBELN field.

i am giving my code.

FORM USER_COMMAND P_FCODE LIKE SY-UCOMM

P_SELFIELD TYPE SLIS_SELFIELD.

CASE P_FCODE.

WHEN '&IC1'.

READ TABLE IT_VBRK INTO WA_VBRK INDEX P_SELFIELD-TABINDEX.

PERFORM SELECT.

PERFORM FIELDCATALOG.

PERFORM GRID.

ENDCASE.

FORM SELECT.

SELECT FIELDS-------OF VBRP

END FORM.

FORM FIELDCATLOG.

BUILLD CATALOG------

ENDFORM.

FORM GRID.

CALL GRID_DISPLAY.----

ENDFORM.

But i am not getting secondary list by clicking VBELN.

so please clarify my issue and at least a complete code of alv ineter acitve report.

regards

saroj kanta naharana

Hi this is Saroj.

i am creating a alv interactive report using VBRK VBRP tables.

but i am not getting the secondary list for VBRP while double clicking VBELN field.

i am giving my code.

FORM USER_COMMAND P_FCODE LIKE SY-UCOMM

P_SELFIELD TYPE SLIS_SELFIELD.

CASE P_FCODE.

WHEN '&IC1'.

READ TABLE IT_VBRK INTO WA_VBRK INDEX P_SELFIELD-TABINDEX.

PERFORM SELECT.

PERFORM FIELDCATALOG.

PERFORM GRID.

ENDCASE.

FORM SELECT.

SELECT FIELDS-------OF VBRP

END FORM.

FORM FIELDCATLOG.

BUILLD CATALOG------

ENDFORM.

FORM GRID.

CALL GRID_DISPLAY.----

ENDFORM.

But i am not getting secondary list by clicking VBELN.

so please clarify my issue and at least a complete code of alv ineter acitve report.

regards

saroj kanta naharana

4 REPLIES 4
Read only

Former Member
0 Likes
560

hi saroj

when ur writing form

use the words using for ucomm variable

and changing for selfield variable

rest is fine

it wrks

bye

amar

Read only

Former Member
0 Likes
560

Hi,

call function 'REUSE_ALV_GRID_DISPLAY'
   exporting
       i_callback_program             = sy-repid
      I_CALLBACK_USER_COMMAND        = 'USER_COMMAND' "---> Did you pass the Form name in 1st alv
       is_layout                      = lt_layout
       it_fieldcat                    = lt_fcat
    tables
      t_outtab                       = lt_mat
   exceptions
     program_error                  = 1
     others                         = 2

Read only

Former Member
0 Likes
560

Hi,

Please pass the user_command FM name to i_callback_user_command parameter of the ALV display FM. or you can update the events table for the record having the event 'user_command' with your custom created form name.

Thanks,

Suma.

Read only

Former Member
0 Likes
560

answerd