02-11-2009 9:26 AM
Getting Runtime -
> Runtime error: ILLEGAL_TEMPORARY_OBJNR ("TM0000000008NV" " " " ")
While trying to create the Network activity in the following sequence.
CALL FUNCTION 'BAPI_PS_INITIALIZATION'.
*--> Create the Network Activity
CALL FUNCTION 'BAPI_BUS2002_ACT_CREATE_MULTI'
EXPORTING
i_number = i_number
TABLES
it_activity = t_activity
et_return = it_preturn.
extensionin = extensionin
extensionout = extensionout.
LOOP AT it_preturn INTO wa_preturn.
IF wa_preturn-type EQ c_error OR
wa_preturn-type EQ c_termination OR
wa_preturn-type EQ c_exit.
l_error = c_yes.
ENDIF.
ENDLOOP.
IF l_error IS NOT INITIAL.
ROLLBACK WORK. " satish 09/02/2008
EXIT.
ENDIF.
CALL FUNCTION 'BAPI_BUS2002_SET_STATUS'
EXPORTING
number = i_number
set_system_status = 'CRTD' " changed 'REL' to 'CRTD' satish 11/04/2008
IMPORTING
return = lwa_ret1
TABLES
i_activity_system_status = lt_act_status_set
e_result = lt_stat_ret.
IF lwa_ret1-type EQ c_error OR
lwa_ret1-type EQ c_termination OR
lwa_ret1-type EQ c_exit.
call function 'BAPI_TRANSACTION_ROLLBACK'.
EXIT.
endif.
CALL FUNCTION 'BAPI_PS_PRECOMMIT'
TABLES
et_return = lt_return.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
wait = 'X'.
Help really appriciated.
Thanks
Mani
02-11-2009 9:45 AM
Hi,
Go through the SAP NOTES 777934
Symptom
When a new network activity is created using BAPI, BAPI_BUS2002_ACT_CREATE_MULTI and then the newly created activities are
reverted by using BAPI BAPI_TRANSACTION_ROLLBACK,the control objects of newly created activities are not reverted, therefore when you perform a
commit of the transaction by using BAPI_TRANSACTION_COMMIT, a short dump'ILLEGAL_TEMPORARY_OBJNR' occurs.
Other terms
short dump 'ILLEGAL_TEMPORARY_OBJNR', CKCOUEB, Costing Sheet, Posting Date, Overhead key, CK_F_CO_OBJECT_ALL_REFRESH, BAPI_PS_INITIALIZATION.
Reason and Prerequisites
This is caused by program error. This note references SPC 770601 and created for corrections to be included in support package.
Solution
Implement the source code corrections.
Regards,
Dwaraka.S
02-11-2009 9:45 AM
Hi,
Go through the SAP NOTES 777934
Symptom
When a new network activity is created using BAPI, BAPI_BUS2002_ACT_CREATE_MULTI and then the newly created activities are
reverted by using BAPI BAPI_TRANSACTION_ROLLBACK,the control objects of newly created activities are not reverted, therefore when you perform a
commit of the transaction by using BAPI_TRANSACTION_COMMIT, a short dump'ILLEGAL_TEMPORARY_OBJNR' occurs.
Other terms
short dump 'ILLEGAL_TEMPORARY_OBJNR', CKCOUEB, Costing Sheet, Posting Date, Overhead key, CK_F_CO_OBJECT_ALL_REFRESH, BAPI_PS_INITIALIZATION.
Reason and Prerequisites
This is caused by program error. This note references SPC 770601 and created for corrections to be included in support package.
Solution
Implement the source code corrections.
Regards,
Dwaraka.S
02-23-2009 8:19 AM
11-11-2014 2:19 PM