How to convert spool object to XLS file in background job? (please..urgent)

Hello all.
My requirment is to convert a spool object to an XLS file in the background (and send it via mail).
Is it possible?
If so, please help!
please attach a code sample if you have one...
Thanks allot.
Barak.

hi ,
this might healp you ought
TABLES: TBTCP, T024D.
*PARAMETERS TEST(5).
DATA: TJOBNAME LIKE TBTCP-JOBNAME VALUE 'REJ_COMP_MAIL_TO_MRP',
      SPOOLID LIKE TSP01-RQIDENT,
     V_LGORT LIKE MSEG-LGORT,
      V_DISPO LIKE T024D-DISPO,
      V_REPORT TYPE RSVAR-REPORT,
      V_VARIANT TYPE RSVAR-VARIANT.
DATA: BEGIN OF VVALUES OCCURS 0.
        INCLUDE STRUCTURE RSPARAMS.
DATA END OF VVALUES.
DATA : BEGIN OF T_RECEIVERS OCCURS 0.
        INCLUDE STRUCTURE SOMLRECI1.
DATA END OF T_RECEIVERS.
DATA: BEGIN OF T_TBTCP,
     jobname like tbtcp-jobname,
     jobcount like tbtcp-jobcount,
      LISTIDENT LIKE TBTCP-LISTIDENT,
      SDLDATE LIKE TBTCP-SDLDATE,
      SDLTIME LIKE TBTCP-SDLTIME,
      VARIANT LIKE TBTCP-VARIANT,
      END OF T_TBTCP,
      ITAB_SPOOL LIKE STANDARD TABLE OF T_TBTCP,
      WA_SPOOL LIKE T_TBTCP.
DATA: PLIST LIKE SOPCKLSTI1 OCCURS 2 WITH HEADER LINE.
DATA: DOCUMENT_DATA LIKE SODOCCHGI1.
DATA: OBJTXT LIKE SOLISTI1 OCCURS 10 WITH HEADER LINE.
DATA: SO_ALI LIKE SOLI OCCURS 100 WITH HEADER LINE,
      REAL_TYPE LIKE SOODK-OBJTP,
      SP_LANG LIKE TST01-DLANG, LINE_SIZE TYPE I VALUE 255,
      V_NAME LIKE SOEXTRECI1-RECEIVER.
DATA: GD_EVENTID LIKE TBTCM-EVENTID,
      GD_EVENTPARM LIKE TBTCM-EVENTPARM,
      GD_EXTERNAL_PROGRAM_ACTIVE LIKE TBTCM-XPGACTIVE,
      GD_JOBCOUNT LIKE TBTCM-JOBCOUNT,
      GD_JOBNAME LIKE TBTCM-JOBNAME,
      GD_STEPCOUNT LIKE TBTCM-STEPCOUNT,
      GD_ERROR    TYPE SY-SUBRC,
      GD_RECIEVER TYPE SY-SUBRC.
START-OF-SELECTION.
  PERFORM GET_SPOOL_REQNUMBER USING TJOBNAME. " CHANGING SPOOLID.
  PERFORM SEND_MAIL.
PERFORM REMOVE_BLANK_SPOOLS.
*&      Form  GET_SPOOL_REQNUMBER
      text
     -->P_0111   text                                                *
     <--P_UU  text                                                   *
FORM GET_SPOOL_REQNUMBER USING P_0111.
  SELECT ALISTIDENT BSTRTDATE BSTRTTIME AVARIANT
   FROM TBTCP AS A INNER JOIN TBTCO AS B
        ON AJOBNAME EQ BJOBNAME AND
           AJOBCOUNT EQ BJOBCOUNT AND
           ASTEPCOUNT EQ BSTEPCOUNT
   INTO TABLE ITAB_SPOOL
      WHERE AJOBNAME = P_0111 AND BSTRTDATE EQ SY-DATUM.
ENDFORM.                    " GET_SPOOL_REQNUMBER
*&      Form  send_mail
      text
-->  p1        text
<--  p2        text
FORM SEND_MAIL .
Get the spool data.
  LOOP AT ITAB_SPOOL INTO WA_SPOOL.
    REFRESH : SO_ALI, PLIST, T_RECEIVERS.
    CLEAR : SO_ALI, PLIST, V_NAME, DOCUMENT_DATA, T_RECEIVERS, SPOOLID,
            V_REPORT, V_VARIANT, V_DISPO.
    IF WA_SPOOL-LISTIDENT <> '0'.
      MOVE WA_SPOOL-LISTIDENT TO SPOOLID.
      CALL FUNCTION 'RSPO_RETURN_SPOOLJOB'
        EXPORTING
          RQIDENT              = SPOOLID
          FIRST_LINE           = 1
          LAST_LINE            = 0
          DESIRED_TYPE         = ' '
        IMPORTING
          REAL_TYPE            = REAL_TYPE
          SP_LANG              = SP_LANG
        TABLES
          BUFFER               = SO_ALI
        EXCEPTIONS
          NO_SUCH_JOB          = 1
          JOB_CONTAINS_NO_DATA = 2
          SELECTION_EMPTY      = 3
          NO_PERMISSION        = 4
          CAN_NOT_ACCESS       = 5
          READ_ERROR           = 6
          TYPE_NO_MATCH        = 7
          OTHERS               = 8.
Check the return code.
      IF SY-SUBRC <> 0.
        MESSAGE S208(00) WITH 'Error'.
        LEAVE LIST-PROCESSING.
      ENDIF.
DATA : DATE LIKE SY-DATUM,
       DATE1(10) TYPE C.
Prepare the data.
CLEAR OBJTXT.
REFRESH OBJTXT.
DATE = SY-DATUM - 1.
CONCATENATE DATE6(2) '-' DATE4(2) '-' DATE+0(4) INTO DATE1.
CONCATENATE 'PLEASE CHECK THE LIST OF REJECTED MATERIALS POSTED ON :' DATE1 INTO OBJTXT.
APPEND OBJTXT.
SELECT SINGLE DSNAM FROM T024D INTO T024D-DSNAM WHERE WERKS = '1000' AND DISPO = WA_SPOOL-VARIANT.
CONCATENATE 'MRP CONTROLLER :' WA_SPOOL-VARIANT '-' T024D-DSNAM INTO OBJTXT.
APPEND OBJTXT.
OBJTXT = ''.
APPEND OBJTXT.
CLEAR PLIST.
REFRESH PLIST.
PLIST-TRANSF_BIN = SPACE.
PLIST-HEAD_START = 1.
PLIST-HEAD_NUM = 0.
PLIST-BODY_START = 1.
DESCRIBE TABLE OBJTXT LINES PLIST-BODY_NUM.
PLIST-DOC_TYPE = 'RAW'.
APPEND PLIST.
CLEAR PLIST.
     PLIST-TRANSF_BIN = 'X'.
     PLIST-HEAD_START = 0.
     PLIST-HEAD_NUM = 0.
     PLIST-BODY_START = 0.
     PLIST-BODY_NUM = 0.
     PLIST-DOC_TYPE = 'RAW'.
      PLIST-OBJ_DESCR = WA_SPOOL-VARIANT.
     APPEND PLIST.
      PLIST-TRANSF_BIN = 'X'.
      PLIST-HEAD_START = 0.
      PLIST-HEAD_NUM = 0.
      PLIST-BODY_START = 1.
      DESCRIBE TABLE SO_ALI LINES PLIST-BODY_NUM.
      PLIST-DOC_TYPE = REAL_TYPE.
Get the size.
      READ TABLE SO_ALI INDEX PLIST-BODY_NUM.
      PLIST-DOC_SIZE = ( PLIST-BODY_NUM - 1 ) * LINE_SIZE + STRLEN( SO_ALI ).
      APPEND PLIST.
***get the values of the variant
      MOVE : WA_SPOOL-VARIANT TO V_VARIANT.
      SELECT * FROM TBTCP WHERE JOBNAME EQ TJOBNAME ORDER BY SDLDATE.
        MOVE TBTCP-PROGNAME TO V_REPORT.
      ENDSELECT.
      CALL FUNCTION 'RS_VARIANT_VALUES_TECH_DATA'
        EXPORTING
          REPORT                     = V_REPORT
          VARIANT                    = V_VARIANT
        SEL_TEXT                   = ' '
        MOVE_OR_WRITE              = 'W'
        SORTED                     = ' '
        EXECUTE_DIRECT             =
      IMPORTING
        TECHN_DATA                 =
        TABLES
          VARIANT_VALUES             = VVALUES
       EXCEPTIONS
         VARIANT_NON_EXISTENT       = 1
         VARIANT_OBSOLETE           = 2
         OTHERS                     = 3.
      LOOP AT VVALUES.
        CASE VVALUES-SELNAME.
          WHEN 'S_DISPO'.
           MOVE VVALUES-LOW TO V_LGORT.
            MOVE VVALUES-LOW TO V_DISPO.
        ENDCASE.
      ENDLOOP.
      SELECT SINGLE USRKEY FROM T024D INTO T024D-USRKEY WHERE WERKS EQ '1000' AND DISPO EQ V_DISPO.
      IF SY-SUBRC EQ 0.
        T_RECEIVERS-RECEIVER = T024D-USRKEY.
        T_RECEIVERS-REC_TYPE = 'U'.
        APPEND T_RECEIVERS.
      IF V_DISPO = '3'   OR V_DISPO = '5'   OR
         V_DISPO = '21'  OR V_DISPO = '48'  OR
         V_DISPO = '51'  OR V_DISPO = '231' OR
         V_DISPO = '512' OR V_DISPO = '921'.
        T_RECEIVERS-RECEIVER = 
        T_RECEIVERS-REC_TYPE = 'U'.
        T_RECEIVERS-COPY = 'X'.
        APPEND T_RECEIVERS.
      ENDIF.
      IF V_DISPO = '14'  OR V_DISPO = '86'  OR
         V_DISPO = '515' OR V_DISPO = '704' OR
         V_DISPO = '711' OR V_DISPO = '712' OR
         V_DISPO = '713'.
        T_RECEIVERS-RECEIVER =
        T_RECEIVERS-REC_TYPE = 'U'.
        T_RECEIVERS-COPY = 'X'.
        APPEND T_RECEIVERS.
      ENDIF.
       T_RECEIVERS-RECEIVER = *        T_RECEIVERS-REC_TYPE = 'U'.
       T_RECEIVERS-COPY = 'X'.
       APPEND T_RECEIVERS.
       T_RECEIVERS-RECEIVER = *        T_RECEIVERS-REC_TYPE = 'U'.
       T_RECEIVERS-BLIND_COPY = 'X'.
       APPEND T_RECEIVERS.
      ENDIF.
      IF NOT SP_LANG IS INITIAL.
        DOCUMENT_DATA-OBJ_LANGU = SP_LANG.
      ELSE.
        DOCUMENT_DATA-OBJ_LANGU = SY-LANGU.
      ENDIF.
      V_NAME = SY-UNAME.
Subject.
CONCATENATE 'List of Rejected Materials, MRP Controller:' WA_SPOOL-VARIANT
            INTO DOCUMENT_DATA-OBJ_DESCR.
Send the email.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          DOCUMENT_DATA              = DOCUMENT_DATA
          SENDER_ADDRESS             = V_NAME
          SENDER_ADDRESS_TYPE        = 'B'
        TABLES
          PACKING_LIST               = PLIST
          CONTENTS_BIN               = SO_ALI
          CONTENTS_TXT               = OBJTXT
          RECEIVERS                  = T_RECEIVERS
        EXCEPTIONS
          TOO_MANY_RECEIVERS         = 1
          DOCUMENT_NOT_SENT          = 2
          DOCUMENT_TYPE_NOT_EXIST    = 3
          OPERATION_NO_AUTHORIZATION = 4
          PARAMETER_ERROR            = 5
          X_ERROR                    = 6
          ENQUEUE_ERROR              = 7
          OTHERS                     = 8.
      IF SY-SUBRC <> 0.
        MESSAGE E208(00) WITH 'Error in sending email'.
      ENDIF.
      COMMIT WORK.
Send the email immediately.
      SUBMIT RSCONN01
      WITH MODE = 'INT'
      AND RETURN.
      IF SY-SUBRC EQ 0.
        WRITE 'To get the spool no'.
        CALL FUNCTION 'GET_JOB_RUNTIME_INFO'
          IMPORTING
            EVENTID                 = GD_EVENTID
            EVENTPARM               = GD_EVENTPARM
            EXTERNAL_PROGRAM_ACTIVE = GD_EXTERNAL_PROGRAM_ACTIVE
            JOBCOUNT                = GD_JOBCOUNT
            JOBNAME                 = GD_JOBNAME
            STEPCOUNT               = GD_STEPCOUNT
          EXCEPTIONS
            NO_RUNTIME_INFO         = 1
            OTHERS                  = 2.
        IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
        WRITE : / 'Spool id of the job that is sent', SPOOLID,
                 GD_EVENTID,
                 GD_EVENTPARM,
                 GD_EXTERNAL_PROGRAM_ACTIVE,
                 GD_JOBCOUNT,
                 GD_JOBNAME,
                 GD_STEPCOUNT.
      ENDIF.
    ENDIF.
  ENDLOOP.
ENDFORM.                    " send_mail
*&      Form  remove_blank_spools
      text
-->  p1        text
<--  p2        text
*FORM REMOVE_BLANK_SPOOLS .
LOOP AT ITAB_SPOOL INTO WA_SPOOL.
   MOVE WA_SPOOL-LISTIDENT TO SPOOLID.
   CALL FUNCTION 'RSPO_ISELECT_TSP01'
     EXPORTING
       RFCSYSTEM        = SY-SYSID
       RQIDENT          = SPOOLID
  FORUPDATE        = ' '
    IMPORTING
      TSP01_ELEM       = W_INFO
    EXCEPTIONS
      ERROR            = 1
      OTHERS           = 2.
   CALL FUNCTION 'RSPO_IRETURN_RAW_DATA'
     EXPORTING
       RQ                 = W_INFO
     TABLES
      LINE_BUFFER        = W_DATA
   PAGE_INDEX         = W_PAGES
      LINE_BUFFER2       =
    EXCEPTIONS
      ERROR              = 1
      OTHERS             = 2.
   IF W_INFO-RQDOCTYPE = 'LIST'.
     CALL FUNCTION 'RSPO_R_GET_TOC_SPOOLREQ'
       EXPORTING
         RQIDENT = SPOOLID
       TABLES
         TOCDESC = W_TODESC
       EXCEPTIONS
         ERROR   = 1
         OTHERS  = 2.
     CALL FUNCTION 'RSPO_SPOOLDATA_WRITE_INIT'.
     READ TABLE W_DATA WITH KEY DATA_LINE = 'List contains no data'.
     LOOP AT W_DATA.
       IF W_DATA-DATA_LINE CP 'List contains no data'.
       ENDIF.
     ENDLOOP.
   ENDIF.
ENDLOOP.
*ENDFORM.                    " remove_blank_spools

Similar Messages

  • How to find Spool number for a 2 steps background job.

    Hi All,
    How to find spool number (and also the background job name ) for a 2 steps background job.
    in the table TBTCO i can see step numbers but i dont get the spool number. Is there any link between TBTCO and TSP01.
    Also after getting the spool number i need to drill down on ALV report. I hard coded the spool number and was able to drill down using BDC and call transaction but when i press back button it is not returning to the ALV report.
    Thanks,
    Shiva.

    Which one creates the spool? (first one I guess)
    What kind of spool? (WRITE, sapscript, smartform, pdf...)
    Do you use special statements like NEW-PAGE, or other things?
    Are you sure that the spools are generated by these jobs? (did you compare the spool generation times and job run dates to be sure...)

  • How to Convert spool which is for smartform output  to PDF?

    how to Convert spool which is for smartform output  to PDF?
    CALL FUNCTION 'CONVERT_ABAPSPOOLJOB_2_PDF' is not working for smartform output,
    if i use this there will be error spool not contain list output?
    than whats the function module or way to convert spool contain smartform output to pdg?
    regards,

    <b>Procedure</b>
         When we activate the Smartform the system generates a Function Module. The function module name we can get from Smartfrom screen from menubar
    “Environment => Function Module_Name” . In a report we can get this Function module name by calling a Function Module standard SSF_FUNCTION_MODULE_NAME. This function module  at runtime calls the FM generated by smartform, which in turn is then used to pass data from the report to Smartform. In the report given below the FM generated is “ /1BCDWB/SF00000152 ”. In this FM we can see CONTROL_PARAMETERS in import tab. This is of type SSFCTRLOP. We need to set the GETOTF of this to be ‘X’. Setting this field will activate the OTF field in smartform.
    In export tab of the FM generated by smartform we can see a parameter JOB_OUTPUT_INFO which is of type SSFCRESCL. The SSFCRESCL is a structure of having one of fields as OTFDATA. OTFDATA in turn is a table of type ITCOO. ITCOO has two fields TDPRINTCOM and TDPRINTPAR. TDPRINTCOM  represents command line of OTF format data and TDPRINTPAR contains command parameters of OTF format data.
    In every Smartform output in OTF format, TDPRINTCOM begins and ends with ‘//’. ‘EP’ represents the end-of-page value for TDPRINTCOM field.
    In addition we need to set few fields at the place where we call this FM(generated by smartform) in our program. While calling this FM we should set control_parameters, output_options, user_settings and job_putput_info fields as shown in program.
    Once these settings are done we can call Function Module CONVERT_OTF to convert the OTF data of smartfrom output to PDF data format. Once these are done we can call method “cl_gui_fronted_services=>file_save_dialog” to specify the directory path where we want to save the output PDF file. After this we can call Function Module GUI_DOWNLOAD to download the PDF file on our local system.
    <b>Here is a sample code of program to perform the function.</b>
    SAMPLE CODE
    [code]*&---------------------------------------------------------------------*
    *& Report  ZAMIT_SMART_FORM_PDF                                        *
    REPORT  ZAMIT_SMART_FORM_PDF                    .
    data: carr_id type sbook-carrid,
          cparam type ssfctrlop,
          outop type ssfcompop,
          fm_name type rs38l_fnam.
    DATA: tab_otf_data TYPE ssfcrescl,
          pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,
          tab_otf_final TYPE itcoo OCCURS 0 WITH HEADER LINE,
          file_size TYPE i,
          bin_filesize TYPE i,
          FILE_NAME type string,
          File_path type string,
          FULL_PATH type string.
    parameter:      p_custid type scustom-id default 1.
    select-options: s_carrid for carr_id     default 'LH' to 'LH'.
    parameter:      p_form   type tdsfname   default 'ZAMIT_SMART_FORM'.
    data: customer    type scustom,
          bookings    type ty_bookings,
          connections type ty_connections.
    start-of-selection.
    ***************** suppressing the dialog box for print preview****************************
    outop-tddest = 'LP01'.
    cparam-no_dialog = 'X'.
    cparam-preview = SPACE.
    cparam-getotf = 'X'.
      select single * from scustom into customer where id = p_custid.
      check sy-subrc = 0.
      select * from sbook   into table bookings
               where customid = p_custid
               and   carrid in s_carrid
               order by primary key.
      select * from spfli into table connections
               for all entries in bookings
               where carrid = bookings-carrid
               and   connid = bookings-connid
               order by primary key.
      call function 'SSF_FUNCTION_MODULE_NAME'
           exporting  formname           = p_form
    *                 variant            = ' '
    *                 direct_call        = ' '
           importing  fm_name            = 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.
        exit.
      endif.
    * calling the generated function module
      call function fm_name
           exporting
    *                 archive_index        =
    *                 archive_parameters   =
                     control_parameters   = cparam
    *                 mail_appl_obj        =
    *                 mail_recipient       =
    *                 mail_sender          =
                     output_options       =  outop
                     user_settings        = SPACE
                     bookings             = bookings
                      customer             = customer
                      connections          = connections
          importing
    *                 document_output_info =
                     job_output_info      = tab_otf_data
    *                 job_output_options   =
           exceptions formatting_error     = 1
                      internal_error       = 2
                      send_error           = 3
                      user_canceled        = 4
                      others               = 5.
      if sy-subrc <> 0.
    *   error handling
        message id sy-msgid type sy-msgty number sy-msgno
                with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      endif.
      tab_otf_final[] = tab_otf_data-otfdata[].
      CALL FUNCTION 'CONVERT_OTF'
    EXPORTING
       format                      = 'PDF'
       max_linewidth               = 132
    *   ARCHIVE_INDEX               = ' '
    *   COPYNUMBER                  = 0
    *   ASCII_BIDI_VIS2LOG          = ' '
    IMPORTING
       bin_filesize                = bin_filesize
    *   BIN_FILE                    =
      TABLES
        otf                         = tab_otf_final
        lines                       = pdf_tab
    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.
    CALL METHOD cl_gui_frontend_services=>file_save_dialog
    *  EXPORTING
    *    WINDOW_TITLE         =
    *    DEFAULT_EXTENSION    =
    *    DEFAULT_FILE_NAME    =
    *    FILE_FILTER          =
    *    INITIAL_DIRECTORY    =
    *    WITH_ENCODING        =
    *    PROMPT_ON_OVERWRITE  = 'X'
      CHANGING
        filename             = FILE_NAME
        path                 = FILE_PATH
        fullpath             = FULL_PATH
    *    USER_ACTION          =
    *    FILE_ENCODING        =
    *  EXCEPTIONS
    *    CNTL_ERROR           = 1
    *    ERROR_NO_GUI         = 2
    *    NOT_SUPPORTED_BY_GUI = 3
    *    others               = 4
    IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *************downloading the converted PDF data to your local PC********
    CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
       bin_filesize                    = bin_filesize
       filename                        = FULL_PATH
       filetype                        = 'BIN'
    *   APPEND                          = ' '
    *   WRITE_FIELD_SEPARATOR           = ' '
    *   HEADER                          = '00'
    *   TRUNC_TRAILING_BLANKS           = ' '
    *   WRITE_LF                        = 'X'
    *   COL_SELECT                      = ' '
    *   COL_SELECT_MASK                 = ' '
    *   DAT_MODE                        = ' '
    *   CONFIRM_OVERWRITE               = ' '
    *   NO_AUTH_CHECK                   = ' '
    *   CODEPAGE                        = ' '
    *   IGNORE_CERR                     = ABAP_TRUE
    *   REPLACEMENT                     = '#'
    *   WRITE_BOM                       = ' '
    *   TRUNC_TRAILING_BLANKS_EOL       = 'X'
    IMPORTING
       filelength                      = file_size
      TABLES
        data_tab                        = pdf_tab
    *   FIELDNAMES                      =
    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
       OTHERS                          = 22
    IF sy-subrc <> 0.
    ENDIF.
    [/code]
    Thanks and Regards,
    Pavankumar

  • I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    I know that how to convert any documents to pdf file, but don't know how to get barcode on it. I am using windows 8.1. and want to see barcode on my documents before the print. Please help.

    Hi Frank ,
    Please refer to the following link and see if this helps.
    https://helpx.adobe.com/acrobat/kb/error-organizer-database-damaged-reset-1.html
    Regards
    Sukrit Dhingra

  • How to get Header in Downloaded .xls file using  GUI_Download function

    How to get Header in Downloaded .xls file using  GUI_Download function ???
    How to use the the Header parameter available in GUI_Download function .

    HI,
    see this sample code..
    data : Begin of t_header occurs 0,
           name(30) type c,
           end of t_header.
    data : Begin of itab occurs 0,
           fld1 type char10,
           fld2 type char10,
           fld3 type char10,
           end   of itab.
    DATA: v_pass_path TYPE string.
    append itab.
    itab-fld1 = 'Hi'.
    itab-fld2 = 'hello'.
    itab-fld3 = 'welcome'.
    append itab.
    append itab.
    append itab.
    append itab.
    append itab.
    t_header-name = 'Field1'.
    append t_header.
    t_header-name = 'Field2'.
    append t_header.
    t_header-name = 'Field3'.
    append t_header.
      CALL FUNCTION 'GUI_FILE_SAVE_DIALOG'
        EXPORTING
          default_extension     = 'XLS'
        IMPORTING
          fullpath              = v_pass_path.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                        = v_pass_path
          filetype                        = 'DBF'
        TABLES
          data_tab                        = itab
          FIELDNAMES                      = t_header
    Cheers,
    jose.

  • How to convert spool request to pdf format (to send mail) - SAP 3.1H

    Hi,
       I am working in 3.1H version. How to convert spool request into pdf cormat to send a mail?. Spool request is in TEXT format.
    regards,
    sundaram J.

    Hi sundaram,
    1. I suppose u know how to send
        mail with attachment.
    2. If that is the case,
       then no need to do anything.
    3. Bcos
       There is setting in SCOT,
       for INTERNET
       ABAP List ---> PDF
       Raw TEXT  -
    PDF
      (Your basis team will help u)
    4.  text data will get automatically converted
       to pdf and get mailed.
    regards,
    amit m.

  • How to convert database table into xml file

    Hi.
    How to convert database table into XML file in Oracle HTML DB.
    Please let me know.
    Thanks.

    This not really a specific APEX question... but I search the database forum and found this thread which I think will help
    Exporting Oracle table to XML
    If it does not I suggest looking at the database forum or have a look at this document on using the XML toolkit
    http://download-east.oracle.com/docs/html/B12146_01/c_xml.htm
    Hope this helps
    Chris

  • Anyone know how to convert a 3D sphere .STL file into a .igs file?

    Anyone know how to convert a 3D sphere .STL file into a .igs file?

    And for what? Why? This would be kinda atrocious and awful, but weird things happen...
    Mylenium

  • How to convert matchcode objects to searchhelps.

    Hi,
    I had created search helps before but,
    We have a project in which we have matchcode objects. The client wants us to create
    searchhelps for those matchcode objects with the same name
    I am not getting how to convert matchcode objects to searchhelps.
    Regards,
    sarath.

    pick the object name and hit them in se11 search help row... that is a search help...
    parameter: p type x-x matchcode object <object_name>

  • How to convert Java Objects into xml?

    Hello Java Gurus
    how to convert Java Objects into xml? i heard xstream can be use for that but i am looking something which is good in performance.
    really need your help guys.
    thanks in advance.

    There are apparently a variety of Java/XML bindings. Try Google.
    And don't be so demanding.

  • Is it possible to save a report to a file in background job?

    Hi,
    I want to save a report as a file every day, is it possible to do it by background job?
    Thanks.

    thanks all of you,
    I don't went to save the file manually.
    I only want to a function just like archiving function which can save file in background job.
    I can develop a program to save a report as file in background job,but I have to develop a program for every report,I want to know is there any standard function for it, just like throwing  the report to spool.

  • Ctrl-c in bash kill openbox started from rc file as background job

    Hi,
    Ctrl-c in bash kill openbox started from rc file as background job.
    strange, isn't it ?

    I want to have openbox in the job list of a bash. as if my xinitrc was "exec xterm" and I manualy enter the "openbox &" commande in the xterm window. I suppose this is a common wish : telling bash to read from file then from keyboard, but that not exactly what bashrc do.
    "ps j" for openbox started in bashrc
    PPID   PID     PGID  SID   TTY       TPGID STAT UID    TIME COMMAND
    1769  1773  1773   845 pts/0     1752 S     1000   0:00 xterm -e bash  --rcfile ~/bin/xsession.sh
           1  1780  1773   845 pts/0     1752 S     1000   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
    1773  1783  1783  1783 pts/2     1805 Ss    1000   0:00 bash --rcfile ~/bin/xsession.sh
    1783  1795  1783  1783 pts/2     1805 S     1000   0:00 /usr/bin/openbox --startup /usr/lib/openbox/openbox-autostart OPENBOX
    1783  1805  1805  1783 pts/2     1805 R+    1000   0:00 ps j
    "ps j" for openbox started by keyboard or PROMPT_COMMAND
    1718  1722  1722   845 pts/0     1701 S     1000   0:00 xterm -title Login -e bash  --rcfile ~/bin/xsession.sh
           1  1729  1722   845 pts/0     1701 S     1000   0:00 /usr/bin/dbus-launch --sh-syntax --exit-with-session
    1722  1732  1732  1732 pts/2     1747 Ss    1000   0:00 bash --rcfile ~/bin/xsession.sh
    1732  1744  1744  1732 pts/2     1747 S     1000   0:00 openbox
    1732  1747  1747  1732 pts/2     1747 R+    1000   0:00 ps j
    ps have PGID equal to the bash TPGID, so it is foreground. openbox from PROMPT_COMMAND have his own PGID, so it is background. openbox from bashrc share PGID wish bash ... so if bash do not consume Ctrl-c signal openbox receive it ? I assume it is some things like this, but why ? INVOCATION and JOB CONTROL sections in bash manpage do not seems describe this, so that's a strange behaviour.

  • Update table form local file as background Job

    Hi Expert,
         I have a requirement to update a database table through Text file in a background. I am trying to do through OPEN Database to upload the file to Application server and then triggerind a event for background job. please provide method to update the table in background job.
    Regards,
    Kapil.

    hi,
    if i have understood you can try this:
    1) create a custom event with transaction SM62.
    2) schedule the update job ( with the update program in its step )  trigging the event set in (1) .
    3) execute the program that upload the local file from presentation server to application server  .  The last istruction of this program has to be the call ot the custom event using BP_event raise fn module in the uplaoad is ok..
    4) if the event has been raised, the background job has been executed.
    Regards, luigi.

  • How to capture the date and time of  a background job

    Hi experts,
    How to capture the date and time of  a background job?
    How to find whether it is runned succesfully or not?
    If it is not successful how to put error message?
    ASAP
    Thanx in advance,
    Sudha

    To Display the STATUS of the JOB which is exectued in background
      CLEAR : wa_jobsteplist.
      REFRESH : i_jobsteplist.
      WRITE:/ 'DISPLAYING JOB STATUS'.
      CALL FUNCTION 'BP_JOB_READ'
        EXPORTING
          job_read_jobcount           = w_jobcount
          job_read_jobname            = w_jobname
          job_read_opcode             = '20'
        JOB_STEP_NUMBER             =
       IMPORTING
         job_read_jobhead            = wa_jobhead
       TABLES
         job_read_steplist           = i_jobsteplist
    CHANGING
       RET                         =
       EXCEPTIONS
         invalid_opcode              = 1
         job_doesnt_exist            = 2
         job_doesnt_have_steps       = 3
         OTHERS                      = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    To Display the status text as per the status type
      CASE wa_jobhead-status.
        WHEN 'S'. WRITE: / 'Scheduled'.
        WHEN 'R'. WRITE: / 'Released'.
        WHEN 'F'. WRITE: / 'Completed'.
        WHEN 'A'. WRITE: / 'Cancelled'.
        WHEN OTHERS.
      ENDCASE.

  • How do  I add an attachment (xls file in my case) to the pdf

    Hello,
    I need to add a excel file as attachment in the generated PDF form.
    Someone could tell me if this is possible and how to do it?
    Thanks for the help

    Hi,
    I did little research and found that we can attach any attachment to Interactive form.
    1.Get the XLS attachment(You can add File Upload UI Element(Say XLS) to your Application  and Bind  data,filename and mime Type  Properties)   with this , user can choose the XLS file to be attached from Desk top.
    2. In the Interactive UI Element,bind the property "pdfsource" (Say PDF_SOURCE), this will  contains the PDF in xstring format.
    3. Add a button (Say Attach XLS) on the application and add an Action Method.(Say ADD)
    4.in the Action Method(ADD) of the Button, follow the Steps.
        1. Get the File(XLS File) Uploaded,Mimi Type  from File Uploade UI Element(Say lv_xls_data,lv_mimetype,lv_file_name)
         2. get the pdf source( PDF_SOURCE) from Interactive form.(Say lv_pdf_source)
         use the Following Code
    DATA: l_fp           TYPE REF TO if_fp,
            l_pdfobj       TYPE REF TO if_fp_pdf_object,
            l_pdf          TYPE xstring,
            l_att          TYPE xstring,
            l_fpex         TYPE REF TO cx_fp_runtime,
            l_type         TYPE string,
            l_errmsg       TYPE string,
            l_short        TYPE sdba_actid,
            l_ext          TYPE sdba_funct,
            l_filename     TYPE skwf_filnm,
            l_mimetype     TYPE skwf_mime,
            l_attachment   TYPE sfpattachments,
            l_attachments  TYPE tfpattachments,
            l_len          TYPE i,
            l_tab          TYPE tsfixml,
            p_dest         TYPE rfcdest .
      MOVE cl_fp=>get_ads_connection( ) TO p_dest.
      l_mimetype   = lv_mimetype.
    * Get FP reference.
      l_fp = cl_fp=>get_reference( ).
      TRY.
    *     Create PDF Object.
          l_pdfobj = l_fp->create_pdf_object( connection = p_dest ).
    *     Set document.
          l_pdfobj->set_document( pdfdata = lv_pdf_source ).
           l_attachment-FILENAME = lv_file_name."Name of the Attached File.
          l_attachment-mimetype    = lv_mimetype.
          l_attachment-description = 'XLS_Attachment'.   
         l_attachment-data        = lv_xls_data."XLS File to Be attached .
          INSERT l_attachment INTO TABLE l_attachments.
          l_pdfobj->set_attachments( attachments = l_attachments ).
    *     Execute, call ADS.
          l_pdfobj->execute( ).
    *     Get result.
          l_pdfobj->get_document( IMPORTING pdfdata = l_pdf ).
        CATCH cx_fp_runtime_internal INTO l_fpex.           "#EC NO_HANDLER
        CATCH cx_fp_runtime_system INTO l_fpex.             "#EC NO_HANDLER
        CATCH cx_fp_runtime_usage INTO l_fpex.              "#EC NO_HANDLER
      ENDTRY.
    Finally "l_pdf" contains the PDF with Attached XLS and you can send this as PDF Document.
    Thanks.
    Uma

Maybe you are looking for

  • I down loaded fcp x 10.2 and my playhead doesn't work, any ideas

    I down loaded fcp x 10.2 and my playhead doesn't work, any ideas

  • Corrupt block diagram

    Hi all, I have a VI which is able to open and I can even start the front panel, but when trying to open the block diagram, the screens stays white and Labview crashes. Is anybody able to open the block diagram of this file? Thank you in advance> Gree

  • SHDB Issue with FS00 recording

    Hi.... i have created Recording for FS00 Tcode through SHDB .. then create an ABAP program in which i have access data from text file success fully but i m unable to upload data .. kindly help regarding this issue. Regards Ammad Edited by: Thomas Zlo

  • Adding date picker to jsp

    Hi , Please help Is there a sample code available for including date picker control in jsp page and retrieving the selected values onto a text field. Regards,

  • Regarding 1Z0-114 certification

    This is regarding 1Z0-114 certification. Is this reinstatement still on process ? Can I register for this exam,Just wondering if there is any changes in exam registration process, please let me know.. http://education.oracle.com/pls/web_prod-plq-dad/