Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Data upload for asset creation

Former Member
0 Likes
448

I am trying to upload asset master data using bapi_fixedasset_create1.But am facing problems in uploading the description field of the asset although all other fields are getting uploaded.Please advise.

1 ACCEPTED SOLUTION
Read only

Former Member
353

In the BAPI "BAPI_FIXEDASSET_CREATE1" pass the parameter GENERALDATAX also and set the description fields to 'X'. The fields in general data for which U need to update, the corresponding generaldata_x will be 'X' .

Here is the code script (for description and description 2, U cannt change account determination id). See the parameter documentation of the BAPI for more details

wa_gnrl_data-assetclass = wa_data-asstclass.

wa_gnrl_data-descript = wa_data-descript.

wa_gnrl_data-descript2 = wa_data-descript2.

wa_gnrl_data-acct_detrm = wa_data-acct_detrm.

wa_gnrl_datax-descript = 'X'."wa_data-descript.

wa_gnrl_datax-descript2 = 'X'."wa_data-descript2.

now call the BAPI, pass both generaldata as well as generaldatax

In the BAPI "BAPI_FIXEDASSET_CREATE1" pass the parameter GENERALDATAX also and set the description fields to 'X'. The fields in general data for which U need to update, the corresponding generaldata_x will be 'X' .

Here is the code script (for description and description 2, U cannt change account determination id). See the parameter documentation of the BAPI for more details

wa_gnrl_data-assetclass = wa_data-asstclass.

wa_gnrl_data-descript = wa_data-descript.

wa_gnrl_data-descript2 = wa_data-descript2.

wa_gnrl_data-acct_detrm = wa_data-acct_detrm.

wa_gnrl_datax-descript = 'X'."wa_data-descript.

wa_gnrl_datax-descript2 = 'X'."wa_data-descript2.

now call the BAPI, pass both generaldata as well as generaldatax

1 REPLY 1
Read only

Former Member
354

In the BAPI "BAPI_FIXEDASSET_CREATE1" pass the parameter GENERALDATAX also and set the description fields to 'X'. The fields in general data for which U need to update, the corresponding generaldata_x will be 'X' .

Here is the code script (for description and description 2, U cannt change account determination id). See the parameter documentation of the BAPI for more details

wa_gnrl_data-assetclass = wa_data-asstclass.

wa_gnrl_data-descript = wa_data-descript.

wa_gnrl_data-descript2 = wa_data-descript2.

wa_gnrl_data-acct_detrm = wa_data-acct_detrm.

wa_gnrl_datax-descript = 'X'."wa_data-descript.

wa_gnrl_datax-descript2 = 'X'."wa_data-descript2.

now call the BAPI, pass both generaldata as well as generaldatax