Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

update terminated error

Former Member
0 Likes
2,043

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

12 REPLIES 12
Read only

Former Member
0 Likes
1,465

Hi Vijay,

From where are you trying to call this FM?

Try to call the function module in update task.

Regards,

Ravi

Read only

0 Likes
1,465

Hi Ravi,

How do I call the FM in update task.

Read only

0 Likes
1,465

This is the syntax,

CALL FUNCTION update_function IN UPDATE TASK

[EXPORTING p1 = a1 p2 = a2 ...]

[TABLES t1 = itab1 t2 = itab2 ...].

Read only

0 Likes
1,465

Nope the FM is not executable in Update Task.

I got a short dump, when I tried calling it in update task.

Read only

Former Member
0 Likes
1,465

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.

Read only

Former Member
0 Likes
1,465

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

Read only

0 Likes
1,465

It doesn't work.

Read only

0 Likes
1,465

It doesn't work.

Read only

Former Member
0 Likes
1,465

Are you getting this message as an FM exception or as express mail?

Rob

Read only

Former Member
0 Likes
1,465

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

Read only

0 Likes
1,465

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.

Read only

Former Member
0 Likes
1,465

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.