SAP Abap Block Report

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

SAP – ABAP

ALV REPORTS COLOUR:


 Color codes are 1 to 7.
number color
1 Grey blue
2 Light grey
3 Yellow
4 Blue green
5 Green
6 Red
7 orange

 For change the particular field color.


 we need to mention the emphasize and mention c and number.

 The above program mention the catalog .

 In this output the second field change the color.


 We can change the output report is editable one we need to add the edit option in the
catalog creation it’s following below.
 The output for editable filed is following below.

Subtotal :
 It’s used to add the particular field data .
 First we need to create a structure and internal table and work area for particular
structure.
 Then we need to do manual catalog creation then add the do function keyword.
 Then we need to create a subroutine for total.

 The above subroutine do the work sorting and calculate subtotal output for above
code is following below.

Blocked ALV report:


 Blocked alv report is used to display the multiple output in single page.
Steps for creating the blocked alv report:
Step -1:
 In this example we need to create a two different structure and two different internal
table and event and layout.

Step -2:
 The above program mention the structure creation of mara and vbap table

 The above code mentions the internal table creation.


 Wa_layout is layout name and it_event is event name.
 In this part we need to create a two different catalog so declare the manual catalog
creation.
Step -3:
 The above code mentions the perform function of different subroutine.
 Then we need to write the code inside the subroutine.
 The below code is get the data from vbap table ( first 10 rows).
Step -4:

 The below code is getting the data from mara table.


Step -5:

 Then we need to do the manual catalog creation for first table data.
Step -6:

 The internal table name is it_data and three field.


 After that we need to call the function module
Step -7:

 In this function module we need to mention the layout and event and internal table.
 Then finally call the display function for display the data into internal table.

Step -8:
 Then we need to click on save and execute button.
 then show’s the output like following below.

You might also like