I am develoing a Custom Sales Order report in ALV. Here the requirement is to include the Document Flow for the line item. This should be similar to the Icon in VA03 transaction. When I click this icon in my report, it should display the document flow (same as that of available in VA03 transaction). Can you suggest how can I get Document Flow icon in my Report?
Thanks in Advance.
We have developed one such report where at line item we are displaying data from sales order only and gave one icon with + sign, so if user clicks on that icon it will show all related documents such as delivery / invoice.
For this you need to ask ABAP guys to develop TREE report where you already pulling data but need to display only when user clicks on it
other way is you can develope ALV report where it will show all documents in different columns
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'
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.