cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to change material group in a PO referring to a material number with a UserExit?

Former Member
0 Kudos

We want to change the material group while creating a PO.

This should happen automatically via UserExit while creation of PO. But I don't want to update directly the database. I tried to use method im_item->set_data, but unfortunately in this method there is another method (me->process_input_filter and in this me->get_mapping) which is searching for the field catalogue. The field catalogue says material group couldn't be changed when there is a PO with material number.

Do you know if there is a possibility to Change material Group in such a PO without updating directly table EKPO?

Thank you very much for your support.

Best regards,
Stefanie

Accepted Solutions (1)

Accepted Solutions (1)

former_member365886
Contributor
0 Kudos

Yes, You can do that,however it is very tricky solution,Though,i do not understand why do you need this requirement to fulfill,what is the background of changing material group at runtime?For your assurance,I have tried to emulate the same requirement you have and used my pseudo code above.

It works perfect!!!.

SMOD enhancement : MM06E005

Implement EXIT ->EXIT_SAPMM06E_016

Use call stack method: VALUE '(SAPLMEPO)EKPO'

Please check link ref

Regards,

Avik

former_member365886
Contributor
0 Kudos

next

Regards,

Avik

Former Member

Thank you very much for your help. It works perfectly fine!

Answers (0)