Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 - Error

Former Member
0 Kudos

I am using BAPI_PO_CREATE1 to create Purchase Orders.

It used to work fine until now. It is giving me a dump.

<u>Trigger Location Of Runtime Error</u>

<b>Program:</b> CL_PO_ITEM_HANDLE_MM==========CP

<b>Include:</b> CL_PO_ITEM_HANDLE_MM==========CM00G

<b>Row:</b> 29

<b>Module type:</b> (METHOD)

<b>Module Name:</b> GET_DATA

I debugged and found that it calls another FM - <b>MEPO_DOC_ITEM_GET</b> and this FM is returning a subrc value of zero and the method mentioned above is raising an exception.

Any help will be appreciated!

Thanks in advance!

Message was edited by: Sam

1 ACCEPTED SOLUTION

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I ran a search on the function module name here on SDN, got a couple hits. Here are some links to ones that may help you out.

An example program.

May not hurt to check OSS, see if there is anything relevant.

Regards,

Rich Heilman

2 REPLIES 2

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

I ran a search on the function module name here on SDN, got a couple hits. Here are some links to ones that may help you out.

An example program.

May not hurt to check OSS, see if there is anything relevant.

Regards,

Rich Heilman

0 Kudos

Thanks for the reply! I figured it out!

That was a data-cleansing problem! In some POs the line items had the same item numbers and I didnt validate it!

Cheers!