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

Idoc Grouping error

Former Member
0 Likes
699

Hi,

Can anyone help me with the following:

- I've got a custom message type to send material master from my core SAP system to another SAP system. It is a reduced message type. My scenario is:

- 1.) I create a material for one plant in my core system (tcode MM01)

- 2.) I extend the same material to another plant (tcode MM01)

- 3.) In table BDCP i get change pointers for the applicable fields for my 1st step (with the same Doc no.)

- 4.) For step to I get less change pointers (which is correct) with a new Doc no.

I run RBDMIDOC to create the idocs and would like to get 2 idocs, one for my 1st plant and one for the extention to the 2nd plant. Unfortunitely I get one idoc.

The problem that I have is that plant 2 does not exist on my 2nd SAP system and with the one idoc it goes into error due to the fact that the plant does not exist (on table MARC). Is there anyway to split the 2 from one another?

Thanks,

Hein

Hi,

Can anyone help me with the following:

- I've got a custom message type to send material master from my core SAP system to another SAP system. It is a reduced message type. My scenario is:

- 1.) I create a material for one plant in my core system (tcode MM01)

- 2.) I extend the same material to another plant (tcode MM01)

- 3.) In table BDCP i get change pointers for the applicable fields for my 1st step (with the same Doc no.)

- 4.) For step to I get less change pointers (which is correct) with a new Doc no.

I run RBDMIDOC to create the idocs and would like to get 2 idocs, one for my 1st plant and one for the extention to the 2nd plant. Unfortunitely I get one idoc.

The problem that I have is that plant 2 does not exist on my 2nd SAP system and with the one idoc it goes into error due to the fact that the plant does not exist (on table MARC). Is there anyway to split the 2 from one another?

Thanks,

Hein

4 REPLIES 4
Read only

JL23
Active Contributor
0 Likes
653

what would you like to do with the second IDOC that has the update for the plant that does not exist in the other SAP system?

Wouldn't it be better to just get one IDOC without a segment for the second plant?`

Usually you could restrict the creation with a filter

Read only

Former Member
0 Likes
653

Hi Jürgen,

I would prefer to get only one segment - so leave out the one for the plant which I don't want. I did add filters to my distribution model, but apparently it doesnu2019t work. I will have a look.

Thank you,

Hein

Read only

Former Member
0 Likes
653

You can use the Distribution Model Filter to discard unwanted plant´s.

note: the filter contains only "true" values.

filter plant: 1000 means that the marc segments with plant 1000 is in the IDoc.

All other plant´s are filtered out.

you can enter more than one value.

If this is not working or you like to filter again a dic. table, then use the following badi:

BADI "IDOC_CREATION_CHECK" to Filter those Values and decide to create or not.

Read only

Former Member
0 Likes
653

Hi Gordon,

Jip, I managed it with my filters. There were some missing entries.

Thanks. All is working now.

Hein