chili coding 自留地

(40)财务相关BAPI


F-02创建财务凭证BAPI:

(默认创建标准财务账套下的凭证)

BAPI_ACC_DOCUMENT_POST

40 50 总账凭证结构:BAPIACGL09

01 11 09 19 客户应收凭证结构:BAPIACAR09

21 31 29 39 供应商应付凭证结构:BAPIACAP09

凭证抬头结构:bapiache09

币种和金额的结构:bapiaccr09


如果要创建平行账套下的凭证,仍然调用BAPI_ACC_DOCUMENT_POST

需要 定义凭证抬头结构中:acc_principle(平行账套对应的会计准则) = 'GAAP'

来源于表:TACC_TRGT_LDGR

Image


参考资料:

https://it.toolbox.com/question/bapi-to-post-general-posting-for-ledger-group-fb01l-110617

===========================================================

资产初始化导入BAPI:

BAPI_FIXEDASSET_OVRTAKE_CREATE

bapi1022_key : 要创建的关键字字段(公司代码、主资产号)

bapi1022_feglg001 : 资产通用数据,常规---基本信息(资产名称,规格型号,配置,序列号,存货号,数量,单位)

bapi1022_feglg002 : 常规---过帐信息(资产购置日期)

bapi1022_feglg003 : 资产时间相关数据(成本中心,房间,执照牌号)

bapi1022_feglg004 : 分配数据(使用周期,使用状态,经济用途,资产特级号)

bapi1022_feglg009 : 来源数据(供应商,来源方式,类型名称)

bapi1022_feglg005 : 租赁数据(补充文本)

bapi1022_dep_areas : 资产折旧信息(使用年限,期间,已过期使用年限,到期使用期限)

bapi1022_cumval : 往年折旧计算值(原值,往年折旧)

bapi1022_postval : 当年折旧计算值(当年折旧)


有一个问题:如果系统上线时间在年终,不是1月1号,对于资产购置日期也是当年的资产,无法按照AS91/AS92进行导入,需要进行特殊操作)

You need to complete prerequisite customizing for legacy data transfer as per SAP note 2331123 first and then follow below steps based on your own business scenario. 

1. Use T-Code: AS91 to register legacy asset master data;    

2. Use T-Code: AB01 to transfer the acquisition transaction of legacy asset posted in the legacy system since the end of the last closed fiscal year up to the date of transfer;

3. Use T-code: ABLDT to takeover ordinary depreciation posted in current year by entering amount in field ‘Ordinary dep.posted’ (NAFAG). the field is highlighted in below illustration; 

4. Execute depreciation recalculation on individual asset level via T-Code: AS02 menu: Edit -> Recalculate values or execute depreciation recalculation via T-Code: AFAR in real mode for a company code; 

5. Go to tab ‘Planned values’ of T-Code: AW01N to check if acquisition amount and acquisition transaction have been taken over correctly. Then go to tab ‘Posted values’ to check if ordinary depreciation posted in current year has been transferred properly;

Image

参考notes:

https://launchpad.support.sap.com/#/notes/2235848


reply ( 1 )

buzhidao @ 2019-06-13 16:21:12

太棒了。。