after posting a Item journal from last posted doc no and date are still remained in the lines. So how to clear those fields?
The system automatically creates a new line and writes it to the database.
The code for this is contained in the “Batch-Posting” codeunits (13, 23 and so on). If you do not want this behaviour you need to comment the code out.