Skip to Content
0
Former Member
Feb 11, 2009 at 09:26 AM

Run time Error while creating Network Activity.

343 Views

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