SAP SD:SAP信贷出口
SAP SD:SAP信貸出口,在OVA8中的維護(hù)自動信貸控制視圖中,有飛仙類別的核查中有用戶1,用戶2,用戶3。作用如下:
1、-信貸控制有3個用戶出口LVKMPFZ1,LVKMPFZ2,LVKMPFZ3,你可以用SE38打開這3個用戶出口。
2、-雖然這3個是用戶出口,但它命名的第一個字母不是Z,所以當(dāng)你要修改代碼時,當(dāng)象修改標(biāo)準(zhǔn)程序一樣修改它。
3、-OVA8設(shè)置里的用戶1,用戶2,用戶3與用戶出口LVKMPFZ1,LVKMPFZ2,LVKMPFZ3一一對應(yīng);
當(dāng)用戶1打上勾時,用戶出口LVKMPFZ1被激活,SAP會在信貸控制時調(diào)用用戶出口LVKMPFZ1中的代碼;用戶2,用戶3也如此類推。
??***INCLUDE LVKMPFZ1 .
* Subroutines for user credit check 1
*---------------------------------------------------------------------*
*???????FORM USER_CREDIT_CHECK1???????????????????????????????????????*
*---------------------------------------------------------------------*
*???????this routine must be programmed, if user activates credit?????*
*???????check user 1 in T691f?????????????????????????????????????????*
*???????please regard message numbers V1170, V1171 in Table T100??????*
*---------------------------------------------------------------------*
*??-->??UCC1_UPDATE???????'X' means during posting a document?????????*
*?????????????????????????' ' means during processing items???????????*
*??-->??UCC1_KKBER????????credit control area?????????????????????????*
*??-->??UCC1_KNKLI????????credit customer?????????????????????????????*
*??-->??UCC1_FLG_ORDER????'X' means document is an order??????????????*
*??-->??UCC1_FLG_DELIVERY 'X' means document is a??delivery note??????*
*??<--??UCC1_RC???????????returncode: 0 means OK, 4 means not OK??????*
*---------------------------------------------------------------------*
FORM USER_CREDIT_CHECK1 USING???UCC1_UPDATE
????????????????????????????????UCC1_KKBER
????????????????????????????????UCC1_KNKLI
????????????????????????????????UCC1_FLG_ORDER
????????????????????????????????UCC1_FLG_DELIVERY
??????????????????????????CHANGING
????????????????????????????????UCC1_RC.
* clear the returncode
??CLEAR UCC1_RC.
* credit check: if not positiv, set returncode
* MOVE CON_RC_NOK TO UCC1_RC.
ENDFORM.
總結(jié)
以上是生活随笔為你收集整理的SAP SD:SAP信贷出口的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ABAP弹出框案例
- 下一篇: POD – Proof of Deliv