Skip to Content

Change WBS element (VBAP-PS_PSP_PNR) value in Sales order item exit?

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Nov 28, 2016 at 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?

    Add comment
    10|10000 characters needed characters exceeded

    • 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".

  • Nov 24, 2016 at 03: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

    Add comment
    10|10000 characters needed characters exceeded