Application Development 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: 

custom program to create outbound IDoc.

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

3 REPLIES 3

Former Member
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

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.