My requirement is to update Equipment Number in the EQUI table. After checking various conditions I have to update the equi table with the new equipment number with this BAPI.
The method table is asking for a SAVE or DIALOG method.
Will it change the equipment number. But in the function module documentation i can see a CHANGE option also. But when i try to use it, it is not getting change.
What are all the things to be passed for the tables parameter.
Kindly advice and help me.
I have some doubts, that you will be able to change table EQUI with this BAPI. As far as I know, you can use this BAPI to create and modify pm/cs order.
If you want to change equi data, you can search for BAPIEQUI (I don't know the exact name of the BAPI).
sorry, but I never used this BAPI up to now. Perhaps you can have a look at the function module documentation, search the forum or the OSS for this BAPI.
I think if you want to change the equipment in the order, the change method should be correct. Have you set the update flag in table IT_HEADER_UP? Please also have a look at the example in the function module doc. There's an example for the creation of an order.
By the way - how do you test the BAPI? Test mode in SE37? -> be aware, that normally the BAPIs don't process a commit work, i.e. you have to process the commit work, after the call of the BAPI has been done successfully.