Skip to Content

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

Jul 11, 2017 at 01:33 PM


avatar image

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,

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Avik Mazumder Jul 12, 2017 at 05:02 AM

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



Show 2 Share
10 |10000 characters needed characters left characters exceeded





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