Application Development 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: 

PM workorder printing problem -->*"Express document "Update was terminated"

Former Member
0 Kudos

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.

11 REPLIES 11

former_member182371
Active Contributor
0 Kudos

Hi,

go to SM13, SM14 transactions to see what has happened.

Best regards.

0 Kudos

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.

0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

0 Kudos

read the dump... read where it has failed..THE LINE where it has failed..

0 Kudos

There was a dump since the above FM raised an exception.

That is the only info given in the dump

Former Member
0 Kudos

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

Former Member
0 Kudos

I found out the solution.

Instead of using the FM the data was imported from the memory id, which solved the update termination problem