Print smartform from background

Dear Experts,
I have requirement to create delivery then create bill automatically so i open background job from program (A) and submit the creating program for bill (B) via this job what happened is the delivery creating is ok, the delivery printing is ok and the billing creation is ok but the billing printing program (C) is not ok where the spool is creating with status waiting so can any body help how to print from background job??
program (A) (Create backgroundjob and submit program via it)
FORM USEREXIT_SAVE_DOCUMENT.
DATA: jobcount TYPE tbtcjob-jobcount,
      new_time type TBTCJOB-SDLSTRTTM.
data : p_vbeln TYPE likp-vbeln.
DATA : v_JOB_WAS_RELEASED LIKE  BTCH0000-CHAR1.
break rurik.
if T180-TRTYP = 'H'
  and ( likp-lfart = 'ZDCF'
or    likp-lfart = 'ZDCI'
  or    likp-lfart = 'ZDCO'
  or    likp-lfart = 'ZDCP'
  or    likp-lfart = 'ZDCR'
  or    likp-lfart = 'ZDOB'
  or    likp-lfart = 'ZDOT'
  or    likp-lfart = 'ZDQT'
or    likp-lfart = 'ZDRE' - Ian
  or    likp-lfart = 'ZDSO').
CALL FUNCTION 'JOB_OPEN'
  EXPORTING
    jobname               = 'SD_AUTOMATION'
  SDLSTRTDT             = NO_DATE
  SDLSTRTTM             = NO_TIME
  JOBCLASS              =
IMPORTING
   JOBCOUNT               = jobcount
CHANGING
  RET                   =
EXCEPTIONS
   CANT_CREATE_JOB        = 1
   INVALID_JOB_DATA       = 2
   JOBNAME_MISSING        = 3
   OTHERS                 = 4.
SUBMIT zsd_create_billing_document
        with vbeln EQ LIKP-VBELN
        AND RETURN
        VIA JOB 'SD_AUTOMATION'
        NUMBER jobcount.
new_time = sy-uzeit + 10.  "short delay
CALL FUNCTION 'JOB_CLOSE'
  EXPORTING
    jobcount                         = jobcount
    jobname                          = 'SD_AUTOMATION'
   STRTIMMED                       = 'X'
    SDLSTRTDT                        = sy-datum
    SDLSTRTTM                        = new_time
IMPORTING
    JOB_WAS_RELEASED                 = v_JOB_WAS_RELEASED
EXCEPTIONS
   CANT_START_IMMEDIATE              = 1
   INVALID_STARTDATE                 = 2
   JOBNAME_MISSING                   = 3
   JOB_CLOSE_FAILED                  = 4
   JOB_NOSTEPS                       = 5
   JOB_NOTEX                         = 6
   LOCK_FAILED                       = 7
   INVALID_TARGET                    = 8
   OTHERS                            = 9
ENDIF.
ENDFORM.
Program B (Creat bill)
REPORT zsd_create_billing_document
       NO STANDARD PAGE HEADING LINE-SIZE 255.
TABLES: vbup, vbak, vbuk.
DATA:   bdcdata LIKE bdcdata    OCCURS 0 WITH HEADER LINE.
DATA done(1).
PARAMETERS vbeln TYPE likp-vbeln.
DATA  sal_vbeln TYPE vbeln..
DATA  messtab LIKE TABLE OF bdcmsgcoll WITH HEADER LINE.
DATA   billing_doc TYPE vbeln.
DATA  messagetext(200).
MESSAGE s002(zsd).
WRITE: / vbeln.
DATA :  v_print TYPE i.
CALL FUNCTION 'ENQUEUE_EVVBLKE'
EXPORTING
  MODE_LIKP            = 'E'
  MANDT                = SY-MANDT
   vbeln                = vbeln
  X_VBELN              = ' '
  _SCOPE               = '2'
    _wait                = 'X'
" _wait                 = space
  _COLLECT             = ' '
EXCEPTIONS
   foreign_lock         = 1
   system_failure       = 2
   OTHERS               = 3
MESSAGE s005(zsd).
*In case ZSOT automatic billing once we create delivery and post goods issue manual.
SELECT SINGLE vbelv
  FROM vbfa
  INTO sal_vbeln
  WHERE vbeln = vbeln
  AND   vbtyp_v = 'C'.
SELECT SINGLE *
  FROM vbak
  WHERE vbeln = sal_vbeln.
import v_print to v_print FROM MEMORY id 'PRINTFLAG'.
IF vbak-auart EQ 'ZSOT'.
IF v_print eq '1'.
    PERFORM create_document USING vbeln
                          CHANGING sy-subrc.
ENDIF.
ELSE.
*Other than ZSOT Post Goods issue from ZPGI2 and from there automatic billing.
ENDIF.
*&      Form  CREATE_DOCUMENT
      text
     -->P_VBELN    text
FORM create_document USING p_vbeln
                     CHANGING sysubrc.
  PERFORM bdc_dynpro      USING 'SAPMV60A' '0102'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'KOMFK-VBELN(01)'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '/00'.
  PERFORM bdc_field       USING 'KOMFK-VBELN(01)'
                                p_vbeln."'1130010202'.
  PERFORM bdc_dynpro      USING 'SAPMV60A' '0104'.
  PERFORM bdc_field       USING 'BDC_CURSOR'
                                'VBRK-FKART'.
  PERFORM bdc_field       USING 'BDC_OKCODE'
                                '=SICH'.
  CALL FUNCTION 'DEQUEUE_EVVBLKE'
   EXPORTING
      MODE_LIKP       = 'E'
      MANDT           = SY-MANDT
        vbeln           = vbeln
      X_VBELN         = ' '
      _SCOPE          = '3'
      _SYNCHRON       = ' '
      _COLLECT        = ' '
  CALL TRANSACTION 'VF01' USING bdcdata
                   MODE   'N'
                   UPDATE 'S'
                   MESSAGES INTO messtab.
  READ TABLE messtab WITH KEY msgtyp = 'E'.
  IF sy-subrc EQ 0.
    sysubrc = 4.
  ELSE.
    sysubrc = 0.
  ENDIF.
  LOOP AT messtab.
    sy-msgty = messtab-msgtyp.
    sy-msgid = messtab-msgid.
    sy-msgno = messtab-msgnr.
    sy-msgv1 = messtab-msgv1.
    sy-msgv2 = messtab-msgv2.
    sy-msgv3 = messtab-msgv3.
    sy-msgv4 = messtab-msgv4.
    CALL FUNCTION '/SAPTRX/GET_MESSAGE_TEXT'
      EXPORTING
        msgid                = sy-msgid
        msgno                = sy-msgno
        msgv1                = sy-msgv1
        msgv2                = sy-msgv2
        msgv3                = sy-msgv3
        msgv4                = sy-msgv4
      IMPORTING
        messagetext          = messagetext
      EXCEPTIONS
        no_message_retrieved = 1
        OTHERS               = 2.
    WRITE: / messagetext.
    CLEAR messagetext.
  ENDLOOP.
*... refresh tables
  REFRESH: messtab, bdcdata.
ENDFORM.                    "CREATE_DOCUMENT
*&      Form  BDC_DYNPRO
      text
     -->PROGRAM    text
     -->DYNPRO     text
FORM bdc_dynpro USING program dynpro.
  CLEAR bdcdata.
  bdcdata-program  = program.
  bdcdata-dynpro   = dynpro.
  bdcdata-dynbegin = 'X'.
  APPEND bdcdata.
ENDFORM.                    "BDC_DYNPRO
       Insert field                                                  *
FORM bdc_field USING fnam fval.
  CLEAR bdcdata.
  bdcdata-fnam = fnam.
  bdcdata-fval = fval.
  APPEND bdcdata.
ENDFORM.                    "BDC_FIELD
*&      Form  change_status
      text
-->  p1        text
<--  p2        text
FORM change_status .
*Change status if delivery and the billing document has been created
  SELECT  *
    FROM vbup
    WHERE vbeln = vbeln
    AND   fksta NE 'C'.
    vbup-fksta = 'C'.
   vbup-gbsta = 'C'.
    MODIFY vbup.
  ENDSELECT.
  UPDATE vbuk
  SET fkstk = 'C'
     gbstk = 'C'
  WHERE vbeln = vbeln.
ENDFORM.                    " change_status
Program C (Print Bill)
REPORT  z_sdps_invoice.
*&    <Module>:  SD Smart Forms.
*& Type       : Executable
*& Request No.:
*& Author/Co. : Ahmed Al Eryani
*& Created On : 26.02.2007
*& Finished   : 24.2007
*& Description:
*&                    MODIFICATION LOG
*& Modified by  :
*& Request No.  :
*& Dev. Class   :
*& Date Modified:
*& Description  :
TABLES: vbrk, kna1, vbrp, makt, konv, vbkd.
SELECTION-SCREEN BEGIN OF BLOCK a.
PARAMETER: p_vbeln LIKE vbrp-vbeln OBLIGATORY MATCHCODE OBJECT vmcf. "Billing document No
"SELECT-OPTIONS s_bukrs FOR bkpf-bukrs. "Company Code
SELECTION-SCREEN END OF BLOCK a.
*itab is object of our smart form structre
DATA: itab TYPE zsd_invoice OCCURS 0 WITH HEADER LINE.
DATA: wa_footer TYPE zsd_invv1.
DATA: t_items TYPE zsd_inv WITH HEADER LINE,
      w_items TYPE LINE OF zsd_inv,
      it_footer TYPE zsd_inv1,
      w_footer TYPE LINE OF zsd_inv1.
DATA: amountspell LIKE spell.
DATA: g_fm_name TYPE rs38l_fnam.
DATA: mnumvflag(10) TYPE c.
DATA: coun TYPE i,
      totalforitems TYPE kwert,
      lasttotal(8) TYPE p DECIMALS 2,
      lasttotalc(11) TYPE c,
      firstpart(11) TYPE c,
      secondpart(2) TYPE c.
DATA: currency TYPE waerk.
DATA: currtxet(50) TYPE c.
*Header internal table
DATA: BEGIN OF t_header OCCURS 0,
  vbeln LIKE vbrk-vbeln,"Document no
  name1 LIKE kna1-name1,"Customer Name
  adrnr LIKE kna1-adrnr,"Customer Address
  bstkd LIKE vbkd-bstkd,"
  kunnr LIKE kna1-kunnr,"Customer Account no
  waerk LIKE vbrk-waerk, "currency key
  aubel LIKE vbrp-aubel,
  kunrg LIKE vbrk-kunrg,
  street LIKE adrc-street,
  fkart LIKE vbrk-fkart,
  lgort LIKE lips-lgort,"Stord bin
  lgobe LIKE t001l-lgobe,
  ktokd LIKE kna1-ktokd,
  PSTYV LIKE vbrp-PSTYV,
  orgbil LIKE vbfa-vbelv,
END OF t_header.
*detail internal table
DATA: BEGIN OF t_items1 OCCURS 0,
  matnr LIKE vbrp-matnr,"Material Number
  posnr LIKE vbrp-posnr,
  vgpos LIKE vbrp-vgpos,
  maktx LIKE makt-maktx,"Material Description
  lgort LIKE vbrp-lgort,"Storage location
  fkimg LIKE vbrp-fkimg,"
  knumv LIKE vbrk-knumv,"
  unitprice LIKE konv-kawrt,
  total LIKE konv-kawrt,
  waers LIKE konv-waers,
  kkurs LIKE konv-kkurs,
  vgbel LIKE vbrp-vgbel,
  lgpbe LIKE lips-lgpbe,
  vgtyp LIKE vbrp-vgtyp,
END OF t_items1.
DATA: v_belnr TYPE belnr_d.
*Unit price internal table
DATA: BEGIN OF t_untprice OCCURS 0,
  kschl LIKE konv-kschl,"condition type
  kawrt LIKE konv-kawrt,"unit price
END OF t_untprice.
*Condition(spcial deduction)
DATA: BEGIN OF t_spcialcnd OCCURS 0,
  kschl LIKE konv-kschl,"condition type
  kwert LIKE konv-kwert,"Deduction value
END OF t_spcialcnd.
DATA: t_tax LIKE TABLE OF t_spcialcnd WITH HEADER LINE,
      v_tax LIKE konv-kwert.
DATA: BEGIN OF t_curtxt OCCURS 0,
  ltext LIKE tcurt-ltext,
END OF t_curtxt.
DATA :return_code TYPE i," VALUE 999,
      us_screen TYPE c. "VALUE 'X'.
declaration of data
INCLUDE rlb_invoice_data_declare.
definition of forms
INCLUDE rlb_invoice_form01.
INCLUDE rlb_print_forms.
START-OF-SELECTION.
  "IF p_vbeln IS NOT INITIAL.
    PERFORM entry USING return_code us_screen.
  "ENDIF.
      FORM ENTRY
FORM entry USING return_code us_screen.
  DATA: lf_retcode TYPE sy-subrc.
  CLEAR retcode.
  xscreen = us_screen.
perform processing using us_screen
                    changing lf_retcode.
if lf_retcode ne 0.
   return_code = 1.
else.
   return_code = 0.
endif.
  IF p_vbeln IS INITIAL.
    p_vbeln = nast-objky.
  ENDIF.
  "get header data
  SELECT SINGLE vbrk~vbeln vbrk~waerk vbrp~aubel vbrk~kunrg vbrk~fkart vbrp~lgort vbrp~PSTYV
  INTO (t_header-vbeln, t_header-waerk, t_header-aubel, t_header-kunrg, t_header-fkart,
    t_header-lgort, t_header-PSTYV)
  FROM vbrk JOIN vbrp ON vbrp~vbeln = vbrk~vbeln
            JOIN kna1 ON vbrk~kunrg = kna1~kunnr
  WHERE vbrk~vbeln = p_vbeln.
  IF t_header-PSTYV = 'ZREN'.
    SELECT SINGLE VBELV
      INTO t_header-orgbil
      FROM vbfa
      WHERE vbeln = p_vbeln
      and VBTYP_V = 'M'.
  ENDIF.
  SELECT SINGLE t001l~lgobe
    INTO t_header-lgobe
    FROM t001l
    WHERE t001l~lgort = t_header-lgort.
  SELECT SINGLE kna1~name1 kna1~adrnr kna1~kunnr kna1~ktokd
    INTO (t_header-name1, t_header-adrnr, t_header-kunnr, t_header-ktokd)
  FROM  kna1 "ON vbrk~kunrg = kna1~kunnr
  WHERE kna1~kunnr = t_header-kunrg
    AND spras = 'AR'.
  IF t_header-name1 IS INITIAL.
    SELECT SINGLE kna1~name1 kna1~adrnr kna1~kunnr kna1~ktokd
      INTO (t_header-name1, t_header-adrnr, t_header-kunnr, t_header-ktokd)
    FROM  kna1 "ON vbrk~kunrg = kna1~kunnr
    WHERE kna1~kunnr = t_header-kunrg
      AND spras = 'EN'.
  ENDIF.
  IF t_header-ktokd = 'ZONE'.
    SELECT SINGLE belnr
      INTO v_belnr
    FROM bkpf
    WHERE xblnr = p_vbeln.
    SELECT SINGLE name1
    INTO t_header-name1
    FROM bsec
    WHERE belnr = v_belnr.
  ENDIF.
  SELECT SINGLE adrc~street
    INTO t_header-street
    FROM adrc
    WHERE addrnumber = t_header-adrnr
    AND langu = 'AR'.
  IF t_header-street IS INITIAL.
    SELECT SINGLE adrc~street
      INTO t_header-street
      FROM adrc
      WHERE addrnumber = t_header-adrnr
      AND langu = 'EN'.
  ENDIF.
  "get details data
  SELECT vbrp~matnr vbrp~posnr vbrp~vgpos vbrp~fkimg
         vbrk~knumv vbrp~matnr vbrp~vgbel vbrp~vgtyp"makt~maktx
  INTO CORRESPONDING FIELDS OF TABLE t_items1
  FROM vbrp "JOIN makt ON vbrp~matnr = makt~matnr
            JOIN vbrk ON vbrp~vbeln = vbrk~vbeln
            "join konv on vbrk~knumv = konv~knumv
  WHERE vbrp~vbeln = p_vbeln
    AND vbrp~fkimg NE '0.000'.
  "AND makt~spras = 'E'.
  break arasmy.
  LOOP AT t_items1.
    SELECT SINGLE lips~lgpbe
      INTO t_items1-lgpbe
      FROM lips
      WHERE vbeln = t_items1-vgbel
      AND posnr = t_items1-vgpos.
    SELECT SINGLE makt~maktx
    INTO  t_items1-maktx
    FROM  makt
    WHERE matnr = t_items1-matnr
    AND   makt~spras = 'EN'.
    SELECT SINGLE konv~kbetr konv~kwert konv~waers konv~kkurs
      INTO (t_items1-unitprice, t_items1-total, t_items1-waers,
      t_items1-kkurs)
    FROM konv
    WHERE konv~kschl = 'NETW'"'ZSPC'                               "'ZSP1'
    AND   konv~knumv = t_items1-knumv
    AND   kposn      = t_items1-posnr.
    t_items1-unitprice = ( t_items1-total / t_items1-fkimg ) * t_items1-kkurs.
    MODIFY t_items1.
    mnumvflag = t_items1-knumv."Number of the document condition
  ENDLOOP.
*get the deduction value for the document condiotion no
  SELECT konvkschl konvkwert
  INTO CORRESPONDING FIELDS OF TABLE t_spcialcnd
  FROM konv
  WHERE konv~kschl IN ('ZSSD', 'ZSCD', 'ZSDD', 'ZSPD', 'ZSWD', 'ZMW1', 'ZSGS', 'ZMW2')
  AND  konv~knumv = mnumvflag.
Get tax 10%
    SELECT konvkschl konvkwert
    APPENDING CORRESPONDING FIELDS OF TABLE t_tax
    FROM konv
    WHERE konv~kschl = 'MWST'
    AND  konv~knumv = mnumvflag.
  itab-invn  = t_header-vbeln.
  itab-orgbil  = t_header-orgbil.
  itab-cusna = t_header-name1.
  itab-addr  = t_header-street.
  itab-custn = t_header-kunrg.
  itab-sord  = t_header-aubel.
  itab-fkart = t_header-fkart.
  itab-lgort = t_header-lgort.
  itab-lgobe = t_header-lgobe.
  itab-PSTYV = t_header-PSTYV.
  currency   = t_header-waerk.
  LOOP AT t_items1.
    w_items-matn   = t_items1-matnr.
    w_items-matdes = t_items1-maktx.
    w_items-stloc  = t_items1-lgpbe."lgort.
    w_items-qunt   = t_items1-fkimg.
    w_items-total  = t_items1-total.
    totalforitems  = totalforitems + w_items-total.
    COLLECT w_items INTO t_items.
  endloop.
  LOOP AT t_items1.
    LOOP AT t_items WHERE matn = t_items1-matnr.
      t_items-prc = t_items1-unitprice.
      MODIFY t_items.
    ENDLOOP.
  ENDLOOP.
  LOOP AT t_items.
      coun = coun + 1.
      t_items-itmn = coun.
      MODIFY t_items.
  ENDLOOP.
    w_footer-totalforitems = totalforitems.
    LOOP  AT t_spcialcnd.
      CASE t_spcialcnd-kschl.
        WHEN 'ZSSD'.
          w_footer-spdisc    = w_footer-spdisc      + t_spcialcnd-kwert.
        WHEN 'ZSCD'.
          w_footer-comdisc   = w_footer-comdisc     + t_spcialcnd-kwert.
        WHEN 'ZSDD'.
          w_footer-DIFMAT    = w_footer-DIFMAT      + t_spcialcnd-kwert.
        when 'ZSPD'.
          w_footer-trgtdisc  = w_footer-trgtdisc    + t_spcialcnd-kwert.
        WHEN 'ZMW2'.
          w_footer-comindisc = w_footer-comindisc   + t_spcialcnd-kwert.
        WHEN 'ZSWD'.
          w_footer-cshdisc   = w_footer-cshdisc     + t_spcialcnd-kwert.
        WHEN 'ZSGS'.
          w_footer-stampsdisc = w_footer-stampsdisc + t_spcialcnd-kwert.
      ENDCASE.
      w_footer-ttldisc = w_footer-spdisc + w_footer-comdisc + w_footer-trgtdisc
                       + w_footer-cshdisc + w_footer-DIFMAT + w_footer-stampsdisc.
    ENDLOOP.
    w_footer-aftrdiscnts = w_footer-totalforitems + w_footer-ttldisc.
    LOOP AT t_tax WHERE kwert NE '0.00'.
      w_footer-saltax = w_footer-saltax + t_tax-kwert.
    ENDLOOP.
    w_footer-totalaftrtax = w_footer-aftrdiscnts + w_footer-saltax.
    w_footer-total = w_footer-totalaftrtax + w_footer-comindisc.
    lasttotal = w_footer-total.
  APPEND w_footer TO it_footer.
  SELECT tcurt~ltext
  INTO CORRESPONDING FIELDS OF TABLE t_curtxt
  FROM   tcurt
  WHERE tcurt~spras = 'AR'
  AND   tcurt~waers = currency.
  LOOP AT  t_curtxt.
    currtxet = t_curtxt-ltext.
  ENDLOOP.
  itab[] = t_header[].
  lasttotalc = lasttotal.
  SPLIT lasttotalc AT '.' INTO firstpart secondpart.
  lasttotal = firstpart / 100.
  CALL FUNCTION 'SPELL_AMOUNT'
    EXPORTING
      amount    = lasttotal
      currency  = ''"CURRENCY
      filler    = space
      language  = 'A'
    IMPORTING
      in_words  = amountspell
    EXCEPTIONS
      not_found = 1
      too_large = 2
      OTHERS    = 3.
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
--split amount--
BREAK radha.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
  EXPORTING
    formname                 = 'Z_INVOICE_PARTS2'
VARIANT                  = ' '
DIRECT_CALL              = ' '
   IMPORTING
     fm_name                  = g_fm_name
   EXCEPTIONS
     no_form                  = 1
     no_function_module       = 2
     OTHERS                   = 3
  IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.
  DATA : control_parameters    TYPE  ssfctrlop,
         print_options         TYPE  ssfcompop.
  DATA : document_output_info  TYPE  ssfcrespd,
         job_output_info       TYPE  ssfcrescl,
         job_output_options    TYPE  ssfcresop.
  DATA : count TYPE i.
  control_parameters-langu = 'AR'.
  control_parameters-no_dialog = 'X'."Don't show Dialog
print_options-tdarmod = '1'.
print_options-tdcopies = '001'.
print_options-tddest = 'LP02'.
print_options-tdprinter = 'ZARSWIN'.
   print_options-tdimmed = 'X'.
print_options-tddelete = 'X'.
print_options-tdlifetime = '8'.
   print_options-tddest = 'LP03'."nast-ldest.
  "print_options-tddest = nast-ldest.
  "print_options-tdcopies = pv_copies.
print_options-tddelete = 'X'.
  print_options-tdfinal = 'X'.
print_options-tdnewid = 'X'.
WHILE count ne 1.
   IF job_output_info-outputdone ne 'X'.
     CALL FUNCTION g_fm_name
      EXPORTING
    ARCHIVE_INDEX             =
    ARCHIVE_INDEX_TAB         =
    ARCHIVE_PARAMETERS        =
       control_parameters       = control_parameters
    MAIL_APPL_OBJ             =
    MAIL_RECIPIENT            =
    MAIL_SENDER               =
        output_options          = print_options
        user_settings           = space
        header                  = itab
        amountspell             = amountspell
        currtxt                 = currtxet
        secondpart              = secondpart
     wa_footer                = w_footer
   IMPORTING
     DOCUMENT_OUTPUT_INFO       = document_output_info
     JOB_OUTPUT_INFO            = job_output_info
     JOB_OUTPUT_OPTIONS         = job_output_options
      TABLES
        it_items                = t_items
        it_footer               = it_footer
   EXCEPTIONS
     formatting_error           = 1
     internal_error             = 2
     send_error                 = 3
     user_canceled              = 4
     OTHERS                     = 5
    IF sy-subrc <> 0.
  MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
          WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
ENDFORM.                    "ENTRY

Hi,
lw_control_param-device = 'PRINTER'.
lw_control_param-getotf = c_x.
lw_control_param-no_dialog = c_x.
lw_composer_param-tdnoprev = c_x.
<b>*lw_composer_param-tddest = 'LONSC0P310'.</b>
<b>lw_composer_param-tddest = 'XXXX'.</b> <b>"Four digits</b>
<i>lw_composer_param-tdnewid = c_x.
lw_composer_param-tdfinal = c_x.</i> --> Not required
In place of 'XXXX', replace it by a 4 digit value. It would be available in transaction SPAD->Output Devices->Double click your output device. On the right hand side there would be a field Short Name. Replace 'XXXX' with that value.
Best regards,
Prashant

Similar Messages

  • How to print smartform from a report

    Im displaying a report, which contains several documents, whereby which ewch document is connected to a smartform.
    The page displaying the report contains a button 'Print'
    When clicking on the Print button, all the documents in the report should be printed.
    But my program is creating a spool file of the report, which will be printed further - its not what I want
    I want the program to print the smartforms of each documents on the report directly.
    heres my code and I dont know what I should do to be able to print the smartforms directly
    Get the function module name of the smartform.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname = '/EU000/FI_PRINT_DEBIT_NOTE'
          IMPORTING
            fm_name  = g_fm_name.
    gw_options-tdnoprev = ' '.
    gw_options-tddest = 'LOCL'.
    gw_options-tdprinter = 'LOCL'.
    gw_options-tdnewid = 'X'.
    gw_options-tdimmed = 'X'.
    gw_control-preview = ' '.
    gw_control-no_dialog = 'X'.
    write: text-006,' ', text-007, ' ', text-008.
    write:/.
    For all the documents
        LOOP AT gi_all_data INTO gw_all_data.
          write: gw_all_data-gjahr(4), ' ',gw_all_data-belnr,'     ', gw_all_data-belnr.
          write:/.
    CASE SY-UCOMM.
    WHEN 'PRINT'.
    Call the smarform
          CALL FUNCTION g_fm_name
            EXPORTING
              gw_all_data = gw_all_data
              user_settings = ' '
              output_options = gw_options
              control_parameters = gw_control.
    WHEN 'BACK'.
    LEAVE SCREEN.
    ENDCASE.

    DATA:   x_control_parameters TYPE ssfctrlop,
            x_output_options TYPE ssfcompop.
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: p_prin LIKE usr01-spld.
    SELECTION-SCREEN BEGIN OF LINE.
    INITIALIZATION.
      SELECT  spld
              FROM usr01
              INTO p_prin UP TO 1 ROWS
              WHERE bname = sy-uname.
      ENDSELECT.
    START-OF-SELECTION.
      x_output_options-tdimmed = c_x.
      x_output_options-tddest = p_prin.
      x_output_options-tdnewid = c_x.
      x_output_options-tdreceiver = sy-uname.
      x_output_options-tdcopies = '001'.
      x_control_parameters-device = 'PRINTER'.
      x_control_parameters-no_dialog = c_x.
      x_control_parameters-langu = sy-langu.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
       EXPORTING
         formname                 = 'Z_SMARTFORM'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
      IMPORTING
        fm_name                  = f_name1
      EXCEPTIONS
        no_form                  = 1
        no_function_module       = 2
        OTHERS                   = 3
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    IF P_PRI = 'X'.
      CALL FUNCTION F_NAME1
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
       CONTROL_PARAMETERS          = X_CONTROL_PARAMETERS
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
       OUTPUT_OPTIONS              = X_OUTPUT_OPTIONS
      USER_SETTINGS              = 'X'
          wa_header                  = wa_zmexh51
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          tab_item                   = TAB_ZMEXD51
          tab_item1                  = TAB_ZMEXS51
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ELSEIF P_PRE = 'X'.
      CALL FUNCTION F_NAME1
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      CONTROL_PARAMETERS          = X_CONTROL_PARAMETERS
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS              = X_OUTPUT_OPTIONS
      USER_SETTINGS              = 'X'
          wa_header                  = wa_zmexh51
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          tab_item                   = TAB_ZMEXD51
          tab_item1                  = TAB_ZMEXS51
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    ENDIF.
    Check the above code its just similar requirement  it may helpful to you.
    Thanks,
    Phani.

  • I am unable to print articles from magazines from Google Books - the background prints, but not the article

    When I try to print from "File", then "Print" only the background "stuff" prints, not the article I am trying to print from Popular Mechanics in Google books. Sometime in the past I had a program (I think it was Mozilla Firefox) which allowed me to take a "screen shot" of the entire screen, edit out the unwanted graphics, zoom in or out and then print only the edited version on a full page format. I've changed computers, and am still setting the new one up to my preferences. Can you help me print articles from Popular Mechanics on Google books?

    See this: <br />
    http://kb.mozillazine.org/Problems_printing_web_pages
    Chances are you have one of two problems; either a non-standard "Media Type" is selected or your page margins are messed up. If the Media Type is correct, try doing the '''reset''' mentioned on that support page.

  • Unable to print directly from vf03 txn after converting  smartform into PDF

    Dear All,
    I have converted ond smartform into pdf.now when i am trying to print one document using vf03 transaction whatever button i click(ex-print preview/print) it is asking to save the pdf as local file. but i want to print that document as pdf directly from vf03 without saving it into local file.
    I am giving you the code below:-
    (all modification done by me are in BOLD)
         Print of a invoice by SAPscript SMART FORMS               *
    REPORT zrlb_invoice5.
    declaration of data
    INCLUDE zrlb_invoice_data_declare5.
    *INCLUDE ZRLB_INVOICE_DATA_DECLARE.
    *INCLUDE rlb_invoice_data_declare.
    definition of forms
    INCLUDE zrlb_invoice_form015.
    *INCLUDE ZRLB_INVOICE_FORM01.
    *INCLUDE rlb_invoice_form01.
    INCLUDE zrlb_print_forms5.
    *INCLUDE ZRLB_PRINT_FORMS.
    *INCLUDE rlb_print_forms.
    START-OF-SELECTION.
          FORM ENTRY
    FORM entry USING return_code us_screen.
      DATA: lf_retcode TYPE sy-subrc.
      CLEAR retcode.
      xscreen = us_screen.
      PERFORM processing USING us_screen
                         CHANGING lf_retcode.
      IF lf_retcode NE 0.
        return_code = 1.
      ELSE.
        return_code = 0.
      ENDIF.
    ENDFORM.                    "ENTRY
          FORM PROCESSING                                               *
    FORM processing USING proc_screen
                    CHANGING cf_retcode.
      DATA: lv_medium LIKE tnapr-nacha.
      DATA: lwa_print_data_to_read TYPE lbbil_print_data_to_read.
      DATA: lwa_bil_invoice TYPE lbbil_invoice.
      DATA: lf_fm_name            TYPE rs38l_fnam.
      DATA: lwa_control_param      TYPE ssfctrlop.
      DATA: lwa_composer_param     TYPE ssfcompop.
      DATA: lwa_recipient          TYPE swotobjid.
      DATA: lwa_sender             TYPE swotobjid.
      DATA: lf_formname           TYPE tdsfname.
      DATA: lwa_addr_key           LIKE addr_key.
      DATA: ls_dlv-land           LIKE vbrk-land1.
      DATA:lv_job_output_info      TYPE ssfcrescl,
             lv_document_output_info TYPE ssfcrespd,
             lv_job_output_options   TYPE ssfcresop,
             lv_bin_filesize          TYPE i,
             gt_docs  TYPE STANDARD TABLE OF docs,
             gt_lines TYPE STANDARD TABLE OF tline,
             gt_otf TYPE TABLE OF itcoo, " OTF Structure
             lv_name                  TYPE string VALUE 'INVOICE',
             lv_guiobj                TYPE REF TO cl_gui_frontend_services,
             lv_path                  TYPE string  VALUE 'D:\',
             lv_fullpath              TYPE string VALUE 'D:\INVOICE',
             lv_filter                TYPE string,
             lv_uact                  TYPE i,
             lv_filename              TYPE string,
    ++lv_fm_name               TYPE rs38l_fnam.         +*****************************************
    SmartForm from customizing table TNAPR
      lf_formname = tnapr-sform.
      lv_medium = tnapr-nacha.
    determine print data
      PERFORM set_print_data_to_read USING    lf_formname
                                     CHANGING lwa_print_data_to_read
                                     cf_retcode.
      IF cf_retcode EQ 0.
    select print data
        PERFORM get_data USING    lwa_print_data_to_read
                         CHANGING lwa_addr_key
                                  ls_dlv-land
                                  lwa_bil_invoice
                                  cf_retcode.
      ENDIF.
      IF cf_retcode EQ 0.
        PERFORM set_print_param USING    lwa_addr_key
                                         ls_dlv-land
                                CHANGING lwa_control_param
                                         lwa_composer_param
                                         lwa_recipient
                                         lwa_sender
                                         cf_retcode.
      ENDIF.
      IF cf_retcode EQ 0.
    determine smartform function module for invoice
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
             EXPORTING  formname           = lf_formname
                    variant            = ' '
                    direct_call        = ' '
             IMPORTING  fm_name            = lf_fm_name
             EXCEPTIONS no_form            = 1
                        no_function_module = 2
                        OTHERS             = 3.
        IF sy-subrc NE 0.
      error handling
          cf_retcode = sy-subrc.
          PERFORM protocol_update.
        ENDIF.
      ENDIF.
      IF cf_retcode EQ 0.
        PERFORM check_repeat.
        IF lwa_composer_param-tdcopies EQ 0.
          nast_anzal = 1.
        ELSE.
          nast_anzal = lwa_composer_param-tdcopies.
        ENDIF.
        lwa_composer_param-tdcopies = 1.
        DO nast_anzal TIMES.
    In case of repetition only one time archiving
          IF sy-index GT 1 AND nast-tdarmod EQ 3.
            nast_tdarmod = nast-tdarmod.
            nast-tdarmod = 1.
            lwa_composer_param-tdarmod = 1.
          ENDIF.
          IF sy-index NE 1 AND repeat IS INITIAL.
            repeat = 'X'.
          ENDIF.
    call smartform invoice
         CALL FUNCTION lf_fm_name
              EXPORTING
                         archive_index        = toa_dara
                         archive_parameters   = arc_params
                         control_parameters   = ls_control_param
                    mail_appl_obj        =
                         mail_recipient       = ls_recipient
                         mail_sender          = ls_sender
                         output_options       = ls_composer_param
                         user_settings        = space
                         is_bil_invoice       = ls_bil_invoice
                         is_nast              = nast
                         is_repeat            = repeat
         importing  document_output_info =
                    job_output_info      =
                    job_output_options   =
              EXCEPTIONS formatting_error     = 1
                         internal_error       = 2
                         send_error           = 3
                         user_canceled        = 4
                         OTHERS               = 5.
          lwa_control_param-getotf = 'X'.
          lwa_control_param-no_dialog = 'X'.
          lwa_control_param-device = 'PRINTER'.
          CALL FUNCTION lf_fm_name
            EXPORTING
             archive_index              = toa_dara
    Begin of Changes 24/10/2007*
      ARCHIVE_INDEX_TAB          =*
            ARCHIVE_PARAMETERS         = arc_params*
             control_parameters         = lwa_control_param
      MAIL_APPL_OBJ              =*
            MAIL_RECIPIENT             = lwa_recipient*
            MAIL_SENDER                = lwa_sender*
    *End of changes 04/12/2007
             output_options             = lwa_composer_param
             user_settings              = 'X'
              is_bil_invoice             = lwa_bil_invoice
              is_nast                    = nast
              is_repeat                  = repeat
              iv_medium                  = lv_medium
    Begin OF Changes 04/12/2007*
    IMPORTING
       document_output_info       = lv_document_output_info
       job_output_info            = lv_job_output_info
       *job_output_options         = lv_job_output_options     *
    End Of Changes 04/12/2007*
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5.
         CALL FUNCTION lf_fm_name
           EXPORTING
            ARCHIVE_INDEX              = toa_dara
      ARCHIVE_INDEX_TAB          =
            ARCHIVE_PARAMETERS         = arc_params
            CONTROL_PARAMETERS         = lWA_control_param
      MAIL_APPL_OBJ              =
            MAIL_RECIPIENT             = lwa_recipient
            MAIL_SENDER                = lwa_sender
            OUTPUT_OPTIONS             = lwa_composer_param
            USER_SETTINGS              = space
             IS_BIL_INVOICE             = LWA_BIL_INVOICE
             IS_NAST                    = nast
             IS_REPEAT                  = repeat
             IV_MEDIUM                  = lv_medium
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
      FORMATTING_ERROR           = 1
      INTERNAL_ERROR             = 2
      SEND_ERROR                 = 3
      USER_CANCELED              = 4
      OTHERS                     = 5
          gt_otf[] = lv_job_output_info-otfdata[].
                  CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
               FORMAT                      = 'PDF'
               MAX_LINEWIDTH               = 132
            ARCHIVE_INDEX               = ' '*
            COPYNUMBER                  = 0*
            ASCII_BIDI_VIS2LOG          = ' '*
             IMPORTING
               BIN_FILESIZE                = lv_bin_filesize
            BIN_FILE                    =*
              TABLES
                otf                         = gt_otf
                lines                       = gt_lines
          EXCEPTIONS*
            ERR_MAX_LINEWIDTH           = 1*
            ERR_FORMAT                  = 2*
            ERR_CONV_NOT_POSSIBLE       = 3*
            ERR_BAD_OTF                 = 4*
            OTHERS                      = 5*
            IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
            ENDIF.
    *.......................GET THE FILE NAME TO STORE.........
            CONCATENATE 'smrt' '.pdf' INTO lv_name.
          CREATE OBJECT lv_guiobj.
          CALL METHOD lv_guiobj->file_save_dialog
            EXPORTING
              default_extension = 'pdf'
              default_file_name = lv_name
              file_filter       = lv_filter
            CHANGING
              filename          = lv_name
              path              = lv_path
              fullpath          = lv_fullpath.
       user_action       = lv_uact.*
          IF lv_uact = lv_guiobj->action_cancel.
            EXIT.
          ENDIF.*
         MOVE lv_fullpath TO lv_filename.
           CALL METHOD cl_gui_frontend_services=>gui_download
             EXPORTING
              BIN_FILESIZE              =  lv_bin_filesize
               filename                  =  lv_fullpath
               FILETYPE                  = 'BIN'
       APPEND                    = SPACE
       WRITE_FIELD_SEPARATOR     = SPACE
       HEADER                    = '00'
       TRUNC_TRAILING_BLANKS     = SPACE
       WRITE_LF                  = 'X'
       COL_SELECT                = SPACE
       COL_SELECT_MASK           = SPACE
       DAT_MODE                  = SPACE
       CONFIRM_OVERWRITE         = SPACE
       NO_AUTH_CHECK             = SPACE
       CODEPAGE                  = SPACE
       IGNORE_CERR               = ABAP_TRUE
       REPLACEMENT               = '#'
       WRITE_BOM                 = SPACE
       TRUNC_TRAILING_BLANKS_EOL = 'X'
    IMPORTING
       FILELENGTH                =
             changing
               data_tab                  =   gt_lines.
    EXCEPTIONS
       FILE_WRITE_ERROR          = 1
       NO_BATCH                  = 2
       GUI_REFUSE_FILETRANSFER   = 3
       INVALID_TYPE              = 4
       NO_AUTHORITY              = 5
       UNKNOWN_ERROR             = 6
       HEADER_NOT_ALLOWED        = 7
       SEPARATOR_NOT_ALLOWED     = 8
       FILESIZE_NOT_ALLOWED      = 9
       HEADER_TOO_LONG           = 10
       DP_ERROR_CREATE           = 11
       DP_ERROR_SEND             = 12
       DP_ERROR_WRITE            = 13
       UNKNOWN_DP_ERROR          = 14
       ACCESS_DENIED             = 15
       DP_OUT_OF_MEMORY          = 16
       DISK_FULL                 = 17
       DP_TIMEOUT                = 18
       FILE_NOT_FOUND            = 19
       DATAPROVIDER_EXCEPTION    = 20
       CONTROL_FLUSH_ERROR       = 21
       NOT_SUPPORTED_BY_GUI      = 22
       ERROR_NO_GUI              = 23
       others                    = 24
            IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO*
               WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.*
            ENDIF.
          Else.
           IF sy-subrc NE 0.*
      error handling
              cf_retcode = sy-subrc.
              PERFORM protocol_update.
    get SmartForm protocoll and store it in the NAST protocoll
              PERFORM add_smfrm_prot.
            ENDIF.
          ENDDO.
          lwa_composer_param-tdcopies = nast_anzal.
          IF NOT nast_tdarmod IS INITIAL.
            nast-tdarmod = nast_tdarmod.
            CLEAR nast_tdarmod.
          ENDIF.
        ENDIF.
    get SmartForm protocoll and store it in the NAST protocoll
    PERFORM ADD_SMFRM_PROT.
      ENDFORM.                    "PROCESSING
    kindly give me a sloution.

    Hi,
    Check for the print mode in the print options and set it as 3- print and archive .
    Regards,
    Ram

  • Printing checks from payment program F110 with smartforms

    Hi! I am working in ECC 5.0 and I want to print checks from the payment program with a smartform, I created a non standard smartform but when I try to link the smartform with the program by transaction FBZP the available options are SAPScripts only. Is possible to do it?
    Thanks in advance

    Hi! Even I am working in ECC 5.0 and I want to print checks from the payment program with a SAP SCRIPT Form, but the issue is that we hav the standard print program for printing the form and this form is being used by some other custom program....I want to customize the standard print program in the transaction F110 so that It successfully calls that form which is now called by some other program. I've the option of customizing the standard print program as per the program which is calling that Form but I'm not able to understand the flow of either of the print programs. Can anybody guide me here on how to understand the flow of the print and go for the customizing of the standard print program for the payment process?
    Also, the current print program and Form which is being used by some other custom print program is already customized in the transaction FBZP.
    Thanks in advance
    Shamim

  • Printing File from DMS in smartform from IW33

    Hi SAP Gurus,
    My requirement is as follows,
    In order(IW33)>Operations>Production Resources/ Tools, A document is maintianed. I need to print file from there in a smartform regardless of the file format.
    For this I have searched and found the following logic.
    from Tables dms_doc2loio, dms_ph_cd1 I am getting Doc details, these details are passed to the below FM,
    *This function module will give the content of the file in binary format
    CALL FUNCTION 'SDOK_PHIO_LOAD_CONTENT'
    EXPORTING
    object_id = wa_object_id
    client = sy-mandt
    AS_IS_MODE =
    RAW_MODE =
    TEXT_AS_STREAM =
    TABLES
    FILE_ACCESS_INFO =
    FILE_CONTENT_ASCII =
    file_content_binary = it_file_content_binary
    EXCEPTIONS
    not_existing = 1
    not_authorized = 2
    no_content = 3
    bad_storage_type = 4
    OTHERS = 5.
    After getting the data in binary format, how to print in smartforms, Please help..
    Regards,
    Pavan.

    I am Sorry I dont understand why you are moving the data into a binary format conversion.
    Is there any particular thing which makes you to do so? If so, Please explain.
    Instead have you try to convert them into Xstring and then into String. By doing so. If any special characters or any special symbols or anything. the system wont give any error. instead it is a easy method also.
    check out these function Modules: NLS_STRING_CONVERT_FROM_SYS
                                                           NLS_STRING_CONVERT_TO_SYS

  • How to Import customized internal table to smartform from Print Program

    Hi Gurus,
    I want to Import customized internal table to smartform from print program, Can anybody tell me how it is possible.
    With regards,
    S.Saravanan

    There is no problem passing an internal table to a smarforms, smartforms have the same interface as a function module ([Defining the Form Interface|http://help.sap.com/saphelp_nw70/helpdata/en/1c/f40c5bddf311d3b574006094192fe3/frameset.htm] in [Smart Forms|http://help.sap.com/saphelp_nw70/helpdata/en/a5/de6838abce021ae10000009b38f842/frameset.htm]) so could you elaborate a little more on your requirement (is it a standard a custom forms, etc.)
    Regards,
    Raymond

  • Printing from background jobs ....

    Hi, I have ECC 6.0 , I have a job that generate an invoice with printer inmmediality, when job run, invoice is not printed.
    I define my printer as F at SPAD transaction, I check SP01 and show me my invoice, but I need that it go to the printer directly.
    I read 128105 note and say that I can not print with Frontend printing (F) from a job, I try with I, S and U but does not work.
    Regards.

    Hi, I change to L in my printer (SPAD transaction) and when I try to print from SAP, showme following message:
          SAP spool error log
          =====================
    Print request processing log
    The host spool is reporting errors
    Message from host spool:
      Unable to initialize device
    192.168.0.85\EP
    End of message
    Command used: print /d:
    192.168.0.85\EP G:\usr\sap\DEV\DVEBMGS00\data\000000968700001.DEV
    Errors occurred processing this print request
    Error during print request output. l_rc = 1
    There may be no printout
    Most important attributes of spool request
    Request number 9687
    Request name LIST1S DM   RFITEMAP_OAL
    Client 350
    Owner OALTUVE
    Request attributes
    Time created   2007102421205500
    Remaining life  +00008000000
    Dispo 1 (Go/Hold) G
    Dispo 2 (Keep/Delete)     K
    Dispo 3 (Indirect/Direct) D
    Default output device DM
    Default no. copies  1
    Format X_65_255
    Main print request characteristics
    Spool request number 9687
    Print request number 1
    Print request attributes
    Time created   2007102421205500
    Output device DM
    Format X_65_255
    Character converter active when first problem occurred
    No information available.
    If I change to F, I can print from SAP but no from my job.
    Any comments?....
    Regards.

  • Run smartforms in background mode

    Hi
       Can anybody tell me, can we execute smartforms in background mode. Please tell me. Can we take printout from the spool.
    Smartform have driver program.
    Thanks
    Murali Papana.

    hi,
    Use
    You can not only evaluate queries online, but also print them in the background. In the Reporting Agent of the Administrator Workbench, you can define the display of the query data as the setting for background printing. You can make as many various settings as you want for printing a query in the background. The settings are then brought together in scheduling packets and scheduled for background printing.
    Prerequisites
    You have defined a query in the Business Explorer Analyzer that you now want to print in the background. You have called up the Administrator Workbench to do this.
    You can only print out queries with key figures in structures. If you have defined a query with a key figure in the filter and want to print this query, you must change the definition of the query so that the key figure is in a structure to be printed.
    You can only schedule queries with entered variables for background printing if the required variable entry/entries have been saved as query variants.
    Procedure
    Defining Reporting Agent Settings for Printing in the Background
    Choose the Reporting Agent from the Administrator Workbench.
    Navigate in the left-hand tree to the query you want, and, using the right mouse button, choose New Setting. You get to the "New Reporting Agent Setting" dialog box.
    Enter a technical name and a description.
    Choose Print in the background from the General tabstrip.
    Choose the tabstrip Print Settings from the newly added tabstrips.
    Determine the print settings that you want to make. See also: Print Settings
    Choose the Print Layout tabstrip.
    Decide how you want to set the following print areas:
    Cover sheet
    Page header
    Table header
    Table
    Page footer
    Last page
    See also:
    Defining the Print Layout
    Choose Activate.
    Creating Scheduling Packets and Assigning Reporting Agent Settings for Printing in the Background
    Once you have made the Reporting Agent setting for printing in the background, you have to assign your setting to a scheduling packet for the background run.
    Creating a scheduling packet
    Go back to the Reporting Agent Scheduler, and, in the right-hand Scheduling packets tree, choose the Change pushbutton.
    Select the Print in the background node, and choose Create new packet from the context menu (right mouse button). You get to the Create Scheduling Packet dialog box.
    Specify a name and a description, and choose Save.
    Assigning Reporting Agent Settings for Printing in the Background
    Navigate in the left-hand tree, Reporting Agent Settings, to the Reporting Agent setting you want to use for printing in the background.
    Using drag-and-drop, drag the Reporting Agent setting that you want to use into the right-hand tree, and assign it to the corresponding scheduling packet.
    If the Reporting Agent setting refers to a query with variables, then you need to assign a variant:
    Select the Reporting Agent setting.
    Using the right mouse button, choose Assign variants from the context menu. A dialog box containing the variants for this query appears.
    Choose the variant you want to use.
    Choose Continue.
    You have the option of maintaining variants in the Reporting Agent (in both the left and right-hand trees).
    Select the Reporting Agent setting you want to use.
    Choose Maintain variants from the context menu (right mouse button).
    Note that you always assign Reporting Agent settings for printing in the background to a corresponding scheduling packet for printing in the background.
    To avoid confusion with Reporting Agent settings for exception reporting, you are able to filter according to these two functions in the left-hand menu. The symbols for Exception and Print, in the left-hand tree, also identify the settings.
    Scheduling a Packet as a Job
    In the right-hand tree, select the scheduling packet you want to use.
    Using the right mouse-button, choose Schedule from the context menu. You get to the Change Job RA (name of the scheduling packet) dialog box.
    The name of the job is made up of RA for Reporting Agent, and the name of the scheduling packet.
    Specify the start date and the repetition period for the job.
    See also:
    Scheduling Background Jobs in the documentation for the BC Computing Center Management System.
    If you want to check the status of the scheduled background job, choose the Jobs pushbutton above the right-hand tree in the Reporting Agent Scheduler.
    Hope this helps, Do reward.

  • How to get the PO no in the smart form and in the print program from ME23N

    hello all,
                     I am new to smart form printing.I want to make a smartform along with print program that will show PO Details.It has to be created as an o/p type in ME23N. I have created an o/p type ZPO using NACE ..Can some one tell me how to get the PO number in the smart form and in the print program  from ME23N ,so that I can then program the necessary calculations?plz help me with the code.Thanks in advance.
    Subhabrata.

    Hello Everyone,
    I am new to the forum and also to abap.
    Excuse me if it is a basic question.
    I am taking care of the output types.
    This is 1st time SAP will be implemented .
    For purchase order , I go to NACE ---EF----NEU---Processing routines
    print output---SAPFM06P---ENTRY_NEU----MEDRUCK
    FAX-----------SAPFM06P---ENTRY_NEU----MEDRUCK
    EDI------------RANASTED--EDI_PROCESSING
    DISTRIBUTION(ALE)---RANASTED---ALE_PROCESSING
    Are the above settings fine ?
    What are the standard programs for the PO outputs . I am looking for the smartforms and the driver program .
    I searched and found that IN ECC 6 , we have to install OSS notes .
    Gurus, please help  me . Let me know what all oss notes be implemented and how to proceed from here .
    Any help will be greatly appreciated ,
    Monalisa

  • Error while printing smartforms

    Hi Friends,
      I am getting error "<b>Invalid value for parameter ARCHDEST</b>" while printing smartforms. This is happening only in IDES server. In Development the same smartform is working normally. I have checked in transaction SU53, to see whether all the authorisations have been given for IDES server. There is no problem in authorisation also. So what might be the reason for this. Please give me the solution to solve this problem.
    Thanks & Regards,
    Ranjith

    Hi Beginner,
    In the layout you have taken window or layout taken the big width in that case only you will get this type error syntatically it shows correct when you exicute the smart from try to give the print or see the print preview you will get this error (suggestion is better to check the window sizes)
    Thanks
    Ashok

  • How do I setup my printer to print the colored background white and the text black on PP slides?

    I have an Officejet Pro L7680. I am attempting to print PowerPoint slide that have a blue background and white text with a white background and black text. I've made changes within PowerPoint and made adjustment when printing and neither helps. I still end up with printed slides having a black background with white text? Thank you!
    Lamona1955

    Hi,
    Follow these steps to disable two sided printing:
    Open the file you would like to print. From the File menu select Print. The Print window appears.
    NOTE: The Print window might be minimized. Click the Show Details button to see all available settings.
    Click the settings drop down, it will usually appear as the name of the program (e.g. TextEdit)
    Will appear as Copies & Pages within Microsoft Office applications.
    Select Layout from the drop-down menu.
    Set the Two-Sided option as Off.
    You may save the settings as a preset by clicking Presets > Save Current Settings as Preset...
    By doing so and completing the print job these settings will remain default till another preset will be used in the future.
    Regards,
    Shlomi
    Say thanks by clicking the Kudos thumb up in the post.
    If my post resolve your problem please mark it as an Accepted Solution

  • AI images not printing correctly from InDesign

    (Reposting from Color Management Forum)
    First off, please forgive me if this is  not the right forum or if I am not using the right terms.  I am the network admin for our company and I'm posting this on behalf of our designer.
    We recently added PostScript drivers to our Sharp printers, and we have been seeing odd printing results when printing embedded .AI files.
    We use CreativeSuite CS5, and our developer has hundreds of images with pure white and transparent backgrounds stored in .AI format.  When these images are embedded/linked to an Indesign document they print with a solid black background and what appears to be an inverted color pattern, almost like a photo negative.
    All embedded EPS images print fine.  The affected .AI files print fine when printed directly from Illustrator.
    The embedded images print fine using a PCL driver.  We are trying to implement the Postscript driver for better color quality.
    Any ideas?
    (We are using Windows XP SP3, x86
    Server based network printing on Windows 2003 x86)
    Thanks in advance
    Matt

    Unfortunately, no we are still dealing with it.  Like you, I have found very little on this anywhere else.
    Sharp has been very helpful, trying to see if it is something in the PS drivers, but to no avail.  I'm pretty confident that there is nothing wrong with the PS drivers since everything else prints just fine.
    So far, our designer is either converting images to EPS documents or converting the InDesign file to PDF before printing.  Frustrating and time consuming are an understatement, but it is getting the job done.
    If you do find something, please post back here! I'll do the same.
    Matt

  • PDFs printing with black background and white text.

    For some reason some of our PDF's have been printing with black backgrounds and white text, even though they appear to be normal on the screen before they are printed. I haven't been able to confirm 100% yet but it appears to only be happening with pdfs that were created from scanned documents.
    Can somebody please offer me some suggestions.

    Absolutely agree with the original poster.  I find white text on black background so very very difficult (I changed from using Tweetbot on iOS to Tweetlogix for this very reason) and it physically hurts my eyes to try to read it.  I can just about manage with Spotify using white text on a black background on the large screen of my MacBook Pro - and I do mean "just" - but for the smaller screen of my iPhone 5 it is just impossible.  Even with a retina screen such as that on the iPhone 5S there is a strange ghosting effect and it gives me a headache to look at it for too long. 
    This may be something to do with age!  I suspect most app developers are youngsters with almost perfect eyesight, but for those of us whose eyesight is less than perfect, this white text on black background really is so very difficult.
    I know there is a workaround in setting the iPhone to invert ALL colours (under Accessibility in Settings) but it's a real pain to have to keep altering this setting every time I want to open or close Spotify, and it doesn't look right anyway.  iOS7 is supposed to be a light, bright, easy to read OS - sadly this new Spotify app is the opposite of that.
    Please would Spotify consider adding a simple light or dark theme option, so that those of us who want it can have our much easier to read light background back again, with grey or black text?  It would be a great help to those of us who have eyesight problems.
    If not, I may have to cancel my Spotify Premium account and move to Deezer instead, as I mainly use Spotify when out and about in the car, so am using the iOS app a lot.
    Thank you for considering this plea!
     

  • Calling Smartforms from Module pool: Most Urgent

    Hi, Exeperts
    how can I call smartforms from module pool.
    I have done like below.
    First Created a push button on screen and used
    these code in user command through PAI
    FORM CALL_SMARTFORMS .
    DATA: V_FORM_NAME TYPE RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = 'ZSMART'
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2
        OTHERS             = 3.
    ENDFORM.                    " CALL_SMARTFORMS
    now I am getting form name in v_form_name, but it is not executing.
    Please help me out.
    Regards
    Rajiv singh.

    Well, as it's most urgent....
    One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
    Eg.
    DATA: DEVICE TYPE SSFCTRLOP .
    DEVICE-DEVICE = 'PRINTER'.
    DEVICE-NO_DIALOG = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
       CONTROL_PARAMETERS         = device
       USER_SETTINGS              = 'X'
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5.
    Regards,
    Nick

Maybe you are looking for

  • Problem in printing not from locl

    the user want to print not in his defulat printer  "locl", the basis create for him printer name "kuku" based/copy on "LOCL"  , when the user try to send the print through this new printer nothing happend  , so : 1) is the right solution for it is co

  • ITunes filling in artist field in bizarre way

    Hi all, I've found that when I'm typing a track's info in the "Get Info" screen, it uses a really strange way of guessing what I'm typing. For example, if I have a track whose artist name I want to change to Ottmar Liebert, as I start typing it will

  • Play count is out of wack!?

    Ive been noticing lately that my play count on some songs are way too high, so i listened to a song on my ipod touch 1st gen and then went into its library via iTunes and it sayed 720 play count, but before sayed 325, i have no clue what is going on!

  • How to create an xml sitemap

    I was asked to create a sitemap for one site and I had to do it the hard way. I had to upload the site, went to an online xml sitemap generator, generate the xml file and upload it. But I was wondering whether DW has an option to generate an xml site

  • Does anyone know how to set a timed schedule for a workflow?

    I'm looking to have a workflow run automatically everyday at the same time. Help anyone?