ā2011 Sep 08 10:12 PM
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
ā2011 Sep 09 3:40 AM
ā2011 Sep 09 4:26 AM
Hi ,
Did you check the documentation of the bapi.
Regards,
Madhu.
ā2011 Sep 09 3:23 PM
Thank you guys Madhu and Shiva,
I donu2019t see in documentation anything specific related to my problem.
post doesnu2019t seemed to be solved either.
When I was writing this question I didnu2019t have my SAP machine near me and I misspelled the field name
In both bapi structures i use field MATERIAL not (MATNR).
If you know the exact error I am making of if you need more information please let me know.
ā2011 Sep 09 7:18 PM
The newer BAPI's are a little bit picky I think. I would suggest you to create an equipment and look up it's table entry to see what all data it's updating by default other than the one you inputted and pass those values while testing your BAPI.
ā2011 Sep 10 3:36 AM
I debugged the BAPI BAPI_EQUI_CHANGE and unable to find the problem. The BAPI gets updated for all the other data except DATA_SPECIFIC.
Shiva
ā2011 Sep 11 9:11 PM
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
ā2016 Mar 21 10:13 PM
Thank a lot, It is a really good find. Appreciate your work.