SELECT KSSK~OBJEK, "자재코드
KSSK~KLART, "자재는 모두 001
KSML~IMERK, "자재내역 종류들
KSML~POSNR, "자재내역 종류들의 번호
CABN~ATNAM, "특성이름
AUSP~ATWRT,
CAWN~ATZHL, "각 특성값에 들어갈 수 있는 POSSIBLE ENTRY
CAWNT~ATWTB "언어별 특성값
FROM KSSK AS KSSK
INNER JOIN KLAH AS KLAH
ON KSSK~CLINT = KLAH~CLINT
INNER JOIN KSML AS KSML
ON KSML~CLINT = KLAH~CLINT
INNER JOIN CABN AS CABN
ON KSML~IMERK = CABN~ATINN
LEFT OUTER JOIN AUSP AS AUSP
ON KSSK~OBJEK = AUSP~OBJEK
AND CABN~ATINN = AUSP~ATINN
AND KLAH~KLART = AUSP~KLART
LEFT OUTER JOIN CAWN AS CAWN
ON CABN~ATINN = CAWN~ATINN
AND AUSP~ATWRT = CAWN~ATWRT
LEFT OUTER JOIN CAWNT AS CAWNT
ON CABN~ATINN = CAWNT~ATINN
AND CAWN~ATZHL = CAWNT~ATZHL
AND CAWNT~SPRAS = '3' "한국어
WHERE KSSK~OBJEK = '자재 코드'
AND KLAH~KLART = '001'
* AND CABN~ATNAM NOT IN ( 'HS_NO', 'EAN_CODE', 'EMS_CODE', 'CUSTOMER_PROJECT' )
ORDER BY KSML~POSNR
INTO TABLE @ET_LIST.
SORT ET_LIST BY OBJEK POSNR.
SAP MM - 자재코드 채번 시 기본 단위 세팅 (0) | 2024.11.29 |
---|