Application Development and Automation 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: 
Read only

BAPI_EQUI_CHANGE Error ITOB 407

Former Member
0 Likes
3,226

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. ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,803

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. ?

3 REPLIES 3
Read only

Former Member
0 Likes
1,803

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

Read only

Former Member
0 Likes
1,804

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á

Read only

0 Likes
1,803

Thanks Tamas . Problem has been resolved.