Change spool request name (ewm)

To change spool request name for printing forms (they are was set up in SPPFCADM transaction) we can add next enhancement into FM /SCWM/EXECUTE_PPF_WO_PDF (warehouse order):

ENHANCEMENT 1  Y_PPF_WO_PDF.    "active version
  field-symbols: <ft> type /scwm/tt_whohu_pdf.
  assign ('LT_WHOHU_PDF') to <ft>.
  if <ft> is assigned.
    zscwm_ex_prnt_pdf_wo=>set_whohu_ref( changing ct_whohu = <ft> ).
  endif.
  data: v_text1(10)
       ,v_text2(10)
       ,v_text3(10)
       ,v_text4(20).
    xs_output_params-reqnew   = 'X'.
    xs_output_params-reqfinal = 'X'.
    split xs_output_params-covtitle at ' ' into v_text1 v_text2 v_text3 v_text4.
    clear: xs_output_params-covtitle.
 
    case iv_form.
      when 'Y_ZAKAZ_WO_MULTIPLE'.
        xs_output_params-covtitle = v_text3 && ' - Заказ на комплектование - ' &&  v_text2.
      when 'Y_ZAKAZ__WO_HUIDENT'.
        xs_output_params-covtitle = v_text3 && ' - ЕО (Handling unit) - ' &&  v_text2.
      when 'Y_BIRKA_DETALI_UZLA'.
        xs_output_params-covtitle = v_text3 && ' - Бирка №1 - ' &&  v_text2.
      when 'Y_BIRKA_DETALI_UZLA_N0'.
        xs_output_params-covtitle = v_text3 && ' - Бирка №0 - ' &&  v_text2.
    endcase.
ENDENHANCEMENT.

For HU forms (FM /SCWM/EXECUTE_PPF_HU_PDF):

ENHANCEMENT 1  YEI_PPF_HU_PDF.    "active version
  FIELD-SYMBOLS: <ft> TYPE /scwm/tt_huhdr_int.
  ASSIGN ('IT_HUHDR') TO <ft>.
  IF <ft> IS ASSIGNED.
    yscwm_ex_prnt_pdf_hu=>set_huhdr_ref( CHANGING ct_huhdr = <ft> ).
  ENDIF.
ENDENHANCEMENT.

Schreibe einen Kommentar



All fields are required. Your email address will not be published.