Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    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

    Regards,

    Avik

    Add comment
    10|10000 characters needed characters exceeded