2016 Nov 24 1:34 PM
Hi colleagues,
I tried to us Exit MV45AFZZ->USEREXIT_MOVE_FIELD_TO_VBAP to modify WBS element (VBAP-PS_PSP_PNR) during Sales Order editing. But the problem is that when I change WBS element (VBAP-PS_PSP_PNR) value in SO item level, the above user exit is not called. But I would like to mention that, for example, when I change Customer Material Numb or some other field in SO item level then the above user exit is called.
Can anyone explain why it is different for WBS element (VBAP-PS_PSP_PNR) and user exit is not called (some other user exit should be used)?
My requirement is to add WBS Element value to BOM sub items when value in main BOM WBS element is added/changed (when BOM is exposed). Maybe there is way it can be configured in customizing and ABAP development is not needed?
If you need additional information, please let me know. Any suggestions would be helpful.
BR, Kristaps
2016 Nov 28 11:11 PM
I'd think in BOM scenario if WBS added to the main item it should be copied to the other items by standard and no user exit should be needed. Have you tried searching for the SAP Notes? What did the SD consultant say about this? Maybe it's worth reaching to the SAP Support?
2016 Nov 24 3:32 PM
AFAIK (Copy Customer Master Fields Into The Sales Document) USEREXIT_MOVE_FIELD_TO_VBAP is only triggered to copy some customer master fields (e.g. KNA1, KNVV, etc.) changing the WBS doesn't seem to trigger it, this you coul look in Customizing for copy rules. From Abap point of view you could also look in User Exits In Sales Document Processing for USEREXIT_SAVE_DOCUMENT_PREPARE, but it will not react immediatelly. For a quicker response, look at exits like USEREXIT_CHECK_VBAP or even a COBL exit?
Regards,
Raymond
2016 Nov 25 3:44 PM
Hi,
Thanks for your reply. Can you please say me where this Customizing for copy rules could be done for WBS element? Can you provide steps here
BR, Kristaps
2016 Nov 28 11:11 PM
I'd think in BOM scenario if WBS added to the main item it should be copied to the other items by standard and no user exit should be needed. Have you tried searching for the SAP Notes? What did the SD consultant say about this? Maybe it's worth reaching to the SAP Support?
2016 Dec 02 8:04 AM
Good morning Jelena,
I agree with you that WBS element to Sub BOM items should be copied automatically by customizing. We checked and for some items it is already done, but as we have different Item Categories for BOM items for business needs, it is not possible to achieve this for all items. So we are trying to use user exits to achieve needed functionality (created another thread about user exits and BOM exposure - https://answers.sap.com/questions/75124/bom-exposure-in-sales-order.html).
Maybe there is a way how to configure Item category so that it adds Copying feature, but do not affect other functionality for item that is present at the moment?
2016 Dec 02 7:25 PM
This was posted with ABAP tag, I believe you need to ask SD/MM people about the configuration. It just seemed logical to me that WBS should be copied. But if you're saying there is more to it then all bets are off. In general, KISS is a good principle, in SAP in particular, so just make sure you are not over-complicating your business process. "Business needs" could be merely "business wants".