Documente Academic
Documente Profesional
Documente Cultură
And also create table type from SE11 for that structure
For Global Definitions, double click on the Global Definitions and include the lines as follows
In initialization , you have to write your select query and also declare local data in input
parameters that is known only within the entered coding and cannot be accessed from outside.
Now,
Displaying the contents in window2 (Billing Window).
Create a Loop under the node window2
Name the Loop as LOOP1 give a description Details. In the field Operand give the details as
it_vbrk INTO wa_VBRK. In the where condition give the field name as vbeln, Select the operator as =
and comparison value as P_VBELN..
Create Text under the Loop text2 to display Billing Document Details.
Give the Name for the TEXT and a Description. To display the fields click on
Field List on/off button
on the application toolbar. A list with field names appear at the bottom left corner as shown in the screen
shot above. Drag & Drop the fields from wa_VBRK on to the editor.
Now, Displaying the contents in main window.( in table format).
Create a Table under the node MAIN.
Give Name for the table and Description. Right click on %LTYPE1 and rename the Line as Line1
Since we have to display 4 columns, LINE1 has to be divided into 4 cells. To draw lines Select the
button
Now create a Table line under the node Header and give the Line Type as Line1.
As soon as you give the Line type as Line1 and press ENTER you can see that under the
%ROW1 4 Cells namely %CELL1%CELL4 are created. Now Rename each of these as
shown below:
Now under each Cell create TEXT for Displaying the Column Headings.
In the Main Area Drag and Drop the fields from the field string WA_VBRP to print the Item Details. So in
the Text . it will be &WA_VBRP-POSNR& and so on as shown above.
Since we have to display the Total amount in the Footer area, Create a Table Line with one Cell. To
create a Table Line Right Click on the Line 1 Insert Empty line underneath . An empty Line appears
after Line 1. Name this Line as Line2.
Create a Text under the cell TOTAL. Give the Line type as Line 2. The Following screen appears
In order to calculate the Total (W_TOTAL) go to the Table ITEMDET. Select the Tab Calculations
and give the details as shown in the screen shot below:
Go back to the Footer Text for Displaying the TOTAL. Drag and Drop W_TOTAL from the
Global Data. To display the field list Click on the button
By Clicking on the Function Module Name, a pop up appears which gives the name of the
Function Module.
Note down the Function Module name.