Application Development and Automation 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: 
Read only

BAPI_EQMT_MODIFY vs BAPI_EQUI_CHANGE

Former Member
0 Likes
4,311

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

7 REPLIES 7
Read only

Former Member
0 Likes
2,315

Hi

Use the BAPI BAPI_EQUI_CHANGE and check the documentation of the BAPI

Please have a look into this thread

Shiva

Read only

madhu_vadlamani
Active Contributor
0 Likes
2,315

Hi ,

Did you check the documentation of the bapi.

Regards,

Madhu.

Read only

0 Likes
2,315

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.

Read only

0 Likes
2,315

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.

Read only

0 Likes
2,315

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

Read only

Former Member
0 Likes
2,315

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

Read only

Former Member
0 Likes
2,315

Thank  a lot, It is a really good find. Appreciate your work.