2007 Mar 15 10:49 AM
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
2007 Mar 15 11:39 AM
Hi,
check out these oss notes:
Note 945966 - BAPI_FIXEDASSET_CHANGE: Error message content
Note 598639 - Asset BAPIs ignore KFZ indicator
Regards,
2007 Mar 19 11:15 AM
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
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |