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 Display

Former Member
0 Likes
408

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

3 REPLIES 3
Read only

Former Member
0 Likes
388

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.

Read only

Former Member
0 Likes
388

Use hierarchial alv display

Read only

former_member404244
Active Contributor
0 Likes
388

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