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: 

Error ME813 while testing BAPI_PO_CREATE1

Former Member
0 Kudos
1,574

Hi everybody,

I'm trying to use BAPI_PO_CREATE1 but I get error ME813 "System error invoking ADDR_NUMBER_GET: return code 1".

Obviously the vendor exists and has a regular and working address, in fact I can create a PO manually with him.

By surfing the net I noticed that someone had the same problem with iDoc, but I couldn't find the solution post.

Can you please help me?

Thank you,

Daniele.

2 REPLIES 2

Former Member
0 Kudos
635

If you do a where-used on ME 813, you will find the code to debug, in your case FM MM_DELIVERY_ADDRESS_NUMBER, aka include LMMDAU02.

If you're getting sy-subrc = 1, then the 140-character addresshandle probably is not populated or is populated incorrectly at the time of the FM call, since that handle is not found.  Debug it and watch what is happening.  Or, look at your dump for the content of  field:

t_cmmda-addr_handle.

A thorough review of the dump and use of debug will often lead to a solution to coding or data value/population problems.  If that fails, search for SAP Notes on the subject.

Former Member
0 Kudos
635

Hi Daniele

This is a program error which is resolved by applying the following SAP NOTE 1779872 on your SAP ECC system.

Regards,

Iggy