‎2008 Dec 10 7:21 PM
Hi, Im trying really hard to use BAPI_EQUI_CREATE. For inserting a equipment in existing Function location... but it doesnt work... there is no error... but an new equipment has been generated... I dont see it in on Transaction IH01 or in any table. Please help, would be very nice ; )
... does someone have an example code (with feeding data) ?
‎2008 Dec 10 7:28 PM
‎2008 Dec 10 7:28 PM
‎2008 Dec 10 7:32 PM
constants: c_b(1) type c value 'B',
c_e(1) type c value 'E',
c_03(2) type c value '03'.
Bapi Structures
data: wa_data_general type bapi_itob,
wa_data_specific type bapi_itob_eq_only,
wa_return type bapiret2.
wa_data_specific-material = matnr.
wa_data_specific-serialno = serial number.
wa_data_specific-equicatgry = c_b .
Call BAPI
call function 'BAPI_EQUI_CREATE'
exporting
EXTERNAL_NUMBER =
data_general = wa_data_general
data_specific = wa_data_specific
DATA_FLEET =
VALID_DATE = SY-DATUM
DATA_INSTALL =
importing
equipment = p_equipament
DATA_GENERAL_EXP =
DATA_SPECIFIC_EXP =
DATA_FLEET_EXP =
return = wa_return.
if not wa_return-type = c_e.
call function 'BAPI_TRANSACTION_COMMIT'
exporting
wait = 'X'.
else.