0% found this document useful (0 votes)
38 views2 pages

Abap Object Model PDF

Uploaded by

ajit sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views2 pages

Abap Object Model PDF

Uploaded by

ajit sahu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

report z730alv51.

 ALV Reporting (ALV Object Model)

data lv_vbeln type vbak-vbeln.


select-options so_vbeln for lv_vbeln.

types : begin of ty_vbak.


include type zmyvbak.
types end of ty_vbak.

data lt_vbak type table of ty_vbak.

initialization.
so_vbeln-low = '4980'.
so_vbeln-high = '4985'.
append so_vbeln.

start-of-selection.
perform getdata.

if lt_vbak[] is not initial.


* get the instance of ALV object
data o_alv type ref to cl_salv_table.
try.
call method cl_salv_table=>factory
* EXPORTING
* LIST_DISPLAY = IF_SALV_C_BOOL_SAP=>TRUE
importing
r_salv_table = o_alv
changing
t_table = lt_vbak[].

* Display the ALV table


call method o_alv->display.

catch cx_salv_msg .
message 'Exception in creating ALV object' type 'I'.
endtry.
endif.

form getdata .
select vbeln erdat erzet ernam from vbak into table lt_vbak
where vbeln in so_vbeln.
endform. " getdata

You might also like