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

BAPI_FIXEDASSET_CHANGE : Internal table didnt pass into BAPI

kowong
Participant
0 Likes
665

Dear Expert,

Running from the program code,

When I set break point inside the function 'BAPI_FIXEDASSET_CHANGE', internal table i_depreciationareas does not pass any value into the function.

While in the program code , breakpoint just before or after 'BAPI_FIXEDASSET_CHANGE' , there is data in the internal table...

Has anyone done this before ?

by running in abap code shown bellow , result shown: '291No changes made' ...

CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

EXPORTING

companycode = i_data-bukrs

asset = i_data-asset

subnumber = i_data-subno

generaldatax = i_generaldatax

IMPORTING

return = v_return

TABLES

i_depreciationareas = i_depreciationareas

i_depreciationareasx = i_depreciationareasx

EXCEPTIONS

OTHERS = 1 .

IF sy-subrc EQ 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = i_bapiresults.

WRITE : v_return.

ENDIF.

thank yoyu ...

is there any other paramter that i miss out ?

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

Dear Expert,

Running from the program code,

When I set break point inside the function 'BAPI_FIXEDASSET_CHANGE', internal table i_depreciationareas does not pass any value into the function.

While in the program code , breakpoint just before or after 'BAPI_FIXEDASSET_CHANGE' , there is data in the internal table...

Has anyone done this before ?

by running in abap code shown bellow , result shown: '291No changes made' ...

CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

EXPORTING

companycode = i_data-bukrs

asset = i_data-asset

subnumber = i_data-subno

generaldatax = i_generaldatax

IMPORTING

return = v_return

TABLES

i_depreciationareas = i_depreciationareas

i_depreciationareasx = i_depreciationareasx

EXCEPTIONS

OTHERS = 1 .

IF sy-subrc EQ 0.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'

EXPORTING

wait = 'X'

IMPORTING

return = i_bapiresults.

WRITE : v_return.

ENDIF.

thank yoyu ...

is there any other paramter that i miss out ?

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong

2 REPLIES 2
Read only

Former Member
0 Likes
513

Hi,

check out these oss notes:

Note 945966 - BAPI_FIXEDASSET_CHANGE: Error message content

Note 598639 - Asset BAPIs ignore KFZ indicator

Regards,

Read only

kowong
Participant
0 Likes
513

Running from the program code,

When I set break point inside the function 'BAPI_FIXEDASSET_CHANGE', internal table i_depreciationareas does not pass any value into the function.

While in the program code , breakpoint just before or after 'BAPI_FIXEDASSET_CHANGE' , there is data in the internal table...

Has anyone done this before ?

Something like that:

DATA:

i_depreciationareas LIKE bapi1022_dep_areas

OCCURS 0 WITH HEADER LINE,

i_depreciationareasx LIKE bapi1022_dep_areasx

OCCURS 0 WITH HEADER LINE.

i_depreciationareas-AREA = '01'.

i_depreciationareas-ULIFE_YRS = '007' .

i_depreciationareas-ULIFE_PRDS = '001' .

APPEND i_depreciationareas.

i_depreciationareasx = i_doc-darea.

i_depreciationareasx-ulife_yrs = 'X'.

i_depreciationareasx-ulife_prds = 'X'.

APPEND i_depreciationareasx.

CALL FUNCTION 'BAPI_FIXEDASSET_CHANGE'

EXPORTING

companycode = '1000'

asset = '000001000115'

subnumber = '0000'

  • generaldatax = i_generaldatax

IMPORTING

return = v_return

TABLES

depreciationareas = i_depreciationareas

depreciationareasx = i_depreciationareasx

  • EXTENSIONIN = EXTENSIONIN

EXCEPTIONS

OTHERS = 1

Message was edited by:

Kokwei Wong

Message was edited by:

Kokwei Wong