ABAP coding required in order to send Output via External Send (5)

Hi
I require some coding to an ABAP program in order for my SD output to be succesfully sent by 'external send'
I have a shipping output type.
assigned Partner functions and applicable mediums - 1, 2 and 5
however when trying to produce output via comm method 5, external send, i am gettting red error messages/ traffic ligh
processing log is as follows:-
"processing log for program xxxxxxxx routine ENTRY
Please enter an address number
communication type      cannot be used"
all outputs for medium types 2 Fax and 1 print are all OK for all Partner functions involved
I have changed to another output which works fine,:- altho as this was written specifically for another outut,and form, so there is a lot of data missing on the form with this program.
we have tried to deciper the coding on the program that does work, but to no avail
Many thanks for your help on this matter
Tony

You need to maintain/fill ADDR_KEY structure in the print program....

Similar Messages

  • Smartforms PO - output type external send - for purchase order

    Dear
    I want to define a specific output type  for example ZPOM, with medium 'External Send'. The communication Strategy is SMTP (MAIL).
    The configuration of the Processing Routine is the following:
    Program: - FM06P
    Form Routine: ENTRY_MEU
    SMARTFORM: Z_MM_PURCHASEORDER.
    When we create this mesage in the PO, no mail is send. There is also no processing log available.
    Is it possible to use the same smartform with print program that is used for Medium 'Print Output' for medium 'External Send'?
    Best regards
    Luc

    What you need to do is to create in SPAD Output device for E-mail ( in the Host Spool Access Method define M:E-Mail to Receiver/Owner) and then in the 'Print Output' assign this device.
    Hope this helps.
    Thanks,
    Naveed

  • SD Billing Document Output to email via external send

    Hi all,
    I hope you can helpt with following issue as I need to send invoices via email using the option 'external send' in the message determination. The settings are as follows:
    Message Determination VV32/VV33
    Output Type ZI04
    Billing Type ZIV
    Condition Record Sales Org / Billing Type / Payer
    Medium 5 - external send
    Dispatch Time 1, 3 or 4
    Cover Page Text: any text followed by invoice no. &VBRK-VBELN&
    Expectation
    With this setting we expect the billing document number to be included in the subject line of the email sent out.
    This works fine as long as you maintain the message in the billing document -> header -> output manually.
    Problem
    If you create a new invoice and the message is created automatically based on above Message Determination settings and you issue the output using any of these options
    - option 1 and report RSNAST00
    - option 3 using VF31 running in background mode or
    - option 4 issuing immediately,
    the document number is printed into the subject line but instead is printed the tempory document number $000000001. The correct billing document number is printed on the PDF form included in the mail output which confirms that the document number is available from the database at the point of output issue already.
    Any idea how to maintain the settings correctly to get the billing document number on the subject line of the email after creating a new invoice?
    Best regards
    Karsten

    Hi,
    I dont have ABAP skills, but ask your ABAP programmer, (or yourself), to find the point in the invoicing program that get internaly the invoice number.
    And you should try to asign the field from the internal temporary structure XVBRK-VBELN.
    Should be something like:
    Cover Page Text: any text followed by invoice no. &XVBRK--VBELN&
    Please confirm with someone that have technical skills.
    Regards,
    Demétrius
    Edited by: Demetrius Pereira de Miranda on Aug 20, 2008 4:21 PM

  • Issue when sending PO through external send

    Hi
    I did the configuration for sending the PO through external send. When I am assigning message type to PO and selecting option as "send immediately' , messge type is not getting assiged.
    Thanks
    Anand

    Hi,
    Check t.code: NACE for application "EF"---->  click Output types
    In next screen,Click your message  type and now check did you have Dispatch time 4 (Send immediately) in "Default values" TAB. If not select Dispatch time 4 (Send immediately) & save.
    Now you can maintain condition record in MN04 with PO message type with all other details like PO document type with Dispatch time 4 (Send immediately)  ..etc..& save.
    Regards,
    Biju K

  • Based on fault message ABAP coding required.

    Dear Experts,
             I design a scenario with Proxy to JDBC Synchronous interface, in that i kept fault message to catch the technical errors which are throwing by Oracle system like " unique constaint violated,  can't insert value into a particular field ". This type of error messages we can able to get in sxmb_moni of PI system as below shown, but we need the same message in SAP system. For that what we have to do in ABAP as well as PI sides.    Below highlighted error message wants in SAP Screen.
    Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="MESSAGE">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.engine.interfaces.messaging.api.exception.MessagingException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'PDI_PIPE' (structure 'Statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Violation of PRIMARY KEY constraint 'PK_PDI_PIPE'. Cannot insert duplicate key in object 'dbo.PDI_PIPE'.</SAP:AdditionalText>
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Kindly suggest me..
    Thanks & Regards,
    Srihari.

    Hi,
    We can easily implement fault message coding in ABAP server proxies, but in case of JDBC not sure you can implement this.
    one sulution is write a stored procedure in receiver side and you can have a flexibility to send error message as a response(in vaid exml format).
    using standard insert statement/anyother data base operation without stored procedure not posible to capture these kind of errors in to falut messages and sending back to ECC may be not possible.
    regards,
    Raj

  • [SOLVED] Can't send output to external monitor

    I've got a Dell Inspiron 1501 laptop which I sometimes use to give presentations at my school. Last time, in mid october, it worked perfectly, but now my laptop and the digital projector seem to ignore each other. The only difference between last time and now is that I've updated the system.
    This is output of xrandr -q:
    $ xrandr -q
    Screen 0: minimum 320 x 200, current 1280 x 800, maximum 4096 x 4096
    VGA-0 disconnected (normal left inverted right x axis y axis)
    LVDS connected 1280x800+0+0 (normal left inverted right x axis y axis) 331mm x 207mm
    1280x800 61.0*+
    It says that VGA-0 is disconnected, which isn't the case. I've tried pressing Fn+CTR/LCD but it doesn't make any difference.
    Can anyone tell me if I am missing something? What's wrong? Why doesn't it work now if it worked fine just over a month ago? Is this a problem with the new X server?
    I know I'm asking a lot of questions, but I'd really appreaciate any help. I wouldn't like my students to get the idea that Linux is unreliable (or maybe that I'm just not smart enough).
    Cheers
    Last edited by troncoso (2009-12-18 19:47:58)

    Thanks for answering. Yes, it has an integrated ATI card, and I'm running the radeon driver without an xorg.conf. This is what "lspci -v" says about the card:
    01:05.0 VGA compatible controller: ATI Technologies Inc RS482 [Radeon Xpress 200M] (prog-if 00 [VGA controller])
    Subsystem: Dell Device 01f5
    Flags: bus master, 66MHz, medium devsel, latency 66, IRQ 17
    Memory at c8000000 (32-bit, prefetchable) [size=128M]
    I/O ports at 9000 [size=256]
    Memory at c0100000 (32-bit, non-prefetchable) [size=64K]
    [virtual] Expansion ROM at c0120000 [disabled] [size=128K]
    Capabilities: <access denied>
    Kernel driver in use: radeon
    Kernel modules: radeon, radeonfb
    Cheers

  • SpeedGrade 2014.2 will not send output via BlackMagic Intensity Pro HDMI to my external monitor.

    I occasionally can get a few pixels near the left side of the monitor, and 2014.1 would display the lower half of the frame, but now, after the 2014.2 update, I can't even get that much. Premiere is monitoring perfectly. Any suggestions welcome!

    I am having the same problem. I am on Speedgrade version 2014.1 currently and it won't output to either of the monitors I've tried. Both are connected via HDMI.
    One is a 22' ASUS monitor, which reads "Out of Range" when I connect it to my blackmagic Intensity Pro output. From what I've read this has to do with the frame size coming out of SP being too large for the monitor.
    Next I tried to output to a 50' HD TV. I don't get the "Out of Range" message on this one, instead the monitor is black with an occasional flicker when I hover over a clip or an option in Speedgrade. By flicker I mean the screen flashes a garbled purple mess for less than a second, then goes black again.
    I'm running the Creative Cloud Suite on a Mid 2012 Mac Desktop with a 2 x 2.66 GHz 6-Core Intel Xeon processor, 52GB of RAM, and ATI Radeon HD 5770 1024 MB graphics card. OSX version 10.8.5.
    Been waiting for this capability for a while, any advice would be much appreciated.
    Thanks!
    Josh

  • How do I get the byte size of a server file before sending output via HTTP?

    I need to get the byte size of the file prior to streaming it. I can't seem to find a class/method I need. Basically, I have the path c:\\tomcat\\webapps\\documents\\sample.pdf in the servlet, I was hoping I could just use something from the File class but I couldn't find anything that seems to do the trick?
    thanks, in advance,
    Chuck

    maybe the source of the problem will help...I am trying to stream a PDF to IE and a blank page is being generated although all other file type work.
    I have found a lot of answers in the forum but no specific code examples. Here's what I have so far from picking through threads in here (can someone please show me how to get the byte size of the file so that I can assign it to the method response.setContentLength();?):
    String CONTENT_TYPE = " ";
         String target = " ";
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException {
         StringBuffer buf = new StringBuffer();
         HttpSession session = request.getSession();
         String file = request.getParameter("filename");
         target = file;
         int end = file.length();
    int beg = end-2;
         String type = file.substring(beg, end);
         if (type.equals("DOC")){
              CONTENT_TYPE = "application//vnd.msword";
         }else if (type.equals("XLS")){
              CONTENT_TYPE = "application//vnd.x-excel";
         }else if (type.equals("PPT")){
              CONTENT_TYPE = "application//vnd.ms-powerpoint";
         }else if (type.equals("PDF")){
              CONTENT_TYPE = "application//vnd.x-pdf";
         }else if (type.equals("MPP")){
              CONTENT_TYPE = "application//vnd.ms-project";
         }else if (type.equals("ZIP")){
              CONTENT_TYPE = "application//ZIP";
         }else if (type.equals("TXT")){
              CONTENT_TYPE = "text//plain";
         }else {
              CONTENT_TYPE = "text//html";
         //File f = new File(file);
         //int l = f.length();
         response.setContentLength(l); <----- supposedly this fixes my problem but I don't know how to get the byte szie of the file in an integer??
         // reset the response
         response.reset();
         response.setContentType(CONTENT_TYPE);
         try{
         // Get streams
         FileInputStream fileInputStream = new FileInputStream(target);
         ServletOutputStream servletOutputStream = response.getOutputStream();
         // Init byte count and array
         int bytesRead = 0;
         byte byteArray[] = new byte[4096];
         // Read in bytes through file stream, and write out through servlet stream
         while((bytesRead = fileInputStream.read(byteArray)) != -1) {
         servletOutputStream.write(byteArray, 0, bytesRead);
              servletOutputStream.flush();
         // Flush and close streams
         servletOutputStream.flush();
         servletOutputStream.close();
         fileInputStream.close();
         } catch (Exception e) {
         System.out.println(e.toString());

  • Force OS X to send output on external monitor

    Hi.
    I just got a new Macbook Pro and wanted to use it with my Apple Cinema HD 23"-display, but I got
    some problem. For a couple of months ago the cable to my Apple Cinema was damaged and I had
    to solder it togheter. It worked perfectly with my PC but when I now try to connect it to my macbook
    it isn't recognized by OS X.
    My question is now if it is possible to force os x to recognize this external monitor? I use a minidisplay->DVI-adapter.
    Edit: If someone have the correct pinouts for the Apple Cinema 23" it would have been great, since I suppose there is some problem with my soldering.

    Okay. The sad part is that the monitor works with my PC (Which do not need to identify it before use)...
    It's just the cable which is damaged, not the display itself. A pinout of the cable would be great, or a url where to buy a new one .

  • Trying to send photo via share/send button in iphoto

    Having problems, possible due to being a newbie, with sending a photo via the share/send button in iphoto.
    A message comes up "The email server didn’t recognize your username/password combination".
    I have checked all preferences in mail and all seem to be in order. The apple "mail" accepts my hotmail messages. Does iphoto only work via apple mail. if it does how can I set up apple mail to accees hotmail and apple mail?

    iPhoto Menu -> Preferences -> Accounts. Delete and recreate your email account.

  • Send attachment via ADDT Send Form function

    Not sure if this is possible...
    I have an update record form used as a contact form using ADDT.
    It has a couple of fields that are files, and is using ADDT to upload them to the server.
    I'm also using ADDT to send emails of the form contents to the site owner.
    Should I be able to send those files as attachments in that email?
    From looking at it, it doesn't seem to let me choose a form field's contents as an attachment, but I might be missing something.
    If it is possible, then if anyone could advise me where I'm going wrong, that would be much appreciated.
    Thanks.

    Even if ADDT would let you choose the file field´s contents for this purpose, it´s of course pretty problematic, because this information (the name of the to-be-uploaded file) alone does not represent the physical location of that file on your server *after* it´s been uploaded -- and it´s the complete file path which ADDT would expect, and which is not determined by the contents of the file field.
    Cheers,
    Günter

  • ICal Server sends invitations via external email but no RSVP

    I have set up a fresh install of Mavericks Server (10.9.3) running DNS and OD Services and now enabled iCal Server.
    I setup invitation of external users via an external email address and  invitations get sent and delivered via email just fine so I guess plus-addressing must be supported by the mailserver.
    However the invitations do not show the RSVP requests and do not automatically get picked up by Calendar.app.
    The server sits behind a NAT router and runs its own Split-DNS setup for the same local domain myserver.xyz.com that the router also redirects to the internal IP address of the server for external access to the iCal Server (so, FQDN is working for the server). The email account used for invitations is hosted on an external mailserver that runs on the same domain (mail.xyz.com).
    Did I miss anything in my setup?
    Thanks for any input.
    Pete

    Okay, got this figured out. Appears that the email server my client's company uses is terminating the connection when the Xserve tries to do anything. I setup a test Gmail account and used those settings instead and everything worked just fine.

  • Purchase Order External Send with email body text

    hi guru,
    i saw lot of threads but i didn't get coreect answer
    i did below process
    Goto NACE .
    u2022 Select EF and click on OUTPUT TYPES.
    u2022 Then select Output Type NEU and click on processing routines .
    u2022 In that you have to add a new entry - medium 5 .
    u2022 Then you need to assign a program, form routine and form.
    u2022 You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    u2022 Then in PARTNER FUNCTION you need to add a new entry : medium - 5 and function - VN .
    u2022 For subject of the mail goto Mail Title and Texts. In title give PO No. &EKKO-EBELN& .
    u2022 Under General data -> Replacement of text symbols give programm as SAPMM06E and Form Routine as TEXT_SYMBOL_REPLACE .
    u2022 Now the subject will be PO No. 1800004202.
    u2022 You need to maintain your email id in tcode SU01 and also the vendor's email id.
    u2022 Now while creating a new purchase order , change the medium to External Send .
    u2022 Then goto Communication Method and select CS01 . ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN& .
    u2022 Goto tcode ME9F .
    u2022 Execute.
    u2022 Select the checkbox and click on Output Message.
    u2022 You will get a message MAII 00000000000001 generated .
    u2022 Use note no 191470
    mail subject is going ,but mail text is not coming.
    some people  suggest this sap note
    Note 786847 - E-mail purchase order w/ e-mail text and several attachments
    i did not get this note.
    give the solution for email body text ,i read some thread,it will solve through abap development .
    please  give solution
    regards
    vijay

    Hi
    1. GO to tcode SCOT.
    2. Double click on SMTP
    3. Click on the set button next to internet
    4. In this screen for SAP Script/ Forms select TXT.
    Regards
    Girish
    Edited by: Girish Bettaiah on Aug 8, 2011 3:11 PM

  • Error with Output Type NEU - External Send

    Hello Gurus,
    I try to send Purchase Order by email, and I got this error message;
    Access                    Message               Description
    20                    540               Output not found
    Access                    (complete)     
    Field in condition table                                               Field in document                          Value in doc.
    Purchasing Doc. Type                                                Purchasing Doc. Type                           ZNB
    Please, I really appreciate any help.
    Regards,
    Hector

    Hi ,
    Check if you miss any settings in the following steps,
    Go to NACE
    - Select EF and click on OUTPUT TYPES.
    - Then select Output Type NEU and click on processing routines
    - In that you have to add a new entry - medium 5
    - Then you need to assign a program, form routine and form.
    - You can use the standard program i.e. SAPFM06P, FORM routine is always ENTRY_NEU and standard MEDRUCK.
    - Then in PARTNER FUNCTION you need to add a new entry: medium - 5 and function - VN
    - For subject of the mail go to Mail Title and Texts. In title give PO No. &EKKO-EBELN &
    - Under General data -> Replacement of text symbols give program as SAPMM06E and Form Routine as
    TEXT_SYMBOL_REPLACE
    - Now the subject will be PO No. xxxxxxxxx.
    - You need to maintain your email id in tcode SU01 and also the vendor's email id. - Now while creating a new purchase order change the medium to External Send
    - Then go to Communication Method and select CS01 ALSO make sure that the Cover Page Text has value PO No. &EKKO-EBELN&
    - Go to tcode ME9F
    - Execute.
    - Select the checkbox and click on Output Message.
    - You will get a message MAII XXXXXXXXXXX generated
    SAP NOTE FOR EMAILING PO :SAP note 191470
    Regards,
    Prabu

  • Output message type External send - Suppress spool number in SOST title

    Dear all,
    Using an external send output type, we send order confirmation from by mail.
    Depending of printer we use, we have different behaviors :
    With a normal printer, the mail title we get in SOST is exactly the content of field <NAST-TDTITLE>.
    This field can be changed in the print program, so we can set exactly the title we want.
    With a PDF2MAIL printer (printer defined in SPAD with property host spool access method : M (Email to Receiver/Owner), the mail title we get in SOST is the following : <SystemID><Spool Number><NAST-TDCOVTITLE>.
    Do you know whether it is possible to suppress standard information <SystemID><Spool Number>
    and therefore have only <NAST-TDCOVTITLE>.
    Setting both fields <NAST-TDCOVTITLE> and <NAST-TDTITLE> using print program, the goal is to have allways same title in SOST ...
    Can you help me ?
    J.C.

    Hi,
    I am not got your reuirement clearly, but i feel your reuirement is close to this thread:
    RLB_INVOICE program for sending mail to muliple mail's Id's
    I have used the Cl_BCS class to send mail to muliplte vendor mail id's
    If needed code will be send.
    Hope this will help.

Maybe you are looking for