Just to save time for others who have the same requirement , use below, fill the structure with sales order and other details. Leave the posnr blank if you need document flow , else fill the posnr if it is item level.
CALL DIALOG 'RV_DOCUMENT_FLOW'
EXPORTING
VBCO6 FROM VBCO6
MAKT-MAKTX FROM SPACE
KNA1-KUNNR FROM kunnr2000
KNA1-NAME1 FROM name
MAKT-MATNR FROM SPACE
IVKORG FROM VKORG
IVTWEG FROM VTWEG.
No custom screen required, no tree control required, no coding required except that you need to call this at right place in your module pool/ report etc. SAP internally uses this for display in SAPMV45A.
Hope it helps.
Regards/Ajay