Idoc Steps

April 26, 2018 | Author: muralisrt | Category: Computing, Technology, Software, Areas Of Computer Science, Computer Programming
Share Embed Donate


Short Description

Download Idoc Steps...

Description

STEPS: OUTBOUND IDOC PROCESSING 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 WE31 – DEVEL DEVELOPM OPM ENT ENT SEGMEN SEGMENTS TS

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 – POR PORTS TS IN IDOC PROCE PROCESS SSING ING

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

8

Save the RFC Destination.

9

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

10

4) WE20 - PARTNER ARTNER PROFILES PROFILES For Client: 800 PARAMETERS

INBOUND LOGICAL SYSTEM & OUTBOUND

11

12

13

14

15

For Client: 080 PARAMETERS

OUTBOUND LOGICAL SYSTEM & INBOUND

Go to Tcode : WE20

16

And Save it.

5) Go to Tcod Tcode e : SE38 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 PARAMETERS : log_sys LIKE tbdlst-logsys. tbdlst-logs ys. 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 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 master_idoc_ control = cdata * OBJ_TYPE = '' * CHNUM = '' TABLES communication_idoc_control communicatio n_idoc_control = i_edidc master_idoc_data master_idoc_ data = i_edidd. * EXCEPTIONS * ERROR_IN_IDOC_CONTROL ERROR_IN_IDOC_CONT ROL =1 * ERROR_WRITING_IDOC_STA ERROR_WRITING_ID OC_STATUS TUS =2 * ERROR_IN_IDOC_DATA ERROR_IN_IDOC_DAT A =3 * SENDING_LOGICAL_SYSTEM_UNKNOWN SENDING_LOGICAL_SY STEM_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/WE0 WE02/WE05 5 to find the the status 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. WE02/WE05. Tcode : WE41 to create a PROCESS CODE.

BD87

26

With this IDOC PARTNE PARTNER R 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

View more...

Comments

Copyright ©2017 KUPDF Inc.
SUPPORT KUPDF