‎2011 Dec 08 3:38 AM
Hi All,
I am getting a peculiar error when i try to update KNMT table using the FM RV_CUSTOMER_MATERIAL_UPDATE.
When i run it directly in debug mode, entries are getting created perfectly.
But when i run it through RFC, before the FM is executed itself, during validation, i am getting an error in the message queue stating "System Error During Insert (Table KNMT SUBRC 4).
I cheked that KNMT table is empty. Also i had deleted all entries using the standard transaction VD52.
I found that there is a certain FM RV_CUSTOMER_MATERIAL_UPDATE_C which is described as Posting program for customer-material info (CALL mode).
But i am not sure what this does. I cannot view the documentation in my system and also this FM does not have any parameters.
Kindly let me know if anyone has encountered an error like this... Please let me know of any suggestions for resolution.
Thanks & Regards,
Mz
P.S : The Functionality seems to work intermittently... though not when i want it.
Edited by: Mazin Mahmood on Dec 8, 2011 9:09 AM
‎2011 Dec 08 3:58 AM
Hi ,
I faced same situation but for some other update program.
I Just logged off my system and tried the update again and it was working fine.
Please try i think this may help you.
Regards,
Ganesh.
‎2011 Dec 13 8:15 AM
Hi,
The issue was that i was calling the function module RV_CUSTOMER_MATERIAL_UPDATE using an RFC.(ABAP Proxy) For some reason, while using an RFC, there is some issue with this function module and the database commit .
I had to recode using BDC (for transaction vd51) approach for creating a record in KNMT.
Thanks All,
Cheers,
Mz