I am creating PO through a program using FM BAPI_PO_CREATE1 and it returns an error <b>'No sales and distribution data maintained for material <material no.>'</b>.
I debugged the program and it passess through standard process (Eg. MEPO_DOC_PROCESS, PO_PROCESS, etc) and the cause of the problem is an empty EKPV internal table.
I have no idea what actually causes this or which data I am missing. I already filled out the shipping internal tables being passed to BAPI_PO_CREATE1. Could you please help? What causes this error? How can this be triggered manually in ME21N? Could this be a config issue whatsoever?
Thanks for your help.