Step 1. Before displaying Smartform Output pass below parameter to FM from driver program
ls_dialog-preview = 'X'.
ls_output-tdnoprev = ' '.
ls_output-tdnoprint = ' '.
ls_output-tdimmed = 'X'.
ls_output-tdnewid = 'X'.
" Check the Release status of Purchase order
SELECT SINGLE frgke FROM ekko INTO @data(lv_frgke)
SELECT SINGLE frgke FROM ekko INTO @data(lv_frgke)
WHERE ebeln EQ @gv_ebeln.
IF sy-subrc EQ 0 AND lv_frgke eq 'B'. " B - Not Released R - Fully Released
ls_output-tdnoprint = 'X'. " Print is not allowed
ls_output-tdnoprint = 'X'. " Print is not allowed
No comments:
Post a Comment