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
Similar Messages
-
BAPI to change maintenance plant on Equipment
Hi everyone,
Is there a BAPI which changes the maintenance plant on the equipment. I tried both
BAPI_EQMT_MODIFY and
BAPI_EQUI_CHANGE unsuccessfully.
If any of you have an idea of any BAPI which does the same or if the plant can be changed with the above BAPI's please help.
Thanks
AneeshHi Aneesh,
When using BAPI_EQMT_MODIFY are you populating with BAPI_ILOA-MAINTPLANT = "Your value" as well as BAPI_ILOA_X-MAINTPLANT = 'X'
Don't forget to call BAPI_TRANSACTION_COMMIT if you have no errors in your return table as well.
Kind Regards,
Richard.
Edited by: Richvdl on Nov 30, 2010 6:08 PM -
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 -
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 beHi 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
JeromeHello 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 -
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, DieterHi,
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 -
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
nayanHi 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 -
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.
RegardsHi,
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_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. -
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 -
BADI or FM to Update records on ITOB
Is there a BADI or function module or class->method that allows me to update records on ITOB ? (and how to use it step by step).
Regards
Edited by: Tree Sap on Jul 21, 2011 5:10 PMHello Tree Sap,
You can use the following BAPI's:-
BAPI_EQMT_MODIFY
BAPI_EQUI_CHANGE
I had used these BAPI's before.
Thanks,
Greetson -
Hi all
I am using the bapi <b>BAPI_EQUI_CREATE_BY_REFERENCE</b> to create new equipments by reference. The Equipments so created will not have any material number & serial number, these blank fields can be populated with suitable material & serial numbers using bapi <b>BAPI_EQMT_MODIFY</b>. But the bapi BAPI_EQMT_MODIFY is obsolete & SAP prohibits us from using it. The BAPI <b>BAPI_EQUI_CHANGE</b> too does not seem to be serving the purpose. If any of you have dealt with a similar requirement kindly help.
Also None of the BAPIS or released function modules change the <b>PARTNER</b> details in the Partners sub-screen of the <b>Location view of IE01</b>. Kindly help.
Also i can use only released function modules!!
Regards
SudhirHi all
I am using the bapi <b>BAPI_EQUI_CREATE_BY_REFERENCE</b> to create new equipments by reference. The Equipments so created will not have any material number & serial number, these blank fields can be populated with suitable material & serial numbers using bapi <b>BAPI_EQMT_MODIFY</b>. But the bapi BAPI_EQMT_MODIFY is obsolete & SAP prohibits us from using it. The BAPI <b>BAPI_EQUI_CHANGE</b> too does not seem to be serving the purpose. If any of you have dealt with a similar requirement kindly help.
Also None of the BAPIS or released function modules change the <b>PARTNER</b> details in the Partners sub-screen of the <b>Location view of IE01</b>. Kindly help.
Also i can use only released function modules!!
Regards
Sudhir
Maybe you are looking for
-
I am unable to accept a .doc file from a sender
FILE TRANSFER ERROR: Could not receive file "FAIR v. Rumsfeld.doc" from Tiggsfrnpooh26: An error occurred. This is what comes up when i try to recieve it. I have had no trouble with sending and recieving files in the past, though this is the first ti
-
Unable to sync non itunes items to new computer
Old PC no longer available and want to sync my ipod touch with itunes but it only recognises itunes purchased items. There is several music files from other sources that i want to keep but if i am to sync with itunes all my other music will be lost.
-
RAW wont open for nikon d7100- wont let me update raw plugin
I just got a new camera- nikon d7100- i switched form nikon d5000. I can not open raw files with the 7100. i have tried downloading the upgrade for the plug in, i have tried tech support to where they took over my computer- still nothing. it will sti
-
Can you replace a retina screen without replacing the entire computer?
Hello, I have the standard issue with a horrible LG screen causing image retention. I've had it for almost a year now and it hasn't bothered me too much but I have Apple Care and am within my rights to return it for a Samsung one. I have a lot of thi
-
How to uninstall applications from my nokia asha30...
Whats is the procedure to uninstall the manually installed apps??