Posted: Tue Oct 23, 2007 10:15 am Post subject: Create asset using BAPI_FIXEDASSET_CREATE1
Code:
FORM zf_bapi_call USING ps_ls_asset TYPE t_asset
CHANGING ps_ls_asset_created TYPE bapi1022_reference
ps_ws_error TYPE string.
DATA:
ls_key TYPE bapi1022_key,
ls_general_data TYPE bapi1022_feglg001,
ls_general_data_x TYPE bapi1022_feglg001x,
ls_inventory TYPE bapi1022_feglg011,
ls_inventory_x TYPE bapi1022_feglg011x,
ls_posting_information TYPE bapi1022_feglg002,
ls_posting_information_x TYPE bapi1022_feglg002x,
ls_time_dependent_data TYPE bapi1022_feglg003,
ls_time_dependent_data_x TYPE bapi1022_feglg003x,
ls_allocations TYPE bapi1022_feglg004,
ls_allocations_x TYPE bapi1022_feglg004x,
ls_origin TYPE bapi1022_feglg009,
ls_origin_x TYPE bapi1022_feglg009x,
ls_invest_acct_assignmnt TYPE bapi1022_feglg010,
ls_invest_acct_assignmnt_x TYPE bapi1022_feglg010x,
ls_real_estate TYPE bapi1022_feglg007,
ls_real_estate_x TYPE bapi1022_feglg007x,
ls_return TYPE bapiret2.
***** Required fields - Create internal asset number *****
* Company code
ls_key-companycode = ps_ls_asset-bukrs.
* Asset class
ls_general_data-assetclass = ps_ls_asset-anlkl.
ls_general_data_x-assetclass = c_updated.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
All product names are trademarks of their respective companies. SAPNET.RU websites are in no way affiliated with SAP AG. SAP, SAP R/3, R/3 software, mySAP, ABAP, BAPI, xApps, SAP NetWeaver and any other are registered trademarks of SAP AG. Every effort is made to ensure content integrity. Use information on this site at your own risk.