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

BADI WORKORDER_UPDATE

Former Member
0 Likes
852

Hi there, sappers.

We are trying to use BADI WORKORDER_UPDATE to perform an additional task (in a different work process) after system update of a production order, when releasing it.

For this purpose, we are trying to use methods AT_RELEASE and then IN_UPDATE. If the order passed through the first method, it means it is being released; then, when it goes through the second method, I should perform the additional task.

Our problem is how to make these two different methods communicate with each other. In user-exits, a global variable defined at top level would do the trick. We tried exporting/importing to/from memory, but it also did not work.

Surely there is a simple way of doing this and one of you experts can help us out... can any of you?

Best regards,

Nuno Dionísio

1 REPLY 1
Read only

Former Member
0 Likes
543

Hi,

There can be multiple implementations for a BADi Definition and the order of execution is determined at runtime only. You cannot use the variable here like in exits. So I feel like you can call a function module exporting the status which can be declared in the top include of the function group. Again call another function module in the same function group with this status as import parameter. This is just a suggestion. I have not tried it. Please follow other logics if you get more good responses.

Regards.