cancel
Showing results for 
Search instead for 
Did you mean: 

Can any one let me know Extension of BAPI BAPI_FIXEDASSET_CREATE1 with ANLA Z field type Num 5 ?

akshay_rp
Explorer
0 Kudos

I have Used Cmod , Smode Customer Exit AIST0002 all three component as well

but field entry is not updating in table ANLA or ANLU. there is no screen involved into it.

EXIT_SAPL1022_001

EXIT_SAPLAIST_002

EXIT_SAPLAIST_003

CI_ANLU also extended .


Below is code reference of BAPI Call :

DATA: g_extensionin TYPE TABLE OF bapiparex,
g_extin TYPE bapiparex.

DATA: g_bapi_te_anlu TYPE bapi_te_anlu,
gt_extensionin TYPE TABLE OF bapiparex,
gw_extensionin TYPE bapiparex.

g_bapi_te_anlu-comp_code = p_ccode.
g_bapi_te_anlu-Zid = 1234.


MOVE: 'BAPI_TE_ANLU' TO gw_extensionin-structure.
gw_extensionin-valuepart1 = g_bapi_te_anlu.


CALL METHOD cl_abap_container_utilities=>fill_container_c
EXPORTING
im_value = g_bapi_te_anlu
IMPORTING
ex_container = gw_extensionin-valuepart1
EXCEPTIONS
illegal_parameter_type = 1
OTHERS = 2.


APPEND gw_extensionin TO gt_extensionin.
CLEAR: gw_extensionin,g_bapi_te_anlu.

CALL FUNCTION 'BAPI_FIXEDASSET_CREATE1'
EXPORTING
key = ls_key
* testrun = 'X'
generaldata = ls_general_data
* generaldatax = ls_general_data_x
* inventory = ls_inventory
* inventoryx = ls_inventory_x
* postinginformation = ls_posting_information
* postinginformationx = ls_posting_information_x
* timedependentdata = ls_time_dependent_data
* timedependentdatax = ls_time_dependent_data_x
* allocations = ls_allocations
* allocationsx = ls_allocations_x
* origin = ls_origin
* originx = ls_origin_x
* investacctassignmnt = ls_invest_acct_assignmnt
* investacctassignmntx = ls_invest_acct_assignmnt_x
* realestate = ls_real_estate
* realestatex = ls_real_estate_x
IMPORTING
assetcreated = ps_ls_asset_created
return = ls_return
TABLES
* DEPRECIATIONAREAS =
* DEPRECIATIONAREASX =
* INVESTMENT_SUPPORT =

extensionin = gt_extensionin.

also followed below link , Please suggest what step i am missing ?

https://archive.sap.com/discussions/thread/3640875

https://archive.sap.com/discussions/thread/1961505

https://archive.sap.com/discussions/thread/3854550

Accepted Solutions (0)

Answers (2)

Answers (2)

akshay_rp
Explorer
0 Kudos

Please provide some help on this ,

I need to Update ANLA-XSPEB vai BAPI BAPI_FIXEDASSET_CHANGE there is not Bapi Structure for this field available.

Please suggest how can we do this ?


Regards,

Akshay

0 Kudos

Have you done commit work using BAPI_TRANSACTION_COMMIT ?

akshay_rp
Explorer
0 Kudos

Yes .

As i can't changes import parameter of CMOD exit EXIT_SAPL1022_001 for i_anla and i_anlax.

Only option i am thinking of Implicit Enhancement on BAPI_FIXEDASSET_CREATE1 extension perform based on ANLU Costume field flag, suggest if this can be avoided ?

Thanks!!