Вы находитесь на странице: 1из 30

FI

:
: SAP MM
: .
: SAP
, 1997 , FI-FM (
), (), (WMS),
MM<->,
ABAP. uukrul@hotmail.com

FI.
, ,
FI.

( ):
,
;
:
,
SAP.
( ).
SAP CRM
ABAP

... . , .
, :
, FI, ,
. FI
,
, , ,
FI FI. , , FI,
. , ,
, ,
, .
, ,
, ,
-.
1. .

? , ,
, , , .
GB01, 1: GB01-1.png,
http://www.sapforum.biz

BOOLCLASS = 9,
FI 8 - FI.
CLASSTYPE = S,

1 GB01-1.png

,
2000 , . ,
2: GB01-2.png. BSEG,
.

http://www.sapforum.biz

2: GB01-2.png

: ? , ,
, - ,
.
BEXCLUDE. ,
, , SAP, ,
,
BSEG-SGTXT , BSEGHKONT . - SAP
, ,
, , ,
. ,
BEXCLUDE, . ,
, BEXCLUDE = "",
.
:

, /h ,
SE11/SE16.
YXXX_CHANGE_GB01,
.
fdu4 ( ), , ECC 5.0,

http://www.sapforum.biz

SE30 VWTYGB01.
,
.
*&---------------------------------------------------------------------*
*& Report YXXX_CHANGE_GB01
*&
*&---------------------------------------------------------------------*
*&
*&---------------------------------------------------------------------*
REPORT yxxx_change_gb01..
TABLES: gb01.
PARAMETERS: p_bc LIKE gb01-boolclass DEFAULT '009' OBLIGATORY,
p_ct LIKE gb01-classtype DEFAULT 'S' OBLIGATORY,
p_tab LIKE gb01-bcltab OBLIGATORY,
p_field LIKE gb01-bclfield OBLIGATORY.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_excl LIKE gb01-bexclude DEFAULT space.
SELECTION-SCREEN SKIP 1.
PARAMETERS: p_commit(1) TYPE c DEFAULT space.
SELECT * FROM gb01
WHERE boolclass = p_bc AND
classtype = p_ct AND
bcltab = p_tab AND
bclfield = p_field.
WRITE: / gb01-boolclass, gb01-classtype, gb01-bcltab NO-GAP, '-' NO-GAP,
gb01-bclfield.
WRITE: ' BEXCLUDE', gb01-bexclude.
IF p_commit = 'X'.
gb01-bexclude = p_excl.
MODIFY gb01.
WRITE: ' :', p_excl.
ENDIF.
ENDSELECT.
IF sy-subrc = 0.
IF p_commit = 'X'. COMMIT WORK. ELSE. ROLLBACK WORK. ENDIF.
ELSE.
WRITE: / ' , '.
ENDIF.

,
. ,
, . ,
. SE38,
RGUGBR00 ABAP- //.
GB01
, ,
, .
FI,
, 3 RGUGBR00.png. ,
. ,
, , ,
. ,
, . , BSEGSGTXT .
http://www.sapforum.biz

3: RGUGBR00.png

2. .
user-exits abap-
, ,
Z* .

-,
, .
-, SAP ,
, Z*,
.
-, , ..
Z*,
, - ,
,
,
.

, : SPRO: - -
- -
, . 4.6 ,
, - . ECC 6.0
4 GBLS-1.png. , FI
, = GBLS.

http://www.sapforum.biz

4: GBLS-1.png

, RGGBS000.
, , ZGGBS000.
, .. ,
SE38 Ctrl+F5.
, 5 GBLS2.png.

5: GBLS-2.png

http://www.sapforum.biz

.

.
, .
, ,
. .
, 4 .
U*, .
ZGGBS000, :
*----------------------------------------------------------------------*
*
FORM GET_EXIT_TITLES
*
*----------------------------------------------------------------------*
*
returns name and title of all available standard-exits
*
*
every exit in this formpool has to be added to this form
*
*----------------------------------------------------------------------*
* --> EXIT_TAB table with exit-name and exit-titles
*
*
structure:
NAME(5),
PARAM(1),
TITEL(60)
*----------------------------------------------------------------------*
FORM GET_EXIT_TITLES TABLES ETAB.

- GET_EXIT_TITLES, :
REFRESH ETAB.
LOOP AT EXITS.
ETAB = EXITS.
APPEND ETAB.
ENDLOOP.

:
EXITS-NAME = 'U777.
EXITS-PARAM = C_EXIT_PARAM_NONE.
EXITS-TITLE = TEXT-777.
APPEND EXITS.

U777 - ,
. TEXT-777 ,
, . TEXT777 . ,

"",
.
,
GET_EXIT_TITLES U777, :
*{
INSERT
&$&$&$&$
*---------------------------------------------------------------------*
*
FORM U777
*---------------------------------------------------------------------*
*

*---------------------------------------------------------------------*
FORM
ENDFORM.

http://www.sapforum.biz

1
*
*
U777.

*
*}

INSERT

.
. ,
. ,
.
, ,
BREAK-POINT. ZGGBS000,
U777 .
3. .
, , . FI
...
,
,
,
ZZZ, ,
. ,
ABAP,
SPRO: - - -
- -
, OBBH ( 6.0
). 6
OBBH-1.png, .

http://www.sapforum.biz

6: OBBH-1.png

.
,
. , -
, , ,
FI ,
.
, " "
, BSEG-SGTXT,
FI, .
7 OBBH-2.png, 0001 , 0002 - 0003 - ,
1 2 2
.

http://www.sapforum.biz

7: OBBH-2.png

0002 .
, . ,
. F4
,
. 2000, .
, MYEXT,
, , ,
. ,
, 8 OBBH-3.png.
.

http://www.sapforum.biz

8: OBBH-3.png

4. .
, , ,
, 9 OBBH-4.png
MYEXT, ,
0002.

http://www.sapforum.biz

9: OBBH-4.png

REG_SUB , 5 .
.
. ,
- ,
, ,
. , ,
. ,
, ,
-, - , ,
, - , ,
( )? ,
, .
, " MM-IV".
. "",
"", ,
, "". , 10: OBBH5.png, , .

http://www.sapforum.biz

10: OBBH-5.png

, ..
, , , ,
, , ,
BSEG-SGTXT . ,
. 11: OBBH-6.png. 3:

11: OBBH-6.png

, .. - .
, , ,
,
, ,
,
- .
, , -

http://www.sapforum.biz

/-/ , ,
.

. , ,
.

-,
,
.
" "
, 12: OBBH-7.png

12: OBBH-7.png

, , ,
, .
, " "
.
5. .
, ,
. , ,
FI, , -,
, ,
-, ... , 50 000 FI
:-) , , ,
? ,
,
.
"".
http://www.sapforum.biz

+ , , ,
, : " " " " , - ABAP,
ABAP, , ,
. , 13: OBBH-8.png,
, ,
.

13: OBBH-8.png

, - ..
, ,
SYST ( , SE11
,
). , ,
(
).
:
FI, .
14: MI06.png.
MI06.

http://www.sapforum.biz

14: MI06.png

4900031463,
, 15: MB03.png.
MB03, RW-.

http://www.sapforum.biz

15: MB03.png

FI, 16: FB03.png.


, :

http://www.sapforum.biz

16: FB03.png

WI - .
, , FI ,
.

MKPF - , ,
.

MI07? ,
( ),
.
.

:
MI07 ( MI10, ).
. -
,
, , ,
,
, , ,
.
. ,
, . ,
. " BKPF" ,
http://www.sapforum.biz

, 17: OBBH-9.png.

17: OBBH-9.png

BKPF
FI. 18: OBBH-10.png
, .

http://www.sapforum.biz

18: OBBH-10.png

BKPF-BLART - ,
, 19: OBBH-11.png.

http://www.sapforum.biz

19: OBBH-11.png


: " =", 20: OBBH-12.png,
"" "".

http://www.sapforum.biz

20: OBBH-12.png

, ,
"WI", ""
WI, ,
21: OBBH-13.png.
.

http://www.sapforum.biz

21: OBBH-13.png

AND, ..
, ,
. 22: OBBH-14.png.
, ,
.

http://www.sapforum.biz

22: OBBH-14.png

: , ,
.
6. .
, ,
,
.. ,
, 23: OBBH-15.png.
, ,
. , ""
F4, U777
. .

http://www.sapforum.biz

23: OBBH-15.png

,
. ,
24: OBBH-16.png ( F3 Shift+F3),
= 1, "". ,
2 - , ..
, ,
, .

24: OBBH-16.png

. .
-
. ,
( ).
http://www.sapforum.biz

, ,
BSEG-SGTXT.
: 4, , 10: OBBH-5.PNG,
U777,
p_SGTXT, .. :
*{
INSERT
&$&$&$&$
1
*---------------------------------------------------------------------*
*
FORM U777
*
*---------------------------------------------------------------------*
*

*
*---------------------------------------------------------------------*
FORM U777 USING p_sgtxt.
ENDFORM.
*
*}
INSERT

,
, .
, . ,
BSEG-SGTXT, ,
BSEG-SGTXT,
U777.
u777
ZGGBS000,
:
TABLES: CSKS,
GLU1,
BKPF,
BSEG,
ACCIT,
ACCHD,
*{
INSERT
IDTK911943
fila_valsup,
zzprctr,
COBL,
PRPS.
*
zzper.
TYPE-POOLS: GB002.

"for form U901

7. ,
: ABAP-,
, .
,
, , .
U777.
:
http://www.sapforum.biz

FORM U777 using p_SGTXT.


break-point.
ENDFORM.

FI
.
, FIELD-SYMBOLS. Dmitry (
SAP),
,
.
U777
- ,
, . :
FORM u777 USING p_sgtxt.
DATA: ls_ikpf LIKE ikpf.
FIELD-SYMBOLS: <fs_ikpf> TYPE ANY.
BREAK-POINT.
ASSIGN ('(SAPMM07I)IKPF') TO <fs_ikpf>.
CHECK sy-subrc = 0.
ls_ikpf = <fs_ikpf>.
p_sgtxt = ls_ikpf-iblnr.
UNASSIGN <fs_ikpf>.
ENDFORM.

"U777

.. , :
FI, , ,
, ,
, ,
. , - ,
.

MI07. SE93 MI07
, 25: SE93.png, SAPMM07I.

http://www.sapforum.biz

25: SE93.png

, , , ..
, .
, . MI07
701. ,
, .
IKPF,
. , , MSEG,,
XMSEG.
, .
.

, 26: ABAP.png. ,
, ,
, , .
,
. ,
http://www.sapforum.biz


p_sgtxt . , FI,
.

26: ABAP.png

27: 4900000000.png . ,
. , ,
, ,
, , .
BSX, GBB, .. ,
, CHECK BSEG-KTOSL = GBB

, .

http://www.sapforum.biz

27: 4900000000.png

", ", ..
, ... ,
, :
http://help.sap.com/saphelp_470/helpdata/ru/27/06e23954d9035de10000000a114084/frameset.ht
m
,

http://www.sapforum.biz