资产创建
AS01
注意:资产的分类决定了 过账的对应的总账科目
SELECT SINGLE T095~KTANSW INTO TACCOUNTGL-GL_ACCOUNT
FROM ANLA
JOIN T095 ON ANLA~KTOGR = T095~KTOGR
WHERE ANLA~BUKRS = PHEAD-BUKRS AND
ANLA~ANLN1 = GLWITEM-ASSET_NO AND
ANLA~ANLN2 = GLWITEM-SUB_NUMBER AND
T095~KTOPL = 'T001'.