Skip to Content
0
Former Member
Oct 06, 2005 at 07:25 PM

BAPI_CUSTOMER_CHANGEFROMDATA1

62 Views

Hi,

I am trying to change the customer address using BAPI_CUSTOMER_CHNAGEFROMDATA1. I got the message "Make an entry in all fields where required"

Below is my C# code:

string custNo ="0001000464";

string salesOrg = "XUS1";

string distChan = "01";

string div ="01";

BAPIKNA101_1 persData = new BAPIKNA101_1();

persData.House_No = "Alsterdorf 192";

persData.City = "Bruncwick";

persData.Postl_Cod1 = "32642";

persData.Country = "DE";

persData.Tel1_Numbr = "67-375-3675";

BAPIKNA101_1X persDataX = new BAPIKNA101_1X();

persDataX.Country = "X";

persDataX.City ="X";

persDataX.District = "X";

persDataX.House_No = "X";

persDataX.Postl_Cod1 = "X";

persDataX.Tel1_Numbr = "X";

BAPIKNA105 optPersData = new BAPIKNA105();

BAPIKNA105X optPersDataX = new BAPIKNA105X();

BAPIKNA106 compData = new BAPIKNA106();

BAPIKNA106X compDataX = new BAPIKNA106X();

BAPIKNA105 optCompData = new BAPIKNA105();

BAPIKNA105X optCompDataX = new BAPIKNA105X();

SAP.Connector.BAPIRETURN1 return0 = new SAP.Connector.BAPIRETURN1();

cs.ChangeFromData1(persData, persDataX, optPersData, optPersDataX, compData, compDataX, optCompData, optCompDataX, salesOrg, distChan, div, out return0,

custNo);

I would appreciate if anyone can tell me how I can solve this error.

Thank you in advance,

Sunny