2010 Apr 05 2:36 AM
Hi All,
I want to create a custom program to create BOMMAT IDoc for any create/change of BOM using CS01,CS02,C201 or C201.
Because standard change pointers for alternative BOM's are not working.
I can able to create BOMMAT idoc using 'MASTER_IDOC_DISTRIBUTE if I know the change information .
Should I use change_pointers_read to capture the change info ? if yes please let me know how to use this FM .
Please suggest me the best way .
Thanks,
Vinay.
2010 Apr 05 4:09 PM
Hi Vinay
get change pointers
Fm: CHANGE_POINTERS_READ
exporting
change_document_object_class = 'STUE_V'
creation_date_high = <creation Date>
creation_time_high = <creationTime>
message_type = message_type
tables
change_pointers = lv_chng_ptrs
(lv_chng_ptrs like bdcp )
bom is processed -> create Idoc
FMl: MASTER_IDOC_CREATE_BOMMAT
mark change pointers as processed
CHANGE_POINTERS_STATUS_WRITE'
commit work.
call function 'DEQUEUE_ALL'.
Above info helps you
Thanks
Ramesh
2010 Apr 05 8:51 AM
You can also try to copy it to z i.e. custom and then activate change pointers for this. Add function module to it from BD60
2010 Apr 05 4:09 PM
Hi Vinay
get change pointers
Fm: CHANGE_POINTERS_READ
exporting
change_document_object_class = 'STUE_V'
creation_date_high = <creation Date>
creation_time_high = <creationTime>
message_type = message_type
tables
change_pointers = lv_chng_ptrs
(lv_chng_ptrs like bdcp )
bom is processed -> create Idoc
FMl: MASTER_IDOC_CREATE_BOMMAT
mark change pointers as processed
CHANGE_POINTERS_STATUS_WRITE'
commit work.
call function 'DEQUEUE_ALL'.
Above info helps you
Thanks
Ramesh
2010 Apr 05 4:59 PM
Hi Ramesh,
Thanks for useful answer !
Here I can't use MASTER_IDOC_CREATE_BOMMAT because this will not work for my BOM aletrnatives
So I am using fm master_idoc_distribute .
So could you please let me know How to manage the date and time in change_pointers_read for background job ?
Thanks,
Vinay.