Hi C.B Reddy,
Looks like the last screenshot is from DEV system.
What you need to analyse is line items (2 and 4) from your test system (where separate lines are posted for the sam account and posting key).
Please analyse all the fields in BSEG and check in which fields are different entries (of course apart from values).
Regards,
Szymon