2021年6月16日星期三

PP 配置

 1.1 MRP TYPE

T-CodeOMDQ



1.2 MRP Controller

T-CodeOMD0









Material Master(MM01/MM02/MM03)

1.3 Define capacity  categories (能力类别)

T-Code:OPCD











1.4  Set up capacity planner (能力计划员)



1.5 Define formula parameters(定义公式参数)

T-Code: OP7B/OPCR




1.6 Set up formula definitions(设置公式定义:工序)

T-Code:OPCS











1.7  Define parameters of Work Center

T-Code:OP7B/OPCR




1.8 Define standard value keys of Work Center(标准值码)

T-Code:OPCM




1.9 Define Control Key of Routing (定义工艺路线 控制码)

T-Code:OPCG






1.10 Define workcenter

1.10.1 Define P&L account (生产成本类) and primary cost elemnet and  secondary cost element

P&l科目

科目名称

初级成本要素

次级作业成本要素

作业类型

 

5001010100

生产成本—准备活动成本

5001010100

,类型为1

7601010100

,类型43              内部作业分配

FA01

 

5001010200

生产成本—直接材料成本

5001010200

,类型为1

7601010200

 

 

 

5001010300

生产成本—直接人工成本

5001010300,类型为1

7601010300

 

FA02

 

5001010400

生产成本—机器制造成本

5001010400,类型为1

7601010400

 

FA03

 

会计科目创建 FS00 

初级成本要素 KA01

次级成本要素 KA06

S4Hana系统 FS00里维护会计科目,初级成本要素,次级成本要素


1.10.2 Define activity account(作业类型)


1.10.3 KLH1 Create Active type Group












把活动类型分配给活动类型组。

1.10.4 Create  cost center for COPC (KS01)

1.10.5 KP26 (用于计划)  输入1.10.4创建的COPC专用成本中心 和1.10.2创建的作业类型 (或者1.10.3创建的活动类型组) (输入数量)
1.10.6 KP06   (用于计划)  输入1.10.4创建的COPC专用成本中心 和1.10.1创建的初级成本要素 (输入价值)


1.10.7 KSPI 计算计划单位价格
1.10.8 KP26里可以查看计算出的计划单位价格 (价值 / 数量)

1.10.9 创建工作中心(Work Center) CR01

1.11 Define Routing  (CA01)
1.11.1 OP50  






1.11.2 Create routing CA01

1.12 Define BOM (CS01)    显示多级BOM CSMB/CS12

1.13 创建生产订单类型 OPJH  (内部订单类型创建 KOT2_OPA 也是保存在T003O表里)
        标准常用的是PP01





1.14维护结算参数(決済プロファイル)








1.15 维护结算结构












2021年6月8日星期二

Tax classification of Billing Determination

 LV60AA95 

Form VBRK_VBRP_DATENTRANSPORT

TVKOのXSTCEG(Tax Number)

A:From Sold To

B:From Payer

C: Destination Country of Ship-to

1.Get Tax classification from Sold-to ,payer or ship-to

 if vbrk-vbtyp na vbtyp_fkiv and
      vbrp-vgtyp ca vbtyp_lief and   "! delivery relevant
          lips-fkrel charj and         "! plant abroad / EU-TAX
          lips-vgtyp ne charv or       "! consignment fill-up, pickup
        not xvbpa_we-stceg is initial or "! manual value from order
        not vbrk-stceg_l is initial )"!
    perform vbrk-stceg_fuellen.
  else.
* control determination of the VAT registration
    if kurgv-stceg ne space and kurgv-kunnr ne kuagv-kunnr and
       tvko-xstceg is initial or tvko-xstceg flg_stceg_std or
       tvko-xstceg flg_stceg_rg.
* from payer

    vbrk-stceg  =  kurgv-stceg.
      vbrk-stceg_h 'B'.
      vbrk-stceg_l kurgv-land1.
      if kurgv-stceg_l ne space.
        vbrk-stceg_l kurgv-stceg_l.
        vbrk-stceg_h 'D'.
      endif.
      vbrk-taxk1  =  kurgv-taxk1.
      vbrk-taxk2  =  kurgv-taxk2.
      vbrk-taxk3  =  kurgv-taxk3.
      vbrk-taxk4  =  kurgv-taxk4.
      vbrk-taxk5  =  kurgv-taxk5.
      vbrk-taxk6  =  kurgv-taxk6.
      vbrk-taxk7  =  kurgv-taxk7.
      vbrk-taxk8  =  kurgv-taxk8.
      vbrk-taxk9  =  kurgv-taxk9.
    elseif kuwev-stceg ne space or kuagv-stceg space and
      tvko-xstceg is initial or tvko-xstceg flg_stceg_std ).
      vbrk-stceg  =  kuwev-stceg.
      vbrk-stceg_h 'A'.
      vbrk-stceg_l kuwev-land1.
      vbrk-taxk1  =  kuwev-taxk1.
      vbrk-taxk2  =  kuwev-taxk2.
      vbrk-taxk3  =  kuwev-taxk3.
      vbrk-taxk4  =  kuwev-taxk4.
      vbrk-taxk5  =  kuwev-taxk5.
      vbrk-taxk6  =  kuwev-taxk6.
      vbrk-taxk7  =  kuwev-taxk7.
      vbrk-taxk8  =  kuwev-taxk8.
      vbrk-taxk9  =  kuwev-taxk9.
    elseif tvko-xstceg is initial or
      tvko-xstceg flg_stceg_ag  or
      tvko-xstceg flg_stceg_std.
      vbrk-stceg  =  kuagv-stceg.
      vbrk-stceg_h 'C'.
      vbrk-stceg_l kuagv-land1.
      if kuagv-stceg_l ne space.
        vbrk-stceg_l kuagv-stceg_l.
        vbrk-stceg_h 'J'.
      endif.

* from Sold to

      vbrk-taxk1  =  kuagv-taxk1.
      vbrk-taxk2  =  kuagv-taxk2.
      vbrk-taxk3  =  kuagv-taxk3.
      vbrk-taxk4  =  kuagv-taxk4.
      vbrk-taxk5  =  kuagv-taxk5.
      vbrk-taxk6  =  kuagv-taxk6.
      vbrk-taxk7  =  kuagv-taxk7.
      vbrk-taxk8  =  kuagv-taxk8.
      vbrk-taxk9  =  kuagv-taxk9.
    endif.
  endif.                               "WIA / EU-TAX

2.IF tax classification of VBAK is not initial,vbrk will use the tax classification of vbak.

Function VIEW_KUAG2 (get Sold-to view)
LV60AA45  FORM KUAGV_FUELLEN


 CLEAR vtcom.
  vtcom-kunnr xvbpa-kunnr.
  vtcom-vkorg vbrk-vkorg.
  vtcom-vtweg vbrk-vtweg.
  vtcom-aland vbrp-aland.
  IF vbrk-landtx NE space.
    vtcom-aland vbrk-landtx.
  ENDIF.
 



CALL FUNCTION 'VIEW_KUAG2'
    EXPORTING
      comwa         vtcom
      init_kuagv    lvf_clear_kuagv
    IMPORTING
      agwa          kuagv
    EXCEPTIONS
      no_kna1       1
      no_knvv       2
      error_message 8
      OTHERS        7.

  IF sy-subrc <> AND sy-msgty 'A'.
    MESSAGE ID sy-msgid TYPE 'A' NUMBER sy-msgno
         WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.



LV05EF1I  FORM READ_KNVI_KNVI_DD_01   Line  15

  CLEAR LKNVI.
  REFRESH LKNVI.
  CALL FUNCTION 'KNVI_GENERIC_READ_LAND'
       EXPORTING
            I_KUNNR   LVF_KUNNR
            I_ALAND   VTCOM-ALAND
       TABLES
            O_KNVI    LKNVI
       EXCEPTIONS
            NOT_FOUND 1
            OTHERS    2.



Defining the Tax Category by Departure Country (SD)

Use

A tax category must be defined by departure country. Allowable departure country is the plant’s country and/or the company code’s country.

The tax category allows entry of the tax classification indicator in the customer master data and material master data .

The tax category displayed in the customer master record depends on:

  • Customer sales organization’s company code country

  • Country of each plant assigned to that sales organization

The tax category displayed in the material master record depends on:

  • Material sales organization’s company code country

  • Country of each plant assigned to that sales organization

Procedure

In Customizing for Sales and Distribution, choose  Basic functions  Taxes    Define Tax Determination Rules.  You can also use transaction OVK1 (Table TSTL).

Tax category UTXJ must be maintained using a sequence of 1 for the US.

Tax category CTXJ must be maintained using a sequence of 1 for Canada.






Customer Characteristic

  Characteristic Descriptions are stored in the table - CABNT - Language - SPRAS - Characteristic description - ATBEZ Characteristic Values ...