顯示具有 ATP 標籤的文章。 顯示所有文章
顯示具有 ATP 標籤的文章。 顯示所有文章

2011年3月30日 星期三

[SD] User Exits For Availability Check

The user exits named here are planned for projects that are to be carried out in agreement with SAP development as they may only be used in consultation with SAP. SAP provides no guarantee if they are used without our advice!
USEREXIT_PLANT_SELECTION in program RV03VFZZ is an exception to this rule (see below).

User exits in program FV45VFZZ

  • USEREXIT_ADD_FIELD_TO_HEADER
  • USEREXIT_ADD_FIELD_TO_LINE

User exits in program FV45VFZY

  • USEREXIT_DELIVERY_GROUPS
  • USEREXIT_MVERF_INIT
  • USEREXIT_QUOTA_KEY_VALUE

User exits in program RV03VFZZ

  • USEREXIT_AVAILABILITY_IN
  • USEREXIT_AVAILABILITY_OUT
  • USEREXIT_DARA_REFRESH
  • USEREXIT_PLANT_SELECTION
    This user exit is used to adjust the flow during plant transfer. A list of permitted plants, where this material is created, is determined and checked in the standard R/3 delivery. A dialog box appears where you can select the plants. The user exits allow you to modify the plant table so that plant selection takes place in advance for every flagged selection and a dialog box becomes unnecessary.

[SD] USEREXIT_AVAIL_CHECK_CREDIT

釋放信用凍結的訂單後,要不要檢查可用量的 User Exit
從底下的程式碼(MV45AFZF)中就可以看出,只要將 CH_CHECK 設成 0 的話,就會作可用量的檢查
*---------------------------------------------------------------------*
* FORM USEREXIT_AVAIL_CHECK_CREDIT *
*---------------------------------------------------------------------*
* This userexit can be used, to determine, if an *
* availibility check should be carried out at release or recheck*
* of credit blocked orders. This routine is called per *
* item line. *
* Set CH_CHECK ! *
*---------------------------------------------------------------------*
* --> US_VBAK Header information *
* --> US_VBUK Header status information *
* --> US_VBAP Item line information *
* --> US_RELEASE at release ('X') *
* --> US_RECHECK at recheck ('X') *
* <-- CH_CHECK 0 = check *
* 4 = processing like standard *
* 8 = no check *
*---------------------------------------------------------------------*
FORM USEREXIT_AVAIL_CHECK_CREDIT USING US_VBAK STRUCTURE VBAK
US_VBUK STRUCTURE VBUKVB
US_VBAP STRUCTURE VBAPVB
US_RELEASE
US_RECHECK
CHANGING CH_CHECK.
DATA: CON_CHECK_STANDARD LIKE SY-SUBRC VALUE 4,
CON_CHECK_NO LIKE SY-SUBRC VALUE 8,
CON_CHECK_YES LIKE SY-SUBRC VALUE 0.
*
CH_CHECK = CON_CHECK_STANDARD.
* CH_CHECK = CON_CHECK_NO.
* CH_CHECK = CON_CHECK_YES.
ENDFORM.

2011年3月29日 星期二

[SD] Availability Check Rule

Availability Check in SD
  • Actually Checking Rule is maintained in OPPJ
  • Menu path: Production->Shop floor control->operations-> availability check->Define checking rule
  • n program SAPFV45V, include FV45VF0C_CATALOGUE_BUILD:
  • PRREG
LS_CATALOGUE-VALUE = 'A'. " tmvfp-obvfp.
LS_CATALOGUE-VALUE+1(1) = VBAP-SOBKZ.
LS_CATALOGUE-KFDNA = 'PRREG'.
APPEND LS_CATALOGUE TO X_CATALOGUE.

The first letter is always an A and the second one is simply the special stock indicator (SOBKZ) of the item.

E Orders on hand
K Consignment (vendor)
M Ret.trans.pkg vendor
O Parts prov. Vendor
P Pipeline material
Q Project stock
V Ret. pkg w. customer
W Consignment (cust.)
Y Shipping unit (whse)