.


:




:

































 

 

 

 


.




. , . .

endform . ( ).

, , . , .

, :

Stop

message e nnn

stop end-of-selection. , end-of-selection. stop . stop . stop. end-of-selection, .

, , , .

23. , .

:

, , . .

, . - .

:

 
,

:

form s1 tables it
form s1 using it [] form s1 changing it [] form s1 using value(it []) form s1 changing value(it [])

24. .

. form, . .

:

x
tables it structure x Field String DDIC DDIC
  tables it like x (it[])
using it[] like x (it[])

structure Field String, DDIC , .

like . , it it[] it. it , it it[].

, . local, data statics. data, like line of itabbody. Field String . Field String itabbody. ,

data fs like line of it[].

Field String fs. , it.

25. .

, , , tables it structure x. , , . , , , .

, , tables it structure x. . , , .

, , , tables it like x. , . it , , , . it , it, it. it , endform. stop it end-of-selection.

26. .

, , , perform:

perform :

,

form

endform perform

:

:

,

:

, data, , . , data f1 . f1. f1, ztx1811, ztx1811. f1, ztx1812, ztx1812

, tables, . . ztxlfa1 . .

27. include.

(include program) , . , , . include.

, , (including program).

include

Include ipgm.

:

ipgm i

:

i ( Type Program Attributes )

i

include . include :

5 ztx1901 ztx1902 ztx1901; 5

6 ztx1901 ztx1903 ztx1901; 6

ztx1901 , ztx1901

SAP include .

28. .

ABAP/4. , :

,

:

, ABAP/4

tables

raise check, exit stop

3 30 . Y_ Z_. R/3.

29. .

, . SAP R/3 5 000 . 30 000 . SAP , .

, . , Y Z. .

30.

, . , - - . .

:

Import Parameter Interface

Export Parameter Interface

Changing Parameters

Table Parameters Interface

Exceptions Interface

31. .

(Import parameters) Field Strings, , . , .

 

32. .

(Export parameters) Field Strings, , . , .

33. .

(Changing parameters) Field Strings, , , . , , .

34. .

(Table parameters) , , . .

 

35. .

(exception) , .

 

36. .

call function:

Report ztx1904.

3 write: / 'Before Call'.

4 call function 'Z_TX_1901'.

5 write: / 'After Call'.

 

Before Call

Hi from Z_TX_1901

After Call

 

4 z_tx_1901 ( ztxa; SAPLztxa z_tx_1901)

call function. call function

37. .

:

1. (se80). Y Z

2. (se37). Y_ Z_. , ..

3. . ! !!!

4. ABAP/4 (se38) . .

38. releasing .?

release , . , . , , , ; , . .

39. sy-subrc .

, , sy-subrc . sy-subrc , :

Raise

Message... raising

raise

raise , sy-subrc . raise:

Raise xname.

: xname ,

raise call function, sy-subrc . :

others 13 , exceptions.

raise, , raise.

check, exit stop , . . raise, sy-subrc .

message... raising

message... raising :

raising call function, others ,

raising call function, call function, , raise

message... raising:

message tnnn(cc) [with v1 v2...] raising xname.

:

t (e, w, i, s, a x)

nnn

(cc)

v1 v2 ,

xname ,

:

xname raise

, function-pool TOP include message-id

sy- : sy-msgid, sy-msgty, sy-msgno sy-msgv1 sy-msgv4. ( )

message... raising , ( ):

, . sy-msg . , ,

e, w a, , . , . ENTER, , ,

i, . ENTER, , message. , endfunction . sy-msg , , ,

s, . , message. , endfunction . sy-msg , , , . ,

x, , .

40. message... raising.

message... raising

message... raising :

raising call function, others ,

raising call function, call function, , raise

message... raising:

message tnnn(cc) [with v1 v2...] raising xname.

:

t (e, w, i, s, a x)

nnn

(cc)

v1 v2 ,

xname ,

:

xname raise

, function-pool TOP include message-id

sy- : sy-msgid, sy-msgty, sy-msgno sy-msgv1 sy-msgv4. ( )

message... raising , ( ):

, . sy-msg . , ,

e, w a, , . , . ENTER, , ,

i, . ENTER, , message. , endfunction . sy-msg , , ,

s, . , message. , endfunction . sy-msg , , , . ,

x, , .

 





:


: 2017-01-21; !; : 441 |


:

:

, .
==> ...

1720 - | 1537 -


© 2015-2024 lektsii.org - -

: 0.118 .