Professional Documents
Culture Documents
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.
2) WE82 OUTPUT TYPES & ASSIGN TO IDOC TYPES : click on change button
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
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
Report O/P
19
BD64 DISTRIBUTION MODEL --- Creates a Communication IDOC BD10 is for MATMAS instead of the YProgram that uses the FM MASTER_IDOC_DISTRIBUTE
20
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
23
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