Application Development and Automation 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:Ā 
Read only

ALE/IDOC

Former Member
0 Likes
1,075

Hi Experts, I’m new to ALE/IDOC concept.

A simple ALE Scenario:

<b>I have created new IDoc type ZMATMASZ as a copy of MATMAS05 by extending the basic IDoc type MATMAS05 with a new segment ZE1xxxxX to accommodate some custom fields in it and wrote the outbound program using enhancement.</b>

<b>CENTRAL SYSTEM (A)

SALES SYSTEM (B)

PRODUCTION PLANNING SYSTEM(C).</b>

Suppose we have 3 decentralized systems. One is central system and another two related to different modules.

Previously the CENTRAL SYSTEM (A) has been activated for change pointers

[BD61, BD50 (Message type MATMAS), BD52 (With some key fields), BD21 (RBDMIDOC) to create IDoc’s using change-pointers], so that if any changes made in A should be reflected in B & C.

<b>Questions)</b>

1) As soon as I transfer/pass Data using BD10 into the new segment, Is change-pointers is triggered automatically (or) we had to activate change-pointers once again for the newly created IDoc (created by extending basic IDoc type) for the message type MATMAS.

2) Is the existing MESSAGE Type MATMAS supports the NEW IDOC TYPE ZMATMASZ (Created by extending the Basic IDoc type MATMAS05) OR we have to create develop a new MESSAGE Type.

Is a MATMAS support for all extended IDoc’s (using MATMASxx)?

3) I want to send the Data only to System B; it’s not needed in system C. How can I restrict those changes not to be transported to system C.?

4) Now I want to activate change-pointers for a particular field in the custom-segment (ZE1xxxxX), so that any changes made in future to this field should result in creating change documents and should create an IDoc (with related changes made) for the two receivers B & C to keep them in synchronized.

How can I get it? Explain?

5) Suppose I have 6 segments, Example as in this hierarchy

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX(custom segment)

E1MVEGM

E1MARMM

E1MBEWM

Now, I want only the Data in

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX (custom segment) segments to be posted from A to B & C restricting the remaining segments.

How can I achieve it? Explain.

Pl make some time to answer these questions.

Hopefully…Thanking u in advance.

Ajay Kumar.<b></b>

Hi Experts, I’m new to ALE/IDOC concept.

A simple ALE Scenario:

<b>I have created new IDoc type ZMATMASZ as a copy of MATMAS05 by extending the basic IDoc type MATMAS05 with a new segment ZE1xxxxX to accommodate some custom fields in it and wrote the outbound program using enhancement.</b>

<b>CENTRAL SYSTEM (A)

SALES SYSTEM (B)

PRODUCTION PLANNING SYSTEM(C).</b>

Suppose we have 3 decentralized systems. One is central system and another two related to different modules.

Previously the CENTRAL SYSTEM (A) has been activated for change pointers

[BD61, BD50 (Message type MATMAS), BD52 (With some key fields), BD21 (RBDMIDOC) to create IDoc’s using change-pointers], so that if any changes made in A should be reflected in B & C.

<b>Questions)</b>

1) As soon as I transfer/pass Data using BD10 into the new segment, Is change-pointers is triggered automatically (or) we had to activate change-pointers once again for the newly created IDoc (created by extending basic IDoc type) for the message type MATMAS.

2) Is the existing MESSAGE Type MATMAS supports the NEW IDOC TYPE ZMATMASZ (Created by extending the Basic IDoc type MATMAS05) OR we have to create develop a new MESSAGE Type.

Is a MATMAS support for all extended IDoc’s (using MATMASxx)?

3) I want to send the Data only to System B; it’s not needed in system C. How can I restrict those changes not to be transported to system C.?

4) Now I want to activate change-pointers for a particular field in the custom-segment (ZE1xxxxX), so that any changes made in future to this field should result in creating change documents and should create an IDoc (with related changes made) for the two receivers B & C to keep them in synchronized.

How can I get it? Explain?

5) Suppose I have 6 segments, Example as in this hierarchy

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX(custom segment)

E1MVEGM

E1MARMM

E1MBEWM

Now, I want only the Data in

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX (custom segment) segments to be posted from A to B & C restricting the remaining segments.

How can I achieve it? Explain.

Pl make some time to answer these questions.

Hopefully…Thanking u in advance.

Ajay Kumar.<b></b>

5 REPLIES 5
Read only

Former Member
0 Likes
884

Use WE32 Transaction to filter out which data you need,

Assign IDOC View In Partner profile.

Reward Points if it is helpful.

Thanks

Seshu

Read only

Former Member
0 Likes
884

Hi,

Here are the answers to your question upto best of my knowledge.

1) As soon as I transfer/pass Data using BD10 into the new segment, Is change-pointers is triggered automatically (or) we had to activate change-pointers once again for the newly created IDoc (created by extending basic IDoc type) for the message type MATMAS.

<b>Ans:</b> You use BD10 only to send data first time to system B & C. No matter if there is any change to material or not, everytime you run BD10 for any material, it sends out the idoc. One you have done the change pointers related config, anytime any material has been changed, the idoc will be triggered automatically.

2) Is the existing MESSAGE Type MATMAS supports the NEW IDOC TYPE ZMATMASZ (Created by extending the Basic IDoc type MATMAS05) OR we have to create develop a new MESSAGE Type.

Is a MATMAS support for all extended IDoc’s (using MATMASxx)?

<b>Ans:</b> You do not have to create a custom message type instead go to transaction <b>WE82</b> and create an entry will Message type = MATMAS, basic type = MATMAS05 and Extension = ZMATMAS05. You just need to link new idoc type to message type. Rest SAP will take care of if.

Also when you create a disctibution model in <b>BD64</b> and you generate partner profile;

- go to transaction <b>WE20</b>,

- select outbound partner profile for meterial master.

- Go to change mode

- The place where idoc type - MATMAS05 is mentioned, also mentioned extension = ZMATMAS05.

3) I want to send the Data only to System B; it’s not needed in system C. How can I restrict those changes not to be transported to system C.?

<b>Ans:</b> Then do not create a distribution model and distribution it to system C

4) Now I want to activate change-pointers for a particular field in the custom-segment (ZE1xxxxX), so that any changes made in future to this field should result in creating change documents and should create an IDoc (with related changes made) for the two receivers B & C to keep them in synchronized.

How can I get it? Explain?

<b>Ans:</b> I do not have much idea about this but i guess you will have to configure it in <b>BD52</b>.

5) Suppose I have 6 segments, Example as in this hierarchy

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX(custom segment)

E1MVEGM

E1MARMM

E1MBEWM

Now, I want only the Data in

E1MARAM

E1MAKTM

E1MARCM---- ZE1xxxxX (custom segment) segments to be posted from A to B & C restricting the remaining segments.

How can I achieve it? Explain.

<b>Ans:</b> When you create a distribution model in BD64, you can set a filter there.

I hope this will help you.

Let me know if you have any question.

Regards,

RS

Read only

0 Likes
884

thank u RS for ur helpful answers, i hav rewarded some points to u.

i have some doubts yet to be clarified.

I have to send some material data from SYSTEM A to SYSTEM B using BD10.

EX: matnr--> 1 to 100,

[NOTE: change-pointers are activated in system A].

Previously there were matnr 1 to 100 on SYSTEM A and SYSTEM B.

Now i'm extending the MATMAS05( in system A) to ZMATMAS05 with a new Custom segment ZE1xxxxx to add some extra data into it.

1) Now, i want to add this extra data( ZE1xxxx)/ changes to the same matnr--> 1 to 100 in the receiving system B.

Is the system UPDATE's the matnr--> 1 to 100 with the new data for custom fields.

what happens exactly, pl explain.

2) I've assigned the BASIC IDoc type, Extended IDoc type and Message type in using BD82.

[NOTE: change-pointers are activated in system A].

a) we know change-pointers are activated only for the respective MESSAGE TYPE(BD50)

while i execute BD52 can i see the fields tat i have added in the segment ZE1xxxx. so that i want to keep track on certain field in ZE1xxxx whle any changes made to them reflected in remote systems.

Read only

0 Likes
884

Hi,

Here are the answers to your questions.

1) Now, i want to add this extra data( ZE1xxxx)/ changes to the same matnr--> 1 to 100 in the receiving system B.

Is the system UPDATE's the matnr--> 1 to 100 with the new data for custom fields.

what happens exactly, pl explain.

<b>Ans.</b> First of all, to get the custom fields data into System B you will have to extext the idoc in system B to as you did in System A.

To store the data into System B, you will have use the enhancement <b>MGV00001</b> and the user-exit is <b>EXIT_SAPLMV02_002.</b>

2) I've assigned the BASIC IDoc type, Extended IDoc type and Message type in using BD82.

[NOTE: change-pointers are activated in system A].

a) we know change-pointers are activated only for the respective MESSAGE TYPE(BD50)

while i execute BD52 can i see the fields tat i have added in the segment ZE1xxxx. so that i want to keep track on certain field in ZE1xxxx whle any changes made to them reflected in remote systems.

<b>Ans.</b> I am not sure how to do this but when if you looked at BD52 you will see that you add new fields here. This might be a trick for you.

Let me know if you have any question.

Regards,

RS

Read only

0 Likes
884

Thank U once again RS.

I haven't got the exact answer, wat i needed.

one more query pl

In ALE/IDOC, i want to add only a single extra field to an BASIC IDOC TYPE ex: MATMAS05 with extending it.

Now,

1) for adding a single field also we have to go through extending the BASIC IDOC TYPE. (or)

can we do any MODIFICATION to earlier segments to include a new field in it without extending it.

thanks in advance..

ajay...