Skip to Content
0

bapi_material_savereplica not working

Mar 30, 2017 at 12:13 PM

99

avatar image
Former Member

Hi Everyone,

Need help on the bapi above.

My objective is to create materials using bapi_material_savereplica.

Unfortunately, I always get an error which says "Enter the unit of weight for the net weight.

I did enter the unit of weight for the net weight which is KG.

Also, both gross weight and net weight.

Anybody out there who has experienced this issue, please let me know.

I would appreciate if you could provide your solution.

Best regards,

EC

bapi-used.jpg (33.7 kB)
bapi-error.jpg (24.7 kB)
10 |10000 characters needed characters left characters exceeded

I'm running into this same issue, and it seems sporadic. Any solutions?

Thanks,

Casey

0

Show the values that you have in Clientdata, ClientdataX and unitsofmeasure and unitsofmeasurex

0

I'm passing the following. Please forgive the modified XML format, I'm using Tibco so this is from the bapi call output. What has me really confused is have been able to create a part with the same mapping, but then the next day I run into this error.

CLIENTDATA>

NET__WEIGHT>110.23</NET__WEIGHT>

UNIT__OF__WT>LB</UNIT__OF__WT>

UNIT__OF__WT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/CLIENTDATA>

CLIENTDATAX>

NET__WEIGHT>X</NET__WEIGHT>

UNIT__OF__WT>X</UNIT__OF__WT>

UNIT__OF__WT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/CLIENTDATAX>

UNITSOFMEASURE>

GROSS__WT>0 http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__OF__WT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/UNITSOFMEASURE>

UNITSOFMEASUREX>

GROSS__WT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__OF__WT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__OF__WT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/UNITSOFMEASUREX>

0

is this complete or did you cut it down to what you think is important?

In the UNITSOFMEASURE is not even shown which units you are transferring, and this part is most important, even more than a gross weight with or without value.

0

I cut it down, here's the complete Units of Measure/X. I'm not trying to pass alternate units or gross weight as of yet.

UNITSOFMEASURE>

item>

FUNCTION>UPD</FUNCTION>

MATERIAL>TESTPARTMGT</MATERIAL>

ALT__UNIT>EA</ALT__UNIT>

ALT__UNIT__ISO>EA</ALT__UNIT__ISO>

NUMERATOR>1</NUMERATOR>

DENOMINATR>1</DENOMINATR>

EAN__UPC xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

EAN__CAT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

LENGTH>0</LENGTH>

WIDTH>0</WIDTH>

HEIGHT>0</HEIGHT>

UNIT__DIM xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__DIM__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

VOLUME>0</VOLUME>

VOLUMEUNIT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

VOLUMEUNIT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

GROSS__WT>0 http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/> UNIT__OF__WT__ISO xmlns:xsi = " http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

DEL__FLAG xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

SUB__UOM xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

SUB__UOM__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

GTIN__VARIANT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__EXTERNAL xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__GUID xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__VERSION xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/> NESTING__FACTOR>0

MAXIMUM__STACKING>0</MAXIMUM__STACKING>

CAPACITY__USAGE>0</CAPACITY__USAGE>

EWM__CW__UOM__TYPE xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/item>

/UNITSOFMEASURE>

UNITSOFMEASUREX>

item>

FUNCTION>UPD</FUNCTION>

MATERIAL>TESTPARTMGT</MATERIAL>

ALT__UNIT>EA</ALT__UNIT>

ALT__UNIT__ISO>EA</ALT__UNIT__ISO>

NUMERATOR>X</NUMERATOR> <DENOMINATR>X</DENOMINATR>

EAN__UPC xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

EAN__CAT xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

LENGTH xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

WIDTH xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

HEIGHT xmlns:xsi = http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__DIM xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__DIM__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

VOLUME xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

VOLUMEUNIT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

VOLUMEUNIT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

GROSS__WT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__OF__WT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

UNIT__OF__WT__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

SUB__UOM xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

SUB__UOM__ISO xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

GTIN__VARIANT xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__EXTERNAL xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__GUID xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MATERIAL__VERSION xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

NESTING__FACTOR xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

MAXIMUM__STACKING xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

CAPACITY__USAGE xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

EWM__CW__UOM__TYPE xmlns:xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi:nil = "true"/>

/item>

/UNITSOFMEASUREX>

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers