FM SO_NEW_DOCUMENT_SEND_API1 error message- document not sent

Hi Team
just want to know what could have gone wrong when i executed the sample program attached in the documentation of FM SO_NEW_DOCUMENT_SEND_API1. this is my error message: document could not be sent to any of the recipients!
Could you please suggest me what is the exact problem ? ASAP.
Thanks in Advance.
Puneet.

FORM docu_send_email USING pv_otfdata TYPE tsfotf pv_emailid TYPE any pv_formname TYPE any. DATA: lv_filesize TYPE i, lv_buffer TYPE string, lv_attachment TYPE i, lv_testo TYPE i. DATA: li_pdfdata TYPE STANDARD TABLE OF tline, li_mess_att TYPE STANDARD TABLE OF solisti1, li_mtab_pdf TYPE STANDARD TABLE OF tline, li_objpack TYPE STANDARD TABLE OF sopcklsti1, li_objtxt TYPE STANDARD TABLE OF solisti1, li_objbin TYPE STANDARD TABLE OF solisti1, li_reclist TYPE STANDARD TABLE OF somlreci1, li_objhead TYPE soli_tab. DATA: lwa_pdfdata TYPE tline, lwa_objpack TYPE sopcklsti1, lwa_mess_att TYPE solisti1, lwa_objtxt TYPE solisti1, lwa_objbin TYPE solisti1, lwa_reclist TYPE somlreci1, lwa_doc_chng TYPE sodocchgi1. CONSTANTS: lc_u TYPE char1 VALUE 'U', lc_0 TYPE char1 VALUE '0', lc_1 TYPE char1 VALUE '1', lc_pdf TYPE char3 VALUE 'PDF', lc_raw TYPE char3 VALUE 'RAW', lc_ordform TYPE char15 VALUE 'ZORDCONFIRM_01', lc_attachment TYPE char10 VALUE 'ATTACHMENT'. CALL FUNCTION 'CONVERT_OTF' EXPORTING format = lc_pdf max_linewidth = 132 IMPORTING bin_filesize = lv_filesize TABLES otf = pv_otfdata lines = li_pdfdata EXCEPTIONS err_max_linewidth = 1 err_format = 2 err_conv_not_possible = 3 err_bad_otf = 4 OTHERS = 5. IF sy-subrc 0. * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO * WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4. ENDIF. LOOP AT li_pdfdata INTO lwa_pdfdata. TRANSLATE lwa_pdfdata USING ' '. CONCATENATE lv_buffer lwa_pdfdata INTO lv_buffer. CLEAR lwa_pdfdata. ENDLOOP. TRANSLATE lv_buffer USING ' '. DO. lwa_mess_att = lv_buffer. APPEND lwa_mess_att TO li_mess_att. CLEAR lwa_mess_att. SHIFT lv_buffer LEFT BY 255 PLACES. IF lv_buffer IS INITIAL. EXIT. ENDIF. ENDDO. * Object with PDF. REFRESH li_objbin. li_objbin] = li_mess_att[. DESCRIBE TABLE li_objbin LINES lv_attachment. * Object with main text of the mail. lwa_objtxt = space. APPEND lwa_objtxt TO li_objtxt. CLEAR lwa_objtxt. DESCRIBE TABLE li_objtxt LINES lv_testo. * Create the document which is to be sent lwa_doc_chng-obj_name = text-008. lwa_doc_chng-obj_descr = text-008. lwa_doc_chng-sensitivty = lc_0. lwa_doc_chng-obj_prio = lc_1. lwa_doc_chng-doc_size = lv_testo * 225. * Pack to main body. CLEAR lwa_objpack-transf_bin. * header lwa_objpack-head_start = 1. * The document needs no header (head_num = 0) lwa_objpack-head_num = 0. * body lwa_objpack-body_start = 1. lwa_objpack-body_num = lv_testo. lwa_objpack-doc_type = lc_raw. APPEND lwa_objpack TO li_objpack. CLEAR lwa_objpack. * Create the attachment. * Fill the fields of the packing_list for the attachment: lwa_objpack-transf_bin = gc_x . * header lwa_objpack-head_start = 1. lwa_objpack-head_num = 1. * body lwa_objpack-body_start = 1. lwa_objpack-body_num = lv_attachment. lwa_objpack-doc_type = lc_pdf. lwa_objpack-obj_name = lc_attachment. lwa_objpack-obj_descr = text-008. lwa_objpack-doc_size = lv_attachment * 255. APPEND lwa_objpack TO li_objpack. CLEAR lwa_objpack. lwa_reclist-receiver = pv_emailid. lwa_reclist-rec_type = lc_u. lwa_reclist-notif_del = gc_x. lwa_reclist-notif_ndel = gc_x. APPEND lwa_reclist TO li_reclist. IF li_reclist IS NOT INITIAL. CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1' EXPORTING document_data = lwa_doc_chng put_in_outbox = gc_x TABLES packing_list = li_objpack object_header = li_objhead contents_bin = li_objbin contents_txt = li_objtxt receivers = li_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. * MESSAGE ID sy-msgid TYPE 'I' NUMBER sy-msgno * WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4. ENDIF. ENDIF. ENDFORM. " DOCU_SEND_EMAIL

Similar Messages

  • Document not sent error

    Hi all,
    I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send the file to external address. It worked fine on dev and after transporting to Q, the same prog is failing and giving the error as DOCUMENT NOT SENT.
    I tried to debug the FM also to understand but no clue yet.
    Any help would really be appreciate
    regards
    AG

    Hi,
    I guess basis settings are missing in your quality server.
    Please check the below link and ask your basis consultant to configure the external mail server.
    [http://www.sap-img.com/basis/basis-faq.htm]
    Regards,
    Naresh.

  • Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    Saving a Photoshop CC project from a Mac (in .PSD format) to a thumb drive and trying to transfer it to a Dell laptop with Photoshop CS6.  Will not open...Error message: could not complete your request because it is not a valid photoshop document.

    The file was corrupted somewhere along the way (assuming it was still readable on the Macintosh).
    The platforms don't matter, but you still need file transfer that doesn't corrupt files...

  • I am trying to print a fillable form.  It will not print and I get two error messages "document could not be printed" and "there were no pages selected to print."  Th latter is not true.  Won't print all, the page I am on, nor any series of pages inserted

    I am trying to print a fillable form - - an application for a Chinese visa.  It will not print and I get two error messages:  "document could not be printed" and   "there were no pages selected to print."  The latter is not true.  Won't print at all, the page I am on, nor any series of pages inserted.
    Am using a MAC desktop and a Cannon PIXMA MX922 printer.
    I need to print this form now that it is filled out?  What can I do? 

    Hello PW, I am having this problem and all suggestions haven't worked yet. Where is the Preferences|Documents you are referring to? I am on a PC and using Windows.
    EDIT: I found it and did, but still not working.

  • Your message was not sent. Tap "try again" to send this message. Why do i get this error?

    your message was not sent. Tap "try again" to send this message. Why do i get this error?

    Hi babychriss,
    Thanks for visiting Apple Support Communities.
    There are several possible reasons why a message might not send. I'd recommend starting with the troubleshooting steps in this article:
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/ts2755
    Regards,
    Jeremy

  • I have a problem, i can't generate with DPS App Builder "App distribuzione.zip" to be sent to Apple to publish APP, this is the error message: is not a valid distribution certificate Apple. What do I do?

    I have a problem, i can't generate with DPS App Builder "App distribuzione.zip" to be sent to Apple to publish APP, this is the error message: is not a valid distribution certificate Apple. What do I do?

    As Bern510 says, you'll need to recreate certificates that are valid. I suggest following our step-by-step publishing guide, which walks through how to obtain certificates correctly.
    http://help.adobe.com/en_US/ppcompdoc/Step_by_step_guide_to_dps_se.pdf
    Neil

  • CO54: Message is not sent to any destination: Commit Work is getting failed

    Hello,
    While processing the Messages from XFP to SAP Update is getting terminated due to the use of Commit Work. SAP Note 147467 - Update termination when sending process messages has been referred which is for 4.6C, but we are in ECC6.0.
    While processing the message in second iteration Commit Work triggres and Update happens in the data base.
    Following Issue is only concerned with Nested HUs
    T-Code used CO54
    Following are the analysis:
    it looks like u201CCreate and Post a Physical Inventory Docu201D is failing in the initial processing because the inventory doc is created when the Transfer Order to the PSA (or the TO from the PSA) is not yet completed (quant is still locked somehow).
    CO54, process message category=ZHU_CONS: HU to be consumed is a nested pallet (unpacking/ repacking and TOs to/from) and qty to consume is greater that HU qty in SAP (creation of a physical inventory doc is required).
    1. The error occurs while clearing the inventory posting for the physical inventory document.
    2. The surprising factor is the u201CProcess Messageu201D is not processed correctly for the first time.
    3. Indeed it is successfully processed without any error if you do process it second time.
    Error Log from C054 T-Code.
    02.08.2010                                         Dynamic List Display                                                1
    Type
    Message text
    LTxt
    Message category: ZHU_CONS ---    Process message: 100000000000000621   "Send to All Destinations" Is Active
    Message to be sent to destination:
    ZHGI ZPP_0285_XFP_GOODSISSUE Individual Processing Is Active
    => Message will be sent to destination (check log for destination)
    Message category: ZHU_CONS ---    Process message: 100000000000000621   "Send to All Destinations" Is Active
    Message destination ZPP_0285_XFP_GOODSISSUE triggered COMMIT WORK
    Input parameters OK, passed to source field structure
    Step 0: Now checking if scenario with HU
    Step 2: Scenario with HU, Now checking if HU nested
    Step 3: HU nested, checking if HU in repack area
    Step 4: HU not in repack area, moving it to repack area
    HU moved to repack area, TO number 0000000873
    Step 5: Depacking nested HU...
    Nested HU depacked, HU pallet n°: 00176127111000461994
    Steps 6-7: Moving back HUs to supply storage type / bin...
    HU 00376127111000462001 moved back to original area with TO number 0000000875
    Steps 6-7: Moving back HUs to supply storage type / bin...
    No need to move back HU 00176127111000461994 (not in table LEIN)
    Step 8: Checking if HU fully used and quantity matches HU system quantity
    HU not fully used but picked quantity > HU quantity: inventory necessary
    Step 9: Inventory needed, creating physical inventory document...
    Physical inventory document 0000000126 created
    Step 10: Adding weighted quantity on inventory document...
    Weighted quantity entered in document 0000000126
    Step 11: Posting rectification in inventory document 0000000126...
    Physical inventory document 0000000126 rectified
    Error: rectification for doc 0000000126 not updated in DB!
    => Destination ZHGI ZPP_0285_XFP_GOODSISSUE can currently not process the message
    => Message is not sent to any destination
    The errors in SM13 for this contain the program SAPLZPP_0285_HUINV_ENH (creating/changing the HUM physical inventory doc). WM Function module L_LK01_VERARBEITEN is also involved.
    From SM13, it displays the following piece of code in include LL03TF2M (read the LEIN table=Storage Units table):
    WHEN CON_LK01_NACH.
           IF (LEIN-LGTYP = LK01-NLTYP AND         
                 LEIN-LGPLA = LK01-NLPLA) OR
                  NOT P_LEDUM IS INITIAL.
           ELSE.
    Das ist der Fall einer TA-Quittierung wo Von-Hu = Nach-HU ist und sofort die WA-Buchung erfolgt. Dann steht die HU noch auf dem Von-Platz, daher darf hier kein Fehler kommen, sondern es wird ein. Flag gesetzt, daß verhindert daß die LE fortgeschrieben wird.
             FLG_NO_LE_UPDATE = CON_X.
            MESSAGE A558 WITH P_LENUM.
           ENDIF.
    Translation in English of the German text via Google:
    "This is the case where confirmation of a TO source-HU = destination-HU, and now the WA (Good Issue?)- made book. Then, the HU is still on the From-space may therefore come here not a mistake, but it sets a flag that prevents that the LE is updated."
    Thanks and Regards,
    Prabhjot Singh
    Edited by: Prabhjot  Singh on Aug 2, 2010 4:39 PM

    Hope you have carried out following things in Production ( Please refer to SAP help before actually doing it in production).
    1. Transport the predefined characteristics from the SAP reference client (000) to your logon client.
    2. Adopt Predefined Message Categories - In this step, you copy the process message categories supplied by SAP from internal tables as Customizing settings in your plants.

  • Hp 5535 will not scan, error message printer not found

    I have a HP Envy 5535. I have only been able to scan one time with it. I scanned 22 documents, after running HP Scan Doc 4.4. Each time the HP Scan Doc states that everything is OK, yet as soon as I try to do even a test scan, I get the error message "Printer not found." I have also tried to run this scan with my McAfee virus firewall off, and it still doesn't work. I have also identified it on McAfee as part of my network.
    This question was solved.
    View Solution.

    Hi @prazdancr,
    Welcome to the HP Forums!
    I am sorry that you cannot scan with your HP Envy 5535, but I am happy to help!
    For further assistance I will need to know:
    If you are using a Windows or Mac Operating System, and the version number. To find the exact version, visit this link. Whatsmyos.
    If the printer is connected, Wireless, or USB.
    If the printer is able to make copies by itself.
    If the power cable is plugged into a surge protector, or directly to the wall outlet. Issues when Connected to an Uninterruptible Power Supply/Power Strip/Surge Protector. This applies to Inkjet printers as well.
    In the meantime, please try going through this scanning guide. A 'The computer is not responding' Error Message Displays During Scanning.
    Hope to hear from you soon, and have a nice day!
    RnRMusicMan
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos Thumbs Up" to say “Thanks” for helping!

  • HT201328 after unlocking from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this . Any ideas?? TKS Sandro

    after unlocking over the phone from ATT and resetting iphone 3gs I keep getting the same error message "could not activate phone" neither Apple Store Tech or ATT were able to fix this .
    Itunes displays a message saying "there is no SIM installed in the phone you're trying to activate" even if there is the same SIM that was working minutes before.
    The SIM works on a different phone I tested it.
    Any ideas?? TKS Sandro

    “Could Not Activate EDGE” error message Update ...
    Well it’s going on day 6 and still sporadic to no EDGE on my iPhone. At one time, it was thought to be a defective iPhone – since my partner’s iPhone works just fine.
    After over three hours on the land line with AT&T and Apple, I was sent to the local Apple store for a replacement. Of course, as soon as I walked into the Apple store my iPhone worked just fine. ;-( The local store replaced my iPhone and suggested I go home and activate the phone as a NEW iPhone, that way if there was a bug in my data it would not carry over to the new phone. Did that and well… still sporadic to no EDGE. By the way, I have the Big White “E” to the right of the 5 bars and AT&T .
    AT&T said last week they has “Software” issues in my area, but the CSR I talked to did not know what the issues were or if they were the cause of my problems. He did say they would call me back today to see how my iPhone was doing, but alas, no call back.
    When I’m next to my partner, trying to access the same feature, his iPhone is just so fast. Mine hangs up, draws out and finally I get the error message, “Could Not Activate EDGE”. I am updated to version “1.1.4(4A102)”. New (refurbished) iPhone direct from Apple.
    I remember reading a while back about some problems others had when they upgraded to from 1.1.3 to 1.1.4. I never had those problems, but it sure looks like they may have started. Does anyone remember what the problems with 1.1.4 were, what was done if anything to correct them, and best of all any suggestions?
    By the way, this is Seattle, not some small – out of the way place where connection and signal strength is expected to be second rate. Also, I had full function of my iPhone from the day I bought it in June 2007, all the way up to Thursday March 20, at 2120.
    Thanks
    Joe

  • Itunes install error message - program not found ...x64/difxinst64.exe

    itunes install error message - program not found ...x64/difxinst64.exe
    no problems with ITunes on Dell Inspiron Windows 7 until yesterday.  ITunes version 11.0.2.  iphone won't connect stating required software is not installed.  uninstall and install 64 bit version of iTunes.  I have 64 bit version already.  I have uninstalled and reinstalled 5 times already.  When re-installing ITunes get error message c:\programdata\34be82c4-e596-4e99-a191-52c6199ebf6\x64\difxinst64.exe.  file does not have a program associated with it for performing this action. please install or create an association in the Default Programs control panel.   iTunes install continues after the difxinst64.exe error message but then get the iphone cannot be used error message again.  therefore, I can't sync my iphone with iTunes until I figure this out.
    can't win for losing.  had iTunes on my windows 7 laptop for 4 years.  first time I've ever encountered this.

    I am a PC Tech and had a customer with this issue. Ran across this post in my search and ended up finding the solution on my own. The problem isn't with the iTunes software but the installer for the GEARAspi drivers. Really the issues is with the file type asssociations in the windows registry. On the system I was working on the HKCR key for .exe should point to the exefile key but pointed to nothing. To fix it create a new txt document and paste the following in (only paste what is in between the [code][/code] tags):
    [code]
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\.exe]
    @="exefile"
    "Content Type"="application/x-msdownload"
    [HKEY_CLASSES_ROOT\.exe\PersistentHandler]
    @="{098f2470-bae0-11cd-b579-08002b30bfeb}"
    [/code]
    Now change the extension from .txt to .reg. Then right click and select merge. iTunes should now install properly.

  • Error message"Could not complete the Save command......

    Sometimes when I open Photoshop CS6 (cloud version) and I try to save my work I wil get an error message: "Could not complete the save command because the document is currently being saved in the background. Please try the operation again after the Save Command has finished" Well the background save never finishes and I end up having to restart Photoshop and lose all my work. Any ideas. I am running Windows 7, core i& quad procewssor and 12 gigs of ram.
    Thx

    Hi Chris!
    Yes. I did that after the first time it happened and then it happened again.  Here is my system info:
    Adobe Photoshop Version: 13.0.1 (13.0.1 20120808.r.519 2012/08/08:21:00:00) x64
    Operating System: Windows 7 64-bit
    Version: 6.1 Service Pack 1
    System architecture: Intel CPU Family:6, Model:10, Stepping:5 with MMX, SSE Integer, SSE FP, SSE2, SSE3, SSE4.1, SSE4.2, HyperThreading
    Physical processor count: 4
    Logical processor count: 8
    Processor speed: 3073 MHz
    Built-in memory: 12279 MB
    Free memory: 6264 MB
    Memory available to Photoshop: 10996 MB
    Memory used by Photoshop: 60 %
    Image tile size: 128K
    Image cache levels: 4
    OpenGL Drawing: Enabled.
    OpenGL Drawing Mode: Advanced
    OpenGL Allow Normal Mode: True.
    OpenGL Allow Advanced Mode: True.
    OpenGL Allow Old GPUs: Not Detected.
    Video Card Vendor: ATI Technologies Inc.
    Video Card Renderer: AMD Radeon HD 6800 Series
    Display: 1

  • Error: Application document not posted

    hi,
    while posting IDOC into R3, I got below error in WE05.
    under status records
    51  Error: Application document not posted
    Account group is not defined in table T077K
    reward points always helpful for helpers.
    Regards,
    Nageswari

    HI,
    Check the posting program use call transaction, if no analyze the error message and fix the problem. If yes then debug your program step by step until you hit the error screen.
    If error in IDoc data , then Exit the IDoc restart from BD87, else problem with application configuration, restart from beginning.
    --related Data error contact your Functional team
    Also see the below links
    IDOc testing - /people/suraj.sr/blog/2005/12/29/generate-test-case-for-an-idoc-scenario
    /people/sravya.talanki2/blog/2005/10/27/idoc146s-not-reaching-xi133-not-posted-in-the-receiver-sap-systems133
    idoc erros - http://help.sap.com/saphelp_nw04s/helpdata/en/6a/e6194119d8f323e10000000a155106/content.htm
    Regards
    Chilla

  • LSMW  IDoc error : APPLICATION DOCUMENT NOT POSTED with error 51

    During LSMW matmas04 uploading i m getting error :APPLICATION DOCUMENT NOT POSTED with error 51
    Can some one tell why ots coming so.

    to check errors check We05 or we02 they are same 
    in general i think that most of problem is relate to Dates if that your case check that you converted dates to internal format using conversion step i advice use like this function
    CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
    EXPORTING
    DATE_EXTERNAL = ZHEADER-BEDAT
    IMPORTING
    DATE_INTERNAL = MBEPOH-BEDAT.
    <Removed by Moderator>
    Message was edited by: Marcelo Ramos

  • Idoc number have status  is   51     Error: Application document not posted

    hi friend
    i have error in idoc number status  51     Error: Application document not posted. basic type is  ORDERS05   Purchasing/Sales
    what i do for solve this issue
    with regards
    dinesh
    Edited by: code acess on Feb 9, 2011 4:35 AM

    Hi,
    {1.how i check in the delivery documents have idoc number ? }
    Go into the delivery, output. Check if any output has been triggered for EDI. If yes, then select the output and click on 'Process details' (it is the button just after communication where you give the print name). It will display the Idoc number.
    { what are the required for cofiguration of EDI. Pls Send me the configuration setting . i didnt have help here ..iam expecting configuration setting }
    Though it is difficult to share all the config settings in this thread, what I will do is to put in a few steps which are general settings. Only a few things vary.
    For EDI / ALE - Idoc the common settings are
    a. The port should be enabled for sending and receiving the data thru Idocs. Usually basis does this.
    b. Partner profile should be configured in WE20. Example if you are sending a sales order confirmation to ship to party then, You should set up a partner profile in WE20 for partner number in KU (Customer) folder. You can copy any of the existing customer. What you have to make sure is you have added the message type and the Basic Type in the outbound parameters of the partner in WE20. Also, you have to make sure that you are giving the output type and the process type as well.
    This is same even when you are receiving the Idocs from customer. Say for example customer PO. However, instead of outbound, you will add all these details in inbound. 
    Similarly, if you are sending PO to your vendos, then, you have to make changes in folder for partner LS. There are so many other folders as well.
    Check WE60/61 for the documentation for what is Basic types, Message types and segments. It is very important for you to know about these when you are dealing with Idocs. To start with, you can give Orders01 in Basic types in WE60 selection screen and read out the details.
    c. Once the partner profile is set up, there is a table called VOE4. This is the table where you can maintain the customer cross reference for incoming idocs.
    d. Output type should be set up for EDI trigger (Tcode NACE) . You can use the existing programs. You can Check BA00 which is normally set up for EDI trigger as well. You can try triggering that first. You may get some errors at first. But do not panic. Just read those errors and then search the form for errors. You will get to know the next step.
    e. Once you have the above settings, I think you are pretty much ready for EDI... you can try these. If you get struck in between, the form is there to help you...
    Hope this helps...
    Regards,
    Mukund S

  • When trying to install Itunes 10.2 I get an error message "Could not access network location %APPDATA%\."  How can I fix this?

    When trying to install Itunes 10.2 I get an error message "Could not access network location %APPDATA%\."  How can I fix this?

    With that particular variety of 1606 (it's a 1606 error message even though the 1606 error message number isn't returned by the iTunes installer), the following Microsoft document is worth a try:
    You receive an "Error 1606" error message when you try to install or remove a Microsoft program

Maybe you are looking for