‎2005 Dec 01 10:28 AM
Hi,
What is the reason for update terminated error in any function module. I am uploading sales contracts in IS Oil using RFC_SDCONOIL_CREATEFROMDATA. It gives me an update terminated error. What could be the reason.
Regards,
Vijay
‎2005 Dec 01 10:31 AM
Hi Vijay,
From where are you trying to call this FM?
Try to call the function module in update task.
Regards,
Ravi
‎2005 Dec 01 10:41 AM
‎2005 Dec 01 10:44 AM
This is the syntax,
CALL FUNCTION update_function IN UPDATE TASK
[EXPORTING p1 = a1 p2 = a2 ...]
[TABLES t1 = itab1 t2 = itab2 ...].
‎2005 Dec 01 10:50 AM
Nope the FM is not executable in Update Task.
I got a short dump, when I tried calling it in update task.
‎2005 Dec 01 10:38 AM
Hi,
Ur using to create using the function module. This needs to be at the last in ur code.Mostly when ur trying to save it. U have to pass all the required data. If any data is missing this happens. Also, use the exceptions so that U can know what is happening.
As this is a RFC module U need to provide the RFC details also.
Pl. award points if helpful.
‎2005 Dec 01 11:03 AM
Hi Srikanth,
To call a function module in the Update Task, use the following syntax :
CALL FUNCTION 'FUNCTMOD' IN UPDATE TASK EXPORTING...
Just add the keyword IN UPDATE TASK after the FM name.
Thanks and Regards,
Arshad
‎2005 Dec 01 11:13 AM
‎2005 Dec 01 11:15 AM
‎2005 Dec 01 2:49 PM
Are you getting this message as an FM exception or as express mail?
Rob
‎2005 Dec 01 6:34 PM
Hi
If the message is coming as an express mail , it could be b'coz of some error while inserting the record into resp table , could be some primary key violation .
Check the number range , could be due to incorrect last number in the number range system may be trying to insert duplicate records.
Regards
Kalpana
‎2005 Dec 01 6:41 PM
Give us the detail you see in the dump. Without that anything we say will be a guess.
Are there any user exits used in this call? Sometimes you get this error, when the standard program has some funtions in th update process and in your exit you implicitly or explicitly issue a commit. Because that is going to cause inconisistencies, system will give you this error.
‎2005 Dec 01 7:00 PM
Use transaction SM13 (Update records). Mark on the check box for status (Terminated). It will show you the cancelled update. From there you can navigate to short dump. The short dump will show you the cause of update dump.
Update dump happens when the transaction has passed all edit checks and normally has given you the message 'document has been posted' and control has come out of the transaction but the actual updates are in update queue. Then SAP finds something very unusal which should not be there normally like duplicate document number though you got the number from number range.