Picking with Lot No. - Invalid Commit ?

HalMdy
HalMdy Member Posts: 429
Hi !

I will try to explain the problem :

I create a picking document for an Item with Lot or Serial No. from a Sales Line. On the SalesLine, there is a missing dimension. When I try to post the picking, the system gives me an error message concerning the missing dimension -> OK . BUT, the reservation line on the serial number generates by the post of the pick remains.

If you look at CU7324, you see a COMMIT instruction just before the SalesPost procedure. My remaining reservation entry is "saved" by this COMMIT.

Do you have any idea of the reason of this COMMIT instruction and what are the risks if I suppress it ?

Thx for help !!

Comments

  • ara3n
    ara3n Member Posts: 9,258
    There are certain places in code where this function is called before the form is opened, So you will get the runmodal Error.
    I would put a condition in there so it does not commint in certain scenerios.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • HalMdy
    HalMdy Member Posts: 429
    I try without the COMMIT and all SEEMS to be OK, but ... then, why this instruction is there ? My opinion is : nobody could answer, expect the guy who wrote the code ! Where are you, my friend ? :wink:
  • ara3n
    ara3n Member Posts: 9,258
    I guess you don't believe what I said. You'll just have to wait till you get the runmodal error in other area of the application. You could get lucky and not see depending on your setup. Goodluck.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n