Application Development and Automation 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: 
Read only

BAPI_CUSTOMER_CHANGEFROMDATA1 error: Specify a URI type.

Former Member
0 Likes
2,076

I am getting the following message on some of the customers I try to udpate using BAPI_CUSTOMER_CHANGEFROMDATA1: Specify a URI type. I assume this has something to do with the URI communication method. I am, however, NOT updating the URI as part of this BAPI call. In my program I first call BAPI_CUSTOMER_GETDETAIL1, I then update several fields in the company data structure and then call BAPI_CUSTOMER_CHANGEFROMDATA1 passing the updated data.

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,309

Haven't you checked any URL field in the PI_COMPANYDATAX parameter, check only the flag related to fields you want to update.

Regards

Read only

0 Likes
1,309

No, the only fields i have flagged for changing are:

pi_companydatax-name = 'X'.

pi_companydatax-street = 'X'.

pi_companydatax-city = 'X'.

pi_companydatax-region = 'X'.

pi_companydatax-postl_cod1 = 'X'.

Edited by: Daryl Tracey on Oct 29, 2008 3:05 PM

Read only

0 Likes
1,309

Did you get a similar message when calling transaction XD02 on those customers, maybe some Customizing has changed since the Customer creation (fields become mandatory) ?

Regards

Read only

0 Likes
1,309

It appears that it has something to do with having a URI Communication Method loaded to the Customer Master. If i remove the URI Communication Method from the Customer Master prior to running my program, I do not get the error message. Once I added it back, however, I got the message again. Don't understand why since I am not attempting to update the URI information in my BAPI call. I have tried saving several different, valid URIs via XD02 but continue to get the error as long as there is a URI communication method loaded. Does anyone know if this is a BAPI_CUSTOMER_CHANGEFROMDATA1 bug or if I can do something to prevent from getting this error message.

Read only

0 Likes
1,309

It appears that this is a bug in the version we are running. It is covered by Note 1120524: Error message AM 628 'Specify a URI type'.