You are on page 1of 32

Smart Forms

Smart Forms ABAP


(1) Smart Forms
(2)
Form
Smart forms

10.1

( LOGO)()()
10-1

10-1

10.1.1 Form

TCODESMARTFORMS Form
10-2

10-2

10-3

10-3
10-4

10-4
10-4 Form

Form ( )

( ) Form
MAIN
1. LOGO
Create>Graphics 10-5

10-5
10-6

10-6
10-7

10-7
10-8

10-8
10-9

10-9
2.
Create>Window 10-10

10-10
WINDOWS

Create>Text 10-11

10-11
10-12

10-12
3.
Text 10-13

10-13
4.
10-14

10-14

10-14
System fields DATE

10-15

10-15
5.
Form>Check Form

Form
10-16

10-16

/1BCDWB/SF00000019 10-17

10-17

lp01Print preview

10-18

10-18
10-1910-20

10

10-19

10-20

10.1.2 Form

11

REPORT ytest37 .
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZTEST20'
variant = ' '
direct_call = ' '
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION fm_name
EXCEPTIONS
formatting_error = 1
internal_error = 2
send_error = 3
user_canceled = 4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

10.2 Smart Forms

10.2.1 Style

Style Text
TCODESmartFormsStyle Style
10-21

12

10-21
10-22

10-22
Header data:
Paragraph formats:
Character formats:

13

Pragraph formatsCreate node 10-23

10-23
10-24

10-24
10-25

14

10-25
10-26

10-26
Form 10-27

15

10-27
Form>Check
10-28

10-28

16

10.2.2 Text Moudle

ABAP
Form Text

10-29 Include text Sapscript text TCODESe75


10-29 Include element,
10-29 Text Module

10-29
TCODESMARTFORMSText Module Text Module
10-30

17

10-30
10-31

10-31
Form Text Text Module 10-32

18

10-32

10.3

LOGO
TCODESE78 10-33

19

10-33
Store on document server>graphics general graphids >Bmap Grid screens

10-34

10-34
10-35

20

10-35
Form 10-36

10-36

10.4

21

10-37

10-37

10-38

10-38
Form

REPORT ytest38 .
DATA: fm_name TYPE rs38l_fnam.
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

22

EXPORTING
formname = 'ZTEST20'
variant =''
direct_call =''
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form =1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION fm_name
exporting
ytestv = 'MicroSoft'
EXCEPTIONS
formatting_error = 1
internal_error =2
send_error =3
user_canceled =4
OTHERS = 5.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.

23

10-39

10.5 Table

Create>Table 10-40

10-40
Table
10-41

24

10-41

10-42

10-42

10-43

25

10-43
Table Events Header
10-44
IDES 4.7 Events Calculations

Table Header Table line 10-44

10-44
Line Type LINE_CON 10-45

26

10-45
CELL Text 10-46

10-46
Table Main Table line Text 10-47

27

10-47
Table
Form Table I_SFLIGHT, 10-48

10-48
Table Data 10-49

28

10-49
I_SFLIGHT Table
Tabel Text Table interfance>I_SFLIGHT
CARRIDCONNIDFLDATEPRICE
10-50

29

10-50
10-51

10-51

Form

REPORT ytest39 .
DATA: fm_name TYPE rs38l_fnam.
DATA: wa_sflight LIKE sflight OCCURS 0 WITH HEADER LINE.
*
SELECT * INTO TABLE wa_sflight FROM sflight.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'


EXPORTING
formname = 'ZTEST20'
variant =''
direct_call =''
IMPORTING
fm_name = fm_name
EXCEPTIONS
no_form =1
no_function_module = 2
OTHERS = 3.
IF sy-subrc <> 0.

30

* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO


* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION fm_name
EXPORTING
ytestv = 'MicroSoft'
TABLES
i_sflight = wa_sflight
EXCEPTIONS
FORMATTING_ERROR =1
INTERNAL_ERROR =2
SEND_ERROR =3
USER_CANCELED =4
OTHERS =5
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
10-52

10-52
10.6 SectionLoop
Section
10-5310-54

31

10-53

10-54

SPFLISFLIGHT
FormCreate>Complex section10-55

IDESSMARTFORMS
Section8

32

You might also like