Application Development 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: 

Run time Error while creating Network Activity.

Former Member
0 Kudos
479

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos
90

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

3 REPLIES 3

Former Member
0 Kudos
91

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

Former Member
0 Kudos
90

This problem is solved now.

0 Kudos
90

This message was moderated.