10-27-2009 9:16 AM
Hi All,
I have designed a PM workorder smartform.
This form is getting triggered from the standard transaction IW32. There is a Z driver program and Z smartform.
However when I am directly trying to print the this smartform(Order> Print>order) using the shoppaper number customized for my Zdriver program and zsmartform, the workorder gets saved but then on again entering into the workorder its gives the message :-
"Express document "Update was terminated" received from author "XXX".
And hence I am not able to print the smartform.
However when I see its print preview and then try to print the smartform its allowing me to do so.
Can anyone provide me the solution for the same.
Thanks in advance for your help.
10-27-2009 9:24 AM
Hi,
go to SM13, SM14 transactions to see what has happened.
Best regards.
10-27-2009 9:45 AM
Hi,
I have already analyzed through SM13 but its saying that there was an exception raised since the FM 'CO_BH_ORD_HEADER_PRE_READ' failed.
I cannot find out the reason why this is failing even though all the parameters are being passed correctly and FM is called in the standard program.
10-27-2009 10:35 AM
Hi,
the exception in fm CO_BH_ORD_HEADER_PRE_READ appears in two places:
1.-
IF import_message_id IS INITIAL.
.....
ELSE.
IMPORT order_tab FROM MEMORY ID import_message_id.
ENDIF.
* Aussteigen falls überhaupt kein Auftrag/Netzplan gefunden wird
IF NOT sy-subrc IS INITIAL.
RAISE not_found.
ENDIF.
2.-
IF no_afpo IS INITIAL.
.....
ELSE.
IMPORT pos_tab FROM MEMORY ID import_message_id.
ENDIF.
* Aussteigen falls überhaupt kein Auftrag/Netzplan gefunden wird
IF NOT sy-subrc IS INITIAL AND
counter_tot = 1 AND
no_afpo IS INITIAL.
RAISE not_found.
ENDIF.
Put a break point and execute to see what is going on.
Best regards.
10-27-2009 12:29 PM
Hello
I got same kind of error during PO printing and get solved by these changes in MESSAGE for printing.
u just try with this under MESSAGE select OUTPUT and click on FURTHER DATA here for dispatch time select 3 OPTION ( Send with application own transaction ) .
this may help.
Regards
Sachin
10-27-2009 7:02 PM
You probably have a somewhat larger problem....I think you'll find that SAP is telling you that the IW32 changes are rolled back because the abend in your forms output is signaling to SAP that the transaction failed.
10-27-2009 7:06 PM
Doshi,
i think you got a dump in between...
goto st22 and see if any dump came..
the problem is, while executing your driver program or smartform FM while saving the order(auto trigger), it went to a dump.. you need to correct them.. see the analysis in ST22. might be a code error or some thing like that.
Edited by: Soumyaprakash Mishra on Oct 28, 2009 12:37 AM
10-28-2009 12:56 PM
Hi All,
I tried to analyse the dump, but i could not find the solution.
the dump says ""CO_DB_ORDER_PRE_READ" failed.
I cannot find the reason why this should fail as it is ggetting all the values correctly?
Thanks in advance for your help.
10-28-2009 12:58 PM
read the dump... read where it has failed..THE LINE where it has failed..
10-28-2009 1:08 PM
There was a dump since the above FM raised an exception.
That is the only info given in the dump
12-21-2009 8:47 AM
Hello All,
Initially I was using the FM 'PM_ORDER_DATA_READ ' to get all the order related data. But this FM somehow was responsible for the update termination.
Finally what I did was I imported all the data from the memory ID 'id_iprt_orddata' instead of using the FM.
THis solved my problem.
Edited by: Rinkesh Doshi on Dec 21, 2009 9:48 AM
12-21-2009 8:49 AM
I found out the solution.
Instead of using the FM the data was imported from the memory id, which solved the update termination problem