Hello,
We need to pass field WBS_ELEMENT from a purchase requisition to a PO.
We are using BAPI_PO_CREATE1, and filling the corresponding fields in tables POACCOUNT and POACCOUNTX.
The PO is created ok but without this field filled. Other accounting fields are passing well, like COSTCENTER or ORDERID.
We need to pass this field to a PO that has account assignment of type cost center.
I've debugued the code and inside FM BAPI_PO_CREATE1 there is a call to FM MAP2I_BAPIACCOUNT_TO_ACCOUNTIN where some fields are mapped from the bapi parameters, but the WBS_ELEMENT is not there.
The FM MAP2I_BAPIACCOUNT_TO_ACCOUNTIN has a comment in the first line:
"This function module was generated. Don't change it manually!"
Do you know if is there any place in SPRO where we can configure the pass of this field?
The workaround is create and enhancement point in this FM and pass the value... But must be other place where this field would be mapped.
Thanks in advance.