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_BUPA_ADDRESS_CHANGE returns error message AM 216 "Enter Country"

Former Member
0 Kudos

Hi Experts,

I am using the BAPI BAPI_BUPA_ADDRESS_CHANGE in my program to change the address of a few BPN (Business Partner Number). I am changing the Street, City and Zip Code fields. The Program works fine in most of the cases, but in a few cases, I am getting an error message returned by the BAPI. The error message belongs to Message Class AM, Message 216. The Description of the Message is "Enter country".

I am not passing Country to the BAPI but even then most of the BPNs get posted.However, in case of 3 to 4 BPNs, I get this error returned by the BAPI.

Could you please help me understand what could be the reason behind this error. Do you have any document on the Errors returned by this BAPI. I am trying to debug the BAPI and find out myself, but in the interest of time, thought would seek you help!!!

Thanks and Regards,

Subhrangsu

3 REPLIES 3

Sm1tje
Active Contributor
0 Kudos

the only thing I can think of is this. For the BP you are trying to change, the required field Country is not filled (check this BP in SAP GUI).

Former Member
0 Kudos

Hi Micky,

Thank you for your suggestion. However, in this case, the BPN has a valid country already.

It would be great if any of you can help me with a documentation of errors returned by this BAPI.

Regards,

Subhrangsu

0 Kudos

Hi,

I am stuck with the similar issue, but my case from mds_load_cockpit, trying to create existing customer as BP. As you have mentioned the country is present, but still the same issue. I even checked at the table level.

Did you find the solution, if so please update.

Radha