For Display PR
call function 'ME_DISPLAY_OBJECT_RQ'
exporting
key = banfn.
For Display PO
call function 'ME_DISPLAY_PURCHASE_DOCUMENT'
exporting
i_ebeln = it_final-ebeln
i_ebelp = it_final-ebelp
exceptions
not_found = 1
no_authority = 2
invalid_call = 3
preview_not_possible = 4
.
For Display Material Document
CALL FUNCTION 'MIGO_DIALOG'
EXPORTING
i_action = 'A04'
i_refdoc = 'R02'
i_notree = 'X'
i_skip_first_screen = 'X'
i_okcode = 'OK_GO'
i_mblnr = belnr
i_mjahr = gjahr
EXCEPTIONS
illegal_combination = 0
OTHERS = 0.
For Display MIRO(invoice) Document
call function 'MRM_INVOICE_DISPLAY'
exporting
i_belnr = it_final-lfbnr
i_gjahr = it_final-gjahr
changing
return = return
.
For Display FI (Accouting) Document
call function 'AC_DOCUMENT_RECORD'
exporting
i_awtyp = bkpf-awtyp
i_awref = bkpf-awkey+00(10)
i_aworg = bkpf-awkey+10(10)
i_awsys = bkpf-awsys
* i_awtyp_incl = 'BKPF'
i_awtyp_excl = ' '
i_bukrs = bukrs
i_valutyp = '0'
x_dialog = 'X'.