SmartForm error: Express document "update was terminated" received from aut

Hi friends
we requirement to send PO smartform through Print out as well as through mail.
after creating PO i am getting popup box saying that :
" Express document "update was terminated" received from author "XXXX".
Please help me.
my code as follows:
    IF sy-subrc = 0.
      CLEAR g_outop.
      SELECT  SINGLE ldest dimme FROM nach INTO (g_outop-tddest,
     g_outop-tdimmed) WHERE knumh EQ knumh.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'YNZ_PO'
        IMPORTING
          fm_name            = sf_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      w_ctrlop-getotf = 'X'.
      w_ctrlop-no_dialog = 'X'.
      w_compop-tdnoprev = 'X'.
      CALL FUNCTION sf_name
        EXPORTING
          output_options     = g_outop
          user_settings      = 'X'
          wa_ynz_po_head     = wa_ynz_po_head
          control_parameters = w_ctrlop
       IMPORTING
         job_output_info    = w_return
        TABLES
          t_ynz_po_item      = t_ynz_po_item
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
for mail
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'YNZ_PO'
        IMPORTING
          fm_name            = sf_name
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
       CLEAR g_outop.                   " Commented by sharma
       g_outop-tddest = nast-ldest.
       g_outop-tdimmed = nast-dimme.
      w_ctrlop-getotf = 'X'.
      w_ctrlop-no_dialog = 'X'.
      w_compop-tdnoprev = 'X'.
      CALL FUNCTION sf_name
        EXPORTING
          output_options     = w_compop
          user_settings      = 'X'
          wa_ynz_po_head     = wa_ynz_po_head
          control_parameters = w_ctrlop
        IMPORTING
          job_output_info    = w_return
        TABLES
          t_ynz_po_item      = t_ynz_po_item
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
  i_otf[] = w_return-otfdata[].
  CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
      format                = 'PDF'
      max_linewidth         = 132
    IMPORTING
      bin_filesize          = v_len_in
    TABLES
      otf                   = i_otf
      lines                 = i_tline
    EXCEPTIONS
      err_max_linewidth     = 1
      err_format            = 2
      err_conv_not_possible = 3
      OTHERS                = 4.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Convert PDF from 132 to 255.
  LOOP AT i_tline.
Replacing space by ~
    TRANSLATE i_tline USING ' ~'.
    CONCATENATE w_buffer i_tline INTO w_buffer.
  ENDLOOP.
Replacing ~ by space
  TRANSLATE w_buffer USING '~ '.
  DO.
    i_record = w_buffer.
Appending 255 characters as a record
    APPEND i_record.
    SHIFT w_buffer LEFT BY 255 PLACES.
    IF w_buffer IS INITIAL.
      EXIT.
    ENDIF.
  ENDDO.
  REFRESH: i_reclist,
  i_objtxt,
  i_objbin,
  i_objpack.
  CLEAR w_objhead.
Object with PDF.
  i_objbin[] = i_record[].
  DESCRIBE TABLE i_objbin LINES v_lines_bin.
Object with main text of the mail.
  i_objtxt = 'Find attached the output of the smart form.'.
  APPEND i_objtxt.
  i_objtxt = 'Regards,'.
  APPEND i_objtxt.
  i_objtxt = 'Narasimha'.
  APPEND i_objtxt.
  DESCRIBE TABLE i_objtxt LINES v_lines_txt.
Document information.
  w_doc_chng-obj_name = 'Smartform'.
  w_doc_chng-expiry_dat = sy-datum + 10.
  w_doc_chng-obj_descr = 'Smart form output'.
  w_doc_chng-sensitivty = 'F'. "Functional object
  w_doc_chng-doc_size = v_lines_txt * 255.
Pack to main body as RAW.
Obj. to be transported not in binary form
  CLEAR i_objpack-transf_bin.
Start line of object header in transport packet
  i_objpack-head_start = 1.
Number of lines of an object header in object packet
  i_objpack-head_num = 0.
Start line of object contents in an object packet
  i_objpack-body_start = 1.
Number of lines of the object contents in an object packet
  i_objpack-body_num = v_lines_txt.
Code for document class
  i_objpack-doc_type = 'RAW'.
  APPEND i_objpack.
Packing as PDF.
  i_objpack-transf_bin = 'X'.
  i_objpack-head_start = 1.
  i_objpack-head_num = 1.
  i_objpack-body_start = 1.
  i_objpack-body_num = v_lines_bin.
  i_objpack-doc_type = 'PDF'.
  i_objpack-obj_name = 'Smartform'.
  CONCATENATE 'Smartform_output' '.pdf'
  INTO i_objpack-obj_descr.
  i_objpack-doc_size = v_lines_bin * 255.
  APPEND i_objpack.
Document information.
  CLEAR i_reclist.
e-mail receivers.
  i_reclist-receiver = '[email protected]'.
  i_reclist-express = 'X'.
  i_reclist-rec_type = 'U'. "Internet address
  APPEND i_reclist.
Sending mail.
  CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
      document_data              = w_doc_chng
      put_in_outbox              = 'X'
       commit_work                = 'X'
    TABLES
      packing_list               = i_objpack
      object_header              = w_objhead
      contents_bin               = i_objbin
   contents_hex               = i_objbin
      contents_txt               = i_objtxt
      receivers                  = i_reclist
    EXCEPTIONS
      too_many_receivers         = 1
      document_not_sent          = 2
      document_type_not_exist    = 3
      operation_no_authorization = 4
      parameter_error            = 5
      x_error                    = 6
      enqueue_error              = 7
      OTHERS                     = 8.
  IF sy-subrc <> 0.
    WRITE:/ 'Error When Sending the File', sy-subrc.
  ELSE.
    WRITE:/ 'Mail sent'.
  ENDIF.

Hi ashok
thanks for your reply.
i got the error at commit in the below Func module.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = w_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = i_objpack
object_header = w_objhead
contents_bin = i_objbin.
if i remove commit = 'X'.  no error but mail is not sending.
please advice.

Similar Messages

  • MRKO Error : Express document "update was terminated" received from author

    Hi Gurus,
    When settling Consignment through MRKO we are getting error 'Express document "update was terminated" received from author xxxx' in ECD system.
    At workplace inbox, the error shows "Error Info...   XS 007: Address invalid".
    Please note that I am not getting any short dump at ST22 for the same error.
    My queries are:
    1. How can I create a short dump for this error....this will help in analyzing the issue.
    2. What are the probable reasons for this error can be.
    Thanks in advance for helping.
    Regards,
    MC

    Hi,
    I have tried SM13 and getting ERROR XS007(Address Invalid).
    Diagnosis says:
    The address specified is invalid or initial (address value, address type INT).
    Procedure:
    Enter a correct address that is suitable for address type INT.
    The formats are:
      1. INT (Internet Mail Address): <name>@<domain> or comment<name>@<domain> or  <name>@<domain>(comment)
      2. FAX(fax addresses): <country><number>
    ETC
    Now as already told, I have properly maintained mail-id in "Email" field & "StandardComm.Mtd" field as E-Mail  of the Vendor Master.
    The mail ID is my official ID and working.
    Please advice further.
    Regards,
    MC.

  • Error:express document "Update was terminated" received from author

    Hi All,
    I m creating shipment frm the transaction VL01.
    While creating the shimpment i am assigning one Z output type and clicking on the planning phase on the shipment.
    After that i am saving my shipment.
    At this point of time my shimpmnet is created but after this(after saving the shimpment) if i am trying to do anything it is giving me the below error.
    Express document "Update was terminated" received from author "Sachin Yadav".
    Kindly help why i m gettng this error. How to remove this error.
    Regards
    Sachin

    SAP is telling you that the transaction failed and a rollback has been executed, due to some catastrophic error in the system.  These often arise from errors in exit coding....check ST22 to see if you can find anything...there may be a clue there....otherwise start looking at the changes you just made for the source of the error.
    This error occurs, most likely, because during the actual save to database operation, or because of something in follow-on processing launched during the save step (like a new background task for form output or something like that) an fatal error is occurring and SAP is detecting that and rolling back the body of work that was just committed to the database.

  • Express document "Update was terminated" received from author

    HI experts,
               while creating commercial invoice(F2) i am getting an error Express document "Update was terminated" received from author  i checked in SM13,  Error Updating Table J_1IPART2 this is the error i am getting, one more error iam getting while creating commercial invoice Excise invoice created for Billing document xxxxxxxx, and one more thing i didn't tick in excise group excise invoice during billing and i maintained dispatch number ranges for part2 also,
    Thanks
    seshu

    HI
    while creating invoice(F2) i am getting Excise invoice created for billing document,
    I think you have given the Check the option "Excise Invoice during billing " in excise group " that is the reason excise invoice is generating automatically
    1. My invoice is saving but not updating in document flow
      Excise Invoice number we can't see in  document flow in  the standard SAP
    2. after saving i am getting this error Express document "Update was terminated" received from author
    Ask your ABAPer debug the program based the error and find where you are getting the error exactly i think its number ranges issue
    3. one more thing i can create invoice again with same delivery number and invoice number range is updating, i checked accounting number range also, all those are fine
    Once invoice is done for full qty of delivery we can't create one more invoice
    4. I checked in SM13 Error updating table J_1IPART2
    5. I maintained J_1IINTPR2 number rangers for dispatch
    what is you mentioned in the point 4 & 5 table names are different make sure that which table you are maintained
    if i am wrong please correct me
    Regards,
    Prasanna

  • Express document "Update was terminated" received from author in J2IUN.

    Hi,
    Pl. help
    At the time excise utlization this message is come
    Express document "Update was terminated" received from author
    Suresh Yadav

    hi
    "For your update terminate problem please proceed accordingly
    goto SM13, there you can see the updates terminated & their logs.
    Click on one of the Updates terminated with transaction.
    Double click on the line , you will see alist of Function modules, click on the function module in red, here click on the log to see more details on the reason for update termination.
    in the dump anlysis you can see the reason for dump.
    Act as per the dump anlaysis. usuall reasons for the dump is any new changes to the program or number range error ."
    Please take help of ABAPEr for Dump analysis , if it is sytem issue take hlep of BASIS
    Thanks & Regards
    Kishore

  • Express document "Update was terminated" received from author "    "in VA21

    Dear SAP Experts,
      i just set up Output determination for quotation type. and created VA21, while coming out i am getting error
    as Express document "Update was terminated" received from author " 
    below is the dump i am getting. Could you please help me to solve this?.
    Update was terminated    
    Created       m8050032  on   06.01.2010   13:04:43 
    Update was terminated
    System ID....   E6I
    Client.......   800
    User.....   M8050032
    Transaction..   VA21
    Update key...   DD95FADEFC90F19591EF001D0915C7EC
    Generated....   06.01.2010, 13:04:42
    Completed....   06.01.2010, 13:04:43
    Error Info...   00 671: ABAP/4 processor: SYNTAX_ERROR

    Hi,
    Goto T.code ST22 - ABAP runtime error
    click today button,
    check for the error and double click to get the detailed long text
    see "How to correct the error"
    take a help of ABAPer
    Regards
    senya

  • Express document "Update was terminated" received from author in MM01

    Hi gurus,
    When we are trying to create the MM by using the t-code MM01 we are getting the error message as Express document "Update was terminated" received from author "XXXX". Based on this error we have verified the t-code SM13 and received the below details and there is no dumb in ST22.
    Update was terminated     
    Created       SOLIYAPPAN SADASIVAM  on   23.11.2011 ;  05:07:18  
    Update was terminated
    System ID....   MD1
    Client.......   500
    User.....   SSADASIVAM
    Transaction..   MM01
    Update key...   4ECC6061B2567110E10080000A795665
    Generated....   23.11.2011, 05:07:18
    Completed....   23.11.2011, 05:07:18
    Error Info...   Error inserting in table MBEW
    Please suggest me how to fix this issue.
    Thanks
    Sada

    Hi Jürgen,
    When we verified SM13 the error is occuring as below when we double click the SM13 error.
    1    MATERIAL_UPDATE_DB        V1 (no retry)     Error
    Please suggest me how to proceed further.
    Thanks
    Sada

  • Express Document "update was terminated" received from author in MIGO

    Hi All,
    We are getting the below error message at the time of goods receipt at receving plant for STO OBD delivery, when user trying to post the GR, then GR number created and when they try to open the number , then they get this error message.
    Express Document "update was terminated" received from author
    When we went in to SM13 and saw that everything is fine , there was no message in red.
    Erro details showing the s032 update error with Internal session terminated with a runtime error DBIF_RSQL_SQL_ERROR.
    Short text
        SQL error "-413" when accessing table "S032".
    What happened?
        Error Text of the Database: "SQL0413N Overflow occurred during numeric data type conversion. SQLSTATE=22003 row=1"
    Please help to solve this issue ASAP.
    Thanks,
    Muru

    Hello
    This is probably an overflow of a field on the infostructure S032.
    Please check this table for this material and plant combination and observe if there is any field with a high value.
    As a workaround, you may deactivate the updating of S032 via OMO9 to "no updating" to avoid the dump.
    Best regards,
    Caetano Almeida

  • Express document "updated was terminated" received from author

    while go to change mode of va02 express document "updated was terminated" received from author  this error showing and its not saving in table vbak

    Hi,
    Then it would be really difficult because you will face an update termination every time incase something goes wrong in creating the PO.
    In this method even if you raise any messages it would lead to update termination.
    If you check the documentation it says that messages can be issued only in AT_SAVE method.
    Try creating your PO in this method.
    If you need the document number then what you can do is create a custom RFC FM and call it in background. In this FM call your BAPI and using the document number do the further processing.
    But if you want this document number to update something in the workorder then i feel that is not possible using this BADI.
    Regards,
    Ankur Parab

  • Express document "update was terminated" received from author ddic

    Dear all,
    I have newly installed netweaver04 (release 6.40). now i want to create a new user in 000 client. when i save the changes i got message "Express document "update was terminated" received from author ddic". it has created but i can logon only one time to this user. On second logon the progress message is "Name or password is incorrect." I think maybe needs some post-installation. Maybe it is wrong. Please guide me how to solve this problem.
    Thanks a lot.

    Thats a problem with the update process, a dump was probably created in ST22 and logs on SM21, please check this and post relevant errors here.
    Also do a consistency check on TEMSE
    Regards
    Juan

  • Express document "Updated was terminated" received from author in IW32

    Hi,
    I am creating PO in then method of IN_UPDATE or BEFORE_UPDATE of BADI  WORKORDER_UPDAT using BAPI_PO_CREATE or BAPI_PO_CREATE1, but it is not allowing commit transaction implicitly triggered by bapi so it is throwing the message Express document "Updated was terminated" received from author 'XXXX'.
    Please advice how to achieve creatING PO in the BADI.
    Regards,
    Krishna

    Hi,
    Then it would be really difficult because you will face an update termination every time incase something goes wrong in creating the PO.
    In this method even if you raise any messages it would lead to update termination.
    If you check the documentation it says that messages can be issued only in AT_SAVE method.
    Try creating your PO in this method.
    If you need the document number then what you can do is create a custom RFC FM and call it in background. In this FM call your BAPI and using the document number do the further processing.
    But if you want this document number to update something in the workorder then i feel that is not possible using this BADI.
    Regards,
    Ankur Parab

  • Error: "Express Documnet "Update was terminated" received from author ...

    Hi,
    While maintaining the Quotation we getting the following problem:
    Express Documnet "Update was terminated" received from author ...
    Update was terminated
    System ID....   SVP
    Client.......   400
    User.....   ABAP
    Transaction..   ME47
    Update key...   49DCB48654720178E1008000C0A800A1
    Generated....   08.04.2009, 20:03:43
    Completed....   08.04.2009, 20:03:43
    Error Info...   00 671: A Update was terminated
    The problem here is that once we maintain Price & Tax Code, the system shows the message - Quotation is maintained. But when we re-run the T Code ME47, the system throws the above error.
    Pls. note that there is no problem in Development Server with same configuration.
    Regards,

    Hi,
    This message usually comes when system is unable to take load and it doesn't update the tables also.
    Error is coming because server is unable to allocate resources to this program.
    Ur basis consultant and DBA can help u out.
    Regards
    AM.

  • Express document "update was terminated received from the author

    Hi
    While I am posting the MIRO getting the same error. Once I post the miro system creating the document no and go back the screen system thronging the same error. if i edit the same no not finding the document.
    I have no problem with test server i,e duplicate of production server.
    SAP Patch level & kernel patch level on PRD & Test servers are same
    PRD server database patch is on 10.2.0.2
    Test server database patch is on 10.2.0.4
    Regards
    kamulugari Laxman

    Hi Jurgan
    I am getting the beloe message in SM13
    Update key      4C188E58E26B36FBE10000000A0A0119
    Client          500
    User            INDERSAIN
    Date            18.06.2010  Time       16:44:57
    Language        EN
    Account
    Report          SAPLMR1M
    Transaction     MIRO
    Enqueue key     20100618164614963680000200MDPRDCI.........................
    Context         :E:
    Information     (50) =  VB_WITH_ENQUEUE, VB_ENQUEUES_RELEASED,
    UD Ret. Code    9
    Status          Update was terminated
    Update server   MDPRDCI_MDP_00
    UD Client       MDPRDCI_MDP_00
    Local time zone INDIA
    Time Offset     1
    Error details   Class:     00         Number:    671
    00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Report     LTAX4U04             Row        44
    Regards
    Laxman

  • Pop up with Express document 'update was terminated' received from author.

    Hi ,
    I am creating business partner in sold-to-party role and then creating another business partner in contact person role .
    after this I am creating relationship between those BPs by using FM  BAPI_BUPR_CONTP_CREATE (tried  FM BAPI_BUPR_RELATIONSHIP_CREATE  also).
    It creates relationship perfectly fine which we can see in BP transaction even we get the 'update was terminated' error.
    If we bypass the BAPI in debug mode to create the relationship we dont get that error anymore so we are sure that problem with this BAPI only or config related to that.
    Most importantly it is happening only with contact person relationship,it is not happening with bill-to-party relationship.
    In Transaction SM13 when we see it is displaying error "Reference with personal address: Field PERS_ADDR must have the value 'X'"
    Is this something config issues or code?
    Please see the attached file for the error which we are getting.
    Please let me know if anybody help us in this.

    I have checked ,the value is 'X' for the field pers_addr  in adrc table for the address number in table BUT020 for the ciontact person.
    Still I am getting same error.
    Please help.

  • Express Document Update was teriminated received from author

    Hi Experts,
    After posting documents in f-55,while updating document its showing pop-up error 'Express Document "update was terminated" received from author'. I had checked in SM13- its showing document no does not exist. then we checked SNRO t-code for no ranges and changed range tried. But it is showing same error.
    Can u please suggest any solution other than debugging.
    Debugging is going...
    Regards,
    Bharat. K

    Hi Bharat ,
    For the about issue there are various reasons
    1) Data is not filled properly.
    2) Connectivity
    Even you analyze the st22 also some time not helpful. Please try to create a new document.
    Regards,
    Madhu.

Maybe you are looking for