Application Development 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: 

BDC or BAPI for updating IE02

former_member185116
Active Participant
0 Kudos

hello all,

i need to update description ,manufacturer, model number, part number, serial number for a given EQUIPMENT number in Transaction = IE02.

i need to update some 200 records which are in excel sheet...

do i need to use BDC(recording method) or do i need to use any BAPI...

any suggestions....

thankq....

6 REPLIES 6

Former Member
0 Kudos

Hi,

always go with BAPI beacuse if sap system get upgrade all bdc will not work but bapi will work for ever.

Regards,

Raman

0 Kudos

hi raman,

any idea of which BAPI's to be used for the above requirement...

0 Kudos

Hi,

Check the program name from t-code and go to se37 give bapi*program name * do f4.

it gives some bapi if that particular t-code having.

I hope it's help.

Regards,

Raman

Former Member
0 Kudos

Hi,

Use BAPI_EQUI_CHANGE.

CALL FUNCTION 'BAPI_EQUI_CHANGE'        "BAPI to change serial number details

         EXPORTING

           EQUIPMENT         = ITAB-SERNR

           DATA_GENERAL      = L_DATA_GENERAL

           DATA_GENERALX     = L_DATA_GENX

           DATA_SPECIFIC     = L_DATA_SPECIFIC

           DATA_SPECIFICX    = L_DATA_SPECIFICX

         IMPORTING

           DATA_GENERAL_EXP  = L_1

           DATA_SPECIFIC_EXP = L_2

           RETURN            = L_3.


Thanks and Regards

Srimanta

0 Kudos

hi srimanta,


my requirement is like this...


data : BEGIN OF wa_itab,
        equnr type equnr,   "(equipment number)
        eqktu type eqktu,   "(equipment description)
        begru type begru,   "(authorization group T370B-begru)
        herst type herst,   "(manfacturer ITOB-herst)
        TYPBZ type typbz,   "(manfacturer model number itob-typbz)
        MAPAR type mapar,   "(manfacturer part number itob-mapar)
        serge type serge,   "(manfcaturer serial number itob-serge)
        END OF wa_itab.


data : it_itab LIKE TABLE OF wa_itab.



data : data_general type BAPI_ITOB.


---------------------------------------------------------------



loop at it_itab into wa_itab.


data_general-AUTHGRP = wa_itab-begru.

data_general-MANFACTURE = wa_itab-herst.

data_general-MANMODEL = wa_itab-typbz.

data_general-MANPARNO = wa_itab-mapar.

data_general-MANSERNO = wa_itab-serge.





CALL FUNCTION 'BAPI_EQUI_CHANGE'        "BAPI to change serial number details

         EXPORTING

           EQUIPMENT         = wa_itab-equnr

           DATA_GENERAL      = data_general

           DATA_GENERALX     = L_DATA_GENX

           DATA_SPECIFIC     = L_DATA_SPECIFIC

           DATA_SPECIFICX    = L_DATA_SPECIFICX

         IMPORTING

           DATA_GENERAL_EXP  = L_1

           DATA_SPECIFIC_EXP = L_2

           RETURN            = L_3.



what do i need to pass for(  L_DATA_GENX,  L_DATA_SPECIFIC,  L_DATA_SPECIFICX)


is data_general is not sufficient....


i have used BAPI_TRANSACTION_COMMIT at the end but the data is not changed ...






0 Kudos

Vinay if you fill go through BAPI documentation you will get to know the purpose of these internal tables. These tables contains the flags for the fields to be changed.  Please read documentation