cancel
Showing results for 
Search instead for 
Did you mean: 

BADI 'WORKORDER_UPDATE' issue

FreddieJr
Newcomer
0 Kudos

Hi,

I'm trying to implement a functionality in app "Maintenance Notifications" wherein upon executing the 'Generate Order', it will copy the attached documents of the notification into the created work order.

I'm using BADI 'WORKORDER_UPDATE' and tried implementing it in 'IN_UPDATE' method by calling the following FMs:
1. DOKUMENTE_ZU_OBJEKT: to get the attached documents from the notification
2. BAPI_DOCUMENT_SAVEOBJECTLINKS : to copy the documents from notification to the work order

the problem is upon execution, the order is actually not yet existing in the system, thus BAPI_DOCUMENT_SAVEOBJECTLINKS fails and returns an error 'Object does not exist'. Can you suggest of another approach---badi/exit to implement this?

Accepted Solutions (0)

Answers (1)

Answers (1)

Ryan-Crosby
Active Contributor
0 Kudos

I think you would want to look into implementing the method NUMBER_SWITCH in combination with one or more other methods to achieve your goal.Screenshot 2024-01-26 at 13.48.48.png

Regards,

Ryan Crosby