‎2010 Feb 20 6:05 AM
Hi,
I am Using Change pointer for a change/create of material master data.
At regular intervals (currently proposed hourly) i need to execute the function module MASTERIDOC_CREATE_SMD_MATMAS to create an output message and send it to PI Middleware. The Middleware examines the changed fields contained in the MATMAS IDOC.
The following things to be perfomed.
1. If the change pointer is for a material with its client level deletion flag set then an output message is not generated for that material.
2. If the change pointer is for a plant specific field then it can be ignored.
Could you please guide me as to hw can i achieve ths?
ans also Hw can i make the FM MASTERIDOC_CREATE_SMD_MATMAS to execute on regular intervals.
PLease do reply.
Thanks
Sahil
‎2010 Feb 20 6:48 AM
Hi,
1. You need to execute BD21 for your message type to send the IDOCs for the change pointers created in DB. This is nothing but executing your FM "MASTERIDOC_CREATE_SMD_MATMAS". You need to schedule a back ground job for this.
2. Implement "FILTER_BDCPV_BEFORE_WRITE" method of the BADI "BDCP_BEFORE_WRITE" to filter your requirements. This methos has Message Type name as import parameter (FLT_VAL). You can find out information related to type of change using the import parameters CHANGE_DOCUMENT_HEADER and CHANGE_DOCUMENT_POSITIONS. If any change need to be filtered, just use the changing parameter "CHANGE_POINTERS" of this method.
Hope this helps you!!!
Regards,
Ganga
‎2010 Feb 20 7:11 AM
Hi,
Thanks for your reply..
Could you please elobarate little more on this. or do u have any document on this.
Thanks
Sahil
‎2010 Feb 20 7:17 AM
I don't have any documents with me. But BD21 is pretty clear right? May be you can search in SCN.
Regarding the BADI, put a break point after creating an implementation and run BD21, so that you can analyze.
Ganga
‎2010 Feb 22 4:27 AM
Hi..
please check the fields in transaction BD52 by giving Message type as Matmas. select only the required fields(Mandatory) for which u want to track the changes and delete remaining fields.
Regards,
Lokeswari.