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..

former_member799868
Participant
0 Likes
595

In VF01 transaction i have ctreate out Z output type to send the mail to the as PDF...when i am issuing out put manually mail sending is working properly but when i am saying send immeatly by saving application it is saying update termainated..

i have checked in Sm13 and ST22 ..it is showing error where i have writen 'submit' the program which is to send the mail..

dump analysis

Error analysis

This program is triggered in the update task. There, the

following ABAP/4 statements are not allowed:

- CALL SCREEN

- CALL DIALOG

- CALL TRANSACTION

- SUBMIT

if submit will not work it should not work manaully too..but it is working manually....pkleasee advice..

1 ACCEPTED SOLUTION
Read only

vinod_vemuru2
Active Contributor
0 Likes
524

Hi,

U have to put the mail sending code in one FM and call that FM in UPDATE TASK mode. When u r doing some thing in User exit u should never issue COMMIT WORK explicitly or should not use statements that does commit work implicitly.

When u call the FM in update task even if there is a commit statement in FM it will be executed(Effective) only when the transaction executed successfully and commited to data base.

So make this change and let me know if u have any issues.

U can try with some local FM. If fine then u can change the development class and attach to TR.

Hope it will be helpful.

Thanks,

Vinod.

In VF01 transaction i have ctreate out Z output type to send the mail to the as PDF...when i am issuing out put manually mail sending is working properly but when i am saying send immeatly by saving application it is saying update termainated..

i have checked in Sm13 and ST22 ..it is showing error where i have writen 'submit' the program which is to send the mail..

dump analysis

Error analysis

This program is triggered in the update task. There, the

following ABAP/4 statements are not allowed:

- CALL SCREEN

- CALL DIALOG

- CALL TRANSACTION

- SUBMIT

if submit will not work it should not work manaully too..but it is working manually....pkleasee advice..

2 REPLIES 2
Read only

vinod_vemuru2
Active Contributor
0 Likes
525

Hi,

U have to put the mail sending code in one FM and call that FM in UPDATE TASK mode. When u r doing some thing in User exit u should never issue COMMIT WORK explicitly or should not use statements that does commit work implicitly.

When u call the FM in update task even if there is a commit statement in FM it will be executed(Effective) only when the transaction executed successfully and commited to data base.

So make this change and let me know if u have any issues.

U can try with some local FM. If fine then u can change the development class and attach to TR.

Hope it will be helpful.

Thanks,

Vinod.

Read only

Former Member
0 Likes
524

Ur problem is with the timing of sending the output. When ur saying send immediately by saving application..at that time SAP try to process the request in update task,it is calling RSNAST00 and from this program ur program is getting called . And in update task u cannot use submit statement. That's why getting dump.

But for other cases u r not sending the output during saving the application doc. So ur code is not called by the update task. Instead all the requests are first collected in NAST table and then processed by program like RSNAST00 that is scheduled in background job. And this program can work with SUBMIT call so no problem.

Hope it clear ur doubt..

Regards,

Joy.