Error en BAPI_BUS2002_ACT_CREATE_MULTI

Colapsar
X
 
  • Tiempo
  • Mostrar
Limpiar Todo
nuevos mensajes
  • aguirre47
    Junior Member
    • oct
    • 7

    #1

    Error en BAPI_BUS2002_ACT_CREATE_MULTI

    Error en BAPI_BUS2002_ACT_CREATE_MULTI

    1 E CNIF_PI 007 No se ha podido crear objeto Operación 5149831 0120 000000 Operación 5149831 0120 5149831 0120 0 ECDCLNT120
    2 E CN 809 Introduzca una unidad de tiempo ya que ha fijado trabajo o trabajo real 000000 5149831 0120 0 ECDCLNT120

    Alguna idea para solucionar estos mensajes que devuelve la BAPI en su estructura de RETURN ?.

    clear it_activity. refresh it_activity.
    lv_error = space.

    * wa_activity-i_number = wa_operaciones-grafo.
    wa_activity-activity = wa_operaciones-operacion.
    wa_activity-control_key = c_operac.
    wa_activity-plant = wa_operaciones-centro.
    wa_activity-description = wa_operaciones-txt_oper.
    wa_activity-wbs_element = wa_operaciones-ele_pep.
    wa_activity-duration_normal = wa_operaciones-duracion.
    wa_activity-duration_normal_unit = wa_operaciones-uni_durac.
    * wa_activity-un_work = 'H'.
    append wa_activity to it_activity.

    call function 'BAPI_PS_INITIALIZATION'.

    call function 'BAPI_BUS2002_ACT_CREATE_MULTI'
    exporting
    i_number = wa_operaciones-grafo
    tables
    it_activity = it_activity
    et_return = it_return.
    * EXTENSIONIN =
    * EXTENSIONOUT = .

    sort it_return.

    read table it_return with key type = 'E' transporting no fields.
    if sy-subrc <> 0.
    call function 'PS_FLAG_SET_GLOBAL_FLAGS'
    exporting
    i_precommit_ok = 'Y'.

    call function 'BAPI_TRANSACTION_COMMIT'
    exporting
    wait = 'X'.
    endif.

    Agradezco de antemano sus comentarios.
    Editado por última vez por aguirre47; 17/02/2016, 23:17:22.
Trabajando...