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

Need help ion change pointers.

Former Member
0 Likes
758

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

4 REPLIES 4
Read only

Former Member
0 Likes
668

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

Read only

0 Likes
668

Hi,

Thanks for your reply..

Could you please elobarate little more on this. or do u have any document on this.

Thanks

Sahil

Read only

0 Likes
668

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

Read only

Former Member
0 Likes
668

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.