‎2008 Jan 31 5:33 AM
hi i want some scenario in ALV's, that is
i want to display a row and for that row only in perticular column diff vales so like rows i have to display .
means a row with multiple columns i need how to do it tell me .
EX: for 1 sales order 3 items so i have to display 1 sales order only but with 3 rows as items .
THX
‎2008 Jan 31 5:37 AM
hi,
Goto transaction SE38.
Enter BCALV* and click on F4.
All ALV programs will be listed with whatevr scenarios u want.
Reward points,.
Regards,
Simi.
‎2008 Jan 31 5:38 AM
‎2008 Jan 31 5:50 AM
Hi,
U can do it with sort table in alv ..check the below sample code
ALV data declarations
data: it_sortcat type slis_sortinfo_alv occurs 0,
wa_sort like line of it_sortcat.
perform build_sortcat.
&----
*& Form build_sortcat
&----
Build Sort catalog
----
FORM build_sortcat .
wa_sort-spos = 1.
wa_sort-fieldname = VBELN'.
APPEND wa_sort TO it_sortcat.
This function module is used for displaying the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = SY-repid
it_fieldcat = i_fieldcat
it_sort = iT_sortcat
TABLES
t_outtab = i_final
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Regards,
nagaraj