Application Development 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: 

badi WORKORDER_UPDATE

former_member182371
Active Contributor
0 Kudos
6,158

Hi,

i´m using badi

WORKORDER_UPDATE

.
i´m trying to check field AFVGD-USR00 (operation, details, field materials group) before saving the changes to this field.
i´ve essayed to do it in method

BEFORE_UPDATE

but the saving takes place before because i get the corresponding message of the changes being saved.

Any idea of how can i solve this?

that is, where do i have to implement my code in order to check the field before changes being saved?

Best regards.

1 ACCEPTED SOLUTION

ramki_maley
Active Contributor
0 Kudos
1,159

Please try method AT_SAVE. I believe you implement BEFORE_UPDATE to include your own database changes in the update processing.

Cheers,

Ramki.

5 REPLIES 5

ramki_maley
Active Contributor
0 Kudos
1,160

Please try method AT_SAVE. I believe you implement BEFORE_UPDATE to include your own database changes in the update processing.

Cheers,

Ramki.

former_member182371
Active Contributor
0 Kudos
1,159

Hi,

the question is that in event

AT_SAVE

i´m using FM '

CO_BT_AFVG_GET

' in order to get

it_afvgd

but i just get one single record instead of the whole internal table.

Does anyone of you know how can i get the internal table it_afvgd instead of a single record of it?

Best regards.

former_member182371
Active Contributor
1,159

Hi,

in case someone´s interested i´ve found FM '

PM_ORDER_DATA_READ

'.

If you know something similar please let me know.

Best regads.

0 Kudos
1,159

Hello,

i have the same problem, that is, that it doesn't show the complete afvgd internal table.

Did you find a solution for this?

Regards

0 Kudos
1,159

HI Tom

Even I am trying to get value of field USR03 in structure AFGVD in Production Order. Can you please tell me how you have resolved your problem.

Thanks in advance

VAN