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

Enhancement in Tcode CS02

suryasarathi_basu
Participant
0 Likes
1,038

Hi Experts,

I have a requirement from my client. When a Material BOM gets changed from CS02 a mail will trigger. I have found a BADI

bom_update with method CHANGE_AT_SAVE but can not understand which field is getting changed from the parameters of the mentioned method. For example, how to know which BOM item got deleted? Can anyone suggest me on this ?

Thanks in advance.

Regards,

SURYA

Edited by: suryabasu on Dec 19, 2011 2:56 PM

5 REPLIES 5
Read only

suryasarathi_basu
Participant
0 Likes
792

actually when i m deleting an item it is showing in delta_stpob with other items which are not deleted. so how to differentiate in this case?. Please can anyone suggest me?

Regards,

SURYA

Edited by: suryabasu on Dec 19, 2011 8:20 PM

Read only

0 Likes
792

Hi

I had a look in BADI method and what is feel is since you the change number in CHANGE_AT_SAVE can you just check if corresponding this change number we have entries in CDHDR and CDPOS. If yes then you can use them to idenfitfy what is changed.

Else please look into below mentioned link for your query.

<link to blocked site removed by moderator>

Thanks

Nabheet

Edited by: Thomas Zloch on Dec 21, 2011 12:26 AM

Read only

0 Likes
792

Hi Surya,

Pls check field VBKZ in Delta_Stpob. We can see the indicator 'D' for the item deleted.

Thanks.

Read only

0 Likes
792

Hi Ashok,

Thanks for your reply.

In method change_at_save i found that the indicator is not getting updated with 'D' but in change_before_update method of the same badi i can see the 'D' indicator.

regards,

SURYA

Read only

suryasarathi_basu
Participant
0 Likes
792

solved