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

How to use BAPI_EQUI_CREATE correctly ?

Former Member
0 Likes
4,191

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

1 ACCEPTED SOLUTION
Read only

amit_khare
Active Contributor
0 Likes
2,127

If you search with the BAPI name in the forum you will get lots of examples there which can help you.

e.g. this one -

2 REPLIES 2
Read only

amit_khare
Active Contributor
0 Likes
2,128

If you search with the BAPI name in the forum you will get lots of examples there which can help you.

e.g. this one -

Read only

Former Member
0 Likes
2,127

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.