04-04-2014 10:47 AM
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....
04-04-2014 10:52 AM
Hi,
always go with BAPI beacuse if sap system get upgrade all bdc will not work but bapi will work for ever.
Regards,
Raman
04-04-2014 10:56 AM
hi raman,
any idea of which BAPI's to be used for the above requirement...
04-04-2014 11:00 AM
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
04-04-2014 12:34 PM
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
04-04-2014 1:52 PM
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 ...
04-04-2014 1:58 PM
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