請問怎么在SAP里面發(fā)布系統(tǒng)系統(tǒng)消息,只要用戶一動就自動跳出來. 在SAP中有一個消息發(fā)布的功能,在 工具--》系統(tǒng)管理--》管理結構--》系統(tǒng)消息。TCODE: SM02.在這里,你可定義消息的發(fā)布時間有多長、。
創(chuàng)新互聯(lián)從2013年開始,是專業(yè)互聯(lián)網技術服務公司,擁有項目網站制作、成都網站制作網站策劃,項目實施與項目整合能力。我們以讓每一個夢想脫穎而出為使命,1280元白堿灘做網站,已為上家服務,為白堿灘各地企業(yè)和個人服務,聯(lián)系電話:18982081108
我在項目上做過類似的。
首先要做的是物料主數據中 找個字段記錄一下物料申請人 郵箱
以MIGO為例
首先需要 BASIS做SAP 相應郵件的配置
用Badi:MB_MIGO_BADI增強 interface:POST_DOCUMENT
發(fā)郵件FM代碼如下
FUNCTION?Z02FI_SEND_EMAIL_ALL.
*"----------------------------------------------------------------------
*"*"Local?Interface:
*"??IMPORTING
*"?????REFERENCE(I_ADDR)?TYPE??ADR6-SMTP_ADDR
*"?????REFERENCE(I_TITLE)?TYPE??SO_REC_EXT
*"??EXPORTING
*"?????REFERENCE(E_STATUS)?TYPE??STRING
*"?????REFERENCE(E_OK)?TYPE??FLAG
*"??TABLES
*"??????T_BODY?STRUCTURE??W3HTML
*"??????T_CCADDR?STRUCTURE??ZCCADDR?OPTIONAL
*"----------------------------------------------------------------------
DATA:?LV_TITLE??????????TYPE?SO_OBJ_DES,
SEND_REQUEST???TYPE?REF?TO?CL_BCS,
DOCUMENT?????????TYPE?REF?TO?CL_DOCUMENT_BCS,
CONLENGTHS????????TYPE?SO_OBJ_LEN,
HTML??????????????????TYPE?STANDARD?TABLE?OF?W3HTML,
WA_HTML???????????TYPE?W3HTML,
SENDER_ID?????????TYPE?REF?TO?IF_SENDER_BCS,
RECIPIENT???????????TYPE?REF?TO?IF_RECIPIENT_BCS,
SENT_TO_ALL???????TYPE?OS_BOOLEAN,
BCS_EXCEPTION??TYPE?REF?TO?CX_BCS,
BCS_MESSAGE???TYPE?STRING.
DATA?RECIPIENTCC?LIKE?RECIPIENT.
DATA?L_ADDR?LIKE?I_ADDR.
LV_TITLE?=?I_TITLE.
WA_HTML-LINE??=?'html'.
APPEND?WA_HTML?TO?HTML.
WA_HTML-LINE??=?'body'.
APPEND?WA_HTML?TO?HTML.
LOOP?AT?T_BODY.
WA_HTML-LINE??=?T_BODY-LINE.
APPEND?WA_HTML?TO?HTML.
WA_HTML-LINE??=?'BR'.
APPEND?WA_HTML?TO?HTML.
ENDLOOP.
WA_HTML-LINE??=?'BR'.
APPEND?WA_HTML?TO?HTML.
WA_HTML-LINE??=?'/body'.
APPEND?WA_HTML?TO?HTML.
WA_HTML-LINE??=?'/html'.
APPEND?WA_HTML?TO?HTML.
TRY.
CLEAR?SEND_REQUEST.
SEND_REQUEST?=?CL_BCS=CREATE_PERSISTENT(?).
CLEAR?DOCUMENT?.
DOCUMENT?=??CL_DOCUMENT_BCS=CREATE_DOCUMENT(
I_TYPE?=????'HTM'
I_TEXT?=?????HTML
I_LENGTH?=??CONLENGTHS
I_SUBJECT?=?LV_TITLE?).
*???Add?document?to?send?request
CALL?METHOD?SEND_REQUEST-SET_DOCUMENT(?DOCUMENT?).
*???Construct?sender?and?receiver
CLEAR:?SENDER_ID?,?RECIPIENT?.
*????sender_id?=?cl_cam_address_bcs=create_internet_address(?'TESTDELOITTE@PETROCHINA-HFY.COM'?).
RECIPIENT?=?CL_CAM_ADDRESS_BCS=CREATE_INTERNET_ADDRESS(?I_ADDR?).
*???Set?sender
CALL?METHOD?SEND_REQUEST-SET_SENDER
EXPORTING
I_SENDER?=?SENDER_ID.
*???Add?recipient?with?its?respective?attributes?to?send?request
CALL?METHOD?SEND_REQUEST-ADD_RECIPIENT
EXPORTING
I_RECIPIENT?=?RECIPIENT
I_EXPRESS???=?'X'.
LOOP?AT?T_CCADDR?WHERE?CCADDR?IS?NOT?INITIAL?.
CLEAR?RECIPIENTCC.
RECIPIENTCC?=?CL_CAM_ADDRESS_BCS=CREATE_INTERNET_ADDRESS(?T_CCADDR-CCADDR?).
CALL?METHOD?SEND_REQUEST-ADD_RECIPIENT
EXPORTING
I_RECIPIENT?=?RECIPIENTCC
I_COPY??????=?'X'
I_EXPRESS???=?'X'.
ENDLOOP.
*???Set?E-mail?sending?options
CALL?METHOD?SEND_REQUEST-SET_STATUS_ATTRIBUTES
EXPORTING
I_REQUESTED_STATUS?=?'E'
I_STATUS_MAIL??????=?'E'.
CALL?METHOD?SEND_REQUEST-SET_SEND_IMMEDIATELY(?'X'?).
*???Send?document
CALL?METHOD?SEND_REQUEST-SEND(
EXPORTING
I_WITH_ERROR_SCREEN?=?'X'
RECEIVING
RESULT??????????????=?SENT_TO_ALL?).
IF?SENT_TO_ALL?=?'X'.
*????????E_STATUS?=?'Email?is?send?out?successful.'.
E_OK?=?'X'.
ENDIF.
COMMIT?WORK.
CATCH?CX_BCS?INTO?BCS_EXCEPTION.
BCS_MESSAGE?=?BCS_EXCEPTION-GET_TEXT(?).
E_STATUS?=?BCS_MESSAGE.
EXIT.
ENDTRY.
ENDFUNCTION.
我不確定是不是有批量傳PO的方法。如果沒有,估計你得從SAP里抓。因為按你的描述,你這些都 是歷史的PO,如果按SAP的業(yè)務邏輯,外發(fā)歷史PO貌似沒多大意義。 但一般PO(還有外向交貨單)外發(fā)IDoc,是通過Output Control來進行的。也就是說如果你配置 ....... 呵呵,對SAP來說是沒意義,但對我們CRM上線,導入歷史訂單數據來說就有意義了.自己從SAP里面抓 還是比較復雜一些啊.
不是,POS一般都用的是銀聯(lián)的系統(tǒng),有特定供應商提供解決方案,對于零售企業(yè),他的直營門店或者代理商的門店,每筆業(yè)務通過POS機的交易成功來代表銷售訂單是否可以記賬,而為了做到庫存和賬面上的一致性,可能需要將POS機交易成功的信息發(fā)送到SAP系統(tǒng)。