If you have a scnerio that you want to call BD10, so that you could create idocs for only those materials which are changed alongwith full details and same for customer master(BD12). Then below code can help you fasten the build process.
1. A class is created with 2 methods, first is to read the change pointers and the other method is to update the BDCP2 Process indicator, so that same records are not processed again with BD10 or BD12.
2. A custom program is created to call these 2 methods with input field as message type.