2009 Dec 05 1:12 PM
Hi friends,
In my code, i am using BAPI_OUTB_DELIVERY_CREATE_STO bapi which is creating delivery by using data in Purchase Order,
This BAPI is working fine.
After this i am using BAPI_OUTB_DELIVERY_CHANGE bapi. i tested this BAPI is development, it is working fine if quantity to be inserted is less than, equal to actual Purchase Order qty.
But i am trying to execute same code in quality server, it is working fine if qty is same as that of in Purchase Order.
but when i am giving quantity less than that of in PO, it is giving me a DUPM as follows :
Runtime Errors MESSAGE_TYPE_X
in one internal code of this BAPI.
I tried to debug this BAPI..but not able to understand why this is happening.
One more thing, if same BAPI is executed throung se37, it is working fine in quality.
Version of BAPI_OUTB_DELIVERY_CHANGE is different in development and quality.. can this be a problem..
2009 Dec 08 5:20 AM
Hi,
Can you paste the ST22 dump for the code. Also what versions are Dev and QAS running for the BAPI. That indeed could be a causing factor.
Cheers,
Disha
2009 Dec 08 5:20 AM
Hi,
Can you paste the ST22 dump for the code. Also what versions are Dev and QAS running for the BAPI. That indeed could be a causing factor.
Cheers,
Disha
2009 Dec 09 6:30 AM
hi disha,
Thanx for ur reply. i tried another bapi in place of BAPI_OUTB_DELIVERY_CHANGE, that bapi was also giving me same dump[at same point] only in case of qty less than PO qty.
So finally i created BDC for that and now it is working fine with BDC.
Abt versions of BAPI, yes they are different in dev and qty.
2012 Nov 07 11:26 AM
Hello,
I have the same problem. What do you mean by BDC?
Thx
Nicolas
2009 Dec 09 6:32 AM
2013 Oct 08 2:37 PM
Hi Kiran,
The basic reason for failure of "BAPI_OUTB_DELIVERY_CHANGE" is due to incomplete LUW of previous operation.
If you use above FM in separate ABAP program and call the same program using SUBMIT statement, the the deletion can be done.
Regards,
Vikas
2013 Oct 15 11:00 AM
Hi Kiran,
I agree with what Vikas has said in the above note. What you're actually trying to do is to create delivery and then change it in the same program. You need to commit changes to database and once it's done successfully then you can be able to change it successfully. Better to use a different program for changing the delivery instead of using a single program.
Best Regards,
Lakshman