如何實現PO的輸出向客戶傳送郵件的增強
Enhance Email – NACE – Purchasing
Emailing outputs to partners is a standard out-of-the-box feature in SAP Output Control. This blog explains enhancement options available in case you want to control various aspects of email (subject, recipient, sender etc) before its sent.
Before we begin I am assuming that you are using output control (NACE) in purchasing application, specifically, you are using program SAPFM06P (or a copy of) as your processing program. This processing program supports a number of standard output types NEU (Purchase order) , LPET (SchedAgrmtSchedLine), LPH1 (ForecastDlv schedule) , LPH2 (ForecastDlv schedule) , LPJ1 (JIT Delivery Sched.), LPJ2 (JIT Delivery Sched).
Before you think of enhancing the email first make sure you can send output as email i.e. generate output with transmission medium 5 – External Send. If this is not working then there are few things it worth checking.
Prerequisite
1. Check if ‘5 External send’ medium is specified in Processing routine under output type.
2. Check communication strategy specified in the output type.
If comm strategy is not specified then you can create one under SPRO path SAP NetWeaver->Application Server->Basis Services->Message Control->Determine Communication Strategy. Define a comm strategy with communication type ‘INT Email’.
3. Check email address is specified in Business Partner, it would be a supplier in case of Purchasing.
Enhance using BADI
Once you have standard email functionality working through output control you can go ahead and implement BADI BADI_MM_PO_OC_EMAIL.
After BADI implementation, you would be able to write code in methods CHANGE_SENDER, CHANGE_RECIPIENTS, CHANGE_SUBJECT and CHANGE_BODY to enhance email before it sent out.
Debugging
Put a breakpoint in program SAPFM06P subroutine ADOBE_PRINT_OUTPUT (assuming you are using adode form). Code to call BADI is in this routine so you should be able to see what’s happening with BADI call.
Also make sure when you add output type to document (purchase order, outline agreement etc.) using Dispatch time as ‘1 – Send with periodically scheduled job’ in the Further data section. Then use program RSNAST00 to issue your output. Execution should then stop at the breakpoint.
source link :
https://www.samplecodeabap.com/enhance-email-nace-purchasing/
相關文章
- python實現郵件的傳送Python
- 傳送郵件出現問題
- oracle 傳送郵件 實現方法Oracle
- Django實現傳送郵件功能Django
- 用Perl實現郵件傳送
- python實現傳送郵件Python
- Java實現QQ郵件傳送郵件工具類Java
- 如何傳送電子郵件到別人郵箱?電子郵件傳送的方法
- Ubuntu的郵件傳送Ubuntu
- 如何使用Excel傳送郵件?Excel
- Spring Boot實現傳送QQ郵件Spring Boot
- Java Mail 郵件傳送(二):簡單封裝的郵件傳送JavaAI封裝
- 郵件傳送
- 傳送郵件
- ASP.NET自動傳送郵件功能的實現ASP.NET
- 用AnySQL在沒有oracle客戶端的伺服器上傳送郵件SQLOracle客戶端伺服器
- Jenkins 如何成功傳送郵件?Jenkins
- Python 實現郵件傳送功能(進階)Python
- Python 實現郵件傳送功能(初級)Python
- SpringBoot實現傳送電子郵件Spring Boot
- python實現基於smtp傳送郵件Python
- Springboot+Javamail實現郵件傳送Spring BootJavaAI
- 使用多執行緒實現郵件傳送執行緒
- Java實現QQ郵件傳送客戶端Java客戶端
- SpringBoot整合Mail傳送郵件&傳送模板郵件Spring BootAI
- 實現郵件加密傳輸之一薦加密
- Laravel 傳送郵件Laravel
- PHP傳送郵件PHP
- Django——郵件傳送Django
- java郵件傳送Java
- Laravel傳送郵件Laravel
- gmail傳送郵件AI
- Oracle郵件傳送Oracle
- java傳送郵件Java
- Powershell郵件傳送
- thinkphp 郵件傳送PHP
- centos 傳送郵件CentOS
- Java實現網易企業163郵箱傳送郵件Java