Automatic mailing to vendor

Hi all,
Reg: Automatic mail has to sent to the vendor.
After the vendor code is created at that time itself the mail has to send to the Mail ID which is specified in the vendor master with the code and general details.
Regards
gvr

Here are your options in 46C.
1. Put code in EXIT_SAPMF02K_001 to send email.  You have the address handle as an input parameter.  Refer to this thread on reading addresses stored in memory. http://www.sapfans.com/forums/viewtopic.php?t=281525&highlight=memory
2. Schedule a periodic job to look for change pointers for vendor object KRED.
3. Workflow: Not possible with standard object LFA1 because this object does not have a CREATED event.

Similar Messages

  • The PO get automatically mailed to the vendor

    hi friends,
    help needed!!!!!!!!!!!
    is it possible that after release at all level of PO , the PO get automatically mailed to the vendor... if yes then how.
    regards,
    rashmi

    Hello,
    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
    thanks,
    santosh

  • Text in automatic e-mail for vendor when PO creation

    Hello experts,
    I have customized a message type that sends an email to the vendor when saving a purchase order and it works correctly, but I have some questions about characteristics of this email:
    - Is it possible to include a text in the body of the message? I have seen that in "mail title and texts" when output types customizing there is an option for a long text but I do not know how to make this text appear in the email.
    - Is it possible to send the email to more that one vendor? If in the vendor master data I include two different email addresses, is it possible to send the email to both of them?
    - Is there any way to automatize this message just for one user?
    Thanks in advance
    Laura

    Hi,
    In standard not possible to have covering text  of a mail which  include a text in the body of the e- mail message but only you can send with PO as attachment with subject in as "PO number"
    Only possible :you can send PO by  e-mail to vendor to single e-mail ID. If you want to send multiple (e-mail)  ID, you can go for development with ABAPer with group e-mail  concept.
    Regards,
    Biju K

  • Automatic replication of vendor masters from SAP R/3 to EBP

    Hi
    For this issue I found the below program and steps to do the automatic replication of vendor master from SAP R/3 to EBP
    PROGRAM BBP_VENDOR_SYNC
    The program BBP_VENDOR_SYNC automatically synchronizes the backend vendors with the SRM system.
    To run the program BBP_VENDOR_SYNC, you first have to make the following settings:
    Path in the Implementation Guide (IMG):
    Supplier Relationship Management --> SRM Server  -->Technical Basic Settings -->Settings for Vendor Synchronization --> Make Global Settings
    Supplier Relationship Management --> SRM Server  -->Technical Basic Settings -->Settings for Vendor Synchronization --> Define Settings for Each Backend System
    Then you have to make the following settings in transaction SA38:
    · Enter program BBP_VENDOR_SYNC.
    · Click on the pushbutton Background.
    · Enter the report name BBP_VENDOR_SYNC.
    · Either define a new variant or use an existing variant ( The new Variant as Test Vendor)
    · Click on the pushbutton Schedule.
    · Enter the job.
    · Define the start date.
    · Either schedule once or schedule periodically. Then you have to define the period interval.
    I followed  the above mention steps and I am able to setup the Schedule on timely basis and the job was completed successfully, but the vendors are not replicated successfully .
    I am receiving the below error in transaction code SLG1.
    1.The Specified Node does not Exist in the Org. Plan(Message no. BBP_VENR006).
    2.No Vendor Replicated from Backend MD1CLNT(Message no. BBP_VENR017).
    Please check and advice.
    Thanks & Regards
    Sada

    Hi Sadasivam,
    Make Global Settings
    Use
    In Customizing for vendor synchronization, you define between which mySAP or ERP backend systems and the EBP System you wish to automatically synchronize the vendor master data. This setting is necessary in order to start a job-based execution of the synchronization, so that the vendor master data that is newly created or changed in the backend is updated regularly in the EBP System.
    Requirements
    You wish to use the automatic vendor synchronization functionality.
    In the Implementation Guide (IMG) activity Define RFC Destinations, you have defined the RFC destinations for your systems.
    Under Define Backend Systems, you have defined the backend systems for your systems.
    Activities
    Customizing for Vendor Synchronization consists of two parts. In the first part you make those settings that are valid for all backend systems. In the activity Make Settings for Each Backend System you can define or display detail data for the individual backend systems.
    Make Global Settings
    By setting the indicator Create New Vendors Also, you can determine that those vendors newly created in the backend systems are also newly created during the synchronization. If this indicator is not set, the only data updated is that of the vendors in the Enterprise Buyer System whose data was changed in the backend systems.
    Note:
    If you have not yet made an entry here, an empty screen appears when you start the activity. To make the settings, choose New entries or press F5.
    Further Settings:
    Carry Out Address Check for Duplicates :
    Organizational Unit in EBP for the Vendor
    Enter the eight-digit number, for example, 50001234.
    Vendor Number Assignment Type
    In the dropdown box, choose the method with which the number is to be allocated when a new vendor is created, for example, internal number allocation.
    Hope this makes you more clear. My mail i.d is [email protected]
    Rgds,
    Teja

  • F110 - Automatic email to vendor when payment run is carried out

    Hi,
    I am trying to configure automatic emails to be sent to vendor when automatic payment run is carried out.
    Please note that i have already carried out the following settings:
    Step 1- Define Std communication method as SMTP (Internet mail) in vendor master               
    Step 2 – Maintain email address via FK02.               
    Step 3 - T-Code BERP – Code to find Find event 00002040 – This is a Function called SAMPLE_PROCESS_00002040, copy with another name i.e. ZSAMPLE_PROCESS_00002040               
    Step 4 – T-Code FIBF -> Option -> Product ->a Customer, Write product name at your choice (for example ZMAIL) and make it active.               
    Step 5 – T-Code FIBIF -> Option ->Process Function (or Module) ->. A Customer.               
    Process = 00002040               
    Module Function = ZSAMPLE_PROCESS_00002040               
    Product = ZMAIL (name of product define by you in step 4)
    it will automatically send mail to vendor provided SCOT is configured.
    However, when i carry out the payment run, email is not generated..
    Can someone please help me out with the above?
    Thanks in advance

    Andi,
    this might help....
    Emailing SAP Remittance advice:
    1.
    For the following process to work SAP Connect needs to be configured for outgoing mail. This is carried out by the Basis team. The t-code is SCOT.
    2.
    <b>Vendor Master Data</b>
    Define ‘Std communication method’ as SMTP (Internet mail) and maintain an email address in the vendor master data.
    3.
    <b>T-Code BERP</b> – Code to find the relevant BTE. Use the Selection Attribute to browse for your business area. In my case, it is AP-Payment Transactions hence FI-AP-AP-PT.
    00002040 is the relevant process. This is a Function called SAMPLE_PROCESS_00002040. In this case, the FM only checks for an email address in the Vendor Master. If more logic is required a Z-version would need to be created.
    4.
    Use t-code FIBF to create the enhancement.
    a)
    Create a product.
    A product groups together customer enhancements to BTE’s developed in the customer's namespace. All customer enhancements assigned to a certain customer product can be released with the Activate Customer Product indicator. The OPEN_FI function module for a certain customer enhancement cannot find the corresponding customer function modules, until this has been done.
    Create the product name (for example ZMAIL) and make it active.
    FIBF->Settings->Products->…of a Customer
    b)
    Assign the BTE to the FM:
    Settings->Process Modules->…of a customer
    Assign the 00002040 process to the FM and Product.
    5.
    At the end of this process when the payment advice program is run, the event will be called and it will automatically send an email to the vendor.
    6.
    Assign an email address to the sap user who will be the outgoing accounting clerk. Define the Accounting Clerk for the outgoing email address:
    SPRO->FI->AR/AP->Vendor Accounts->Master Data->Preparations for Creating Vendor Master Data->Define Accounting Clerks
    hope it helps.

  • Auto Mail to Vendors for payment advices

    Hello All,
    I am trying to set up automatic mail with payment advices note  sent to vendors by the system when we run F110 program.I found out that can be achieved by Business transaction event BTE -00002040 in fucntion module.But where to assign this BTE in config? and what other steps are needed to generate auto mail delivery to vendors.Do I need to do somethignin FBZP too? Please suggest.
    Regards
    Shaun

    HI,
    I am facing the same
    Please update the answer if you solved it
    Thanks
    Prakash

  • Automatic multi backend vendor partial replication

    Dear all,
    we have a question around Vendor Replication:
    Here is the scenario.
    We are SRM 4.0 in Classic Scenario.
    We have a Multi-Backend environment.
    In addition we have a another R/3 serving as Central Vendor database (not MDM).
    There the common vendors are created in a central (specific) number range but with minimal Purch Organization assignments.
    Then the vendors are replicated to backends in a pull mode (via ALE).
    Then there the additonal Purch Organisations are defined locally in the local Backends.
    Then for SRM we want to replicate replicate same vendor for all BG's to be sure to have the correct Purchasing Organization assignments.  And we want to have also all the vendors created in that range in SRM to give list of available vendors as preferred vendors to the requisitioners
    However we don't want to replicate the local vendors that are Backend specific and are in another nr range.
    To do all that we have available the transactions BBPGETVD and BBPUPDVD and the program BBP_VENDOR_SYNC.
    The problem is:
    a) BBPGETVD and BBPUPDVD have vendor nr selection but can not be set in a job.
    b) BBP_VENDOR_SYNC is possible in a job but has no vendor selection and not choice only update or also new per system.
    How can we achieve our goal?
    Thanks
    RD

    Hi Sadasivam,
    Make Global Settings
    Use
    In Customizing for vendor synchronization, you define between which mySAP or ERP backend systems and the EBP System you wish to automatically synchronize the vendor master data. This setting is necessary in order to start a job-based execution of the synchronization, so that the vendor master data that is newly created or changed in the backend is updated regularly in the EBP System.
    Requirements
    You wish to use the automatic vendor synchronization functionality.
    In the Implementation Guide (IMG) activity Define RFC Destinations, you have defined the RFC destinations for your systems.
    Under Define Backend Systems, you have defined the backend systems for your systems.
    Activities
    Customizing for Vendor Synchronization consists of two parts. In the first part you make those settings that are valid for all backend systems. In the activity Make Settings for Each Backend System you can define or display detail data for the individual backend systems.
    Make Global Settings
    By setting the indicator Create New Vendors Also, you can determine that those vendors newly created in the backend systems are also newly created during the synchronization. If this indicator is not set, the only data updated is that of the vendors in the Enterprise Buyer System whose data was changed in the backend systems.
    Note:
    If you have not yet made an entry here, an empty screen appears when you start the activity. To make the settings, choose New entries or press F5.
    Further Settings:
    Carry Out Address Check for Duplicates :
    Organizational Unit in EBP for the Vendor
    Enter the eight-digit number, for example, 50001234.
    Vendor Number Assignment Type
    In the dropdown box, choose the method with which the number is to be allocated when a new vendor is created, for example, internal number allocation.
    Hope this makes you more clear. My mail i.d is [email protected]
    Rgds,
    Teja

  • P.O automatic mail genration pdf to word/text.

    Hi  everyone,
    this is regarding the automatic mail generation in smartforms. Its like when you process the smartforms the mails are automatically shooted to the address maintained for eg usually to the vendors. So what I need is incase I proces my smartforms the mail shouldnt be in the pdf format but in normal text format.
    I dont want to take that pdf convert to word/text by external sofware and attch it to the mail. I want it to be automatic.
    Plz suggest the possible ways of doing it. Thanks to all in advance.
    Rgds,
    Anuc.

    *& Report  ZCS_IRN
    report  zpo_spool no standard page heading line-size 260.
    Table Declaration *******************************
    tables : zptreg,zpoinb,dd07t,nase.
    Data Declaration ********************************
    type-pools: slis.
    data :   report_id  like sy-repid.
    data :   ws_title   type lvc_title value 'Reprint PT Inbound Register'.
    data :   i_layout   type slis_layout_alv.
    data :   i_fieldcat type slis_t_fieldcat_alv.
    data :   lf_fm_name            type rs38l_fnam.
    data :   ls_control_param      type ssfctrlop.
    data :   ls_composer_param     type ssfcompop.
    data :   ls_recipient type swotobjid.
    data :   ls_sender    type swotobjid.
    data : control_parameters type ssfctrlop.
    data :   output_options type ssfcompop.
    Internal Table Declaration *******************************
    data: begin of itab occurs 0,
            chk,
            indno type zptreg-indno,
            dtype type zptreg-dtype,
            ernam type zptreg-ernam,
            erzet type zptreg-erzet,
            aedat type zptreg-aedat,
            traid type zptreg-traid,
            traty type zptreg-traty,
            vehnum type zptreg-vehnum,
            bolnr type zptreg-bolnr,
            lrdat type zptreg-lrdat,
            lrdelv type zptreg-lrdelv,
            lrtime type zptreg-lrtime,
            datia type zptreg-datia,
            uhria type zptreg-uhria,
            lifnr type zptreg-lifnr,
            werks type zptreg-werks,
            anzpk type zptreg-anzpk,
            btgew type zptreg-btgew,
            gewei type zptreg-gewei,
            ntgew type zptreg-ntgew,
            idtxt type zptreg-idtxt,
            waybl type zptreg-waybl,
            dpack type zptreg-dpack,
            ebeln type zpoinb-ebeln,
            vbeln type zpoinb-vbeln,
             menge type eket-menge,
            wemng type eket-wemng,
            wemng1 type eket-wemng,
            chaln type zptreg-chaln,
            paymt type zptreg-paymt,
            zchquan type zptreg-zchquan,
            rdesc(60) type c,
            trdesc(60) type c,
            tydesc(60) type c,
            pdesc(60) type c,
            name1 type lfa1-name1,
         end of itab.
    data : itab1 like itab occurs 0 with header line.
    data : itab2 like itab occurs 0 with header line.
    data: begin of ieket occurs 0,
            ebeln type eket-ebeln,
            ebelp type eket-ebelp,
            menge type eket-menge,
            wemng type eket-wemng,
          end of ieket.
    data : ieket1 like ieket occurs 0 with header line.
    data : ieket2 like ieket occurs 0 with header line.
    data : flag type c.
    Selection Screen *******************************
    selection-screen : begin of block b1 with frame title text-001.
    select-options : x_indno for zptreg-indno matchcode object zindnohelp2.
    select-options : x_aedat for zptreg-aedat.
    select-options : x_werks for zptreg-werks .
    select-options : x_lrdat for zptreg-lrdat.
    select-options : x_lifnr for zptreg-lifnr no intervals no-extension.
    select-options : x_ebeln for zpoinb-ebeln no intervals no-extension.
    select-options : x_bolnr for zptreg-bolnr no intervals no-extension.
    select-options : x_traid for zptreg-traid no intervals no-extension.
    selection-screen : end of block b1.
    Start of Selection  *****************************
    start-of-selection.
      set pf-status 'STATUS'.
      perform get_data.
      perform display_data.
    *&      Form  get_data
    form get_data .
      select * from zptreg into corresponding fields of table itab1
                              where indno in x_indno
                                and aedat in x_aedat
                                and werks in x_werks
                                and lrdat in x_lrdat
                                and lifnr in x_lifnr
                                and bolnr in x_bolnr
                                and traid in x_traid.
      if sy-subrc ne 0.
        message i001(zmsg).
        stop.
      endif.
      select * from zpoinb into corresponding fields of table itab
                           for all entries in itab1
                             where indno = itab1-indno
                             and ebeln in x_ebeln.
      if sy-subrc ne 0.
        message i001(zmsg).
        stop.
      endif.
      loop at itab.
        at new indno.
          flag = 1.
        endat.
        if flag = 1.
          read table itab1 with key indno = itab-indno.
          move itab1-traid to itab-traid.
          move itab1-lifnr to itab-lifnr.
          move itab1-traty to itab-traty.
          move itab1-bolnr to itab-bolnr.
          move itab1-traid to itab-traid.
          move itab1-werks to itab-werks.
          move itab1-vehnum to itab-vehnum.
          move itab1-lifnr to itab-lifnr.
          move itab1-btgew to itab-btgew.
          move itab1-gewei to itab-gewei.
          move itab1-ntgew to itab-ntgew.
          move itab1-idtxt to itab-idtxt.
          move itab1-waybl to itab-waybl.
          move itab1-anzpk to itab-anzpk.
          move itab1-aedat to itab-aedat.
          move itab1-dpack to itab-dpack.
          move itab1-erzet to itab-erzet.
          move itab1-ernam to itab-ernam.
          move itab1-zchquan to itab-zchquan.
          move itab1-paymt to itab-paymt.
          move itab1-chaln to itab-chaln.
          move itab1-lrdat to itab-lrdat.
          move itab1-lrdelv to itab-lrdelv.
          move itab1-lrtime to itab-lrtime.
          move itab1-datia to itab-datia.
          move itab1-uhria to itab-uhria.
          clear flag.
        endif.
        modify itab.
      endloop.
      delete itab where indno not in x_indno.
      select * from eket into corresponding fields of table ieket for all entries in itab
        where ebeln = itab-ebeln.
      loop at ieket.
        move ieket-ebeln to ieket1-ebeln.
        move ieket-menge to ieket1-menge.
        collect ieket1.
      endloop.
      loop at ieket.
        move ieket-ebeln to ieket2-ebeln.
        move ieket-wemng to ieket2-wemng.
        collect ieket2.
      endloop.
      loop at itab.
        read table ieket1 with key ebeln = itab-ebeln.
        move ieket1-menge to itab-menge.
        read table ieket2 with key ebeln = itab-ebeln.
        move ieket2-wemng to itab-wemng.
        itab-wemng1 = itab-menge - itab-wemng.
        select ddtext from dd07t into itab-rdesc where domvalue_l = itab-idtxt and domname = 'ZIDTXT'.
        endselect.
        select ddtext from dd07t into itab-trdesc where domvalue_l = itab-traid and domname = 'ZTRAID'.
        endselect.
        select ddtext from dd07t into itab-tydesc where domvalue_l = itab-traty and domname = 'ZTRATY'.
        endselect.
        select ddtext from dd07t into itab-pdesc where domvalue_l = itab-paymt and domname = 'ZPAYMT'.
        endselect.
        select name1 from lfa1 into itab-name1 where lifnr = itab-lifnr.
        endselect.
        modify itab.
        clear itab.
      endloop.
      if itab[] is initial.
        message i001(zmsg).
        stop.
      endif.
    endform.                    " get_data
    *&      Form  display_data
    form display_data .
      report_id = sy-repid.
      perform f1000_layout_init changing i_layout.
      perform f2000_fieldcat_init changing i_fieldcat.
      call function 'REUSE_ALV_LIST_DISPLAY'
       exporting
        I_INTERFACE_CHECK              = ' '
        I_BYPASSING_BUFFER             =
        I_BUFFER_ACTIVE                = ' '
         i_callback_program              = report_id
         i_callback_pf_status_set       = 'STATUS'
         i_callback_user_command        = 'USER_COMMAND'
        I_STRUCTURE_NAME               =
         is_layout                       = i_layout
         it_fieldcat                     = i_fieldcat
        IT_EXCLUDING                   =
        IT_SPECIAL_GROUPS              =
        IT_SORT                        =
        IT_FILTER                      =
        IS_SEL_HIDE                    =
         i_default                      = 'X'
         i_save                         = 'A'
        IS_VARIANT                     =
        IT_EVENTS                      =
        IT_EVENT_EXIT                  =
        IS_PRINT                       =
        IS_REPREP_ID                   =
        I_SCREEN_START_COLUMN          = 0
        I_SCREEN_START_LINE            = 0
        I_SCREEN_END_COLUMN            = 0
        I_SCREEN_END_LINE              = 0
        IR_SALV_LIST_ADAPTER           =
        IT_EXCEPT_QINFO                =
        I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
      IMPORTING
        E_EXIT_CAUSED_BY_CALLER        =
        ES_EXIT_CAUSED_BY_USER         =
        tables
          t_outtab                       = itab
      EXCEPTIONS
        PROGRAM_ERROR                  = 1
        OTHERS                         = 2
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " display_data
    *&      Form  f1000_layout_init
    form f1000_layout_init using i_layout type slis_layout_alv.
      clear i_layout.
      i_layout-colwidth_optimize = 'X'.
      i_layout-edit = ''.
      i_layout-box_fieldname = 'CHK'.
    endform.                    " F1000_Layout_Init
    *&      Form  f2000_fieldcat_init
    form f2000_fieldcat_init changing i_fieldcat type slis_t_fieldcat_alv.
      data: line_fieldcat type slis_fieldcat_alv.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'CHK'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_l = 'Checkbox'.
      line_fieldcat-checkbox  = 'X'.      " Display this field as a checkbox
      line_fieldcat-outputlen = '8'.
      line_fieldcat-edit      =  'X'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'INDNO'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' PT Register No '.
      line_fieldcat-outputlen = '15'.
    line_fieldcat-hotspot       = 'X' .
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'AEDAT'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Creation Date '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'TRDESC'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Transporter Name    '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'TYDESC'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Transport Type  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'VEHNUM'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Vehicle Number   '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'BOLNR'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' L .R Number  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'NAME1'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Vendor / Supplier'.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'WERKS'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Site   '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'EBELN'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Purchasing Document '.
      line_fieldcat-outputlen = '15'.
      line_fieldcat-hotspot       = 'X' .
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'WEMNG1'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Still To Be Delivered '.
      line_fieldcat-outputlen = '20'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'VBELN'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Sales Document  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'ANZPK'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'No.of Packages  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'DPACK'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Damaged Packages  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'BTGEW'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Total Weight   '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'GEWEI'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Weight Unit   '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'NTGEW'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = ' Net Weight   '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'RDESC'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Remarks   '.
      line_fieldcat-outputlen = '60'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'WAYBL'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Weigh Bill Number  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'ERNAM'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Created By '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'ERZET'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Created At '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'LRDAT'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'L.R Date  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'LRDELV'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'L.R Delivery Date  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'LRTIME'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'L.R Time  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'DATIA'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_l = 'Appointments: From date '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'UHRIA'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_l = 'Appointments: Time from  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'CHALN'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Challan No  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'PDESC'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Payment method  '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
      clear line_fieldcat.
      line_fieldcat-fieldname = 'ZCHQUAN'.
      line_fieldcat-tabname   = 'ITAB'.
      line_fieldcat-seltext_m = 'Challan Quantity '.
      line_fieldcat-outputlen = '15'.
      append line_fieldcat to i_fieldcat.
    endform.                    "f2000_fieldcat_init
    *&      Form  user_command
    form user_command using r_ucomm like sy-ucomm
                          rs_selfield type slis_selfield.
      data: wa_job_output_info type ssfcrescl.
    data wa_spoolids type  tsfspoolid.
    data wa_spoolnum type rspoid.
    data: objpack like sopcklsti1 occurs  2 with header line,
          objhead1 like solisti1   occurs  1 with header line,
          objbin  like solisti1   occurs 10 with header line,
          objtxt  like solisti1   occurs 10 with header line,
          reclist like somlreci1  occurs  5 with header line,
          doc_chng like sodocchgi1,
          tab_lines like sy-tabix.
      data : wa_itab like itab.
      data : line type c.
      case r_ucomm.
        when 'SAVE'.
          clear line.
          refresh itab2.
          read table itab index rs_selfield-tabindex.
          loop at itab where chk ne space.
            move-corresponding itab to itab2.
            collect itab2.
          endloop.
          describe table itab2 lines line.
          if line ge 2.
            message 'Please Select Only Document for Print Output ' type 'E'.
          endif.
          set parameter id : 'ZIN' field itab-indno.
          call function 'SSF_FUNCTION_MODULE_NAME'
            exporting
              formname = 'ZPTREG_NEW'
            importing
              fm_name  = lf_fm_name.
          if sy-subrc <> 0.
          endif.
          control_parameters-no_dialog = 'X'.
          control_parameters-preview   =  'X'.
          output_options-tddest = 'LOCL'.
          output_options-tdcopies = '2'.
          call function lf_fm_name
            exporting
              control_parameters = ls_control_param
              output_options     = ls_composer_param
              mail_recipient     = ls_recipient
              mail_sender        = ls_sender
              user_settings      = 'X'
              p_indno            = itab-indno
              importing
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = wa_job_output_info
      JOB_OUTPUT_OPTIONS         =
            exceptions
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              others             = 5.
          if sy-subrc <> 0.
          endif.
    move wa_job_output_info-spoolids[] to wa_spoolids[].
    read table wa_spoolids into wa_spoolnum index 1.
    if sy-subrc = 0.
    data :id like tsp01-rqident.
    move wa_spoolnum to id.
    endif. .
    *loop at wa_spoolids INTO wa_spoolnum .
    write : id.
    *endloop.
    data i_soli like soli occurs 0 with header line.
    call function 'RSPO_RETURN_SPOOLJOB'
    exporting
    rqident = id
    desired_type = 'OTF'
    tables
    buffer = i_soli
    exceptions
    no_such_job = 1
    job_contains_no_data = 2
    selection_empty = 3
    no_permission = 4
    can_not_access = 5
    read_error = 6
    type_no_match = 7
    others = 8.
    data content_bin type solix_tab.
    data objhead type soli_tab.
    data i_soli_tab type soli_tab.
    data boolean type sx_boolean.
    data length type so_obj_len.
    loop at i_soli.
    append i_soli to i_soli_tab[].
    endloop.
    call function 'SX_OBJECT_CONVERT_OTF_RAW'
    exporting
    format_src = 'OTF'
    format_dst = 'RAW'
    changing
    transfer_bin = boolean
    content_txt = i_soli_tab
    content_bin = content_bin
    objhead = objhead
    len = length
    exceptions
    err_conv_failed = 1
    others = 2.
      endcase.
    *describe table objbin lines tab_lines.
          objpack-transf_bin = 'X'.
          objpack-head_start = 1.
          objpack-head_num = 1.
          objpack-body_start = 1.
          objpack-body_num =  '100'. "tab_lines.
    * objpack-doc_type = c_asc.
          objpack-doc_type = 'DOC'.
          objpack-obj_name = 'ATTACHMENT'.
          objpack-obj_descr = 'ATTACH'. "p_attach.
    "Name of Attachment
          objpack-doc_size = tab_lines  * 255.
          append objpack..
    reclist-receiver = '[email protected]'.
            reclist-rec_type = 'U'.
            append reclist.
    objbin[] = i_soli_tab[].
          call function 'SO_RAW_TO_RTF'
            tables
              objcont_old = objbin
              objcont_new = objbin
            exceptions
              others      = 0.
          call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            exporting
              document_data              = doc_chng
              put_in_outbox              = 'X'
              commit_work                = 'X'
            tables
              packing_list               = objpack
              object_header              = objhead1
              contents_bin               = objbin
              contents_txt               = objtxt
              receivers                  = reclist
            exceptions
              too_many_receivers         = 1
              document_not_sent          = 2
              operation_no_authorization = 4
              others                     = 99.
    endform.                    "user_command
    Message was edited by:
            anu c

  • Send POs by mail to vendor

    Hi,
    what are customizing steps to automatically send to vendors by mail POs ?
    Best regards

    Hi,
    There are a lot of similar questions ask before! You better do a little bit searches.
    A hint may be going to transaction NACE, select EF and hit output types. There select your output type and go to processing routines.  Make a new entry medium as 5 (external send), program as SAPFM06P, form routine as ENTRY_NEU.
    Donu2019t forget to maintain SCOT in order to send mail(s) from SAP to vendor(s) mail address and, of course, vendor mail address in vendor master record.
    Kind regards

  • Automatic mailing of po

    Dear All,
    how we can configure po so that it can automatically mail to the vendor.
    regards,
    nishith

    hi
    1. Maintain an e-mail address in the address in the vendor master.
    2. Maintain an email address in the user id as well in SU01.
    3. Check whether communication strategy CS01 is maintained in SPRO -> IMG -> SAP Web Application Server ->
    Basic Services -> Message Control -> Define Communication Strategy.
    4. In NACE, check for the standard SAP environment (program 'SAPFM06P', FORM routine 'ENTRY_NEU' and form 'MEDRUCK') as the processing routines for the output type NEU.
    5. In the condition records for the output type NEU (for example, Transaction MN04), use medium '5' (External send).
    6. You can use Transaction SCOT to trigger the output manually.
    7. Check whether the NODE is set properly in SCOT for SMTP. if you want to send the output in pdf format through email, set the output format *** pdf in NODE settings.

  • Automatic Mail not getting generated through background job

    Hi Experts,
    We have set up a job variant with spool recipients. We are getting the automatic mail if the job is getting finished successfully. But we are not getting the automatic mail if the job is in cancelled status. Earlier we used to get the mail even if the job is in cancelled status. We are not sure if there is any setting which would restrict the automatic mail based on the job status.
    Appreciate your help in this regard.
    Thanks and Regards,
    Ranjani.

    Hi,
    Just for a work around, try checking the SAP user inbox for the user who has scheduled the background job.
    I don't there  is any seperate configuration in Spool List Recipient for the canceled jobs. We need to confirm that the email ids provided in the Spool List recipient are correct and the background job creates a spool request even if it is canceled.
    Also if possible try deleting the existing background job and create a new background job with the same parameters and valid email id's maintained in the Spool List recipient.
    OR
    Without deleting the existing background job, parallely create a new background job with the same parameters and valid email id's maintained in the Spool List recipient. If it works then delete the old background job.
    Thanks
    Harish

  • FUNCTION MODULE FOR AUTOMATIC MAIL GENERATION

    Hello,
    I want to generate an automatic mail of a scheduled report on everyday basis.
    the output spool req of scheduled report in generated n saved inside the system.
    Could you please help me in generating automatic mail through that saved spool request?
    Regards,
    Krutika

    hi,
    use:
    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.

  • Output--- automatic mail is not firing to sold to party.

    Dear Gurus,
        My client requirement is to sent mail to sold party when saving a sales order.
      For this I creted a new output type with following assignments
    In General data tab:acess sequence assigned and Access to conditions is checked
    In Default values tab: Dispatch time(send immadiately), transmission medium(External send), partner function(Sp
    ),Communication strategy(CS01) assigned.
    In Time tab: no information given
    In Storage system tab :Storage mode(print and archive),Document type(SDOORDER) info given.
    In Print tab: print parameters(sales org) assigned.
    In mail tab: nothing assigned.
    In sort order tab:nothing assigned
    In mail title and texts: En and DE languages are assigned.
    in processing routines: program and form routine is assgned.
    in partner functions: External send+ SP is maintained.
    and in condtion record maintained in VV11 tcode with details
    Partner function and in communication assigned printer and  selected check box print immadiately and release after out.
    But automatic mail is not firing when saving the sales order, but in change sales order in menu bar selected sales document and issue output to and selected print then mail is firing to the sold to party, pls tell me where i had done the mistake.
    Rgrads,
    kishore.
    Edited by: kishore gopala on Sep 13, 2008 1:42 PM

    Check whether you have maintained the email address in the customer master of Sold to party in the General Data>Address Tab> Under Communication Area??
    In the SCOT Transaction, check under SMTP (SMTP Mail Server)-->under INT (Internet) --> an  '*' asterisk has been maintained or not.
    Check the status of the email output in the Sales Order, is it showing with a green traffic light???
    If it is showing with a green traffic light you can manually see the status of the mail mesages in Transaction SOST.(by executing, by putting the Sender Id)
    If they have not gone you will be able to see them queued up there.
    Select the individual messages and press execute button. By doing this email outputs will be released.
    Hope this helps you.
    Caution: One word of caution is that SCOT is a very critical transaction. And if you are working on a live server, do not play with it as it controls the entire SAPconnect Administration Nodes.
    Hope this helps.
    Regards,
    Vivek

  • Automatic creation of Vendor in FI from Business Partner

    Hi, experts!
    We are looking into a process to automate the creation of vendor master data in FI Accounts Payable for our employees and to keep them in sync as employees' names, banking and address info change over time. We use concurrent employment, and we noticed that running PRAA as a mass-update job to create vendor records for all employees will create duplicate Vendors for employees who have more than one active Personnel Assignment.
    We are now looking into the possibility of using the Business Partner as a means of pushing HR data into FI within the same ECC6 system. So far, we have been able to turn on the automatic creation of BPs when new employees are 'hired' into our test system via transaction PA40. We can also use the program HRALXSYNC to create the BP for existing employees. Once these BPs are created, master data updates flow from the employee master data in HR to the BP. However, we can't seem to get the system to automatically create a Vendor record for this BP and have that linked together at the same time.
    Is this possible? If not, is there a transaction that can be run to do a mass creation of Vendor records for Business Partners that don't already have one?
    I can see that our BPs have been assigned to the proper Role in table BUT100, and we have "define(d) vendor link for business partner roles" in V_TBC002 to be "vendor-based". What configuration step might we be missing?

    Hi, Mahesh
    Thanks for the response!!  We have already created an entry in this table for Role Category = BUP003 (the SAP-delivered role category "Employee").  In this table, we have chosen the "Vendor Based" radio button, since we want Vendor master data to be created for all BUP003 business partners that are created.
    Which function modules need to be activated via the SPRO path Cross-Application Components -> SAP Business Partner -> Data Distribution -> Activate Function Modules in order to have Vendors automatically created whenever a specific role of BP is created?
    Thanks again for all your help!
    - Steve Miller

  • Problem in Automatic mail generation after shipment creation in vt01

    Hi All,
    In VT01 Automatic mail generation to  customer  whenver a new shipment is created & in from address user mail adderess is mentioned but in my requirements i have  to mention different mail id in user mail address.
    how can i do this?
    please give me ur suggestions.
    Thanx

    Hi...
    When user close the shipment ,then he gets a mail on his id automatically generated from sap system.
    he want this mail should come to the mail id of his colleague.
    Pls reply asap.
    Thanx
    Vj

Maybe you are looking for

  • Timeouts with proxy

    Customers have been reporting "Page cannot be displayed" in IE and sending screenshots of partially loaded pages. I'm assuming we have a timeout issue. We have a proxy (HttpClusterServlet) handling the SSL, and load balancing on a few managed servers

  • Change Purchase Order type ,price before auto creation of PO through MIGO?

    Hi , I have reuirement  infront of me. We are creating return Purchase order through MIGO for Non-ordered items. Purchase Order is created automatically by SAP. I need to change its Purchase Order type  , Net Price , Order Price Unit . Is it possible

  • Dreamweaver CS4 Properties tools are not displaying properly

    I've had this problem for a while now and would really like to find a solution for this.  My tools in the Properties screen are cut off on the bottom and do not fully display, whether I choose the HTML or CSS button on the left-hand side.  Really ann

  • Problem in refreshing JSP

    I've installed Tomcat 4.1, mySQL. My JSP pages are put in a sub-directory of CATALINA_HOME/webapps and I've also set up the web.xml file in /web-inf. When I invoked the JSP pages for the first time, they worked properly. But when I refreshed the page

  • Extending reports to support more rows

    Hello, I have a report that returns more than 2000 rows, which seems to be the default number of rows for reports from grid control. I have experimented with creating this report using the mgmt_ip package because there is a element parameter that can