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: 

Updating MEPOITEM custom field in Enjoy transaction

suwandi_cahyadi
Contributor
0 Kudos
897

Dear Experts,

in enjoy transactions the data is object oriented so I update the custom field using the class. I have used the class cl_po_item_handle_mm set_data and the data is actually updated in the memory.

But, if I don't make any changes to the standard data and save the PO, the custom field will not be updated to DB.

How to update custom field in Enjoy transaction using the class?

1 ACCEPTED SOLUTION

suwandi_cahyadi
Contributor
524

Apparently, we need to flush the update to the framework by calling the cl_framework_mm->process_models method.

4 REPLIES 4

suwandi_cahyadi
Contributor
525

Apparently, we need to flush the update to the framework by calling the cl_framework_mm->process_models method.

raymond_giuseppi
Active Contributor
0 Kudos
524

For information, seems you didn't use BAdI ME_PROCESS_PO_CUST and method item->set_data in process_item or check method, any reason?

0 Kudos
524

Hi,

I didn't use the ME_PROCESS_PO_CUST because I think it is not triggered at the point when I need to update the custom field. I use an implicit enhancement instead (I have a custom button which may only be pressed once by users, once pressed I need to update the flag stored in the EKPO custom field).

0 Kudos
524

ok, thanks.