Hi Experts,
I am facing an untraceable issue for one Add-on . I have a UDT with some UFDs, but for Document No ,I am using DocNum field provided by SAP itself . I am managing the Series for this UDO also . I bound the field for DocNum to the field DocNum(provided by SAP) of the UDT . Each time when the form is in Add mode , I access the Next series no. for the Form from NNM1 table . Rest was fine but I got surprised one day when I saw a document added with DocNum value =859 and Series Next value for the same series was also 189. Everytime a Series value is used by the Form for DocNum ,the Next value of the series gets incremented and that is the behaviour of SAP. There is nothing manipulated for DocNum be me in this Add-on . Since the field is bound to DocNum field of UDT, SAP takes care of saving the value from the Series itself .
I tried a lot to trace this issue .Why this could have happened? but nothing fruitful I got . After this SAP did not allow to add any more record from Form and threw Expection : "This Entry already exists in the following Table".
Please throw some light about this behaviour . Is there something I could be doing wrong?What could be the reason for this and what measure can be taken to avoid this issue in Future?
Thanks and Regards,
Pooja Singh