Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

problem

Former Member
0 Kudos
286

Hi all

I am trying to send MATMAS data from one R/3 to another.

I have achieved the connection and It is running fine with WE19.

I want to trigger the idocs automatically.

How can I trigger IDOCS automatically.

Can anybody suggest me how to develop code for this.

Thankyou

1 ACCEPTED SOLUTION

Former Member
0 Kudos
128

Hi all

I am trying to send material data form one R/3 to another. First I am trying to send material data by using bd10 for testing purposes.

I chose the lower limit and upper limit and logical system as receiver R/3.

Two errors are coming up .

1) 161 master idoc’s generated for type matmas.

2) 0 communication idocs generated for message type matmas

please help

Thankyou

6 REPLIES 6

jayanthi_jayaraman
Active Contributor
0 Kudos
128

Former Member
0 Kudos
128

hi simon,

you can do that using transaction BD10.

Here u can specify the material names and make it send automatically.

Even if u want it to be send automatically without user typing the material name in BD10, u can do that using either call transaction or seession for BD10 and scheduling the BDC program in SM36 to run periodically.

Else if u want to send only the changes automatically periodically, instead of whole extract, then do the following.

1) Go to transaction BD61 and activate change pointers.

2) Goto transaction BD50 and activate change pointer for message type MATMAS.

3)Perform a BDC program for the transaction BD21 passing the IDOC type (MAtMAS01 or anyotherversions)or IDoc number.

4)Schedule this program to run periodically. (In sm36)

So now changes to ur material master is sent as idoc periodically .

here the use of BD21 is to trigger the IDOc generation for the changes of particular IDoc type.

I think this will be sufficient for u to do it successfully.

Lemme knwo u solved the problem by awarding points.

with regards,

praveen.

Message was edited by: Praveen Rajendran

Former Member
0 Kudos
129

Hi all

I am trying to send material data form one R/3 to another. First I am trying to send material data by using bd10 for testing purposes.

I chose the lower limit and upper limit and logical system as receiver R/3.

Two errors are coming up .

1) 161 master idoc’s generated for type matmas.

2) 0 communication idocs generated for message type matmas

please help

Thankyou

0 Kudos
128

Hi Simon,

You need to create ALE distribution model. Run transaction BD64. Create a model view. Add a message type to that model view. Enter your source and target system. Enter message type MATMAS. Then make sure you create an Idoc port definition(WE21) and partner profile (WE20).

0 Kudos
128

hi simon,

u first have to create port definition (trfc ports), partner profile(LS, logical system) in we21 and we20 respectively.

then u gotto create custom distribution model in bd64.

U give sender system, receiver system and store the model.

now u go to the bd64 menus. in a menu, u'll find a option 'generate partner profile'. select it.

then u have to provide all necessary details it ask for, in that screen and execute it. U have to get messge that, sync is genereted and partener found and genertaed.

If u do all this, u r done with that.

and then do all the change pointer stuff i said in the previous post.

let me knwo whether u solved it, by giving points.

with regards,

praveen.

0 Kudos
128

Hi,

Try this link for any information you need on ALE.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an advanced guide to implementing application link enabling.pdf

regards

Aveek