BAPI_EQUI_CHANGE

hi all,
         I have a material XYZ with a serial number of 123. The equipment number is 100. I wanna change this material number to ABC, serial numner to 456. I am using BAPI_EQUI_CHANGE.
How do i change these values so as to reflect it in the table EQUI?
thanks
regards
nayan

Hi Nayan,
  while calling function module fill,
lv_equino = '100'.
wa_general-material = 'ABC'.
wa_genaral-serialno = 456.
wa_generalX-material = 'X'.
wa_genaralX-serialno = 'X'.
EQUIPMENT = lv_equino
DATA_GENERAL = wa_datageneral
DATA_GENERALX = wa_datageneralx
DATA_SPECIFIC = wa_dataspecific
DATA_SPECIFICX = wa_dataspecificx
after returning from the function call BAPI_TRANSACTION_COMMIT
Award points if this is helpful.
Regards,
Ravi G

Similar Messages

  • How to catch return in BAPI_EQUI_CHANGE

    hello all,
    i am updating equipment details using BAPI_EQUI_CHANGE.
       CALL FUNCTION 'BAPI_EQUI_CHANGE'
         EXPORTING
           EQUIPMENT               = wa_itab-equnr
           DATA_GENERAL            = it_data_general
           DATA_GENERALX           = it_data_generalx
            DATA_SPECIFIC           = it_specific
            DATA_SPECIFICX          = it_specificx
    **     DATA_FLEET              =
    **     DATA_FLEETX             =
    *      VALID_DATE              = SY-DATUM
    *      VALID_TIME              = SY-UZEIT
        IMPORTING
    **     DATA_GENERAL_EXP        =
    **     DATA_SPECIFIC_EXP       =
    **     DATA_FLEET_EXP          =
           RETURN                  = v_return
    but i am unable to catch anything in V_RETURN(means sucess or error message).
    no data is displayed under V_RETURN.
    what colud be

    Hi Vinay
    Check in class CL_PHIN_EUQI method UPDATE_EQUI.
    * update successful
    IF ls_return IS INITIAL OR
    ls_return-type CA 'IS'.
    then its sucess else error
    Nabheet

  • Use of FM BAPI_EQUI_CHANGE to update equipement with customer fields

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

    Hello all
    I have extended the EQUI table with customer fields using customer include structure and append structure.
    I want to populate these customer fields with BAPI BAPI_EQUI_CHANGE Or BAPI_EQUI_CREATE.
    So I have extended the structure ITOB appending the same customer fields as in table EQUI.
    I have enhanced the function MAPXI_BAPI_ITOB_TO_ITOB which map data from structure BAPI_ITOB to internal structure ITOB.
    But the fields are not populated ?
    Has someone already the BAPI in that way ?
    Thanks
    Jerome

  • BAPI_EQMT_MODIFY vs BAPI_EQUI_CHANGE

    Hi guys - need some help
    I need to update MATNR on a specific equipment
    Tested with BAPI_EQMT_MODIFY which is an obsolete bapi but it works fine
    where i pass to EQUIMASTER-MATNR new value
    and to EQUIMASTER_X-MATNR update flag 'X'
    and finish it off with BAPI_TRANSACTION_COMMIT
    and matnr gets updated on that equipment without any porblem
    When I am using BAPI_EQUI_CHANGE which I am supposed to be using
    I am not getting anywhere, what I do is simillar to BAPI_EQMT_MODIFY:
    I populate DATA_SPECIFIC-MATNR with new matnr
    and DATA_SPECIFICX-MATNR with update flag 'X'
    (also send empty structure for DATA_GENERAL and DATA_GENERALX
    and finish it off with BAPI_TRANSACTION_COMMIT
    I dont get anything back in return structure and equipment does not get updated
    Am I missing something? Do I need to populate any other fields?
    //Thanks

    Thank you again guys.
    I found the problem and it is the function module
    ITOB_FILTER_DATA -> that seems to filter MATERIAL and serial-number out
    SAP has an enhancement for this reason which is called ITOB_SFWS_SC_ITOB_FILTER_DATA
    which help to keep serial and matnr - very confusing but that is how it works.
    Two other important fields that must be populated prior using this BAPI_EQUI_CHANGE
    MaintPlant (ITOB-SWERK) and Company code (ITOB-BUKRS) or no change will take place
    Well - happy coding

  • Usage of BAPI_EQUI_CHANGE

    Hi,
    i use BAPI: 'BAPI_EQUI_CHANGE' to change some fields of an equipment.
    Now i have to change the garantie fields of the eqipment.
    This fields are store in BGMKOBJ-GWLDT and BGMKOBJ-GWLEN.
    I cannot find this field in the Parameter of the BAPI.
    Is there another Bapi/FM to change this Fields?
    Thanks.
    regards, Dieter

    Hi,
    A way to solve this may be use the ENHANCEMENT-POINT in BAPI_EQUI_CHANGE:
      ENHANCEMENT-POINT EHP_BAPI_EQUI_CHANGE_01 SPOTS ES_SAPLITOB_BAPI_EQ
    Here you can adjust the value of L_ITOB_REC-GWLEN and L_ITOB_REC-GWLDT .
    Best regards,
    Leandro Mengue

  • BAPI_EQUI_CHANGE - Update Partner Function

    Hello,
    We are trying to update equipment partner function by using BAPI_EQUI_CHANGE, but its not happening.
    Please provide your valuable inputs on this.
    Thanks,
    Amit.

    Hi,
    I think these will work for your scenario,
    BAPI_BPCONTACT_CHANGE
    SD_SALES_PARTNER_MAINTAIN.
    Regards,
    Ravi shankar

  • BAPI_EQUI_CHANGE Error ITOB 407

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

    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

  • BAPI_EQUI_CHANGE and append structure CI_EQUI

    Hi all,
    we have an external system (non-SAP) calling BAPI_EQUI_CHANGE.
    The BAPI interface does not cater for the transfer of the customer-defined fields in CI_EQUI. Has anyone come across this before?
    Thanks,
    Wayne Hanrahan.

    Hi,
    Please check this link
    http://www.erpgenie.com/abap/1336-create-equipment-using-bapiequicreate
    Hope it helps.
    Regards
    Hiren K.Chitalia

  • DELETE work center (ARBPL) with BAPI_EQUI_CHANGE (Equipment)

    Hi guys.
    Im trying to modify the field arbpl in a equipment with BAPI_EQUI_CHANGE. The problem is thhis field doesn´t exist in this BAPI so I can change it...
    Does anybody know where or how  I could change this field?
    Thanks a lot.
    Regards

    Hi,
    You need to use the field DATA_GENERAL-WORK_CTR (main work center). However this uses the internal number. To get this internal number read the CRHD record by ARBPL value, field OBJID is then the internal value.
    -Paul

  • Bapi BAPI_EQUI_CHANGE

    I have a requirment to update the matnr and sernr for a particular EQUNR, I went through the BAPI  BAPI_EQUI_CHANGE, however in the structure DATA_GENERAL i was not able to find MATNR and SERNR.
    Has anyone done this  before , which BAPI to use and what are the parameters needs to be passed.

    Hi,
    I used the solution I suggested here.  BAPI_EQMT_MODIFY.
    I m recieving the message that
    'Equiment 'XXX' does not exist',
    whereas I can see that in the EQUI table, and where the update is not yet done as per the to be changed material is inputted.
    Kindly reply my qurery.
    regards,
    Chandani

  • Bapi_equi_change - how can i change wbs_element?

    Hi experts,
    i try to change wbs element without success using this function.
    any idea what i doing wrong?
    thanks.
    Michal/

    1.i use bapi_transaction_commit.
    2. i dont get any error - it just not put the wbs element to the field in transaction iw28.
    maybe i need to add data ot mayne this function not good to put wbs element -
    do you know maybe if there is another function that i can use to update wbs_element in iw28?
    thanks.
    Michal.

  • Fill vendor number (EQUI-ELIEF) using BAPI_EQUI_CHANGE and BAPI_EQUI_CREATE

    Hi all,
    What are the parameters that I have to pass to these BAPIs in order to fill the field vendor number (EQUI-ELIEF) when creating or modifying an equipment?
    Thanks!

    Hi,
    Please check this link
    http://www.erpgenie.com/abap/1336-create-equipment-using-bapiequicreate
    Hope it helps.
    Regards
    Hiren K.Chitalia

  • Error Info...   ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC

    Update was terminated
    System ID....   ZDE
    Transaction..   ABUMN
    Update key...   4CA0A62864FF0068E1008000093FF453
    Generated....   28.09.2010, 09:39:14
    Completed....   28.09.2010, 09:39:15
    Error Info...   ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    While transferring asset using ABUMN transaction I am getting this error message
    I have implemented a implicit enhancement in    FM  AMBU_CALL_AC_DOCUMENT_POST  in which BAPI_EQUI_CHANGE is used to change the equipment with the new asset no.When I comment the BAPI there is no error .What might be the cause of this error in the BAPI_EQUI_CHANGE and is there an alternative to this BAPI
    I

    Hi Praveen,
    You can get the detailed error info for this error in SM13 transaction where we can check update error,which program/function module caused error in update task. You can also execute your code in bebugging mode from here.
    The Error you got occurs when transaction / program tries to commit database that would result in a duplicate entry in a
    table with primary key and hence the update failes,
    Regards,
    Pawan

  • BAPI for Equipment Stock Info Maintenance

    Hello,
    Transaction for maintenance of the Equipment master data (IE02) contains tab named "SerData" where it is possible to specify serial number and Stock information. I need to assign Sales Order No./ Position to the Equipment during it's creation. But the interface of the FM BAPI_EQUI_CREATE or BAPI_EQUI_CHANGE does not contain these parameters.
    Is there a way I can do this using BAPI?
    Points will be rewarded for help, of course.
    Thank you in advance
    Best regards,
    Maksim

    Santosh,
    We generate a large number of work orders using the OrderMaintain method of BAPI_ALM_ORDER_MAINTAIN.  We have exposed it to a .NET front end through a web service and this seems to work well for us.  As Pete said, your requirements are rather brief but if you look at this function module it might help you.
    Note: This and other related BAPIs were first available in 4.7 and I think are standard beyond that but can't say for sure.
    Bob Stanza

  • How to change the changed by name of an equipment

    hi All,
    My Problem is as follows..
    Xi interface send a file which will contain data to create equipments. this will also contain the user name field . The equipment created/changed by should be with this user ID.
    I create set of Equipments(Through BAPI) and update the stock information thorugh BDC using IE02. my problem is i could create the Equipment with the user id given in the file. but when i do stock updation through IE02 it takes sy-uname.  i tried to pouplate  sy-uname with the name given in the file jus before call transaction IE02. it is not working.
    I tried using BAPI BAPI_EQUI_CHANGE to change the changed by field but no luck.
    Any pointers on how to resolve this would be highly appreciated.

    sy-uname = 'DUARAN'.
    CALL TRANSACTION 'IE02' USING lt_bdcdata
                                    OPTIONS FROM lw_opt
                                    MESSAGES INTO lt_bdc_errors.
    please let me know if you want more info..

Maybe you are looking for