第 24 页 / 共 65 页
6XPPDU\
l
$Q(cid:3),’RF(cid:3)W\SH(cid:3)LV(cid:3)D(cid:3)FRPSOH[(cid:3)GDWD(cid:3)VWUXFWXUH(cid:3)FRPSRVHG
RI(cid:3)VHJPHQWV(cid:17)
l
6HJPHQW(cid:3)W\SHV(cid:3)DUH(cid:3)VWUXFWXUHV(cid:3)LQ(cid:3)WKH(cid:3)$%$3(cid:3)GDWD
UHSRVLWRU\(cid:17)
l
,’RF(cid:3)W\SHV(cid:3)DQG(cid:3)WKHLU(cid:3)SURFHVVLQJ(cid:3)FDQ(cid:3)EH(cid:3)H[WHQGHG(cid:3)LQ
WKH(cid:3)DSSURSULDWH(cid:3)SRVLWLRQV(cid:3)E\(cid:3)FXVWRPHUV(cid:17)
ª SAP AG 1999
(C) SAP AG BC621 2-13
第 25 页 / 共 65 页
([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)W\SH
l
([WHQVLRQ(cid:3)RI(cid:3)WKH(cid:3)GDWD(cid:3)VWUXFWXUH
l
([WHQVLRQ(cid:3)RI(cid:3)RXWERXQG(cid:3)SURFHVVLQJ
l
([WHQVLRQ(cid:3)RI(cid:3)LQERXQG(cid:3)SURFHVVLQJ
ª SAP AG 1999
n We will consider the outbound order processing (enterprise trading company A is placing an
electronic order with vendor B) as well as the sales order (order being electronically processed by the
customer service department of vendor B).
n The course uses a sample IDoc type (ORDLGT01) for purchase orders and sales orders. This IDoc
type only consists of a segment for the document header and the item. The course does not correct
any errors in order to emphasize all important aspects of the IDoc type extensions.
n The IDoc type ORDLGT01 with logical message ORDLGT does not support transmission of
specialists name or delivery conditions. In this lesson, this information will be added to the IDoc
type.
(C) SAP AG BC621 3-1
第 26 页 / 共 65 页
&RXUVH(cid:3)2EMHFWLYHV
l
&UHDWH(cid:3),’RF(cid:3)6HJPHQW
l
([WHQG(cid:3)DQ(cid:3),’RF(cid:3)7\SH
l
,PSOHPHQW(cid:3)D(cid:3)FXVWRPHU(cid:3)H[LW(cid:3)LQ(cid:3)RXWERXQG(cid:3)SURFHVVLQJ
l
,PSOHPHQW(cid:3)D(cid:3)FXVWRPHU(cid:3)H[LW(cid:3)LQ(cid:3)LQERXQG(cid:3)SURFHVVLQJ
ª SAP AG 1999
(C) SAP AG BC621 3-2
第 27 页 / 共 65 页
&RXUVH(cid:3)2YHUYLHZ(cid:3)’LDJUDP
ª SAP AG 1999
(C) SAP AG BC621 3-3
(cid:0)(cid:1)(cid:3) (cid:2)(cid:5) (cid:4)(cid:6)(cid:7) (cid:1)(cid:8) (cid:6)(cid:10) (cid:9)(cid:12) (cid:11)(cid:14) (cid:13)(cid:15) (cid:11)(cid:17) (cid:16)(cid:18)(cid:19) (cid:9)
(cid:22)(cid:22)
(cid:20)(cid:21) (cid:6)(cid:15) (cid:22)(cid:7)
(cid:6)(cid:10) (cid:9)(cid:15) (cid:22)(cid:26)
(cid:0)(cid:31)(cid:20)(cid:21) (cid:18)(cid:5)
(cid:6)(cid:10)
(cid:16)(cid:28)(cid:27)(cid:29)
!
(cid:4)(cid:18)(cid:23) (cid:2)(cid:5) (cid:1)(cid:24)
(cid:18)(cid:23) (cid:9)(cid:5) (cid:1)(cid:24)
(cid:11)#"(cid:26) (cid:2)(cid:7) (cid:6)(cid:12)
(cid:6)(cid:10) (cid:9)(cid:25) (cid:11)
(cid:6)(cid:10) (cid:9)(cid:25) (cid:11)(cid:5) (cid:30)(cid:29) (cid:18)(cid:23)
$
(cid:27)
%(cid:10)
(cid:13)(cid:10)
&(cid:25) (cid:11)’(cid:6)(cid:5)
(cid:9)(cid:8) (cid:0)+(cid:20),
(cid:9)(cid:12) $(cid:5)
(cid:18)(cid:5)
(cid:16)(cid:18)( (cid:9))
- (cid:11)(cid:29) "(cid:26)
(cid:18)* (cid:30)
(cid:2)(cid:25) (cid:6)
(cid:20)(cid:21)
(cid:0)(cid:31)(cid:20)(cid:21)
(cid:6). (cid:22)(cid:10)
(cid:18)(cid:5)
(cid:6)(cid:10)
1
(cid:4)(cid:18)(cid:23)
(cid:11)(cid:28)"0
(cid:2)*
(cid:2)(cid:25)
(cid:1)/
(cid:6)
(cid:6)(cid:10) (cid:9)(cid:7) (cid:11)0 (cid:18)* (cid:30)
第 28 页 / 共 65 页
$GYDQWDJHV(cid:3)RI(cid:3)&XVWRPHU(cid:3)(QKDQFHPHQW
l
7KH(cid:3)FRGLQJ(cid:3)SURYLGHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:3)IRU
SURFHVVLQJ(cid:3)LV(cid:3)XVHG(cid:17)
l
’HYHORSPHQWV(cid:3)DQG(cid:3)FRUUHFWLRQV(cid:3)RI(cid:3)WKH(cid:3)FRGLQJ
GHOLYHUHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:3)DUH(cid:3)WKHUHIRUH
DXWRPDWLFDOO\(cid:3)DYDLODEOH(cid:17)
l
([WHQVLRQ(cid:3)LV(cid:3)OHVV(cid:3)WLPH(cid:3)FRQVXPLQJ(cid:3)WKDQ(cid:3)QHZ
GHYHORSPHQW(cid:17)
ª SAP AG 1999
(C) SAP AG BC621 3-4
| $GYDQWDJHV(cid:3)RI(cid:3)&XVWRPHU(cid:3)(QKDQFHPHQW |
|---|
| l |
| 7KH(cid:3)FRGLQJ(cid:3)SURYLGHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:3)IRU |
| SURFHVVLQJ(cid:3)LV(cid:3)XVHG(cid:17) |
| l |
| ’HYHORSPHQWV(cid:3)DQG(cid:3)FRUUHFWLRQV(cid:3)RI(cid:3)WKH(cid:3)FRGLQJ |
| GHOLYHUHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:3)DUH(cid:3)WKHUHIRUH |
| DXWRPDWLFDOO\(cid:3)DYDLODEOH(cid:17) |
| l |
| ([WHQVLRQ(cid:3)LV(cid:3)OHVV(cid:3)WLPH(cid:3)FRQVXPLQJ(cid:3)WKDQ(cid:3)QHZ |
| GHYHORSPHQW(cid:17) |
| ª SAP AG 1999 |
第 29 页 / 共 65 页
%DVLF(cid:3)5XOHV(cid:3)IRU(cid:3)&XVWRPHU(cid:3)([WHQVLRQ
l
$GGLWLRQDO(cid:3)FXVWRPHU(cid:3)ILHOGV(cid:3)DUH(cid:3)UHFRUGHG(cid:3)LQ(cid:3)WKHLU(cid:3)RZQ
FXVWRPHU(cid:3)VHJPHQWV(cid:17)
l
&XVWRPHU(cid:3)VHJPHQWV(cid:3)GHSHQG(cid:3)RQ(cid:3)6$3(cid:3)VHJPHQWV
(cid:11)VXFFHVVRU(cid:3)RU(cid:3)FKLOG(cid:3)UHODWLRQVKLSV(cid:12)(cid:17)
l
7KH(cid:3)SURFHVVLQJ(cid:3)RI(cid:3)FXVWRPHU(cid:3)VHJPHQWV(cid:3)LV(cid:3)H[FOXVLYHO\
LPSOHPHQWHG(cid:3)LQ(cid:3)WKH(cid:3)FXVWRPHU(cid:3)H[LWV(cid:3)RI(cid:3)WKH(cid:3)FRGLQJ
SURYLGHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:17)
ª SAP AG 1999
(C) SAP AG BC621 3-5
| %DVLF(cid:3)5XOHV(cid:3)IRU(cid:3)&XVWRPHU(cid:3)([WHQVLRQ |
|---|
| l |
| $GGLWLRQDO(cid:3)FXVWRPHU(cid:3)ILHOGV(cid:3)DUH(cid:3)UHFRUGHG(cid:3)LQ(cid:3)WKHLU(cid:3)RZQ |
| FXVWRPHU(cid:3)VHJPHQWV(cid:17) |
| l |
| &XVWRPHU(cid:3)VHJPHQWV(cid:3)GHSHQG(cid:3)RQ(cid:3)6$3(cid:3)VHJPHQWV |
| (cid:11)VXFFHVVRU(cid:3)RU(cid:3)FKLOG(cid:3)UHODWLRQVKLSV(cid:12)(cid:17) |
| l |
| 7KH(cid:3)SURFHVVLQJ(cid:3)RI(cid:3)FXVWRPHU(cid:3)VHJPHQWV(cid:3)LV(cid:3)H[FOXVLYHO\ |
| LPSOHPHQWHG(cid:3)LQ(cid:3)WKH(cid:3)FXVWRPHU(cid:3)H[LWV(cid:3)RI(cid:3)WKH(cid:3)FRGLQJ |
| SURYLGHG(cid:3)LQ(cid:3)WKH(cid:3)VWDQGDUG(cid:3)V\VWHP(cid:17) |
| ª SAP AG 1999 |
第 30 页 / 共 65 页
ª SAP AG 1999
(C) SAP AG BC621 3-6
2(cid:10)
9(cid:19)
<(cid:21)
3(cid:5)
(cid:27):
(cid:6)(cid:5)
(cid:9)*
(cid:18)(cid:5)
(cid:2)(cid:7)
(cid:15)
;(cid:23)
(cid:18)(cid:23)
(cid:11)4 (cid:16)(cid:18)(cid:23)
(cid:27)(cid:29) (cid:13)* (cid:1)
(cid:27)’(cid:11)
(cid:9)6 57 (cid:18)(cid:5) 8( 3(cid:5) (cid:4)(cid:6) => 3(cid:12) $(cid:5)
2(cid:5)
(cid:16)?(cid:9)(cid:25) (cid:6)(cid:12) $(cid:12) $)
3(cid:5) (cid:9)(cid:7) (cid:15) (cid:11)C (cid:16)(cid:18)(cid:23)
@A
(cid:9)(cid:8)
(cid:18)(cid:23)
5-
(cid:27)C BD
(cid:18)(cid:5)
(cid:30)(cid:17)
8(cid:23)
(cid:4)(cid:18)*
30
E
(cid:4)(cid:6)
$SSOLFDWLRQ
,’RF(cid:3),QWHUIDFH
F (cid:6)(cid:25) ;(cid:26)
G(cid:10)
(cid:1)/
"(cid:26) (cid:2)(cid:25)
(cid:6)(cid:5)
(cid:6)
(cid:0)#(cid:20)(cid:19)
F
(cid:9)(cid:12) (cid:11)
(cid:18)(cid:5)
(cid:6)(cid:7)
)
;(cid:26)
G*
(cid:1)(cid:24)
"(cid:26)
(cid:6)(cid:26)
(cid:2)(cid:7)
(cid:9)(cid:12)
F
(cid:6)
(cid:11)
(cid:6)(cid:25) ;(cid:26)
H(cid:21)
(cid:1)(cid:8)
(cid:13)*
(cid:6)(cid:10)
(cid:1)/
(cid:9)(cid:12)
(cid:6)
(cid:11)
$UHDV(cid:3)RI(cid:3)&XVWRPHU(cid:3)([WHQVLRQ
l
’DWD(cid:3)VWUXFWXUH(cid:3)LQ(cid:3)WKH(cid:3):(’,
DUHD(cid:3)PHQX
l
2XWERXQG(cid:3)DQG(cid:3)LQERXQG
SURFHVVLQJ(cid:29)(cid:3)7\SLFDOO\(cid:3)WKURXJK
WUDQVDFWLRQ(cid:3)(cid:5)&02’(cid:5)(cid:15)(cid:3)RWKHUZLVH
WKURXJK(cid:3)LQGLYLGXDO(cid:3)WHFKQLTXH
l
’RFXPHQWDWLRQ(cid:29)(cid:3),Q(cid:3)WKH(cid:3):(’,
DUHD(cid:3)PHQX
第 31 页 / 共 65 页
6WHSV(cid:3))RU(cid:3)([WHQGLQJ(cid:3)WKH(cid:3)’DWD(cid:3)6WUXFWXUH
l
&RPELQH(cid:3)WKH(cid:3)UHTXLUHG(cid:3)ILHOGV(cid:3)DQG(cid:3)WKHLU(cid:3)GDWD
W\SHV(cid:3)LQ(cid:3)WKH(cid:3)GLFWLRQDU\
l
’HILQLWLRQ(cid:3)RI(cid:3)UHTXLUHG(cid:3)VHJPHQWV(cid:15)
VHJPHQW(cid:3)HGLWRU
l
’HILQLWLRQ(cid:3)RI(cid:3)H[WHQVLRQ(cid:15)(cid:3),’RF(cid:3)W\SH(cid:3)HGLWRU
l
$VVLJQPHQW(cid:3)RI(cid:3)D(cid:3)ORJLFDO(cid:3)PHVVDJH(cid:3)WR(cid:3)WKH
,’RF(cid:3)W\SH(cid:15)(cid:3)VXUURXQGLQJ(cid:3)ILHOG(cid:3)PHQX(cid:3)RI(cid:3),’RF
W\SH(cid:3)HGLWRU
ª SAP AG 1999
n In the segment editor you assign a name to each field and enter a data element that describes the field
in the application (documentation). The editor calculates the necessary character length of the field in
the segment from the data element.
n Segment editor, transaction WE31.
n In the IDoc type editor you build a complex data structure from the single segments. In doing so the
order and the hierarchical relationships of the segments are documented. In addition, you assign a
status (optional/mandatory) as well as the number of repetitions per segment and segment group.
The IDoc API tests that the generated program (Outbound: SAP processing, inbound: subsystem)
conforms to these characteristics. Violations of these characteristics are recorded through the IDoc
status syntax error (Outbound: 26, inbound 60).
n IDoc type editor, transaction WE30.
(C) SAP AG BC621 3-7
第 32 页 / 共 65 页
l
’HILQLWLRQ(cid:3)RI(cid:3)D(cid:3)SURMHFW(cid:15)
SURMHFW(cid:3)PDQDJHPHQW(cid:15)(cid:3)DWWULEXWH
l
&KRRVLQJ(cid:3)WKH(cid:3)(cid:5)FRUUHFW(cid:5)(cid:3)FXVWRPHU(cid:3)H[LWV(cid:15)
SURMHFW(cid:3)PDQDJHPHQW(cid:15)(cid:3)6$3(cid:3)H[WHQVLRQV
l
,PSOHPHQWDWLRQ(cid:3)RI(cid:3)WKH(cid:3)VHOHFWHG(cid:3)FXVWRPHU(cid:3)H[LWV(cid:15)
SURMHFW(cid:3)PDQDJHPHQW(cid:15)(cid:3)H[WHQVLRQ(cid:3)FRPSRQHQWV
ª SAP AG 1999
(C) SAP AG BC621 3-8
I 2XWERXQG(cid:3)SURFHVVLQJ(cid:29)(cid:3)UHDGLQJ(cid:3)RI(cid:3)WKH(cid:3)6$3(cid:3)GDWDEDVH
DQG(cid:3)GDWD(cid:3)LQ(cid:3)(cid:5),’RF(cid:3)IRUPDW(cid:5)
I
6WHSV(cid:3)IRU(cid:3)([WHQGLQJ(cid:3)3URFHVVLQJ
,QERXQG(cid:3)SURFHVVLQJ(cid:29)(cid:3)ZULWLQJ(cid:3)GDWD(cid:3)IURP(cid:3)WKH(cid:3)(cid:5),’RF
IRUPDW(cid:5)(cid:3)LQWR(cid:3)WKH(cid:3)6$3(cid:3)GDWDEDVH
l
$FWLYDWH(cid:3)SURMHFW(cid:3)LQ(cid:3)SURMHFW(cid:3)PDQDJHPHQW
n Project management, transaction CMOD, radio button $WWULEXWH(cid:17)
• Enter a project name and select &UHDWH(cid:17)
• Enter short text and select 6DYH(cid:17)
• Choose SAP Extensions.
n Project management, transaction CMOD, radio button 6$3(cid:3)([WHQVLRQV.
• Find customer exit through the development class (F4 Help).
• Select the required SAP extensions and choose &RS\(cid:17)
• Select 6DYH(cid:3)and return to the initial screen of the transaction (F3).
n Project management, transaction CMOD, radio button ([WHQVLRQ(cid:3)FRPSRQHQWV.
• Select &KDQJH(cid:17)
• Position the cursor on a component and choose (GLW(cid:3)FRPSRQHQW.
• Double-click the include in the program editor and follow the instructions in the window. Before
saving the program, don’t forget syntax testing.
• Activate the project after returning to the initial screen of the transaction.
第 33 页 / 共 65 页
2XWSXW(cid:3)’RFXPHQWDWLRQ(cid:3)RI(cid:3)WKH(cid:3)([WHQVLRQ
%HJLQ W\SHGHILQH(cid:3)VWUXFW(cid:3)HGLBGF
« ;0/ ^«‘
(QG HGLBGF
ª SAP AG 1999
n The documentation tools are started from the initial node of the IDoc Interface by selecting
’RFXPHQWDWLRQ(cid:17) In addition, the parser output format has its own menu point for record types as well
as IDoc types.
n Automatic formats are:
• Simple, readable with a parser begin..end-Declaration sequence.
C-header.
• Meta IDoc from type SYRECD01 (IDoc record types) or SYIDOC01 (IDoc types).
• Meta data for IDocs in XML format.
n Navigation-compatible formats are:
• The tree display in the R/3 System.
• HTML file (three files, the *_ f-file is the frame that should be loaded by the browser and the
index *_i and actual documentation *_d).
n Documentation, IDoc record types: Transaction WE61
n Documentation, IDoc types: Transaction WE60
n Documentation, IDoc type (parser): Transaction WE63
(C) SAP AG BC621 3-9
| 2XWSXW(cid:3)’RFXPHQWDWLRQ(cid:3)RI(cid:3)WKH(cid:3)([WHQVLRQ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| %HJLQ | W\SHGHILQH(cid:3)VWUXFW(cid:3)HGLBGF | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| « | ;0/ | ^«‘ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| (QG | HGLBGF | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ª SAP AG 1999 |
第 34 页 / 共 65 页
6XPPDU\
l
$Q(cid:3)H[WHQVLRQ(cid:3)FDQ(cid:3)EH(cid:3)OLPLWHG(cid:3)WR(cid:3)SURFHVVLQJ
l
1RUPDOO\(cid:3)DQ(cid:3)H[WHQVLRQ(cid:3)HQFRPSDVVHV(cid:3)WKH(cid:3)GDWD
VWUXFWXUH(cid:3)DV(cid:3)ZHOO(cid:3)DV(cid:3)WKH(cid:3)SURFHVVLQJ
l
([WHQGHG(cid:3)GDWD(cid:3)VWUXFWXUHV(cid:3)FDQ(cid:3)EH(cid:3)FRPPXQLFDWHG(cid:3)WR
WKH(cid:3)VXEV\VWHP(cid:3)E\(cid:3)WKH(cid:3)GRFXPHQWDWLRQ(cid:3)WRROV
ª SAP AG 1999
(C) SAP AG BC621 3-10
第 35 页 / 共 65 页
([HUFLVHV
’DWD(cid:3)8VHG(cid:3)LQ(cid:3)WKH(cid:3)([HUFLVHV
7UDLQLQJ(cid:3)6\VWHP(cid:29)(cid:3)7KH(cid:3)LQVWUXFWRU(cid:3)ZLOO(cid:3)LQIRUP(cid:3)\RX(cid:3)(cid:11)IRU(cid:3)H[DPSOH(cid:3),(cid:23)(cid:19)(cid:12)
&OLHQW(cid:29)(cid:3)7KH(cid:3)LQVWUXFWRU(cid:3)ZLOO(cid:3)LQIRUP(cid:3)\RX(cid:3)(cid:11)IRU(cid:3)H[DPSOH(cid:3)(cid:23)(cid:19)(cid:19)(cid:12)
8VHU(cid:29)(cid:3)%&(cid:25)(cid:21)(cid:20)(cid:16)QQ
3DVVZRUG(cid:29)(cid:3).856
3RUW(cid:29)(cid:3)68%6<67(0(cid:3)RI(cid:3)7\SH(cid:3)·’DWD·(cid:3)(cid:11)SUH(cid:3)SURJUDPPHG(cid:12)
’DWD ’DWD(cid:3)LQ(cid:3)7UDLQLQJ(cid:3)6\VWHP ’DWD(cid:3)LQ(cid:3),’(6(cid:3)6\VWHP
&XVWRPHU(cid:29)
Material SH-100 SH-100
Vendor T-BILQQ 1014
Purchasing Organization 1000 1000
Purchasing Group 001 001
Plant 1100 1100
9HQGRU(cid:29)
Material SH-100 SH-100
Sold-to party T-BIKQQ 1110
Order Type TA
Sales Organization 1020 1020
Distribution Channel 22 22
Division 00 00
QQ is your group number
(C) SAP AG BC621 3-11
第 36 页 / 共 65 页
8QLW(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)7\SH
• Make preparations for the extension
In the scenario send a purchase order to vendor T-BILQQ. In the second
step make the purchase order the sales order from customer T-BIKQQ.
In order to keep the exercises manageable, the IDoc type ORDLGT01 has been
introduced with message ORDLGT. This is a simplification of SAP standard
ORDERS01 and is only used for this course.
1-1 Prepare via /RJLVWLFV(cid:3)(cid:16)!(cid:3)0DWHULDOV(cid:3)PDQDJHPHQW(cid:3)(cid:16)!(cid:3)3XUFKDVLQJ(cid:3)(cid:16)!(cid:3)3XUFKDVH(cid:3)RUGHU(cid:3)(cid:16)
!(cid:3)&UHDWH(cid:3)(cid:16)!(cid:3)9HQGRU(cid:3)NQRZQ (transaction ME21) a purchase order with your vendor
T-BILQQ for methanol, material number SH-100. You belong to purchasing
organization 1000 and the purchasing group is 001. The methanol is being
purchased for plant 1100.
A partner profile for your partner already exists. It ensures that the IDoc is written
in a file and thus receives the status 03.
1-2 You simulate the incoming orders via the LQERXQG(cid:3)PRGLILHG(cid:3)RXWERXQG(cid:3)ILOH test
program from the purchase order. You can offer default values for source,
destination and port by choosing *RWR(cid:3)fi(cid:3)8VHU(cid:3)VHWWLQJV and selecting the port
SUBSYSTEM for the test.
Enter the following values on the tab page 6HQGHU:
Recipient, Port: SAP<SID>, System ID of SAP
system, for example SAPT80
Sender, Port: 68%6<67(0
Sender, partner number: 7(cid:16)%,.QQ
Sender, Partner type: .8
Sender, Partner function: $*
A corresponding inbound partner profile is already available. Select ([HFXWH. The
inbound IDoc generated gets status 51 with the error “document type NB
unknown”.
(C) SAP AG BC621 3-12
| Recipient, Port: | SAP<SID>, System ID of SAP system, for example SAPT80 |
|---|---|
| Sender, Port: | 68%6<67(0 |
| Sender, partner number: | 7(cid:16)%,.QQ |
| Sender, Partner type: | .8 |
| Sender, Partner function: | $* |
第 37 页 / 共 65 页
8QLW(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)7\SH
7RSLF(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)LQERXQG(cid:3)SURFHVVLQJ
• Get to know project administration
• Be able to write program code for inbound processing.
2-1 Extend the inbound processing of IDoc type ORDLGT01 to avoid errors status
“51”. Change the received error document type NB in one of the customer exits to
document type TA expected by the sales order. There is no need to extend the IDoc
type.
2-2 Create the 3URMHFW(cid:3)%&(cid:25)(cid:21)(cid:20)(cid:16)QQ in the project administration (transaction CMOD).
Select the SAP extension %&(cid:25)(cid:21)(cid:20)(QQ for the project. Write the extension code in
the inbound component.
2-3 Now activate your project.
2-4 Repeat the inbound sales order process with the help of the test program ,QERXQG
PRGLILHG(cid:3)RXWERXQG(cid:3)ILOH derived from the already created purchase order.
Enter the following values on the tab page 6HQGHU:
Recipient, Port: SAP<SID>, System ID of SAP
system, for example SAPT80
Sender, Port: 68%6<67(0
Sender, Partner number: 7(cid:16)%,.QQ
Sender, Partner type: .8
Sender, Partner function: $*
QQ is the number of your group (from 01 to 18)
(C) SAP AG BC621 3-13
| Recipient, Port: | SAP<SID>, System ID of SAP system, for example SAPT80 |
|---|---|
| Sender, Port: | 68%6<67(0 |
| Sender, Partner number: | 7(cid:16)%,.QQ |
| Sender, Partner type: | .8 |
| Sender, Partner function: | $* |
第 38 页 / 共 65 页
8QLW(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)7\SH
7RSLF(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)RXWERXQG(cid:3)SURFHVVLQJ
• Get to know project management
• Be able to write the program code for outbound processing
In exercise 1 the field for 6SHFLDOLVW(cid:3)QDPH remained blank, even though it
was defined in the IDoc type. Since it has been agreed with your partner
to transfer the field, you decide to take care of the field through a
customer exit. There is no need to extend the IDoc type.
3-1 Change the 3URMHFW(cid:3)%&(cid:25)(cid:21)(cid:20)(cid:16)QQ in the project management (transaction CMOD) or
create it for the first time (if you have not completed exercise 2). Select the SAP
extension %&(cid:25)(cid:21)(cid:20)(QQ for the project. Write the program code in the extension
component for the outbound processing.
3-2 Activate your project.
3-3 Now repeat the purchase order through /RJLVWLFV(cid:3)(cid:16)!(cid:3)0DWHULDOV(cid:3)PDQDJHPHQW(cid:3)(cid:16)!
3XUFKDVLQJ(cid:3)(cid:16)!(cid:3)3XUFKDVH(cid:3)RUGHU(cid:3)(cid:16)!(cid:3)&UHDWH(cid:3)(cid:16)!(cid:3)9HQGRU(cid:3)NQRZQ(cid:3)(transaction ME21) to
your vendor T-BILQQ for methanol, material number SH-100.
3-4 Change to 3XUFKDVH(cid:3)RUGHU(cid:3)fi ’LVSOD\. You can display the IDoc that was just
generated from the overview screen by choosing 6\VWHP(cid:3)fi(cid:3)/LQNV. Check that the
field with the user name has now been filled .
1RWH(cid:29) The number of filled fields is displayed in the bottom right area of the detail
display of a data record. It has increased to 8.
QQ is the number of your group (from 01 to 18)
(C) SAP AG BC621 3-14
第 39 页 / 共 65 页
8QLW(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)7\SH
7RSLF(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)WKH(cid:3)’DWD(cid:3)6WUXFWXUH(cid:3)(cid:11),’RF(cid:3)7\SH(cid:12)
• Know how to use IDoc type editor
Your IDoc type ORDLGT01 does not contain any fields in order to
transfer the document header delivery conditions. You have to extend the
data structure, that is, the IDoc type, since delivery conditions have been
agreed to with your partner.
4-1 First define the customer segment =(cid:20),1&2QQ in the segment editor. Customer
segment Z1INCOnn is to contain application fields INCO1 and INCO2. In the
application both fields INCO1 and INCO2 are contained in the structure EKKO.
4-2 In the segment editor, test that your definition is correct. Ignore the warning that the
segment has not yet been released.
4-3 Define the extension =(;7(1QQ(cid:3)in the IDoc type editor. Extend the basic IDoc
type ORDLGT01 by segment Z1INCOQQ.
4-4 Add to the logical message ORDLGT the basic type ORDLGT01 with the
extension ZEXTENQQ in the IDoc type editor.
4-5 In the IDoc type editor, test that your definition is correct. Ignore the warning that
the IDoc type as well as the segment Z1INCOQQ has not yet been released.
QQ is the number of your group (from 01 to 18)
(C) SAP AG BC621 3-15
第 40 页 / 共 65 页
8QLW(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)DQ(cid:3),’RF(cid:3)7\SH
7RSLF(cid:29)(cid:3)([WHQVLRQ(cid:3)RI(cid:3)2XWERXQG(cid:3)3URFHVVLQJ
• Revise project management
• Revise programming of outbound processing
After you have completed exercise 4, extending the customer segment
Z1INCOQQ of the IDoc type, in order to transfer the delivery conditions,
you now have to enter the delivery conditions in the customer segment in
a customer exit.
5-1 Change the 3URMHFW(cid:3)%&(cid:25)(cid:21)(cid:20)(cid:16)QQ in the project management (transaction CMOD) or
create it for the first time. Select the SAP extension %&(cid:25)(cid:21)(cid:20)(QQ for the project.
Write the program code in the extension component for the outbound processing.
5-2 Activate your project.
5-3 In partner agreement for vendor 7(cid:16)%,/QQ, in the outbound parameter table change
the IDoc type from basic IDoc type 25’/*7(cid:19)(cid:20)(cid:3)to extension =(;7(1QQ(cid:17)
5-4 Now repeat the purchase order through /RJLVWLFV(cid:3)(cid:16)!(cid:3)0DWHULDOV(cid:3)PDQDJHPHQW(cid:3)(cid:16)!
3XUFKDVLQJ(cid:3)(cid:16)!(cid:3)3XUFKDVH(cid:3)RUGHU(cid:3)(cid:16)!(cid:3)&UHDWH(cid:3)(cid:16)!(cid:3)9HQGRU(cid:3)NQRZQ(cid:3)(transaction ME21) to
your vendor T-BILQQ for methanol, material number SH-100.
5-5 Change to 3XUFKDVH(cid:3)RUGHU(cid:3)fi ’LVSOD\. You can display the IDoc that was just
generated from the overview screen by choosing 6\VWHP(cid:3)fi(cid:3)/LQNV. Check if
customer segment Z1INCOQQ was created and filled. The IDoc has status 03, that is
a file was generated.
QQ is the number of your group (from 01 to 18)