2008 Jul 12 5:41 AM
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..
2008 Jul 12 6:51 AM
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..
2008 Jul 12 6:51 AM
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.
2008 Jul 12 7:22 AM
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.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |