2009 May 07 4:16 PM
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
2009 May 07 4:28 PM
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
2009 May 07 4:31 PM
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
2009 May 07 4:45 PM
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.
2009 Jun 12 6:23 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |