Skip to Content
0
Former Member
Mar 11, 2009 at 03:23 PM

Error when calling BAPI_MATERIAL_SAVEDATA

402 Views

Hi all,

I'm calling BAPI_MATERIAL_SAVEDATA through a RFC. I use SAP PI to call a function module and the function module calls the BAPI like this:

call function 'BAPI_MATERIAL_SAVEDATA'
      exporting
        headdata             = ls_headdata
        clientdata           = ls_clientdata
        clientdatax          = ls_clientdatax
        plantdata            = ls_plantdata
        plantdatax           = ls_plantdatax
        salesdata            = ls_salesdata
        salesdatax           = ls_salesdatax
        warehousenumberdata  = ls_warehousenumberdata
        warehousenumberdatax = ls_warehousenumberdatax
      tables
        materialdescription  = lt_materialdescription
        unitsofmeasure       = lt_unitsofmeasure
        unitsofmeasurex      = lt_unitsofmeasurex
        internationalartnos  = lt_internationalartnos
        taxclassifications   = lt_taxclassifications
        returnmessages       = lt_return2.

The BAPI stops processing on the line:

UPDATE MARU FROM TABLE MARU_UPD

in function MARA_ARRAY_UPDATE.

I receive the following error message in PI Communication Channel Monitoring: Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling ZSD_PEPE_CAT_INBOUND in remote system (RfcClient[CC_PepeSAPSDIn]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Data type MARU was found in a newer version than required.: com.sap.aii.af.rfc.afcommunication.RfcAFWException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: JCO.Exception while calling ZSD_PEPE_CAT_INBOUND in remote system (RfcClient[CC_PepeSAPSDIn]):com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE: Data type MARU was found in a newer version than required.

ST22 tells me this:

Runtime Error TYPELOAD_NEW_VERSION Occurred on 11.03.2009 at 13:08:11 Data type "MARU" was found in a newer version than required. What happened? Runtime error The current ABAP program, "SAPLMG21", had to be terminated because one of the statements could not be executed at runtime. Information on where terminated The termination occurred in the ABAP program "SAPLMG21" in "MARA_ARRAY_UPDATE". The main program was "SAPMSSY1 ". The termination occurred in line 44 of the source code of the (Include) program "LMG21U02" of the source code of program "LMG21U02" (when calling the editor 440).

Any idea what's wrong with the data type MARU?

Thanks in advance!!

Regards,

Ivo van Ee