Skip to Content
0
Former Member
Jul 02, 2009 at 05:42 PM

BAPI_ROUTING_CREATE for external operation

162 Views

Hi,

I am using BAPI_ROUTING_CREATE to upload operations, and this method is working well as long as all my operations are in-house operations (PP01). But, when I want to upload external operations with control key PP02 or ZP02, I get an error "Cost element is not defined in the system" ( I am entering info-record, purchase org, cost element in addition to the fields for activity number, workcenter and so on during this upload).

But, when I create a routing manually using CA01, and enter the same data for external operation, I am able to save the routing with the exact same cost element.

Could you please help me with this error? Why am I not able to pass the same information using BAPI for external operations. Is there any other field I need to use?

Thanks.