Hi All,
I am facing the below problem while using BAPI_CUSTOMERCONTRACT_CHANGE
I came across a contract where in, the first line item has no open quantity against it and has an order quantity of 60000 Since we might not have line item always in the input file , the program tries to assign the Rejection Code to every line item , and in doing so it tries to do the same for the above material which here happens to be the first line item of the contract 5000023 . The BAPI returns an information message u2018Field 'ABGRU' cannot be changed, VBAPKOM 000010 ready for inputu2019 and error message u2018Sales document 0005000023 was not changedu2019.
As a result of this the subsequent items are also not being assigned the rejection code.
I ran the program for the above contract only for item no. 20 and the rejection code was successfully assigned .
Why is it that when the first line item fails that the next items don't get updated as well.
Rahul