Symptoms: A BAPI upload runs successfully the first time and fails on the second upload with exact data.
Example: For BAPI_MATERIAL_SAVEDATA, it may succeed the first run but on the second, it may give the error message: "Field WERKS has been transferred inconsistently or is blank;"
Cause: When a BAPI is executed, it sometimes will read back data into upload fields in the load file. In some cases, when the data that is read back is present it will cause the upload to fail. This is because the data that is being read back into the load file may be in a different format than SAP expects.
Resolution: Locate and Identify the data that has been read back from SAP. Once the data that is causing errors has been removed, the upload BAPI/RFC should execute successfully. If the invalid data that is causing errors cannot be located, remove all of the data returned from SAP, then execute the BAPI/RFC.