09-03-2010 9:06 AM
Hello All,
I am trying to send material master IDOCs with classification data from ECC 6 to PI.
In the distribution model I have activated MATMAS & CLFMAS message types, when i run BD21 with these message types, I get 2 different IDOcs which i can relate with the material number & OBJKEY.
However i have a requirement to send the materials in full. When i just change MM classification data, only CLFMAS is generated & when i just chage M* related tables only MATMAS is generated. Is there any way to generate MATMAS & CLFMAS in tandem when either one of them is changed?
I see in the CLFMAS filter criteria there is a 'MATMAS' checkbox which is a 'dependent distribution object'; can I make use of this?? I tried to but i get an error 'No function module has been assigned to business object type BUS1001006'; apparently there is not entry for MATMAS in table TBD14.
This is how far i could get guys, can you please guide me from here??
Your help is much appreciated!
BR
Sudhir
09-06-2010 10:46 AM
>
> However i have a requirement to send the materials in full. When i just change MM classification data, only CLFMAS is generated & when i just chage M* related tables only MATMAS is generated. Is there any way to generate MATMAS & CLFMAS in tandem when either one of them is changed?
Try to active BD50 change pointer for MATMAS & CLFMAS so IDocs are generated automatically.
09-06-2010 11:26 AM
Hi Sudhir,
I also working on the same kind of Interface, did you findout a way to send the material master and Clasification data together in the same IDoc?
Regards,
Senthil
09-07-2010 12:14 PM
No Senthil, i don't think we can club IDOCs like that. So I am sending 2 different IDOCs now.
Would you know how to populate all the segments of MATMAS IDOC when any one view is changed in MM02? I have to send the material in full always & i don't want to use BD10.
Thanks
Sudhir
09-07-2010 12:16 PM
And ofcourse I am using change pointers & the distribution is setup fine, I am generating IDOCs as well, but not in full when a material is changed!
09-07-2010 2:45 PM
Hi Sudhir ,
Follow the below steps.
1.Extend Material Idoc type MATMAS03 by adding the required classification data Segment.
2.In BD52 maintian the classification segment like this
CLASSIFY ABAUSP ATWRT
CLASSIF AUSPB DUMMY
CLASSIFY ABAUSP KEY
by the above classiftion changes shall be logged into BDCPV table.
3.Create the classification material data using the BTE 4005(Tcode FIBF) into the table BDCPV using the function module CHANGE_POINTERS_CREATE_DIRECT.
by this you can relate the materail and classification changes
4. with the copy of FM MASTERIDOC_CREATE_SMD_MATMAS, make an arrangement to populate the 'ABAUSP' same as 'MARA'
build all keystructures from the chnage pointers
LOOP AT T_CHGPTRS.
CASE T_CHGPTRS-TABNAME.
table MARA
table MARA from change document equals the original table MARA
WHEN 'MARA'.
.......
WHEN 'ABAUSP'
Populate your data.
5.provide the custom fucntion zMASTERIDOC_CREATE_SMD_MATMAS in the bd60.
Run your RBDMIDOC program , will create Idocs.
Thanks
Sree M