如何實現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
- java 如何實現傳送郵件 email?JavaAI
- python實現傳送郵件Python
- oracle 傳送郵件 實現方法Oracle
- 郵件的傳送
- 如何傳送電子郵件到別人郵箱?電子郵件傳送的方法
- Spring Boot實現傳送QQ郵件Spring Boot
- Springboot+Javamail實現郵件傳送Spring BootJavaAI
- SpringBoot實現傳送電子郵件Spring Boot
- Ubuntu的郵件傳送Ubuntu
- SpringBoot整合Mail傳送郵件&傳送模板郵件Spring BootAI
- Java Mail 郵件傳送(二):簡單封裝的郵件傳送JavaAI封裝
- python實現基於smtp傳送郵件Python
- Python 實現郵件傳送功能(進階)Python
- Python 實現郵件傳送功能(初級)Python
- Jenkins 如何成功傳送郵件?Jenkins
- 如何使用Excel傳送郵件?Excel
- 傳送郵件
- 郵件傳送
- 用AnySQL在沒有oracle客戶端的伺服器上傳送郵件SQLOracle客戶端伺服器
- 使用多執行緒實現郵件傳送執行緒
- Java實現QQ郵件傳送客戶端Java客戶端
- springboot如何使用outlook傳送郵件Spring Boot
- Java實現網易企業163郵箱傳送郵件Java
- SpringBoot傳送郵件Spring Boot
- phpcms傳送郵件PHP
- Laravel傳送郵件Laravel
- Laravel 傳送郵件Laravel
- thinkjs 傳送郵件JS
- PHP傳送郵件PHP
- nodejs 傳送郵件NodeJS
- java郵件傳送Java
- python傳送郵件Python
- Django——郵件傳送Django
- gmail傳送郵件AI
- SpringBoot郵件傳送Spring Boot
- 傳送帶圖片的郵件
- 匈牙利航空公司Wizz Air因“技術違規”問題向客戶傳送密碼重置郵件AI密碼