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

Asset Master upload

Former Member
0 Likes
1,013

The description field of Asset Master Creation cannot be uploaded using the BAPI-Bapi_fixedAsset_Create1.What to do in this case?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
864

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

The description field of Asset Master Creation cannot be uploaded using the BAPI-Bapi_fixedAsset_Create1.What to do in this case?

4 REPLIES 4
Read only

Former Member
0 Likes
864

u need to use create_text & commit_text for description fields in SAP...

Read only

0 Likes
864

I am also using the above BAPI_FIXEDASSET_CREATE1 to upload the asset master data. But the description field is not getting uploaded. There is a parameter DESCRIPT in this BAPI which I am using to pass the asset description. can you please suggest where to use the above 2 function modules CREATE_TEXT and COMMIT_TEXT in this context ?

Read only

Former Member
0 Likes
865

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

Read only

Former Member
0 Likes
864

Hi,

I am using the same FM for Asset Upload and was successfull in creating an Asset but the field URJHR (Original Acquisition year) is not getting updated eventhough I marked the ORIG_ACQ_YEAR field in Originx structure to 'X'.

Can you please help me regarding this?

Thanks in Advance!!!