Idoc Steps

of 29 /29
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

Transcript of Idoc Steps

Page 1: Idoc Steps

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

Page 2: Idoc Steps

1) WE81 – MSG TYP: click on change button

2

Page 3: Idoc Steps

2) WE31 – DEVELOPM ENT SEGMENTS

Save it.

Come back to the initial screen

3

Page 4: Idoc Steps

1) WE30 – DEVELOP IDOC TYPES

4

Page 5: Idoc Steps

5

Page 6: Idoc Steps

Back and back then click on Continue or tick mark

Save it. Come BACK and

6

Page 7: Idoc Steps

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

Page 8: Idoc Steps

3) WE21 – PORTS IN IDOC PROCESSING

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

8

Page 9: Idoc Steps

Save the RFC Destination.

9

Page 10: Idoc Steps

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

10

Page 11: Idoc Steps

4) WE20 - PARTNER PROFILES

For Client: 800 INBOUND LOGICAL SYSTEM & OUTBOUND PARAMETERS

11

Page 12: Idoc Steps

12

Page 13: Idoc Steps

13

Page 14: Idoc Steps

14

Page 15: Idoc Steps

15

Page 16: Idoc Steps

For Client: 080 OUTBOUND LOGICAL SYSTEM & INBOUND PARAMETERS

Go to Tcode : WE20

16

Page 17: Idoc Steps

And Save it.

17

Page 18: Idoc Steps

5) Go to Tcode : SE38

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

18

Page 19: Idoc Steps

* SENDING_LOGICAL_SYSTEM_UNKNOWN = 4* OTHERS = 5 . IF sy-subrc = 0. 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

Page 20: Idoc Steps

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

Page 21: Idoc Steps

Add Message Type to the Model View

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

21

Page 22: Idoc Steps

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

22

Page 23: Idoc Steps

For IDOC Filtration first go to Tcode: BD10

To search for the Filtration object go to Tcode: BD59

23

Page 24: Idoc Steps

THEN CLICK ON NEW ENTRIES

NOW AGAIN GO TO TCODE: BD64 DISTRIBUTION MODEL

Double click on No Filter Set

24

Page 25: Idoc Steps

25

Page 26: Idoc Steps

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

Page 27: Idoc Steps

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

Page 28: Idoc Steps

28