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

Similar Messages

  • How to define output types email or external send in the report program

    Hi all,
    now we are using a zprogram for output type printer and standard program RVADOR01 for output type external send. Now i want to modify my zprogram itself to support external send email as well as printer also. What modifications should I have to make in my zprogram. My form is a script.
    Thank you,
    Mallik

    hi all,
    i made the following changes in my code and it worked well.
    thank you for all who tried to share my pain.
    thanks one and all.
    hope this code will help anybode.
    thanks & regards
    FORM OPEN_FORM_EMAIL.
    TABLES: TNAPR,                         "Programs & Forms
            ITCPO,                         "Communicationarea for Spool
            ARC_PARAMS,                    "Archive parameters
            TOA_DARA,                      "Archive parameters
            ADDR_KEY.                      "Adressnumber for ADDRESS
    TYPE-POOLS SZADR.
    DATA: LVF_DEVICE LIKE ITCPP-TDDEVICE,
          LVF_DIALOG(1)     TYPE   C   VALUE ' ',
          LVS_RECIPIENT     LIKE   SWOTOBJID,
          LVS_SENDER        LIKE   SWOTOBJID,
          LVS_SNAST         TYPE   SNAST,
          LVF_PROGRAM       LIKE   SY-REPID,
          LVS_COMM_TYPE     TYPE   AD_COMM,
          LVS_COMM_VALUES   TYPE   SZADR_COMM_VALUES,
          LVS_TITLE LIKE SNAST-TDCOVTITLE.
    reset return code
      RETCODE = 0.
    if there is a communication strategy used ...
    IF NOT NAST-TCODE IS INITIAL AND NAST-NACHA EQ '5'.
      ... use stratagy to get communication type
        CALL FUNCTION 'ADDR_GET_NEXT_COMM_TYPE'
             EXPORTING
                  STRATEGY           = NAST-TCODE
                ADDRESS_TYPE       =
                 ADDRESS_NUMBER     = KNA1-ADRNR
                PERSON_NUMBER      = VBDKA-ADRNP
                  PERSON_NUMBER      = ADDR_KEY-PERSNUMBER
             IMPORTING
                  COMM_TYPE          = LVS_COMM_TYPE
                  COMM_VALUES        = LVS_COMM_VALUES
           TABLES
                STRATEGY_TABLE     =
             EXCEPTIONS
                  ADDRESS_NOT_EXIST  = 1
                  PERSON_NOT_EXIST   = 2
                  NO_COMM_TYPE_FOUND = 3
                  INTERNAL_ERROR     = 4
                  PARAMETER_ERROR    = 5
                  OTHERS             = 6.
        IF SY-SUBRC <> 0.
          RETCODE = SY-SUBRC.
          SYST-MSGTY = 'E'.
          PERFORM PROTOCOL_UPDATE.
        ENDIF.
    ENDIF.
       LVS_COMM_TYPE = 'INT'.
      CLEAR LVS_COMM_VALUES-ADSMTP-SMTP_ADDR.
      CLEAR LVS_SNAST.
            LVS_COMM_VALUES-ADSMTP-SMTP_ADDR = V_CUST_EMAIL.
    convert communication data
       MOVE-CORRESPONDING NAST TO LVS_SNAST.
            LVS_SNAST-ANZAL = 1.
            LVS_TITLE = 'Mail Header Title'.
      MOVE LVS_TITLE TO LVS_SNAST-TDCOVTITLE.
       MOVE SY-REPID TO LVF_PROGRAM.
      CALL FUNCTION 'CONVERT_COMM_TYPE_DATA'
           EXPORTING
                PI_COMM_TYPE              = 'INT'
                PI_COMM_VALUES            = LVS_COMM_VALUES
                PI_SCREEN                 = XSCREEN
              PI_NEWID                  =
                PI_COUNTRY                = ADRC-COUNTRY
                PI_REPID                  = SY-REPID
                PI_SNAST                  = LVS_SNAST
                PI_MAIL_SENDER            = SY-UNAME
           IMPORTING
                PE_ITCPO                  = ITCPO_LS
                PE_DEVICE                 = LVF_DEVICE
                PE_MAIL_RECIPIENT         = LVS_RECIPIENT
                PE_MAIL_SENDER            = LVS_SENDER
           EXCEPTIONS
                COMM_TYPE_NOT_SUPPORTED   = 1
                RECIPIENT_CREATION_FAILED = 2
                SENDER_CREATION_FAILED    = 3
                OTHERS                    = 4.
      IF SY-SUBRC <> 0.
        RETCODE = SY-SUBRC.
        SYST-MSGTY = 'E'.
        PERFORM PROTOCOL_UPDATE.
      ENDIF.
      CHECK RETCODE EQ 0.
    fill structure itcpo
      ITCPO = ITCPO_LS.
    open form
      CALL FUNCTION 'OPEN_FORM'
           EXPORTING
              APPLICATION        = 'TX'
               ARCHIVE_INDEX      = TOA_DARA
               ARCHIVE_PARAMS     = ARC_PARAMS
                DEVICE             = 'MAIL'
                DIALOG             = 'X'
                FORM               = 'ZSDLS003'
                LANGUAGE           = SY-LANGU
                OPTIONS            = ITCPO_LS
                MAIL_SENDER        = LVS_SENDER
                MAIL_RECIPIENT     = LVS_RECIPIENT
              MAIL_APPL_OBJECT   = ' '
              RAW_DATA_INTERFACE = '*'
         IMPORTING
              LANGUAGE           =
              NEW_ARCHIVE_PARAMS =
              RESULT             =
           EXCEPTIONS
                CANCELED           = 1
                DEVICE             = 2
                FORM               = 3
                OPTIONS            = 4
                UNCLOSED           = 5
                MAIL_OPTIONS       = 6
                ARCHIVE_ERROR      = 7
                OTHERS             = 8.
      IF SY-SUBRC NE 0.
        CASE SY-SUBRC.
          WHEN 7.
            RETCODE = SY-SUBRC.
            SYST-MSGID = 'VN'.
            SYST-MSGNO = '096'.
            SYST-MSGTY = 'E'.
            SYST-MSGV1 = NAST-KSCHL.
            SYST-MSGV2 = NAST-KAPPL.
            PERFORM PROTOCOL_UPDATE.
          WHEN OTHERS.
            RETCODE = SY-SUBRC.
            PERFORM PROTOCOL_UPDATE.
        ENDCASE.
      ENDIF.
      SET COUNTRY ADRC-COUNTRY.
    ENDFORM.

  • Billing document output needs to tigger for multiple emails.

    Hi Experts,
    We have a scenario wherein a single billing document output gets triggered for multiple emails. The requirement is to send the invoice layout copy to multiple emails where we maintain customer mail ids in customer master record.
    When tried ,we found option in customer master record and maintained multiple email ids to send the billing output.The system has considered first email id from customer master record and did not consider next mail ids from CMR. Could you please suggest how can we suffice this requirement .
    Thanks in advance.
    KV.

    Hi,
    Email Address is maintained in Table ADR6 against the address number of table BUT000 for a particaluar BP.
    If the custom code is used, following logic can be used:
    For multiple email address multiple entry will be there in ADR6 for the same address number. To send the correspondence to all email address, select all entries and concatenate them separated with semi-colon ( and pass the same to the email address field.
    This is working in our case where we are using a third party for creating and sending the PDF.
    Regards,
    Pranavjeet.

  • Invoice via email to external sender with partner function

    Hello all,
    sending an invoice via email to the recipient address that's in the customer master is working fine in our system. Now we want the invoice to be sent to one of our employees and we did the following settings:
    - Created a personnel number in the HR module and assigned this number to the SAP user ID of the employee.
    - Created a partner function ( Transaction OPSPAR1) with partner type ER - Personnel number. Is this the correct partner type?
    - Added new partner function in customer master and assigned personnel number of employee.
    - In output section of the invoice, we added output type, selected medium = external send, assigned new partner function and partner=personnel number.
    After issuing output, a message comes up that output could not be issued.
    Any suggestions? Am I missing something?
    Thanks
    Anne

    Dear Anne,
    Have you maintained Recipient field with User Id of employee in the condition record Communication detail screen.
    If not maintained maintain Recipient field with User Id of employee then try.
    I hope this will help you,
    Regards,
    Murali.

  • Hello Guru's reg IMG settings for output det of PO External Send

    Hello Guru’s,
    While configuring output determination Medium for External Send  At Message Type Purchase order step in IMG Settings, I need to configure the following settings
    Program, routine, form
    I have Output type:  Neu ( for Purchase orders)
    Application: EF Purchase Order
    Medium----External Send
    Program:?????
    Routine:
    Form:
    What is the the program name, routine Name and Form, should I select from the drop down bar. There is no description for the SAP STD program for External Send mode will anyone guide me.
    Full points for the answer

    HI,
    You can get some idea by clicking this.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/75/ee122c55
    c811d189900000e8322d00/frameset.htm
    regards

  • Automatic Email of Billing document output to customer

    Dear All,
    We have following requirement @ our client. You valuable inputs will be very helpfull.
    Currently output (RD00) are taken via printout and later scanned and sent to customer.
    Now client wants following requirement , where in once the billing documents are generated, output  should be sent to customer automatically via EMAIL (mentioned in the customer master : contact person).
    I kindly request you to help me with steps required to configure this scenario in SAP.
    Thank you
    Chaithru.

    Hi
    For the output type RD00, Maintain the medium SIMPLE MAIL
    then maintain condition record for output in VV31
    Speciefy medium as 7 and in communication method mention email id to whom u want to send
    As soon as you save billing document system will send the email to party.
    Kapil

  • Billing document to customer email ID

    Hi,
    I want any billing document save then billing document should go to automatically the customer email ID. Already I have maintained the email ID into the customer master.
    is it possiable? If yes, how?
    Pl provide the solution for above requirement
    Useful answers duly rewarded
    Regards,
    Devendra

    Hi
    Even for the Z output type you can set External send method in NACE.
    Other config steps are same as provided you earlier i.e. NACE -- VV31 - VF31 varient creation --> SCOT settings --> Job Schedule for VF31 with varient --> Job schedule for SCOT.
    Just one tip, if you want check SCOT settings are in place or not - generae spool request. In T.code SP01 select the spool request and Click Menu Bad --Spool Request --> Forward --> Send using SAP Office --> Type your Maild id. for e.g gmail ID.-Click on copy.
    Now go to T.code SCOT just check you have configur Adr Type INT and within INT -- SMTP. Click on Start send process and click on Start. If you get output via mail through this process your SCOT settings are in place. Else you need to ask your basis team to configure.
    Good luck
    Regards,
    Vijay
    Edited by: Vijay Salvekar on Jun 26, 2008 11:26 AM

  • 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....

  • How to send a SmartForm output as Email to external id?

    I want the Smartform output to email to extrenal email-id.
    I don't want the Smartform output as any kind of attachment, but the Smartform output needs to be shown on the main email body. Can anyone pls. help me out?

    First, thanks for your responses.
    I haven't found the demo program 'BCS_EXAMPLE_6' in SAP 4.7. But then I got it in SAP 5.0 version. But this program only describes how to send Form output as PDF attachment with email. But this is well-known and I haven't asked for this. I want the Smartform output within the mail-body without attachment.
    The weblog at "/people/pavan.bayyapu/blog/2005/08/30/sending-html-email-from-sap-crmerp seems a more logical one, though I have already tried it out. Here the html page creation and graphics load -- everything is going right. But this HTML page is being delivered as an Attachment within the email. The normal HTML Email is not coming. I think this technique wouldn't work with all mailing tools. Here in the weblog, Pavan has shown the example with Microsoft Outlook. But I have tested with Lotus Notes and Yahoo. And In both cases, the mail is coming with attached HTML file (in .mht format), but not as a notmal html mail without attachments.

  • Error while trying to assign an output type to medium external send in smar

    Hi,
    My requirement is to send a smartform through e-mail as PDF attachment.I have made the changes in the print program of the smart form.When I try to assign the output type to the medium external send in vt02n transaction,it is being saved but it is showing the status as 'not processed'.When I check the processing log it is showing 'Please maintain a output device in your user master data'.But I am able to send the mail and open the attachment.When I try to assign the same o/p type to medium special function,this is being successfully processed .Why am I getting error when I try to assign theo/p type to external send?
    Regards,
    Hema

    Check the logic in the entity adapter ENT_Prov_Permitted_Resources.
    This adapter is causing problems when you are trying to assign the resource.

  • Vf03 billing documents output types

    Hi friends,
    i want to assign output type in vf03 for perticular 'L2-debit memo'.
    So how can I do this?
    thanks in advance.

    Hello,
    See assigning output types can be done in vf02.
    Goto environment header output.
    Enter the respective output & make entries for printer destination in communication device
    Later in intiall vf02 screen you will be able to see the output, provided you have done the config settings properly
    Hope this helps you
    Thanks & Regards

  • Missing Footer in Billing Document

    I have one strange problem. VF31 has been scheduled in background to print billing documents. For some billing documents footer are not getting printed. In spool request also we are not able to view footer. But when we check same billing document output through VF03, it show correct footer and also print correctly.
    Why billing documents showing footer when it output through VF31 ?

    In output print report Footer determined by validation different variables and it seems during mass processing through VF31, RSNAST00 not get referesh variables which retain previous document values. In simple, clear statement messed up whole billing document output

  • Create Billing Document from Sales Order (Without Delivery)

    Dear Experts,
    Pls note, presently we are creating Billing Document (VF01) from Outbound Delivery Number after Post Good Issue. All sales Document like Billing Document, Output Type, Invoice Type has been configured for this process and we are doing this without any error. Fyki, we have configured lots of Z Order, Billing & Delivery type to do this processes.
    But for one of this order type we need not do any delivery. We want to create Billing Documents from sales order directly (without doing any Outbound Delivery).
    So, would u pls advise the steps how can we configure and assign Order Type, Billing Type or any other type  to meet above requirement.
    Thanks in advance.
    Best Regards.
    Ripon

    Hi
    There are two most important configuration:-
    1) In VOV8 for your Order Type maintain the Order Related Billing Document
    2) Maintain the Copy control setting in VTFA betwwen your Order Type and billing Type.
    Also note that if your line item is not require to be delivered then for your Item category maintain (in VOV7) not relevant for delivery and not relevant for scedule line.
    Regards
    Amitesh Anand
    Edited by: Amitesh Anand on May 24, 2010 5:09 PM

  • Vendor Billing Document

    Hello,
    I am currently working on Vendor billing document from Rebates. There are 2 requirements that I would need help with:
    1) Would someone know the programme, routine name for vendor billing document WLF1/WLF2. This is send the debit notes by mail to vendors. I have configured output type for message determination with transmission medium 7 (simple mail) and maintained config as PDF in NACE. Any help on this would be highly appreciated.
    2) Could I ever turn the accounting documents creation off and if so on what criteria? The requirement is, for import vendors, the payment is collected and managed in Oracle whereas we need rebates for import vendors to be managed in SAP. Hence, we will create rebate agreement in SAP, settle in SAP and raise debit notes in SAP but not accounting document. The other solution for the same issue would be to post credit and debit entries in the accounting document with same value therby nullifying the value of the accounting document. Can someone help me with
    a) how to turn the accounting document off
    b) how to credit and debit same G/L account thereby to nullify the value.
    Thanks for your help,
    Regards,
    Subbu75

    One post,One Question.Pl close this thread.
    Since subject posted is FI relevant,Hence post as different questions in [ERP Financials |SAP ERP Financials;

  • Address change based on userids in the billing document

    Hi,
    we have billing document output, with the company code address, for eg.XYZ,10/11 and in the program there are few userid's which are hardcoded,whenever these users process the output it should give the address of other company code that is ABC,1/2.
    Is this possible in a SAP standard output configurations?
    pls suggest, points shall be given
    SR

    Not thru configuration.  It must done thru coding.

Maybe you are looking for

  • Disappointed, can no longer trust Verizon for customer service

    Looks like I'm not the only one disappointed in Verizon's customer service, I've already seen a number of complaints on forums and this website itself. I'm writing this "discussion" in efforts to get something done about Verizon's customer service. Y

  • Multi-Home Agent Questions

    Hello, For a Multi-Homed Agent what are the permissions required by both MOM Actions and SDK Service accounts on the clients versus both RMS Production and Tests, versus both accounts on the Client. System Center Data Access service is running under 

  • Number range missing during f-32

    hii while i m doing f-32 for customer clearing then system showing error msg... "In company code 1000, the number range 80 is missing for the year 2009" how  we will set number range? Thanks & Regards Rekha shrama

  • Unix sqlplus set markup html on

    Can anyone explain why the following does not work under solaris unix sqlplus SQL*Plus: Release 3.2.3.0.0 - Production on Wed Aug 13 17:43:20 2008 Copyright (c) Oracle Corporation 1979, 1994. All rights reserved. Connected to: Oracle9i Enterprise Edi

  • Where can I download and How do I install Chinese ...

    Anybody knows where can I download and how do I install Chinese Input (Writing Language) for my Nokia E71 (UK)? Thanks.