E-mailing Job Spool via ABAP - extra confirm message???

Hello,
I have coded ABAP program that creates background job with spool recipients. The spool is than sent over internet to specified address. What I also get another confirmation e-mail that the spool to sent, and I am not sure how to get rid of it. 
Would anybody know how to do it?
Thanks,
Alex
Below is my code:
data: JOB_NAME         LIKE TBTCO-JOBNAME,
        JOB_NR           LIKE TBTCO-JOBCOUNT,
        PARAMS           LIKE PRI_PARAMS,
        VALID            TYPE C,
        JOB_RELEASED     TYPE C,
        u_email          like adr6-smtp_addr.
  DATA RECIPIENT TYPE SWC_OBJECT.
  DATA RECIPIENT_OBJ LIKE SWOTOBJID.
  SWC_CONTAINER CONTAINER.
  clear u_email.
  SELECT SINGLE adr6~smtp_addr INTO u_email FROM adr6
      INNER JOIN usr21
      ON usr21persnumber = adr6persnumber
      AND usr21addrnumber = adr6addrnumber
      WHERE usr21~bname = sy-uname.
Generate an object reference to a recipient object
  SWC_CREATE_OBJECT RECIPIENT 'RECIPIENT' SPACE.
Write the import parameters for method
recipient.createaddress into the container
and empty the container
  SWC_CLEAR_CONTAINER CONTAINER.
Set address element (internal user 'JSMITH')
  SWC_SET_ELEMENT CONTAINER 'AddressString' u_email.
Set address type (external address)
  SWC_SET_ELEMENT CONTAINER 'TypeId' 'U'.
Call the method recipient.createaddress
  SWC_CALL_METHOD RECIPIENT 'CreateAddress' CONTAINER.
Issue any error message generated by a method exception
  IF SY-SUBRC NE 0.
    WRITE:/ 'ERROR: Address can not be created'.
    EXIT.
  ENDIF.
  SWC_CALL_METHOD RECIPIENT 'Save' CONTAINER.
  SWC_OBJECT_TO_PERSISTENT RECIPIENT RECIPIENT_OBJ.
Recipient has been generated and is ready for use in a
background job
  JOB_NAME  = 'Z10_TEST123'.
*open the background job and get a job number
  CALL FUNCTION 'JOB_OPEN'
    EXPORTING
      JOBNAME          = JOB_NAME
    IMPORTING
      JOBCOUNT         = JOB_NR
    EXCEPTIONS
      CANT_CREATE_JOB  = 1
      INVALID_JOB_DATA = 2
      JOBNAME_MISSING  = 3
      OTHERS           = 4.
  IF SY-SUBRC NE 0.
    WRITE:/ 'ERROR: Background job can not be created'.
    EXIT.
  ELSE.
*submit job with all the selection screen params...
    SUBMIT Z_TEST_SPOOL
          WITH SALENUM = SALENUM
          WITH sp_eml  = ' '
          USER SY-UNAME
          VIA JOB JOB_NAME NUMBER JOB_NR
          TO SAP-SPOOL
          WITHOUT SPOOL DYNPRO
          AND RETURN.
    IF SY-SUBRC NE 0.
      WRITE:/ 'ERROR: Background job can not be submited'.
      exit.
    ENDIF.
    CALL FUNCTION 'JOB_CLOSE'
      EXPORTING
        JOBCOUNT             = JOB_NR
        JOBNAME              = JOB_NAME
        STRTIMMED            = 'X'    " start immediatly
        RECIPIENT_OBJ        = RECIPIENT_OBJ
      IMPORTING
        JOB_WAS_RELEASED     = JOB_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
        OTHERS               = 8.
    IF SYST-SUBRC <> 0.
      WRITE:/ 'ERROR: Background job can not be closed'.
      exit.
    ENDIF.
  ENDIF.

Try adding
  swc_clear_container container.     
  swc_set_element container
                  'Deliver'
                  space.
  swc_call_method recipient  
                  'SetDeliver'
                  container.
above SWC_CALL_METHOD RECIPIENT 'Save' CONTAINER in ur code.
<b>Correction:</b> Mentioned wrong method in the above code, Please change 'Deliver' and 'SetDeliver' with 'StatusInfoByMail' and 'SetStatusInfoByMail' respectively.
Regards
Sridhar
Message was edited by: Sridhar K

Similar Messages

  • Sending a mail without spool in abap

    hi all,
    how to send a mail without going to spool request?
    please tell me any function modules to get the functionality?
    thanks in advance.

    Please try out this code. Here we send the pdf that we have converted from smartform. If this is not your case please inform me. But the logic is permanent - simply pass the string which holds the pdf data.
    *some data
    *please check which You need there is some thing that is not *usefull
    data lv_string type string.
    data main_text      type bcsy_text.
    data binary_content type solix_tab.
    data size           type so_obj_len.
    * event handler for data retrieval
    data: l_devtype              type rspoptype,
          l_function_module_name type rs38l_fnam.
    data: ls_output_options     type ssfcompop,
          ls_control_parameters type ssfctrlop.
    data: ls_output_data type ssfcrescl.
    * generated result: HTML with embedded CSS
    data: ls_xmloutput type ssfxmlout,
          lt_html_raw  type tsfixml.
    data: l_xstring    type xstring,    "needed for HTTP response
          l_xlength    type i,
          l_html_xstring   type xstring.
    data: l_pdf_xstring  type xstring,
          lt_lines       type table of tline,
          ls_line        type tline,
          l_pdf_len      type i.
    data:
          solix TYPE solix,
          soli type soli.
    DATA  send_request       TYPE REF TO cl_bcs.
    DATA  text               TYPE bcsy_text.
    DATA  document           TYPE REF TO cl_document_bcs.
    DATA  recipient          TYPE REF TO if_recipient_bcs.
    DATA  sent_to_all        TYPE os_boolean.
    DATA  pdf_content        TYPE solix_tab.
    DATA  lp_pdf_size        TYPE so_obj_len.
    *here we make the smartform and convert it to pdf
        ls_control_parameters-no_dialog = 'X'.
        ls_control_parameters-getotf    = 'X'.
        CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
          EXPORTING
            i_language                   = sy-langu
    *       i_application                = 'SAPDEFAULT'
          IMPORTING
            e_devtype                    = l_devtype
          EXCEPTIONS
            no_language                  = 1
            language_not_installed       = 2
            no_devtype_found             = 3
            system_error                 = 4
            others                       = 5.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid type sy-msgty number sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        ls_output_options-tdprinter = l_devtype.
        CALL FUNCTION l_function_module_name
             EXPORTING
    *                 archive_index        =
    *                 archive_parameters   =
                      control_parameters   = ls_control_parameters
    *                  mail_appl_obj        = APPL_OBJECT_ID
    *                  mail_recipient       = RECIPIENT_ID
    *                  mail_sender          = SENDER_ID
                      output_options       = ls_output_options
                      user_settings        = space
                      iv_werks              = i_werks
                      iv_datum              = i_date
             IMPORTING
    *                 document_output_info =
                        job_output_info      = ls_output_data
    *                 job_output_options   =
             TABLES
                        im_matnr          = application->IT_MATERIAL
             EXCEPTIONS
                        formatting_error     = 1
                        internal_error       = 2
                        send_error           = 3
                        user_canceled        = 4
                        others               = 5.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid type sy-msgty number sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        CALL FUNCTION 'CONVERT_OTF'
             EXPORTING
               format                      = 'PDF'
    *            MAX_LINEWIDTH               = 132
    *            ARCHIVE_INDEX               = ' '
    *            COPYNUMBER                  = 0
             IMPORTING
               bin_filesize                = l_pdf_len
               bin_file                    = l_pdf_xstring       " binary file
             TABLES
               otf                         = ls_output_data-otfdata
               lines                       = lt_lines
             EXCEPTIONS
               err_max_linewidth           = 1
               err_format                  = 2
               err_conv_not_possible       = 3
               err_bad_otf                 = 4
               others                      = 5.
        IF sy-subrc NE 0.
          MESSAGE ID sy-msgid type sy-msgty number sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
    *and here we mail it
          send_request = cl_bcs=>create_persistent( ).
          lp_pdf_size = XSTRLEN( l_pdf_xstring ).
          pdf_content = cl_document_bcs=>xstring_to_solix( ip_xstring = l_pdf_xstring ).
          document = cl_document_bcs=>create_document( i_type    = 'PDF'
                                                       i_hex     = pdf_content
                                                       i_length  = lp_pdf_size
                                                       i_subject = 'Test Message' ).
          send_request->set_document( document ).
          recipient = cl_cam_address_bcs=>create_internet_address(
                  i_address_string = 'YOUR-EMAIL-HERE' ).
          send_request->add_recipient( i_recipient = recipient ).
          sent_to_all = send_request->send( i_with_error_screen = 'X' ).
          COMMIT WORK.

  • External Mail's Sending Via Abap Code

    <u>Hello, everyone.</u>
    I have a problem with an external mail's sending, I have to solve it very quickly.
    I'm tring to send mail to a specific address with an attachment but it doesn't work.
    Does any one has some source code that works (with file attached) ?
    Thanks in advance,
    Rebeka

    Hi rebeka,
    1. There is some trick involved
    in the binary files.
    2. I have made a program (and it works fantastic)
    ONLY 6 LINES FOR EMAILING
    BELIEVE ME
    ITS A FANTASTIC PROGRAM.
    IT WILL WORK LIKE OUTLOOK EXPRESS !
    3. The user is provided with
    a) file name
    b) email address to send mail
    and it sends ANY FILE (.xls,.pdf .xyz..)
    Instantaneously !
    4. Make two things first :
    1. Include with the name : ZAMI_INCLFOR_MAIL
    2. Report with the name : ZAM_TEMP147 (any name will do)
    3. Activate both and execute (2)
    4. After providing filename, email adress
    5. Code for Include :
    10.08.2005 Amit M - Created
    Include For Mail (First Req F16)
    Modification Log
    Data
    DATA: docdata LIKE sodocchgi1,
    objpack LIKE sopcklsti1 OCCURS 1 WITH HEADER LINE,
    objhead LIKE solisti1 OCCURS 1 WITH HEADER LINE,
    objtxt LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objbin LIKE solisti1 OCCURS 10 WITH HEADER LINE,
    objhex LIKE solix OCCURS 10 WITH HEADER LINE,
    reclist LIKE somlreci1 OCCURS 1 WITH HEADER LINE.
    DATA: tab_lines TYPE i,
    doc_size TYPE i,
    att_type LIKE soodk-objtp.
    DATA: listobject LIKE abaplist OCCURS 1 WITH HEADER LINE.
    FORM
    FORM ml_customize USING objname objdesc.
    Clear Variables
    CLEAR docdata.
    REFRESH objpack.
    CLEAR objpack.
    REFRESH objhead.
    REFRESH objtxt.
    CLEAR objtxt.
    REFRESH objbin.
    CLEAR objbin.
    REFRESH objhex.
    CLEAR objhex.
    REFRESH reclist.
    CLEAR reclist.
    REFRESH listobject.
    CLEAR listobject.
    CLEAR tab_lines.
    CLEAR doc_size.
    CLEAR att_type.
    Set Variables
    docdata-obj_name = objname.
    docdata-obj_descr = objdesc.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addrecp USING preceiver prec_type.
    CLEAR reclist.
    reclist-receiver = preceiver.
    reclist-rec_type = prec_type.
    APPEND reclist.
    ENDFORM. "ml_customize
    FORM
    FORM ml_addtxt USING ptxt.
    CLEAR objtxt.
    objtxt = ptxt.
    APPEND objtxt.
    ENDFORM. "ml_customize
    FORM
    FORM ml_prepare USING bypassmemory whatatt_type whatname.
    IF bypassmemory = ''.
    Fetch List From Memory
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = listobject
    EXCEPTIONS
    OTHERS = 1.
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'LIST_FROM_MEMORY'.
    ENDIF.
    CALL FUNCTION 'TABLE_COMPRESS'
    IMPORTING
    COMPRESSED_SIZE =
    TABLES
    in = listobject
    out = objbin
    EXCEPTIONS
    OTHERS = 1
    IF sy-subrc <> 0.
    MESSAGE ID '61' TYPE 'E' NUMBER '731'
    WITH 'TABLE_COMPRESS'.
    ENDIF.
    ENDIF.
    Header Data
    Already Done Thru FM
    Main Text
    Already Done Thru FM
    Packing Info For Text Data
    DESCRIBE TABLE objtxt LINES tab_lines.
    READ TABLE objtxt INDEX tab_lines.
    docdata-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objtxt ).
    CLEAR objpack-transf_bin.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = 'TXT'.
    APPEND objpack.
    Packing Info Attachment
    att_type = whatatt_type..
    DESCRIBE TABLE objbin LINES tab_lines.
    READ TABLE objbin INDEX tab_lines.
    objpack-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( objbin ).
    objpack-transf_bin = 'X'.
    objpack-head_start = 1.
    objpack-head_num = 0.
    objpack-body_start = 1.
    objpack-body_num = tab_lines.
    objpack-doc_type = att_type.
    objpack-obj_name = 'ATTACHMENT'.
    objpack-obj_descr = whatname.
    APPEND objpack.
    Receiver List
    Already done thru fm
    ENDFORM. "ml_prepare
    FORM
    FORM ml_dosend.
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = docdata
    put_in_outbox = 'X'
    commit_work = 'X' "used from rel. 6.10
    IMPORTING
    SENT_TO_ALL =
    NEW_OBJECT_ID =
    TABLES
    packing_list = objpack
    object_header = objhead
    contents_bin = objbin
    contents_txt = objtxt
    CONTENTS_HEX = objhex
    OBJECT_PARA =
    object_parb =
    receivers = reclist
    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 ID 'SO' TYPE 'S' NUMBER '023'
    WITH docdata-obj_name.
    ENDIF.
    ENDFORM. "ml_customize
    FORM
    FORM ml_spooltopdf USING whatspoolid.
    DATA : pdf LIKE tline OCCURS 0 WITH HEADER LINE.
    Call Function
    CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
    EXPORTING
    src_spoolid = whatspoolid
    TABLES
    pdf = pdf
    EXCEPTIONS
    err_no_otf_spooljob = 1
    OTHERS = 12.
    Convert
    PERFORM doconv TABLES pdf objbin.
    ENDFORM. "ml_spooltopdf
    FORM
    FORM doconv TABLES
    mypdf STRUCTURE tline
    outbin STRUCTURE solisti1.
    Data
    DATA : pos TYPE i.
    DATA : len TYPE i.
    Loop And Put Data
    LOOP AT mypdf.
    pos = 255 - len.
    IF pos > 134. "length of pdf_table
    pos = 134.
    ENDIF.
    outbin+len = mypdf(pos).
    len = len + pos.
    IF len = 255. "length of out (contents_bin)
    APPEND outbin.
    CLEAR: outbin, len.
    IF pos < 134.
    outbin = mypdf+pos.
    len = 134 - pos.
    ENDIF.
    ENDIF.
    ENDLOOP.
    IF len > 0.
    APPEND outbin.
    ENDIF.
    ENDFORM. "doconv
    CODE FOR PROGRAM
    5.
    REPORT zam_temp147 .
    INCLUDE zami_inclfor_mail.
    DATA
    DATA : itab LIKE tline OCCURS 0 WITH HEADER LINE.
    DATA : file_name TYPE string.
    data : path like PCFILE-PATH.
    data : extension(5) type c.
    data : name(100) type c.
    SELECTION SCREEN
    PARAMETERS : receiver TYPE somlreci1-receiver lower case.
    PARAMETERS : p_file LIKE rlgrap-filename
    OBLIGATORY.
    AT SELECTION SCREEN
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
    CLEAR p_file.
    CALL FUNCTION 'F4_FILENAME'
    IMPORTING
    file_name = p_file.
    START-OF-SELECTION
    START-OF-SELECTION.
    PERFORM ml_customize USING 'Tst' 'Testing'.
    PERFORM ml_addrecp USING receiver 'U'.
    PERFORM upl.
    PERFORM doconv TABLES itab objbin.
    PERFORM ml_prepare USING 'X' extension name.
    PERFORM ml_dosend.
    SUBMIT rsconn01
    WITH mode EQ 'INT'
    AND RETURN.
    FORM
    FORM upl.
    file_name = p_file.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    filename = file_name
    filetype = 'BIN'
    TABLES
    data_tab = itab
    EXCEPTIONS
    file_open_error = 1
    file_read_error = 2
    no_batch = 3
    gui_refuse_filetransfer = 4
    invalid_type = 5
    no_authority = 6
    unknown_error = 7
    bad_data_format = 8
    header_not_allowed = 9
    separator_not_allowed = 10
    header_too_long = 11
    unknown_dp_error = 12
    access_denied = 13
    dp_out_of_memory = 14
    disk_full = 15
    dp_timeout = 16
    OTHERS = 17.
    path = file_name.
    CALL FUNCTION 'PC_SPLIT_COMPLETE_FILENAME'
    EXPORTING
    complete_filename = path
    CHECK_DOS_FORMAT =
    IMPORTING
    DRIVE =
    EXTENSION = extension
    NAME = name
    NAME_WITH_EXT =
    PATH =
    EXCEPTIONS
    INVALID_DRIVE = 1
    INVALID_EXTENSION = 2
    INVALID_NAME = 3
    INVALID_PATH = 4
    OTHERS = 5
    ENDFORM. "upl
    regards,
    amit m.

  • Send a mail via ABAP program

    Hello Experts,
    I want to send mail via ABAP program with the following requirements :
    1. Recipient is OUTLOOK email -id
    2. Sender address has to be an external email-id
    3. Send mail as CC and BCC also to other email-id.
    Is there any function module which can satisfy all the above requirements.
    Regards,
    Mansi.

    hi,
    this code will definately help you just go through it:
    firstly  exported the data to memory using the FM LIST_FROM_MEMORY.
    CALL FUNCTION 'LIST_FROM_MEMORY'
    TABLES
    listobject = t_listobject
    EXCEPTIONS
    not_found = 1
    OTHERS = 2.
    IF sy-subrc 0.
    MESSAGE e000(su) WITH text-001.
    ENDIF.
    then i converted it into ASCII using LIST_TO_ASCI,
    CALL FUNCTION 'LIST_TO_ASCI'
    TABLES
    listasci = t_xlstab
    listobject = t_listobject
    EXCEPTIONS
    empty_list = 1
    list_index_invalid = 2
    OTHERS = 3.
    IF sy-subrc NE 0.
    MESSAGE e003(yuksdbfzs).
    ENDIF.
    This gives the data in ASCII format separated by '|' and the header has '-', dashes. If you use this internal table directly without any proccesing in SO_NEW_DOCUMENT_ATT_SEND_API1, then you will not get a good excel sheet attachment. To overcome this limitation, i used cl_abap_char_utilities=>newline and cl_abap_char_utilities=>horizontal_tab to add horizontal and vertical tabs to the internal table, replacing all occurences of '|' with
    cl_abap_char_utilities=>horizontal_tab.
    Set the doc_type as 'XLS', create the body and header using the packing_list and pass the data to be downloaded to SO_NEW_DOCUMENT_ATT_SEND_API1 as contents_bin.
    This will create an excel attachment.
    Sample code for formatting the data for the attachment in excel format.
    u2022     Format the data for excel file download
    LOOP AT t_xlstab INTO wa_xlstab .
    DESCRIBE TABLE t_xlstab LINES lw_cnt.
    CLEAR lw_sytabix.
    lw_sytabix = sy-tabix.
    u2022     If not new line then replace '|' by tabs
    IF NOT wa_xlstab EQ cl_abap_char_utilities=>newline.
    REPLACE ALL OCCURRENCES OF '|' IN wa_xlstab
    WITH cl_abap_char_utilities=>horizontal_tab.
    MODIFY t_xlstab FROM wa_xlstab .
    CLEAR wa_xlstab.
    wa_xlstab = cl_abap_char_utilities=>newline.
    IF lw_cnt NE 0 .
    lw_sytabix = lw_sytabix + 1.
    u2022     Insert new line for the excel data
    INSERT wa_xlstab INTO t_xlstab INDEX lw_sytabix.
    lw_cnt = lw_cnt - 1.
    ENDIF.
    CLEAR wa_xlstab.
    ENDIF.
    ENDLOOP.
    Sample code for creating attachment and sending mail:
    FORM send_mail .
    u2022     Define the attachment format
    lw_doc_type = 'XLS'.
    u2022     Create the document which is to be sent
    lwa_doc_chng-obj_name = 'List'.
    lwa_doc_chng-obj_descr = w_subject. "Subject
    lwa_doc_chng-obj_langu = sy-langu.
    u2022     Fill the document data and get size of message
    LOOP AT t_message.
    lt_objtxt = t_message-line.
    APPEND lt_objtxt.
    ENDLOOP.
    DESCRIBE TABLE lt_objtxt LINES lw_tab_lines.
    IF lw_tab_lines GT 0.
    READ TABLE lt_objtxt INDEX lw_tab_lines.
    lwa_doc_chng-doc_size = ( lw_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
    lwa_doc_chng-obj_langu = sy-langu.
    lwa_doc_chng-sensitivty = 'F'.
    ELSE.
    lwa_doc_chng-doc_size = 0.
    ENDIF.
    u2022     Fill Packing List For the body of e-mail
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = 'RAW'.
    APPEND lt_packing_list.
    u2022     Create the attachment (the list itself)
    DESCRIBE TABLE t_xlstab LINES lw_tab_lines.
    u2022     Fill the fields of the packing_list for creating the attachment:
    lt_packing_list-transf_bin = 'X'.
    lt_packing_list-head_start = 1.
    lt_packing_list-head_num = 0.
    lt_packing_list-body_start = 1.
    lt_packing_list-body_num = lw_tab_lines.
    lt_packing_list-doc_type = lw_doc_type.
    lt_packing_list-obj_name = 'Attach'.
    lt_packing_list-obj_descr = w_docdesc.
    lt_packing_list-doc_size = lw_tab_lines * 255.
    APPEND lt_packing_list.
    u2022     Fill the mail recipient list
    lt_reclist-rec_type = 'U'.
    LOOP AT t_recipient_list.
    lt_reclist-receiver = t_recipient_list-address.
    APPEND lt_reclist.
    ENDLOOP.
    u2022     Finally send E-Mail
    CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    EXPORTING
    document_data = lwa_doc_chng
    put_in_outbox = 'X'
    commit_work = 'X'
    IMPORTING
    sent_to_all = lw_sent_to_all
    TABLES
    packing_list = lt_packing_list
    object_header = lt_objhead
    contents_bin = t_xlstab
    contents_txt = lt_objtxt
    receivers = lt_reclist
    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.
    Hope it will help you
    regards
    Rahul sharma

  • Envio de e-mail B2B via Abap - erro na visualização do XML

    Boa tarde,
    Em virtude da minha versão (GRC 10.0 e NW 7.11), apenas poderia implementar a solução de B2B dinâmico, caso utilizasse Java Mapping. Como meu conhecimento em Java é pequeno, optei por enviar o e-mail a partir do Abap do GRC.
    O XML que estou gerando está com erro na tag <ns1:Transforms>. As tags acima desta estão ok.
    Comparei com o XML original e os códigos-fontes são EXATAMENTE iguais.
    O erro é "Página XML não pode ser exibida". Na instrução, aparece a seguinte informação: "Não é possível exibir a entrada XML usando a folha de estilos XSL".
    Alguém pode me ajudar?
    Se julgarem que, apesar de meu processo ser de NFe, preciso abrir a thread em outro tópico, basta avisar.
    Obrigado.
    Abraços,
    Flavio.
    Edited by: fgalmeida on Oct 6, 2011 7:09 PM

    Resolvido.
    Olhando o fonte do XML, verifiquei que ao final do arquivo haviam espaços em branco.
    A solução foi passar o tamanho do xstring no parâmetro i_attachment_size do método add_attachment da função cl_document_bcs, conforme abaixo:
    DATA lv_size TYPE so_obj_len.
      lv_size = xstrlen( lv_content_xml ) .
      CALL METHOD document->add_attachment
        EXPORTING
         i_attachment_size    = lv_size
          i_attachment_type    = 'xml'
          i_attachment_subject = 'XML NFe'
          i_att_content_hex    = lt_content_hex.
    Obrigado.
    Flavio.

  • Mail for Exchange (N9): Need to confirm my own app...

    Hi all,
    I'm new both to my N9 and to this forum, so forgive me if I ask stupid questions...
    I've linked my N9 to my Exchange account via Mail for Exchange. My appointments sync, but when I open an appointment I'm prompted to confirm or deny the appointment as if someone had sent me an appointment request. But these are my own appointments from my own Exchange account - why would I need to confirm them?
    Can I somehow set MfE to accept all appointments from this account?
    While we're at it: How can I stop birthdays moving around by one or two days?
    Many thanks!
    N.

    I set it up on my N9 the same way as I did on my N900 and it will not connect. I'm using Exchange server 2010 by the way.
    I have exactly the same problem. I had a working integration with N900 and our Exchange 2010. There were a few tweaks I needed to do (including rooting the phone to get to modify hosts-file to include non-fqdn alias for our mail server and installing two extra certificates for getting the phone to accept our self-signed server cert. All this works like a champ on N900 and I've gotten pretty far with N9, too: I can now access our Mail for Exchange server (with the N9 web browser,  with HTTPS) using the "non-qualified" domain name and there are no complaints about the self-signed certs, either. So, basically the communication channel should be fine. This was much easier on N9 as you do not have to "root" the phone to get root access, it is available directly from the developer mode.
    But what happens is exactly the same as you're seeing: MfE gets no connection with the Exchange server even though everything should be ok. There is, in fact, nothing in the Exchange server logs to help me any further. My collegue suspected that the mail client might need a "deeper" URL to the MfE server (URL pointing further than the root of the server) but MfE client does not accept anything else than the server address (and this was all that was needed for N900).
    This really is a kind of showstopper as the MfE is the most important productivity tool for me. I have no reason to believe MfE would not work in some other combo, but seems like I am getting nowhere here.

  • Problem sending xls file in an attachment via ABAP proxy

    Hello,
    I have in tmp directory a xls file, I tranfer such file to a table, and afterwards I send in an attachment via ABAP proxy, here is the code:
         l_attachment        TYPE REF TO if_ai_attachment,
            lt_attach           TYPE prx_attach,
            l_name              TYPE string,
            lx_string           TYPE xstring,
            l_string            TYPE string,
            l_type              TYPE string,
            des                 TYPE string.
      CLASS cl_ai_factory DEFINITION LOAD.
      DATA:    BEGIN OF itab OCCURS 0,
               raw(255) TYPE x,
             END OF itab.
      DATA: l_controller TYPE REF TO if_ai_posting_controller.
      DATA: it TYPE zhcm_mt_segur_out.
      CREATE OBJECT prxy.
      OPEN DATASET orig FOR INPUT IN binary MODE.
      READ DATASET orig INTO itab-raw.
      WHILE sy-subrc = 0.
        APPEND itab.
        READ DATASET orig INTO itab-raw.
      ENDWHILE.
      CLOSE DATASET orig.
      LOOP AT itab.
        CONCATENATE lx_string itab-raw INTO lx_string in byte mode.
      ENDLOOP.
      L_NAME = 'Segur.xls'.
      L_TYPE = CL_AI_ATTACHMENT=>IF_AI_ATTACHMENT~C_MIMETYPE_EXCEL.
      TRY.
          L_ATTACHMENT =
            CL_AI_FACTORY=>CREATE_ATTACHMENT_FROM_binary(
                      P_DATA = LX_STRING
                      P_TYPE = L_TYPE
                      P_NAME = L_NAME ).
          APPEND L_ATTACHMENT TO LT_ATTACH.
          L_CONTROLLER = CL_AI_FACTORY=>CREATE_CONTROLLER( ).
          L_CONTROLLER->SET_ATTACHMENTS( LT_ATTACH ).
          CALL METHOD PRXY->EXECUTE_ASYNCHRONOUS
            EXPORTING
              CONTROLLER = L_CONTROLLER
              OUTPUT     = IT.
          COMMIT WORK.
        CATCH CX_AI_SYSTEM_FAULT .
          DATA FAULT TYPE REF TO CX_AI_SYSTEM_FAULT .
          CREATE OBJECT FAULT.
          WRITE :/ FAULT->ERRORTEXT.
      ENDTRY.
    I am using a Mail receiver channel, I receive a mail, with to attachments, one .xml and the other one .bin, I save it to my computer and I change the extension to .xls and when I try to open it, the file is not valid and can be opened after being repaired. What Im doing wrong? I would like to receive a valid xls file, what i should change?
    Thanks a lot,
    Luis

    Hi,
    yes I know, I have used the MessageTransformBean module, and the PayloadSwapBean module. But which parameter I should use for leaving only one attachement in the e-mail. I did this configuration:
    1
    localejbs/AF_Modules/MessageTransformBean
    Local Enterprise Bean
    <b>trans</b>
    2
    localejbs/AF_Modules/PayloadSwapBean
    Local Enterprise Bean
    <b>swap</b>
    3
    localejbs/AF_Modules/MessageTransformBean
    Local Enterprise Bean
    <b>trans1</b>
    4
    localejbs/sap.com/com.sap.aii.adapter.mail.app/XIMailAdapterBean
    Local Enterprise Bean
    mail
    <i><b>Module configuration</b></i>
    trans
    Transform.ContentDisposition
    inline
    swap
    swap.keyName
    payload-name
    swap
    swap.keyValue
    Segur
    trans1
    Transform.ContentDescription
    Segur
    trans1
    Transform.ContentDisposition
    attachment;filename="Segur.xls"
    trans1
    Transform.ContentType
    application/vnd.ms-excel;name="Segur.xls"
    In the e-mail I get one attachement without name .xml and another one Segur.xsl, and I want only one attachment, the last one. What I should change in my configuration??
    Best regards,
    Luis

  • Attachments via ABAP Proxy

    I have come across one client requirment where he needs to send the txt/pdf file as an attachment from R/3, currently that interface is using the ABAP Proxy, is there any idea about How to send the attachments via ABAP Proxy?

    Hi,
    Refer
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    Problem sending xls file in an attachment via ABAP proxy
    Receive mail with PDF attachment into XI and send to ABAP proxy
    http://help.sap.com/saphelp_nw70/helpdata/en/51/d5cd16235e4643ae8ec92395c4ad97/frameset.htm
    Thanks
    Swarup

  • Can I cancel mail job from SOST queue and make its status to be error or red

    Do you have any idea to cancel mail job from SOST queue and make its status to be error or red (msgno = 806) by using coding ??

    veekwall wrote:
    Hi,
    I recently (over this past summer) updated my phone and plan with Verizon.  I'm from Pittsburgh, Pennsylvania, and I got the phone in Pittsburgh.  It is a Droid Eris and very nice.  I got it and a month later I moved to Olympia, Washington for school.  Since moving there, I have hardly been able to use it.  The service is terrible and its been impossible to keep in touch with my family, I wasn't even able to call them over Thanksgiving.  I'm also having to pay extra money so I can use the internet on my phone, but I can't even access the internet let alone make phone calls.  It's really frustrating.  I can't use my phone to keep in touch with everyone in Pittsburgh-and if I am ever in trouble I wouldn't be able to call for help, which makes me really nervous.  Is there a way I can cancel my 2yr contract?  Yes.  Just visit a Verizon store, or dial *611 from your phone and let them know you would like to cancel your account.  Would I have to pay a fee-and how much would that cost? Yes, Verizon no longer waives ETFs due to moving to an area without service, so you will probably have to pay an Early Termination Fee.  Since you have a smartphone, it will probably be $350 less $10 for each month of service you have completed.  The Customer Service rep you contact about cancelling will be able to tell you the exact amount.  Would I have to go to the Verizon store I bought the phone from to do this or would I have to do this in Washington-where I am now living and having the problems? You can do it over the phone, or at a corporate Verizon store.  Help!
    -Victoria

  • How will we send smtp mail from SAP via Exchange

    Hi;
    We changed SAP OS between Windows and Linux and still 4.6c . Now we use linux OS.
    We used smtp mail at SAP via Exchange with 3.party (sendmail,indigomail etc.) But Now I dont know how will we send smtp mail from SAP.
    Please help me,
    Thanks for answers.
    Moderator message: not directly related to ABAP development, please have look in the Netweaver forums, also search for available information on sending emails.
    Edited by: Thomas Zloch on Nov 22, 2010 2:39 PM

    Hi,
    What is the nature of the URL you wish to include in the e-mail ?
    Is it fixed or dynamic ?
    Cheers
    Colin.

  • Background job - Spool output screwed up.

    Hi Friends,
    i am running a report in background and i have 40 to 50 columns as a result the output of the back ground job spool output does not show in one lone but as soon as it reaches to the certain point it splits the line and shows one line as as two...
    what could be the problem?
    thank you,
    pasala.

    Check
    In your report
    -  [REPORT - list_options|http://help.sap.com/abapdocu_70/de/ABAPREPORT_LIST_OPTIONS.htm] [LINE-SIZE width|http://help.sap.com/abapdocu_70/de/ABAPREPORT_LIST_OPTIONS.htm#&ABAP_ADDITION_2@2@]
    - [NEW-PAGE|http://help.sap.com/abapdocu_70/en/ABAPNEW-PAGE.htm] [LINE-SIZE width |http://help.sap.com/abapdocu_70/en/ABAPNEW-PAGE_OPTIONS.htm#&ABAP_ADDITION_4@4@]
    In print parameter of the step/job
    - [SUBMIT - spool_options |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm] [SPOOL PARAMETERS pri_params|http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_PRINT_PARAMETERS.htm#&ABAP_ADDITION_1@1@] or [LINE-SIZE width |http://help.sap.com/abapdocu_70/en/ABAPSUBMIT_LIST_OPTIONS.htm#&ABAP_ADDITION_1@1@]
    Also read [Printing Lists |http://help.sap.com/abapdocu_70/en/ABENPRINT.htm] and [SET_PRINT_PARAMETER|http://www.sdn.sap.com/irj/scn/advancedsearch?query=set_print_parameters] for LAYOUT and LINE_SIZE parameters.
    Regards,
    Raymond

  • Apple Mail and GoogleMail via IMAP

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

    Disclaimer: Apple does not necessarily endorse any suggestions, solutions, or third-party software products that may be mentioned in the topic below. Apple encourages you to first seek a solution at Apple Support. The following links are provided as is, with no guarantee of the effectiveness or reliability of the information. Apple does not guarantee that these links will be maintained or functional at any given time. Use the information below at your own discretion.
    _*Apple Mail and GoogleMail via IMAP*_
    As posts concerning the setup of Apple Mail for GoogleMail IMAP access become more frequent on Apple Discussions, I decided to collect some of the most asked-for info in one place. The following hints are intended to provide enough info for anyone who wants to get started with Google Mail IMAP and Mail.app.
    As you might have noticed already, GoogleMail behaves differently from other IMAP accounts in some respects. One of the underlying reasons is its use of labels instead of folders (i.e. instead of moving messages to different folders – like e.g. Private and Work – in order to establish some order, rather there are labels tagged to the messages). Because of this a particular setup of Apple’s Mail client is required.
    *Activating IMAP for Google Mail*
    If you haven’t activated access via IMAP for Google Mail already, follow the instructions given by Google [here|http://mail.google.com/support/bin/answer.py?answer=77695&topic=13294]. It boils down to this:
    1) Sign in to Gmail.
    2) Click "Settings" at the top of any Gmail page,
    3) click "Forwarding and POP/IMAP",
    4) select "Enable IMAP".
    5) Click "Save Changes".
    *Creating a new account in Apple Mail*
    To add a Google Mail IMAP account in Mail.app, go to File > Add Account. A wizard will open which prompts you to insert your Name, the eMail-address of the new account and the password. Don’t use the option for automatic configuration if it’s available. Info on what to type into the different fields can be obtained from Google [here|http://mail.google.com/support/bin/answer.py?answer=78799&topic=12814]. The most important are:
    1) Incoming Server: imap.gmail.com, port 993 (using SSL)
    2) Outgoing Server: smtp.gmail.com, port 465 or 587 (using SSL)
    3) Your account name is your full email address including "@gmail.com" (without the quotation marks)
    *Configuring the Google Mail account in Apple Mail*
    After you have added your Google Mail IMAP account to Mail.app, you’ll find a section for Google Mail in Mail.app’s sidebar with subfolders like "All Mail" (which has in turn several subfolders) and folders for each label you created with GoogleMail. Now you have to configure the account properly. Despite what [Google recommends|http://mail.google.com/support/bin/answer.py?answer=78892&topic=1281 4], I found the following settings to work best for me.
    In the sidebar, navigate to the subfolders Trash/Sent/Drafts/Junk of "Google Mail" (the one with the white folder icon instead of a blue one) in turn and go to "Mailbox" menu > "Use this mailbox for..." > Trash/Sent/Drafts/Junk respectively. Afterwards these folders show up as subfolders to the main Trash/Sent/Drafts/Junk folders in the sidebar (and at the same time disappear from the GMail section). Among others this step is necessary because of Google Mail’s implementation of labels. E.g., as Google states [here|http://mail.google.com/support/bin/answer.py?answer=78892&topic=12814]:
    Messages that are deleted from an IMAP folder (...) only have that label removed and still exist in All Mail
    So if you want to delete a message you have to set the option to "Use this mailbox for… Trash" as described above. Same applies to sent messages etc.
    Furthermore, make sure every checkbox in Mail's Preferences > Accounts > GoogleMail > Behavior is checked . (Some will already and automatically be checked when you apply the option "Use this mailbox for..." as described above).
    *Some basic troubleshooting tips*
    1) If your counter for unread messages in Mail.app doesn’t refresh properly, go to "Mailbox" menu > "Sync all accounts".
    2) If you have set up a Smart Mailbox in Mail e.g. for unread messages and every unread message of Google Mail shows up twice, then add the criterion "Message is not in mailbox" > "All Mail", and set the requirement for messages to comply with ALL conditions (instead of ANY). This is necessary because of every message there is a copy stored in All Mail.
    I hope these info will be regarded as helpful by anyone who tries to get started with Google Mail and experiences some problems on the way.
    The links given were accessible as of September, 3rd, 2008. The setup was tested on a MacBook with OS X 10.5.4 Leopard and Mail 3.4 (928/928.1).
    Good computing.
    floba
    (Note: the above given hints are personal suggestions and I don’t assume liability for any disorders that might occur after applying the described steps.)
    Do you want to provide feedback on this User Contributed Tip or contribute your own? If you have achieved Level 2 status, visit the User Tips Library Contributions forum for more information.

  • How to extract data from BPC InfoCube via ABAP program?

    Hi experts!!
    I tried to extract data from a BPC InfoCube via ABAP program, but I did'n have succeed.
    I used the function 'RSDRI_INFOPROV_READ' to extract data from standard InfoCubes such as '0COPC_C07' and it run OK! However, when I change the InfoCube name to '/CPMB/WAIX8NE' (BPC InfoCube), everything goes wrong...
    Is there any difference between extracting data from BPC and standard InfoCubes?
    Thank you all!

    Moderator message - Welcome to SCN.
    But please do not cross and duplicate post.
    Thread locked.
    Rob

  • Push data from BW 3.5 to XI 3.0 via ABAP proxy

    Hi,
      I have the following scenario: I´m in BW 3.5 trying to send data to XI 3.0 via ABAP proxy. I´ve already found a "How-to" to do build this scenario, but something does not work. I think that problem is when a try do the logon from BW to XI because I got the message "logon data not provided" on http service in XI. I´ve already configure an RFC Destination(SM59) as R/3 connection(type 3) and another as HTTP connection to R/3(type H) and both are correct. Someone knows where I configure the user/pass to logon from BW Intergration Server to XI Integration Server?
    Regards,
    Rafael Soares

    Hello fellows!
       I discovered that my problem was configuration on SXMB_ADM transaction.
       Thank you very much for your help!
    Best regards.
    Rafael

  • Delete Overlapping Requests - by Filename via ABAP Routine

    Hi SDN Community
    Do you know if it is possible to set the delete overlapping request parameters to recoginse the file name, and remove it via the derivation of the file name via an ABAP Routine.
    I am using an ABAP routine to derive the flat flat file upon loading, but do not know the syntax, or if it is possible to set this equivalent code into the delete overlapping request Routine area
    (The code basically derives the first day of the calendar week, for previous weeks in the Do n times Loop
    Thank you.
    Simon
    DATA: ld_CWEEK         TYPE scal-week,
          ld_DATE          TYPE SY-DATUM,
          ld_DATE1         TYPE SY-DATUM,
          lc_DIRECTORY(30) TYPE c,
          ln_YYYY(4)       TYPE n,
          ln_WW(2)         TYPE n.
    *Derive week from sy-datum
    ld_date = SY-DATUM.
    Determine the calendar week from the entered calendar date
      CALL FUNCTION 'DATE_GET_WEEK'
        EXPORTING
          date           = ld_date
        IMPORTING
          week          = ld_cweek
        EXCEPTIONS
          date_invalid = 1
          OTHERS        = 2.
    Get the First day of the week
            CALL FUNCTION 'WEEK_GET_FIRST_DAY'
              EXPORTING
                week         = ld_CWEEK
              IMPORTING
                date         = ld_DATE1
              EXCEPTIONS
                week_invalid = 1
                OTHERS       = 2.
      Need to find the previous calendar week and reconvert to the first
      day in order to accomodate weeks less than 7 days
      Get the last day of the current calendar week - 2
        DO 2 TIMES.
            ld_DATE1 = ld_DATE1 - 1.
    Determine the calendar week from the last day of the previous week
            CALL FUNCTION 'DATE_GET_WEEK'
              EXPORTING
                date         = ld_DATE1
              IMPORTING
                week         = ld_CWEEK
              EXCEPTIONS
                date_invalid = 1
                OTHERS       = 2.
    Get the First day of the week
              CALL FUNCTION 'WEEK_GET_FIRST_DAY'
                EXPORTING
                  week         = ld_CWEEK
                IMPORTING
                  date         = ld_DATE1
                EXCEPTIONS
                  week_invalid = 1
                  OTHERS       = 2.
        ENDDO.
    *ln_YYYY = ld_CWEEK(4).
    ln_YYYY = ld_DATE1(4).
    ln_WW = ld_CWEEK+4(2).
    *DIRECTORY represnts path where file is stored .
    lc_DIRECTORY = '/interfaces/EDW/data/CSM/'.
    CONCATENATE lc_DIRECTORY
    ld_date '_WEEK' ln_WW '_c1_pri_' ln_YYYY '.csv' into p_filename.
      'MIC_NT_' ld_date1 '_' ln_YYYY '.csv' into p_filename.

    Thank you for your response Debanshu
    However, i could not find this process type in the process chain area.
    Is this where you meant, can you please give me more detailed steps including long syntax of names of process types
    We are on BW 3.50
    i assumed the filename had to be constructed via abap according to some of the sdn replies i've searched through.
    Thank you.
    Simon

Maybe you are looking for

  • FND_COOKIE_HAS_NO_ICX_ENTRY. Could not lookup message because there is no

    We are facing the following issue: Customer Bug 8239950: Customer state that this happens in one of the OA Framweork pages first time in a day. Once the error happens, they can hit the page again and everything works fine there after... @ PROBLEM STA

  • Where can I buy a replacement battery for a 17" PowerBook G4?

    Just was advised by Apple Care that Apple no longer sells replacement batteries for the 'vintage' PowerBook G4. Does anyone know of an alternate source where I might be able to buy a replacement battery?

  • Is this graph possible?

    Does anyone know if this kind of graph layout is even possible in Keynote or Pages? What would I have to use to achieve it? Thanks in advance! <table style="width:194px;"><tr><td align="center" style="height:194px;background:url(http://picasaweb.goog

  • Container Managed Transactions II

    I have a session bean method called insertComanda(). Its transaction attribute is "required". public void insertComanda (Table1VO vo1, Table2VO vo2) throws Exception daoTable1.insertTable1(); //Inserts data in table 1 daoTable2.insertTable2(); //Inse

  • Erro when creation Purchase Invoice

    Hi , when creating a new Purchase Invoice , we have a message : Incorrect Syntax near '000000' ( OIVL ) we do not have queries , nor add on . and it's the first time we got this message if someone can help me , thanks regards laurent