2010 Oct 01 12:08 PM
HI I need to Changes in Equipment master through BAPI but i found an error .
I noticed that the return message is Equipment could not be changed.
Msgtyp E
Message no 407
Message ID ITOB.
Code
-
Data :general TYPE STANDARD TABLE OF BAPI_ITOB WITH HEADER LINE,
generalx type STANDARD TABLE OF BAPI_ITOBX WITH HEADER LINE,
datas TYPE STANDARD TABLE OF BAPI_ITOB_EQ_ONLY WITH HEADER LINE,
datasx type STANDARD TABLE OF BAPI_ITOB_EQ_ONLYX WITH HEADER LINE,
fleet TYPE STANDARD TABLE OF BAPI_FLEET WITH HEADER LINE,
dg type BAPI_ITOB , ds type BAPI_ITOB_EQ_ONLY, df type BAPI_FLEET,
fleetx type STANDARD TABLE OF BAPI_FLEETX WITH HEADER LINE,
return type BAPIRET2,ireturn type BAPIRET2.
Data : equip type EQUNR.
general-INVENTORY = '99999999'.
*general-MANFACTURE = 'HONDA'.
APPEND general.
generalx-INVENTORY = 'X'.
*generalx-MANFACTURE = 'X'.
APPEND generalx.
equip = '1001840'.
'1001973'.
CALL FUNCTION 'BAPI_EQUI_CHANGE'
EXPORTING
equipment = equip
data_general = general
data_generalx = generalx
data_specific = datas
data_specificx = datasx
DATA_FLEET = fleet
*DATA_FLEETX = fleetx
VALID_DATE = SY-DATUM
VALID_TIME = SY-UZEIT
IMPORTING
DATA_GENERAL_EXP = dg
DATA_SPECIFIC_EXP = ds
DATA_FLEET_EXP = df
RETURN = return.
iF RETUrN IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = ireturn.
ENDIF.
if return-type = 'E'.
write: equip, return-type, return-message, return-field,return-NUMBER.
endif.
Any solution pls. ?
2010 Oct 01 2:20 PM
Hi!
equip = '1001840'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = equip
IMPORTING
OUTPUT = equip
.The lack of the leading zeros could be the problem.
Regards
Tamá
HI I need to Changes in Equipment master through BAPI but i found an error .
I noticed that the return message is Equipment could not be changed.
Msgtyp E
Message no 407
Message ID ITOB.
Code
-
Data :general TYPE STANDARD TABLE OF BAPI_ITOB WITH HEADER LINE,
generalx type STANDARD TABLE OF BAPI_ITOBX WITH HEADER LINE,
datas TYPE STANDARD TABLE OF BAPI_ITOB_EQ_ONLY WITH HEADER LINE,
datasx type STANDARD TABLE OF BAPI_ITOB_EQ_ONLYX WITH HEADER LINE,
fleet TYPE STANDARD TABLE OF BAPI_FLEET WITH HEADER LINE,
dg type BAPI_ITOB , ds type BAPI_ITOB_EQ_ONLY, df type BAPI_FLEET,
fleetx type STANDARD TABLE OF BAPI_FLEETX WITH HEADER LINE,
return type BAPIRET2,ireturn type BAPIRET2.
Data : equip type EQUNR.
general-INVENTORY = '99999999'.
*general-MANFACTURE = 'HONDA'.
APPEND general.
generalx-INVENTORY = 'X'.
*generalx-MANFACTURE = 'X'.
APPEND generalx.
equip = '1001840'.
'1001973'.
CALL FUNCTION 'BAPI_EQUI_CHANGE'
EXPORTING
equipment = equip
data_general = general
data_generalx = generalx
data_specific = datas
data_specificx = datasx
DATA_FLEET = fleet
*DATA_FLEETX = fleetx
VALID_DATE = SY-DATUM
VALID_TIME = SY-UZEIT
IMPORTING
DATA_GENERAL_EXP = dg
DATA_SPECIFIC_EXP = ds
DATA_FLEET_EXP = df
RETURN = return.
iF RETUrN IS INITIAL.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = 'X'
IMPORTING
RETURN = ireturn.
ENDIF.
if return-type = 'E'.
write: equip, return-type, return-message, return-field,return-NUMBER.
endif.
Any solution pls. ?
2010 Oct 01 12:23 PM
Hi,
general is not an table it is Line item or strucuture..
equip = '1001840'. "Do not hard code use conversion routine....
general-MANFACTURE = 'HONDA'.
generalx-MANFACTURE = 'X'.
"also assign manufacture country
"also Populate Manufacturer Serial number
"Populate Delivery number
general-INVENTORY = '99999999'.
generalx-INVENTORY = 'X'.
APPEND generalx.
CALL FUNCTION 'BAPI_EQUI_CHANGE'
EXPORTING
equipment = equipment
data_general =general
data_generalx =generalx
data_specific = specific
data_specificx = specificx
IMPORTING
return = t_return.
Prabhudas
2010 Oct 01 2:20 PM
Hi!
equip = '1001840'.
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = equip
IMPORTING
OUTPUT = equip
.The lack of the leading zeros could be the problem.
Regards
Tamá
2010 Oct 06 7:27 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |