I have this Warranty Claim which I open in the `WTY` Transcation which has multiple documents connected to it. They are visible to me after clicking on the "Document Flow" button in the top bar.
How am I able to get those documents numbers within the ABAP code? Is there any Function Module allowing me to do so? Or should I use some database table which holds the relations?
I was looking for some database tables which contain the data but didn't succeed.
Thanks in the advance.
I've been looking and have found the way to get those documents myself.
You can use the `WTY16_AC_DOCUMENTS` Function Module where you pass the Number of Warranty Claim and its Version Number.