05-17-2011 5:46 PM
Hi,
We need to change (add and modify) the component list of a plan order. I see/tested that BAPI_PLANNEDORDER_CHANGE does not work for that (you can read in documentation that the component table is only to export the components) so do you know any way to do that?
It is mandatoy to do that by BDC? I prefer other ways.
Thx,
Manel
05-17-2011 7:38 PM
If I'm not mistaken, the components are actually stored as reservations. So you will have to change the related reservation. The reservation change BAPI has some restrictions however (for instance, it won't allow changing automatic reservations and the like, but this is off the top of my head so you'll need to check the specifics).
You will probably have to use a combination of function modules such as MB_READ_RESERVATION_HEADER, MB_CHANGE_RESERVATION and BAPI_TRANSACTION_COMMIT to do such a change if BAPI_RESERVATION_CHANGE doesn't work out.
05-17-2011 7:38 PM
If I'm not mistaken, the components are actually stored as reservations. So you will have to change the related reservation. The reservation change BAPI has some restrictions however (for instance, it won't allow changing automatic reservations and the like, but this is off the top of my head so you'll need to check the specifics).
You will probably have to use a combination of function modules such as MB_READ_RESERVATION_HEADER, MB_CHANGE_RESERVATION and BAPI_TRANSACTION_COMMIT to do such a change if BAPI_RESERVATION_CHANGE doesn't work out.
05-17-2011 7:45 PM
Hi Tamas,
Many thx for your answer.
Yes, I was already investigating in this direction but it is a joke that you have BAPI_RESERVATION_CREATE and BAPI_RESERVATION_DELETE but you we don't have one to change
I will check the other fm you have told me.
thx
05-18-2011 9:11 AM
MB_CHANGE_RESERVATION works
change_resb = 'X' to change any item
new_resb = 'X' to add new items
xresb with modified items
xresbn with new items