신규 Plant 생성 후 Material view 확장하여 BOM 생성

신규 Plant 정의
SPRO > Enterprise Structure > Definition > Logistics - General > Define Plant

신규 Plant 생성

 

당연하겠지만 valuation area : plant 인지 확인해본다. (99%는 plant)

SPRO > Enterprise Structure > Definition > Logistics - General > Define valuation level

 

Material master 에서도 신규 Plant view 를 확장해준다.

MRP1,2,3,4 그리고 Work scheduling view 가 생산관련 view

MRP Type 은 MRP 사용하려면 PD설정 Lot sizing 은 WB 주단위 로트사이즈

MRP controller 도 정의해서 입력한다
메뉴위치를 찾아갈 때마다 MRP 도 CBP 의 한 종류라는 사실이 늘 알면서도 새롭다. 실무에서는 MRP 와 CBP 를 종종 다른것으로 지칭하기 때문인가 싶다.

Materials Management > Consumption-Based Planning > Master Data > Define MRP Controllers

대부분 미리 정의된 MRP type 을 사용하지만 MRP type 옵션도 볼거리가 많다

가장 많이 사용하는 PD 는 MRP Procedure 가 D : MRP 로 정의됨

D* 는 Demand-driven replenishment
M* 는 MPS
ND 는 no MRP
P* 는 MRP
R* 는 Time-Phased Planning
R* 은 Replenishment 
V* 는 Re-order point 

 

BOM 생성이 되지 않아서 확인해보니 신규 plant 생성 후 material type 에서 Quantity, value updating 설정이 되지 않으면 수량,금액 관리를 할 수 없었다.

Logistics - General > Material Master > Basic Settings > Material Types > Define Attributes of Material Types

요구사항에 의해 설계BOM 생성

마이너스 소요량을 입력하여 30번 아이템에 by-product 를 한번 해본다. 수량은 잘 입력이 된다.

마이너스 소요량이 입력가능한 이유는 item category 가 그렇게 정의되어 있기 때문이다

Production > Basic Data > Bill of Material > Item Data > Define Item Categories

봐야할 옵션이 많지만 우선은 기본적인 것부터 짚고 넘어간다.

REPORT YSOURCEDOWN line-size 1023 message-id ytest1.
data: g_program type progname.

select-options: is_pgmnm for g_progname.
parameters: ip_dir typs string default 'C:\ABAP\'.

initialization.
  is_pgmnm-sign = 'I'.
  is_pgmnm-option = 'CP'.
  is_pgmnm-low = 'Z*'.
  append is_pgmnm.
  is_pgmnm-low = 'LZ*'. "function module
  append is_pgmnm.
  is_pgmnm-low = 'Y*'.
  append is_pgmnm.
  is_pgmnm-low = 'LY*'.
  append is_pgmnm.

start-of-selection.
  data: l_off type i,
   l_len type i,
l_dir type string,
l_ch.
l_dir = ip_dir.
condense l_dir no-gaps.
l_off = strlen( l_dir ) - 1.
l_ch - l_dir+l_off(1).
if l_ch <> '\'.
  concatenate l_dir '\' into l_dir.
endif.

data: begin of ls_reposrc,
progname type progname,
end of ls_reposrc,
lt_reposrc like table of ls_reposrc.

select progname
  into table lt_reposrc
from reposrc
where progname in is_pgmnm
and r3state = 'A'.

data: begin of ls_lines,
txt(300),
end of ls_lines,
lt_lines like table of ls_lines,
l_filenm type string.

loop at lt_reposrc into ls_reposrc.
clear lt_lines[].
read report ls_reposrc-progname into lt_lines.
concatenate l_dir ls_reposrc-progname '.abap' into l_filenm.

call function 'GUI_DOWNLOAD'
exporting
filename = l_filenm
tables
data_tab = lt_lines.
endloop.

'SW > ABAP' 카테고리의 다른 글

YFILESHARING  (0) 2024.03.27
SAP HANA Studio 설치, ADT 설치(ABAP Development tools) 설치  (0) 2023.06.23
ABAP OOP method 호출방법  (0) 2017.08.08
picture 조회 안되는 현상 조치  (0) 2017.06.05

+ Recent posts