Exit/Enhancement for External Send

Hi all,
I have a requirement that needs to retrieve the correct email recipient of vendor(this is for PO). A custom output type for External Send is maintained in NACE. The vendor has two email address maintained (one with a note that it is for PO), I can check which email address is correct through tables ADR6 and ADRT. Buts there any exit/enhancement where I can add the logic for this?
Thanks,
Eo

Check enhancement 'LMEDR001' this is the customer exit that would be used for enhancement of the print program check the changing parameter CX_DOC which is of the type MEEIN_PURCHASE_DOC_PRINT which has structure 'MSGPA' which should have address numbers information.
How does that help though?  There's no access to the e-mail address - what he's trying to do is set the correct address when multiple ones exist on the vendor.
As I remember, with the PO external send processing, you could only use the default address on the vendor (because of a hard-coded READ in the code), so we use the default e-mail address for PO sends and for other objects such as payment advices (where you can actually pick the e-mail address), we tag the notes with an identifier.  I have not revisited this code in ECC 6.0 though.
You can see where the e-mail address is set in function CONVERT_COMM_TYPE_DATA; it uses the old macro calls to set the e-mail recipient which is derived from a simple ADDR_GET call (using the address number).  There aren't any exits here but you could use an implicit enhancement to change the values.

Similar Messages

  • Badi / Exit / Enhancement for replacing INSMK during PO creation

    Hi Gurus,
    we want to default the INSMK field (stock type) during Purchase Order creation..
    Can someone help me findind the right BAdI / exit / enhancement for it?
    Thanks in advance,
    Regards,
    Alessio

    Hi Alessio,
    You may check these first:
    Re: Negative postings to MVER table
    Re: select stock type
    Thanks,
    Gordon

  • Change "SAPScript" email subject/body for External Send(5) for output type?

    Hello,
    I'm emailing a SAPscript form (converted to PDF) generated via Transmission Medium 5 (External send) for output type (EK00) and need to change email's subject and body of email created by SAP code.  Any suggestions on how to change email's subject and body?
    Thanks,
    Billy

    Also if u want to add a body to the mail.  See the below form (sub routine) which needs to be mentioned in NACE.  Either u can keep this routine in the driver program or u can put in separate report program.  All thing u need to is see the below code and mention the name of the program and form name in nace.  Double click on output type in nace. u will find a tab stripped screen in right.  In the screen u can see the first tab as 'General data'  and at the bottom a block with title 'Replacement of text symbols' can be seen.  There u need to pass this program name and form name.
    Execute ur program and test the result.
    FORM text_symbol_replace TABLES pt_lines  STRUCTURE tline
                              USING ps_thead  STRUCTURE thead
                                    ps_nast   STRUCTURE nast.
      DATA:
        lv_kunnr LIKE vbak-kunnr,          " AN0465 Add AKKUMA1 02/19/07
        lv_new_cursor_column LIKE sy-tabix," Cursor column
        lv_new_cursor_line   LIKE sy-tabix," Cursor row
        lv_changed,                        " Indicator
        lv_matnr     LIKE vbap-matnr,
        lv_vkorg     LIKE vbak-vkorg,
        lv_vtweg     LIKE vbak-vtweg,
        lv_desc(20),
        lv_name      TYPE thead-tdname,    " Name
        lt_lines     LIKE tline OCCURS 0 WITH HEADER LINE,
        lv_currentprogram LIKE sy-repid.   " Program Name
      DATA :
        ps_lines LIKE tline.               " Structure
      CONSTANTS:
        lc_int TYPE nast-nacha VALUE '5',  " External Send
        lc_comma TYPE c VALUE ','.         " Comma Separater
      DATA: BEGIN OF ls_fname,
              dsnam TYPE nast-dsnam,       " Spool Name
              dsuf1 TYPE nast-dsuf1,       " Spool Suffix1
              dsuf2 TYPE nast-dsuf2,       " Spool Suffix 2
            END OF ls_fname.
      FIELD-SYMBOLS: <lfs_nast> TYPE vnast.
      IF ps_nast-kschl EQ gc_zj17.
    Fetching vbak-kunnr.
        SELECT SINGLE kunnr                " Customer
                      vkorg
                      vtweg
                 INTO (lv_kunnr,lv_vkorg,
                       lv_vtweg)
                 FROM vbak
                WHERE vbeln EQ ps_nast-objky.
        IF sy-subrc EQ 0.
          SELECT SINGLE matnr INTO lv_matnr
           FROM vbap
             WHERE vbeln EQ ps_nast-objky.
        ELSE.
          IMPORT xvbak-kunnr TO lv_kunnr FROM MEMORY ID 'YSOLDTO'.
          IMPORT xvbak-vkorg TO lv_vkorg FROM MEMORY ID 'YSALESORG'.
          IMPORT xvbak-vtweg TO lv_vtweg FROM MEMORY ID 'YDISTCH'.
          IMPORT xvbap-matnr TO lv_matnr FROM MEMORY ID 'YMATERIAL'.
        ENDIF.
        IF sy-subrc EQ 0.
          CONCATENATE lv_matnr lv_vkorg lv_vtweg
           INTO lv_name.
          CALL FUNCTION 'READ_TEXT'
               EXPORTING
                    id                      = '0001'
                    language                = ps_nast-spras
                    name                    = lv_name
                    object                  = 'MVKE'
               TABLES
                    lines                   = lt_lines
               EXCEPTIONS
                    id                      = 1
                    language                = 2
                    name                    = 3
                    not_found               = 4
                    object                  = 5
                    reference_check         = 6
                    wrong_access_to_archive = 7
                    OTHERS                  = 8.
          IF sy-subrc = 0.
            CLEAR lv_desc.
            LOOP AT lt_lines.
              CONCATENATE lv_desc lt_lines-tdline
                     INTO lv_desc
                SEPARATED BY space.
            ENDLOOP.                       " LOOP AT lt_desc
            CONDENSE lv_desc.
          ENDIF.
        ENDIF.                            " AN0465 Add AKKUMA1 02/26/07
    Fetch Region.
        SELECT SINGLE name1 ort01               " City
          INTO (gv_name1, gv_ort01)
          FROM kna1
          WHERE kunnr EQ lv_kunnr.
        IF sy-subrc EQ 0.
          CONDENSE gv_ort01.
          CONCATENATE ':OC:'
                      gv_name1
                      gv_ort01
                      lv_desc
                 INTO ps_lines-tdline SEPARATED BY space.
          LOOP AT pt_lines.
            pt_lines-tdline =  ps_lines-tdline.
            MODIFY pt_lines.
            CLEAR pt_lines.
          ENDLOOP.
        ENDIF.                             " IF ps_nast-kschl EQ gc_z..
      ENDIF.                               " AN0465 Add AKKUMA1 02/19/07
    IF NO TEXT IS PROVIDED READ TEXT USING HEADER INFO
      IF pt_lines[] IS INITIAL AND NOT ps_thead IS INITIAL.
        CALL FUNCTION 'READ_TEXT'
             EXPORTING
                  id       = ps_thead-tdid
                  language = ps_thead-tdspras
                  name     = ps_thead-tdname
                  object   = ps_thead-tdobject
             TABLES
                  lines    = pt_lines
             EXCEPTIONS
                  OTHERS   = 1.
        IF sy-subrc NE 0.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF pt_lines[] IS INITIAL
    REPLACE VARIABLES USING DATA FROM PROGRAM   YVADOR01
      IF NOT pt_lines[] IS INITIAL.
        lv_currentprogram = 'SAPMV45A'.
        CALL FUNCTION 'TEXT_SYMBOL_REPLACE'
             EXPORTING
                  endline = sy-tabix
                  header  = ps_thead
                  program = lv_currentprogram
             IMPORTING
                  changed = lv_changed
             TABLES
                  lines   = pt_lines.
    Subrc Check not required.
        CALL FUNCTION 'FORMAT_TEXTLINES'
             IMPORTING
                  new_cursor_column = lv_new_cursor_column
                  new_cursor_line   = lv_new_cursor_line
             TABLES
                  lines             = pt_lines
             EXCEPTIONS
                  OTHERS            = 2.
        IF sy-subrc NE 0.
          EXIT.
        ENDIF.                             " IF sy-subrc NE 0.
      ENDIF.                               " IF NOT pt_lines[] IS INITIAL
    SPLIT ORDER NUMBER AND PUT THEM INTO SPOOL REQUEST NAME & SUFFIX FIELD
    SAP USES THESE FIELDS TO CONSTRUCT FILENAME
    FOR THE PDF ATTACHMENT IN EMAIL
      IF ps_nast-nacha EQ lc_int OR ps_nast-nacha = '2'.
        IF ps_nast-dsnam IS INITIAL AND ps_nast-dsuf1 IS INITIAL.
          ls_fname = ps_lines-tdline.
          ps_nast-dsnam = ls_fname-dsnam.
          ps_nast-dsuf1 = ls_fname-dsuf1.
          ps_nast-dsuf2 = ls_fname-dsuf2.
        ENDIF.                             " IF ps_nast-dsnam IS INITIAL...
      ENDIF.                               " IF ps_nast-nacha EQ lc_int
    ENDFORM.                               " TEXT_SYMBOL_REPLACE
    Venkat.

  • Communication strategy missing for external send

    Dear all,
    I want to send O/Cs via mail, therefore I configured the transmission medium of the output type to "external send". As well I set the communication strategy for mail to the output type. Nevertheless I receive an error, when I want to save the O/C with a new message. Please be so kind and take a look at the attached screenshot. Do you have any idea why the error occurs?
    Best regards,
    Benjamin

    Hi Susan,
    Please be so kind and take a look at the SAP-note 2017440 - Communication strategy cleared in message output  . In my case this solved the problem.
    Best regards,
    Benjamin

  • User Exit/Enhancement for Customized Price Determination in VF01

    Hi Experts,
    User would like to change the item price (VBRP-NETWR) in VF01 using its customized logic.
    Which Exit/Enhancement I should implement to to change the value of VBRP-NETWR before it is displayed out to the user?.
    What I trying to do is to override the item price (VBRP-NETWR) regardless then standard SAP logic which calculated the price.
    Thanks in Advanced.
    Regards,
    Ming Jun
    Edited by: Lai MJ on Apr 13, 2010 6:15 AM

    Hi Lai,
    For your transaction below mentioned exits are available:
    SDVFX001  User exit header line in delivery to accounting
    SDVFX002  User exit for A/R line in transfer to accounting
    SDVFX003  User exit cash clearing in transfer to accounting
    SDVFX004  User exit G/L line in transfer to accounting
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX007  User exit: Billing plan during transfer to Accounting
    SDVFX008  User exit: Processing of transfer structures SD-FI
    SDVFX009  Billing doc. processing KIDONO (payment reference number)
    SDVFX010  User exit item table for the customer lines
    SDVFX011  Userexit for the komkcv- and kompcv-structures
    V05I0001  User exits for billing index
    V05N0001  User Exits for Printing Billing Docs. using POR Procedure
    V60A0001  Customer functions in the billing document
    V60P0001  Data provision for additional fields for display in lists
    V61A0001  Customer enhancement: Pricing
    i think you can try using(any one) :
    SDVFX005  User exit reserves in transfer to accounting
    SDVFX006  User exit tax line in transfer to accounting
    SDVFX010  User exit item table for the customer lines
    Regards,
    Tutun

  • User exit/ enhancement for billdoc creation using external billdoc number

    good day experts,
    my requirement is to allow assignment of external billing document. we have no problem with sales document and outbound delivery number. but for billing document, it seems no possible without user exit. I want to know the user exit for this and if I need to request for devkey upon modifying this user exit? or just create an enhancement point?
    thank you in advance!

    Refer to the reply from Brad.
    SAP IMG documentation reads,
    Number assignment
    Specify a number range for number assignment. For billing documents numbers can
    only be assigned internally by the SAP System. To define a common number
    assignment for different billing types, you have to specify the same number range
    in each case.

  • PO creator email id for external send

    Hi,
    When we email POs to vendor from SAP, now it is picking the email id of PO approver as the from address(this is with Dispatch - 4). Is it possible to get PO creator emailid when the POs are emailed from SAP, if we use release process and Dispatch - 4.
    Thanks
    Bob

    Hi All,
    Sorry for jumping into this loop, but I need a help from all of you.
    I want to send email with PO, but no idea under the case below.
    We have 3 LOBs under 1 legal entity, so that the vendor master is shared with 3 LOBs.
    Then, a vendor has 2 departments ("A" department and "B" department) as well.
    Our 1 LOB want to send PO via email to "A" department in the vendor, however, we don't want to send PO to B department.
    On the other hand, the other LOB in our company wants to send PO to "B" department in the vendor, but does not want to send it to "A" department.
    This requirement can be handled in SAP?
    I would greatly appreciate your advice.
    Thanks.

  • HOW to make 2 step Communication strategy  for external send

    Hi
    I have made this 2 step communication strategy and attached to an email output type for purchase order, but it doesn't work as expected.
    The 2 steps are 1  INT,  2 = PRT
    If the vendor/supplier has an email in the address the purchase order is send by email, but if he has no email addres, then the output fails with message "E-mail address incorrect or non-existent"
    I expected the result to be that it would create a print instead of an email.
    What is wrong?
    Thanks.
    Thomas Madsen Nielsen

    I found the solution myself.
    The communication type PRT = Print is not supported, but LET = Letter will do exactly the same thing.
    I found the answer in OSS note 323720.
    Thanks

  • COPA exit COPA0007 for external data transfer

    Hello all,
    Have anyone already used COPA0007 Enhancement?
    Is ther any customizing that is needed in order to SAP stop execution with a break-point in the FM's associated.
    I'm trying to change data in external data transfer and I can not stop execution when running T-CODE KEFC.
    Best regards,
    Francisco Fontoura

    Hi,
      Please read note 508273.
    regards
    Waman

  • User Exit / Enhancement for Master Serial Number Capture ....Pls help !!!

    Hi,
    My requirement is: When I Enter a Master Serial Number, For Ex. my master serial number is of format SXXNNNNNNNK,
    *where XX is the number of Serial numbers to capture.*
    *If XX = 15, i need to capture 15 serial numbers.*
    *NNNNNNN is the series of the serial number beginning.*
    *If NNNNNNN = 1234500, and XX = 5, the Master Serial numbers generated would be 1234500 1234501 1234502 1234503 1234504*
    *(5 S/Ns should be generated).*
    (S and K can be left alone).
    Now When i enter the Master Serial Number SXXNNNNNNNK, and when I press enter, internally a User Exit should be triggered and generate the required number of S/Ns.
    Can anyone please help me out what is the User Exit i need to use so that my requirement as mentioned above is fulfilled?
    *Thanks in advance,*
    *saikumar*

    Hi,
         You can use the user exit include - MV45AFZZ and the subroutine FORM USEREXIT_NUMBER_RANGE.
    Hope it helps.
    Reward if it is useful.
    Thanks,
    Srinivas

  • 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

  • Problem with the External send output for Portugal in Smartforms

    Hello All,
    I am facing an issue with a particular outtype for external send for portugal country.The print priview is of different font than original font of the form.
    But When the same output type is assigned with the print output the form is showing the font with the original fonts of the form.
    can any one suggest the solution for this?

    Hello ,
    Actually the same external send output type is working fine in the development system.This is having issue only in quality system.
    And the  condition records are maintained same in both dev system and quality system.
    Does the capturing of Font play any Role...
    I read some where that sometimes in translations a particular coutry might not hold the fonts.
    Regards,
    Varun

  • External Send Billing Document - Issues Generating Body Text in Email

    Have generated output type to email billing document as PDF to customer. I am using medium 5 for 'External Send' and have everything working well - the subject line is correctly showing the company name and invoice number, also the PDF is tagged correctly the same data. The issue I am having is trying to incorporate body text in the email itself. I found OSS note 753622, and it indicates this is not possible but the note is quite old. I have combed internet for solutions on this, and many suggestions seem to point to function module CONVERT_OTF_AND_MAIL but not clear to me that this can be overcome here. Would appreciate any insights if someone has experienced this requirement as well.
    Thanks,
    Jay

    Jason,
    The FM you mentioned CONVERT_OTF_AND_MAIL is only for converting the OTF format to the email format. It has no other role in displaying some texts in the email.
    As already pointed out, it is not possible in standard SAP. You have to go for the custom code in the report program meant for the output type.
    This is the widely accepted and used practice in output world.
    Hope this helps you

  • External send PO email to vendor

    Hi experts,
    I have one requirement to add additional text in the email content for external send email to vendor, can anyone show me how to do this?
    Also, is there anyway to get acknowledgement from vendor when they receive the auto PO email?
    Thanks and regards,
    JT

    HI,
    In order to send PO, your Basis team must configure the system first so that external email can be sending out from SAP. If it is not configured, no settings you do on MM will work.
    1. You must maintain email address in vendor master data.
    2. The same applies to your user master data. For the output type for default values, a communication strategy needs to be maintained in the Customizing that supports the e-mail. You can find the definition of the communication strategy in the Customizing via the following path:
    (SPRO -> IMG -> SAP Web Application Server -> Basic Services -> Message Control -> Define Communication Strategy).
    As a default, communication strategy CS01 is delivered. This already contains the necessary entry for the external communication. Bear in mind that without a suitable communication strategy it is not possible to communicate with a partner via Medium 5 (external sending).
    3. Use the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines.
    4. In the condition records for the output type (for example, Transaction MN04), use medium '5' (External send).
    5. You can use Transaction SCOT to trigger the output manually. The prerequisite for a correct sending is that the node is set correctly. This is not described here, but it must have already been carried out.
    6. To be able to display, for example, the e-mail in Outlook, enter PDF as the format in the node.
    try this link
    Re: Email PO's
    Hope Help U !
    Regards,
    Pardeep Malik

  • Output type not accepting Comm method 5 - External send

    Hi
    not sure whether this should be posted on the Abap forum or on here ???
    I have a shipping output type.
    assigned Partner functions and applicable mediums - 1, 2 and 5
    however when trying to produce ooutput 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
    please could someone provide our Abapper with the missing coding that is needed to accomodate the External send functionality
    Many thanks for your help on this matter
    Tony

    Tony
    Check if you have done the following:
    1) Maintained Email address in the customer master data?
    2) Maintained Email address in the user  master data, this could be the generic/batch user you use for outputs.
    3) Set up communication strategy in config for external sending: SPRO/IMG/Sales and Distribution/Basic Functions/Output Control/Determine Communication Strategy.
    4) Set up settings for SAPconnect  using SCOT?
    Please follow the following OSS notes for more details and ensure that you have done all those steps:
    454893 - CHECKLISTSD: Sales document output as an e-mail
    960088 - FAQ: Sending SD messages externally
    Let me know how it goes.

Maybe you are looking for

  • ICal error message: reenter password. . .

    I continue to experience an aggrivating message from iCal. "The password may have been entered incorrectly. Reenter the password for account "Yahoo!" on the CalDAV server "caldav.calendar.yahoo.com." At the top of the iCal message window: "iCal can't

  • Can't sync photos using Windows 7, 64 bit

    I just got the iPad. Am using a PC with Windows 7, 64 bit. When I try to sync selected photo folders, sync begins, but never ends. I have to manually stop the sync, and none of the photos are copied. If I try to sync the iPad without photos, it works

  • ITunes crashes every time i try and update genius.

    I have itunes 10.1.2 and every time i try and update my genius it gets to 75% done and then I get the pin wheel and iTunes does not respond. I have heard people having this problem with older versions of iTunes but no one having it happen recently. A

  • Error creating frame 32631 (error -1)

    So I shot this video of my friend's band. Single camera on a tripod, one long shot of about 26 minutes. Synced up some pro recorded audio, threw in some intro and outro titles. Now trying to export. Each time I export, it gets about 70% of the way th

  • My iPad won't power up

    Daughter tried turning my iPad on while battery was very dead.  I think it got a deep sleep lock or some sort of issue like that. I've charged it and a day later I can't get it to turn on.