We usually need condition pricing data from Sales Order for custom ABAP Program requirement. Normally you can get condition pricing data from KONV table or PRCD_ELEMENTS ( SAP HANA ) table.

But the datas from those table are not include calculation total line as we see in VA03 . But in some requirement you need Total line from Condition pricing.

You can use BAPISDORDER_GETDETAILEDLIST function module to get Total Line or all of condition plus their calculation like you use in VA03 tcode.

ABAP Source Code.

Incoming search terms: