0% found this document useful (0 votes)
45 views

ECC 6.0 Exercises: Smart Forms SAP Development ABAP Training

1. The document provides instructions to create a Smart Form print program and layout set to print an invoice based on a sample and data mapping provided. 2. A selection screen should be developed with an invoice number field, and the Smart Form should print when a number is entered. 3. The data mapping shows which fields should be used to extract and print invoice details like the date, logo, item information, and a footer with page numbers.

Uploaded by

onmcv
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
45 views

ECC 6.0 Exercises: Smart Forms SAP Development ABAP Training

1. The document provides instructions to create a Smart Form print program and layout set to print an invoice based on a sample and data mapping provided. 2. A selection screen should be developed with an invoice number field, and the Smart Form should print when a number is entered. 3. The data mapping shows which fields should be used to extract and print invoice details like the date, logo, item information, and a footer with page numbers.

Uploaded by

onmcv
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 2

ECC 6.

0
Exercises: Smart Forms

SAP Development ABAP Training

1. Create a Smart Form print program and Layout Set to print an invoice. A sample invoice and
the data mapping for the fields are given below. Develop a print program with a selection-screen
having the field Invoice number (VBRK-VBELN). Once the user enters the invoice number on
the selection screen and executes, the Smart Form should be printed for the invoice.
Sample invoice:

Date:

01/08/2003

Invoice Print
Invoice number:
Printed by:
Itm no.
10
20
30

1234567
Sidhartha Shankar

Material Num
987654
876543
765432

Billed Qty
5
2
20

UoM
PC
PC
PC

Unit Price
10.00
50.00
5.00

Amount
50.00
100.00
100.00

IBM confidential
Page
This is a sample invoice for the IBM training session and is not valid for external use

1 of 3

Data Mapping:
Print item
IBM logo
Date
Invoice print
Invoice number
Printed by

Extraction logic
Upload the bitmap IBM logo as a GRAPHICS object and
display it on the top left corner
Print the label and current date on the top right hand corner
Hard coded text
Field VBRK-VBELN (Value should be extracted in print
program)
The user name (SY-UNAME) should be printed against the
label
Dec-2008
Page 1

ECC 6.0
Exercises: Smart Forms
Item no.
Material Num
Billed qty
UoM
Unit price
Amount
IBM Confidential
Page
Footer text This is.

SAP Development ABAP Training


The invoice item level details should be extracted in print
program and printed in the given format. The Item no. is the
field VBRP-POSNR
The Material number of the Billing item can be got from the
field VBRP-MATNR
Billing Item level field VBRP-FKIMG
Unit of Measure of Billed Qty field VBRP-VRKME
Calculate this field as Unit price = Amount/Billed Qty
Billing Item level field VBRP-NETWR
Hard coded text at the footer
Print the page number as Page X of Y
X Smart Form variable &SFSY-PAGE&
Y Symbol &SFSY-FORMPAGES&
Hard coded text to be printed immediately below IBM
Confidential

Dec-2008
Page 2

You might also like