Did you have a look a the function module?
Payment term 0003:
![obb8.jpg]()
I passed the dates from a document, language, payment terms and got this:
![payt.jpg]()
You are writing an ABAP report, so you can understand better than me by examining the code how they output such data with the FM.