You are on page 1of 28

STEPS: OUTBOUND IDOC PROCESSING CLIENT 800 TO CLIENT 080.

WEDI – Easy access menu (list of tcodes related to IDOC)

SALE – Implementation Guide Menu (Part of SPRO & Configuration part for IDOCS)

BD54 – to create LOGICAL SYSTEM.

SCC4 – TO ASSIGN LOGICAL SYSTEM TO THE CLIENT

1
1) WE81 – MSG TYP: click on change button

2
2) WE31 – DEVELOPM ENT SEGMENTS

Save it.

Come back to the initial screen

3
1) WE30 – DEVELOP IDOC TYPES

4
5
Back and back then click on Continue or tick mark

Save it. Come BACK and

6
Again if u try to release u will get

2) WE82 – OUTPUT TYPES & ASSIGN TO IDOC TYPES : click on change


button

save it in
a package under a transport request no.

7
3) WE21 – PORTS IN IDOC PROCESSING

To create RFC Destination go to TCODE: SM59 in another session.

8
Save the RFC Destination.

9
Now again in Tcode : WE21 assign the RFC Destination to the Port

10
4) WE20 - PARTNER PROFILES

For Client: 800  INBOUND LOGICAL SYSTEM & OUTBOUND


PARAMETERS

11
12
13
14
15
For Client: 080  OUTBOUND LOGICAL SYSTEM & INBOUND
PARAMETERS

Go to Tcode : WE20

16
And Save it.

5) Go to Tcode : SE38
17
REPORT ycoe_idoc30.
TABLES : mara.

TYPES : BEGIN OF t_mara,


matnr TYPE mara-matnr,
mtart TYPE mara-mtart,
END OF t_mara.

DATA : itab TYPE TABLE OF t_mara.


DATA : wa TYPE t_mara.

DATA : i_edidd TYPE edidd OCCURS 0 WITH HEADER LINE,


i_edidc TYPE edidc OCCURS 0 WITH HEADER LINE.

DATA : cdata TYPE edidc.


DATA : i_final TYPE ymmsd.

SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME TITLE text-008.


SELECT-OPTIONS : matnr FOR mara-matnr.
PARAMETERS : log_sys LIKE tbdlst-logsys.
SELECTION-SCREEN : END OF BLOCK b1.

START-OF-SELECTION.

SELECT matnr mtart FROM mara


INTO CORRESPONDING FIELDS OF TABLE itab
WHERE matnr IN matnr.

cdata-mestyp = 'MATMAS'.
cdata-idoctp = 'YIDOCSRT'.
cdata-rcvprt = 'LS'.
cdata-rcvprn = log_sys.

LOOP AT itab INTO wa.


i_final-matnr = wa-matnr.
i_final-mtart = wa-mtart.

i_edidd-segnam = 'YSEGSRT'.
i_edidd-sdata = i_final.

APPEND i_edidd.

ENDLOOP.

CALL FUNCTION 'MASTER_IDOC_DISTRIBUTE'


EXPORTING
master_idoc_control = cdata
* OBJ_TYPE = ''
* CHNUM = ''
TABLES
communication_idoc_control = i_edidc
master_idoc_data = i_edidd.
* EXCEPTIONS
* ERROR_IN_IDOC_CONTROL =1
* ERROR_WRITING_IDOC_STATUS =2
* ERROR_IN_IDOC_DATA =3
* SENDING_LOGICAL_SYSTEM_UNKNOWN =4
* OTHERS =5
.
IF sy-subrc = 0.

18
LOOP AT i_edidc.
WRITE:/ 'IDOC GENERATED ',i_edidc-docnum.
ENDLOOP.
ENDIF.

Report O/P

6) WE02/WE05 to find the status of the IDOC

19
7) BD64 – DISTRIBUTION MODEL . Click on CHANGE button

BD64 – DISTRIBUTION MODEL --- Creates a Communication IDOC

BD10 is for MATMAS instead of the YProgram that uses the FM


MASTER_IDOC_DISTRIBUTE

20
Add Message Type to the Model View

If already exits in another model view try to delete it first and save

21
Now on the DISPLAY mode select the D.Model created & in the
menu go to

22
For IDOC Filtration first go to Tcode: BD10

To search for the Filtration object go to Tcode: BD59

23
THEN CLICK ON NEW ENTRIES

NOW AGAIN GO TO TCODE: BD64 DISTRIBUTION MODEL

Double click on No Filter Set

24
25
Then save the Distribution Model

Then again try to execute the program from SE38

And check the IDOC status from WE02/WE05.

Tcode : WE41 to create a PROCESS CODE.

BD87

26
With this IDOC PARTNER NO login in to the receiver system eg
client : 900

Go to tcode : WE02 enter the IDOC Partner no in the IDOC Number


input field and find the status of it in the receiver side.

27
28

You might also like