Sie sind auf Seite 1von 4

Steps for creating and processing idocs with custom message & programs Steps need to do in Source Client.

Ex: source is 800 Target is 810. 1) 2) 3) 4) 5) Create Ztable with some fields and maintain entries. Create Segment in WE31 ( with same fields in ZTABLE). Create Basic IDOC type in WE30 . Create Message type in WE81. Assign message type to basic IDOC type in WE82.

Common Steps in Both systems. 1) Define Logical system ( <SYSID>CLNT<NNN>). 2) Assign Logical systems to client (This is unique). 3) Then Go to SM59 ( RFC Destinations creation / SALE -> Communication -> Create RFC connections). 4) Here give the entries reverse ( Like when creating in Source provide target client details) . Then save and click on TEST CONNECTION . you can check this by login from there it self. 5) Then Create ports from WE21 transaction in Transactional RFC . 6) In creating Ports use OWN POR NAME radio button and give the RFC destination as reverse . Example when you create port in Source system please provide the Target RFC destination and in Target system provide the Source RFC destination. Individual Steps in SOURCE system. 7) Now in Source system go to WE20 and assign outbound message for the partner in type LS and provide the all details. 8) Go to BD64 and create MODEL VIEW. 9) Select that Model view and EDIT -> MESSAGE TYPE. 10) Select the Model view and ENVIRONMENT -> Generate Partner Profile. Here it has to show the message like below. 11)

12) Then select the model view and EDIT - > MODEL VIEW -> DISTRIBUTE. Then in displayed dialog box select the partner client and activate.

13)

14) 15) Now create Z program as explained . in attachment. Steps in Target Client: 1) Create function group from SE37. and create function module in SE37 assign the above function module. 2) Import parameters . 3)

4) Export parameters: 5)

6)

7) 8) Then in Source code see last attachment with the name code in FM. 9) Assign FM to LOGICAL MESSAGE in WE57 transaction code.
Specify created FM name, Function Type, Basic Type (IDOC), Message Type, and Direction and click on SAVE button.

10) Go to BD51 and Specify FM name and input type as 2. 11) Then goto WE42 and create process code : click on new entries and the process code name then select the below radio buttons.

give

12) 13) Give the designed FM. 14) Then click on LOGICAL Message in same transaction . and provide below details. 15)

16) Now got to WE20 in LS partner type select existing partner and assign message type in inbound and provide the process code designed above save come back.

17) Then go to BD64. select the distributed model view and ENVIRONMENT -> GENERATE PARTNER PROFILE. Then you can see the messages of generated.

Now go to source client : Maintain some entries in ZTABLE then execute the ZPROGRAM. It will show the generated IDOC number . then see the IDOC generated in WE02/WE05. 1. If it is in 03 status fine. Else take the IDOC and execute in WE19 . then it generates IDOC . 2. Then go to Target client and check the generated IDOC and see the table with same entries as source client .

FM in target client :
C:\Docum ents and Settings\Adm inistrator\Desktop\ZALE_IDOC_FM.txt

Program in Source client

C:\Docum ents and Settings\Adm inistrator\Desktop\ZTEST_ALE_Program .txt

Das könnte Ihnen auch gefallen