Thanks for prompt response Juergen.
I wrote this code for ZEORD field:
In dubug mode, I confirmed that the select is fetching correct value 0001 for the record counter.
EORD currently have from date 01012016 and to date 12312016. I am passing 03012016 to 1231999.
I am also trying to set the Fixed vendor indicator for the record, which is not set right now.
This is the only record in EORD for this material and this plant. There is no other record conflicting with it.
Please let me know if you need any other information/details.
Cheers!!!
Amit