Blank line in excel using SO_NEW_DOCUMENT_ATT_SEND_API1

Hi Experts
I have a small issue while using the FM "SO_NEW_DOCUMENT_ATT_SEND_API1". I am sending an excel file using this function module, but in the mail, the excel has one blank row on top. My client people doesnt want it.
Is there any method where we can control this in the program. I m filling pack list like below
CLEAR i_pack_list-transf_bin.
  i_pack_list-head_start = 1.
  i_pack_list-head_num = 1.
  i_pack_list-body_start = 1.
  i_pack_list-body_num = i_lines.
  i_pack_list-doc_type = 'RAW'.
  APPEND i_pack_list.
  DESCRIBE TABLE i_excel LINES i_lines.
  READ TABLE i_excel  INDEX i_lines.
  i_pack_list-transf_bin = 'X'.
  i_pack_list-head_start = '1'.
  i_pack_list-head_num = '1'.
  i_pack_list-body_start = '1'.
  i_pack_list-body_num = i_lines.
  i_pack_list-doc_type = 'XLS'.
  i_pack_list-obj_name = 'Propose UWYR Results'.
  CONCATENATE 'Propose UWYR Results' sy-datum INTO i_pack_list-obj_descr SEPARATED BY space.
  i_pack_list-obj_langu = 'E'.
  i_pack_list-doc_size = i_lines * 255.
  APPEND i_pack_list.
  CLEAR i_pack_list.
Please suggest me if there is any other alternative.
Thanks
Praveen

Clear i_pack_list. and then ,
Remove lines in BOLD.
READ TABLE i_excel INDEX i_lines.
i_pack_list-transf_bin = 'X'.
i_pack_list-head_start = '1'.
i_pack_list-head_num = '1'.
i_pack_list-body_start = '1'.
i_pack_list-body_num = i_lines.
i_pack_list-doc_type = 'XLS'.
i_pack_list-obj_name = 'Propose UWYR Results'.
CONCATENATE 'Propose UWYR Results' sy-datum INTO i_pack_list-obj_descr SEPARATED BY space.
i_pack_list-obj_langu = 'E'.
i_pack_list-doc_size = i_lines * 255.
APPEND i_pack_list.
CLEAR i_pack_list.
Now issue will be solved
Edited by: Harsh Bhalla on Nov 26, 2009 4:39 PM

Similar Messages

  • Can SAP ignore blank lines in Excel when uploading the planning for PCA?

    Hi,
    We have launch planning on PCA in SAP. We are uploading the planning figures from an Excel-sheet via the standard function in SAP. The problem is that sometimes we get blank lines in the Excel-doc. When we upload with blank lines we receive an error. Can I somehow get SAP to ignore blank lines?
    Best regards
    Carl-Johan

    Well you can delete the empty lines in excel using the sort functionality and try it.
    Hope it helps..
    Thanks,
    Nandita

  • How fix blank lines on scans using MF5770

    how fix blank lines on scans using MF5770.  Already restarted Win 7 computer and MF5770.  Using Windows fax and scan.  Several months of successful use before this problem began last couple weeks.  9/2014  Thnks for any help

    Patrice,
    Thanks for your reply and questions.  See my responses in the body of your text pasted below
    So that we can better assist you, how is the printer connected?  Is it connected directly to the computer with a USB cable,YES ITS CONNECTED BY A USB CABLE LESS THAN 10' LONG FROM THE BACK OF THE MF 5770 TO A USB PORT ON THE BACK OF MY DESKTOP COMPUTER or with a LAN cable to a router?  If it is connected with a USB cable, how long is the cable, and are there any devices,NO DEVICES  such as a USB hub or extender, connected between the printer and the computer?  Finally, which version of Windows 7 are you running on your computer?  Is it the 32-bit or 64-bit version? 64 BIT VERSION   SERVICE PACK 1  PROCESSOR AMD PHENOM II X4 810  2.61 GHz  INSTALLED MEM 4 GB
    Chip Hazel
    [Mod note - removed personal information PER FORUM GUIDELINES]

  • Formatting excel using 'SO_NEW_DOCUMENT_ATT_SEND_API1'

    Hi,
       I am having an issue in formatting excel content while sending as an attachment through a mail. I am using the FM 'SO_NEW_DOCUMENT_ATT_SEND_API1'. I am getting an excel output as an attachment with the mail, but I would like to do formatting too in excel like add straight lines or add color to headings. Is this possible ?? I tried searching for this solution but I ain't getting anywhere. Please help if you have got any.
    Regards
    Raj.

    Hey Guys,
                      Thanks for the help.. but it is not useful for me. I already said I am able to get the output in excel format with data in correct column headings. I just want an example or a link where the formatting of adding vertical lines between data and coloring of headings are done before attaching to the mail.
    Regards
    Raj.

  • Delete blank lines when downloading to excel from CL_GUI_ALV_TREE

    Hi Experts
    I have developed a report using the class CL_GUI_ALV_TREE. If the user wants to download it into local machine in the excel format, he is going to the print preview and downloadn through Syste --> LIst --> Save --> Local File.
    But in the excel file there are few blank lines after each node. Now my client wants to excluding of those blank lines while downloading the file into excel. Is there any method to achieve this.
    Please advice me if there is any solution.
    Thanks in advance
    Praveen

    Hi Praveen,
    We cannot do any thing if the user download the file by that selection,
    Disable the download option from the toolbar and you provide a download button on the toolbar. as the user clicks the button the delete the black entries from the table and download it using  CL_GUI_FRONTEND_SERVICES.
    Regards,
    Kumar M.

  • Export Excel Data only causes blank line between 2 lines of records

    Hi,
    I wrote a complete winform application using CR2008.
    For information :
    C# Framework 3.5
    Windows XP SP2 or Windows Server 2003 SP1
    CR2008 SP1
    Application allow to preview report. In the preview window (CR activx) there is a "letter icon" to export report in several format.
    -RPT
    -PDF
    -DOC
    -XSL
    -XSL Data only
    When I export with "Excel Data only" format, I always have a blank line between 2 lines of records in Excel.
    Is there a way to supress them from VS2008 ?
    Thanks a lot for your reply,

    Hello, Jonik;
    Do you see the same blank lines when you export to Excel Data only in the Crystal Reports designer?
    Elaine

  • How to display the blank lines in between the message using SO_NEW_DOCUMENT

    Hi,
    I want to display the blank lines in between the paragarph of message using the function module  SO_NEW_DOCUMENT_ATT_SEND_API1.
    Regards
    Nagendra

    Hi Rajesh,
    Try using this code:
    CLASS: cl_abap_char_utilities DEFINITION LOAD.
    data: lf TYPE C VALUE cl_abap_char_utilities=>CR_LF.
    move lf to wa_lines.
    append wa_lines to li_lines.
    Hope this helps!
    Regards,
    Saumya

  • Blank Lines at end of file when using Variable Substitution in File Adapter

    Hi all,
    I'm using variable substitution in a File Adapter, it's refers an element of message, like:
    filename    payload:MESSAGE_INTERFACE,1,FILENAME,1
    The variable substitution is working right, but it's append a BLANK LINE at end of file.
    Anyone knows how to solve this problem ?
    Thanks in advance.

    Hi Regis,
    I suppose you're using content conversion?
    if so try adding
    <b>endSeparator</b> = '0'
    to your last element
    this will delete the default line break at the end
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions">XI FAQ - Frequently Asked Questions</a>

  • More than 1 blank line available for input in IP-Excel based?

    Hello,
    We are converting a large BW-BPS application (> 200 active users) to IP.
    A major requirement is the availability of the "blank screen" in Excel, similar to the BPS standard screen, where users can cut-and-paste multiple lines into it.
    IP - Excel-based appears to give only one blank line available for input at the bottom of the query.  Is there a setting or change available to give 20 blank lines, similar to the UPP_SET_DEFAULT_DUMMIES program for BPS?
    If this is not available it would be a large drawback to converting to IP, as users require pasted-in input from other systems, or "templates" where they change just a few numbers or rows each month, etc.
    Thanks,
    Aaron Benner

    Mayank, thanks for the info.  I knew about the analysis item option in the web, unfortunately I'm only interested in the Excel option.
    Marc, can you shed any light on this subject, as pertains to the Excel-based IP?
    Thanks, Aaron

  • Ignore blank lines in text file using number format exception.

    hi.. does anyone know how to ignore a blank line and move on to the next line? the text file contains:
    2
    bla bla bla
    112.4
    222.5
    ble ble vle
    115.5
    123.2

    The problem with trim() is that it only trims spaces (0x20). In a source code file, "blank" lines are as likely to contain TABs as spaces. I would recommend something like   if (line.length() == 0 || line.matches("\\s+")) If the inefficiency of matches() becomes a problem, you can use a pre-compiled Pattern object, or roll your own isItWhitespace() method.

  • Grid using - GL_GUI_ALV_GRID inserting blank line

    Hi experts ...
    I am creating report using grid instance of class GL_GUI_ALV_GRID  ...
    its displaying results output table say itab[] ... I want to insert one blank line in display ...
    if i append work area of type itab to itab ... in that case the column which showing amount displays 0.0
    instead i want complete blank row ...
    Thanks & Regards  ...
      Ashish

    Hi,
    check this link;[Blank Row in ALV Grid Display;
    hope u'll get some idea.
    Regards,
    Sneha.

  • Printing blank lines using plsql

    Hi,
    I am trying to print a blank line using plsql can anyone help me on this
    eg
    Employee Report
    (a blank line here)
    I am not able to print a blank line where I have written (a blank line).
    Chiranjib

    dbms_output is trimming blanks, therefore you need to use some other non-visible character, e.g.
    SQL> begin
      2  dbms_output.put_line('Employee Report');
      3  dbms_output.put_line('***************************');
      4  dbms_output.put_line(chr(255));
      5  dbms_output.put_line('*****************************');
      6  end;
      7  /
    Employee Report
    PL/SQL procedure successfully completed.
    SQL>

  • Blank lines using DBMS_OUTPUT package

    Hi Friends,
    how can i put blank lines between two PUT_LINE procedures. I was trying to write
    the NEW_LINE procedure but it is not working.......
    code is as follow
    DBMS_OUTPUT.PUT_LINE(' Hello');
    DBMS_OUTPUT.NEW_LINE();
    DBMS_OUTPUT.PUT_LINE(' How r u ? ');
    output is as follow:-
    Hello
    How r u? // there is no blank space between two lines
    But i want output as follow
    Hello
    // here i want a blank line
    How r u?
    Thanks

    U can put like this
    DBMS_OUTPUT.NEW_LINE(' ');
    Did you test it..?
    SQL> exec DBMS_OUTPUT.NEW_LINE(' ');
    BEGIN DBMS_OUTPUT.NEW_LINE(' '); END;
    ERROR at line 1:
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'NEW_LINE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How come when I use "Space before" in a paragraph style, it will only put the space in if i have a blank line above it. Shouldn't it do this regardless?

    Maybe I'm missing something, but it seems to me that if I have a style with a "space before" setting of, for example, 21p, i should be able to put text into a new text box and have that text with the style  applied pop down the page. It doesn't do this. I can make it work by just hitting "enter" and having a blank line in front of it, but in my mind this shouldn't be necessary. What am I doing wrong?

    That's expected behavior. If the text spans columns or pages you wouldn't want a space above if a new column started with a paragraph at the top. Like this where you want the 2nd column to align with the others:

  • Problem in sending the attachment using SO_NEW_DOCUMENT_ATT_SEND_API1

    Hi,
    I have a requirement to send the details of an internal table to External mail as an attachment. I have used fn.module 'SO_NEW_DOCUMENT_ATT_SEND_API1' to do so. I am getting the attachment but the data is stored in only one row when we checked it in SAP outbox. This is irrespective of TXT, XLS etc. I can not check the exact file in my external mail inbox as the connection is not established in dev & Quality systems. This question was raised earlier by other guys and there was no correct answer provided. If any of you encountered this type of problem & got the solution please help.
    Thanks,
    Ashok

    Hi Buddy,
        Hope this piece of code will definately help you out, Its working at my end.
    Thanks,
    Krishna..
    FORM p_send_email .
      FIELD-SYMBOLS: <field> TYPE ANY.
      DATA : BEGIN OF i_dload OCCURS 0 ,
             dload(1000) ,
           END OF i_dload .
      DATA: it_receivers LIKE somlreci1 OCCURS 1 WITH HEADER LINE,
              w_object_content LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: w_doc_data LIKE sodocchgi1 OCCURS 0 WITH HEADER LINE.
      DATA :w_records TYPE zres_records.
      DATA: w_rsnum(10),
            w_bdmng(14),
            w_meins(4).
      DATA: ws_email LIKE adr6-smtp_addr.  "for internal e_mail address
      DATA: ws_email1 LIKE adr6-smtp_addr. "for external e_mail address
    *--Internal table declaration
      DATA: it_objpack   LIKE sopcklsti1 OCCURS 2 WITH HEADER LINE.
      DATA: it_objhead   LIKE solisti1 OCCURS 1 WITH HEADER LINE.
      DATA: it_objbin    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: it_objtxt    LIKE solisti1 OCCURS 10 WITH HEADER LINE.
      DATA: it_reclist   LIKE somlreci1 OCCURS 5 WITH HEADER LINE.
      DATA: doc_chng  LIKE sodocchgi1.
      DATA: tab_lines LIKE sy-tabix.
      DATA: w_longtext(500) TYPE c.
      DATA: v_date(10) TYPE c.
      DATA: text(200)  TYPE c.
      DATA: w_text(50) TYPE c.
    *--Get receipient address
      CLEAR it_reclist.
    *--To send error to internal mail
      ws_email = p_email.
    *--To send error to external mail
      ws_email1 = p_email1.
    *---setting name of file for csv
      CONCATENATE text-003 p_bdoc text-004 INTO w_filename.
      CONDENSE w_filename NO-GAPS.
      IF flag <> 1.
        IF p_email1 IS NOT INITIAL.
    build body of message
          CONCATENATE 'disply message ' ' ' INTO it_objtxt
           SEPARATED BY space.
          APPEND it_objtxt.
          CLEAR it_objtxt.
          it_reclist-receiver = ws_email1.
          it_reclist-rec_type = c_u.
          it_reclist-express  = ' '.
          it_reclist-com_type = 'INT'.
          APPEND it_reclist.
    Set title of object and email
          CLEAR: w_text.
         CONCATENATE 'Greenheck Packing List Data'
                            INTO w_text SEPARATED BY space.
          doc_chng-obj_descr = text-005. "w_text.
          doc_chng-obj_name  = 'Inbound EDI'.
          DESCRIBE TABLE it_objtxt LINES tab_lines.
          READ TABLE it_objtxt INDEX tab_lines.
          doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_objtxt ).
    *--Move the Report Name as the Heading line for email file
          CLEAR: w_longtext.
    MOVE: text-012 TO w_longtext.
          w_longtext = 'name of report for testing'.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append Blank Lines
          APPEND it_objbin. CLEAR it_objbin.
          APPEND it_objbin. CLEAR it_objbin.
    *User name
          CLEAR text.
          MOVE: 'User:' TO text,
                 sy-uname TO text+6.
          it_objbin = text.
          APPEND it_objbin. CLEAR it_objbin.
    ---appending heading to Internal table of Email
          CLEAR: w_longtext, w_xblnr_1 , w_aubel_1,   w_vemng_1,
                 w_matnr_1,  w_harmdesc_1, w_hc_1, w_cooland1_1,
                 w_brgew_1,  w_tknum_1,   w_vbeln_1,  w_vbeln1_1,
                 w_exidv_1,  w_vhilm_1,   w_pack_no_1,
                 w_brgew1_1, w_laeng_1,   w_breit_1,
                 w_hoehe_1,   w_vol_1.
          w_xblnr_1 = 'Cust PO No.'.
          w_aubel_1 = 'Sal Order'.
          w_vemng_1 = 'Pack Qty'.
          w_matnr_1 = 'Model no.'.
          w_harmdesc_1 = 'Hrm Desc'.
          w_hc_1 = 'Hrm Code'.
          w_cooland1_1 = 'Country of Origin'.
          w_brgew_1 = 'Net Wt.'.
          w_tknum_1 = 'Shipment'.
          w_vbeln_1 = 'Billing Doc'.
          w_vbeln1_1 = 'Delivery'.
          w_exidv_1 = 'Pkg ID'.
          w_vhilm_1 = 'Pkg Desc'.
          w_pack_no_1 = 'Pkg No.'.
          w_brgew1_1 = 'Gross Wt'.
          w_laeng_1 = 'Length'.
          w_breit_1 = 'Width'.
          w_hoehe_1 = 'Height'.
          w_vol_1 = 'Cubic Mtr'.
          CONCATENATE w_xblnr_1  w_aubel_1   w_vemng_1
                      w_matnr_1  w_harmdesc_1 w_hc_1   w_cooland1_1
                      w_brgew_1  w_tknum_1   w_vbeln_1  w_vbeln1_1
                      w_exidv_1  w_vhilm_1   w_pack_no_1
                      w_brgew1_1 w_laeng_1   w_breit_1
                      w_hoehe_1   w_vol_1
          INTO w_longtext SEPARATED BY ','.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
          LOOP AT it_tab.
            DO.
              ASSIGN COMPONENT sy-index OF STRUCTURE it_tab TO <field>.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
    Look for Commas in the field value.  If it exists, put quotes around
    value so that the file opens correctly with all the columns aligned
    in Excel.
              SEARCH <field> FOR ',' IN CHARACTER MODE.
    If search for commas was successful.
              IF sy-subrc = 0.
                CONCATENATE '"' <field> '"' INTO <field> IN CHARACTER MODE.
              ENDIF.
              IF sy-index = 1.
                i_dload-dload = <field>.
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
              ELSE.
    Put Comma as a separator for values in IT_DLOAD internal table
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
                CONCATENATE i_dload-dload <field> INTO i_dload-dload
                            SEPARATED BY ',' IN CHARACTER MODE.
              ENDIF.
            ENDDO.
            it_objbin = i_dload-dload.
            APPEND it_objbin. CLEAR it_objbin.
          ENDLOOP.
              flag = 1.
            endif.
        ENDIF.
    ---if to send error file.
        IF p_email IS NOT INITIAL.
    build body of message
          CONCATENATE 'Errors in file ' ' ' INTO it_objtxt
           SEPARATED BY space.
          APPEND it_objtxt.
          CLEAR it_objtxt.
          it_reclist-receiver = ws_email.
          it_reclist-rec_type = c_u.
          it_reclist-express  = ' '.
          it_reclist-com_type = 'INT'.
          APPEND it_reclist.
    Set title of object and email
          CLEAR: w_text.
       CONCATENATE 'Greenheck Packing List Data'
                          INTO w_text SEPARATED BY space.
          doc_chng-obj_descr = text-005.
          doc_chng-obj_name  = 'Inbound EDI'.
          DESCRIBE TABLE it_objtxt LINES tab_lines.
          READ TABLE it_objtxt INDEX tab_lines.
          doc_chng-doc_size = ( tab_lines - 1 ) * 255 + STRLEN( it_objtxt ).
    *--Move the Report Name as the Heading line for email file
          CLEAR: w_longtext.
    MOVE: text-012 TO w_longtext.
          w_longtext = 'name of report for testing'.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append Blank Lines
          APPEND it_objbin. CLEAR it_objbin.
          APPEND it_objbin. CLEAR it_objbin.
    *User name
          CLEAR text.
          MOVE: 'User:' TO text,
                 sy-uname TO text+6.
          it_objbin = text.
          APPEND it_objbin. CLEAR it_objbin.
    ---appending heading to Internal table of Email
          CLEAR: w_longtext, w_xblnr_1 , w_aubel_1,   w_vemng_1,
                 w_matnr_1,  w_harmdesc_1, w_hc_1,  w_cooland1_1,
                 w_brgew_1,  w_tknum_1,   w_vbeln_1,  w_vbeln1_1,
                 w_exidv_1,  w_vhilm_1,   w_pack_no_1,
                 w_brgew1_1, w_laeng_1,   w_breit_1,
                 w_hoehe_1,   w_vol_1, w_error.
          w_xblnr_1 = 'Cust PO No.'.
          w_aubel_1 = 'Sal Order'.
          w_vemng_1 = 'Pack Qty'.
          w_matnr_1 = 'Model no.'.
          w_harmdesc_1 = 'Hrm Desc'.
          w_hc_1 = 'Hrm Code'.
          w_cooland1_1 = 'Counrty of Origin'.
          w_brgew_1 = 'Net Wt.'.
          w_tknum_1 = 'Shipment'.
          w_vbeln_1 = 'Billing doc'.
          w_vbeln1_1 = 'Delivery'.
          w_exidv_1 = 'Pkg ID'.
          w_vhilm_1 = 'Pkg Desc'.
          w_pack_no_1 = 'Pkg No.'.
          w_brgew1_1 = 'Gross Wt'.
          w_laeng_1 = 'Length'.
          w_breit_1 = 'Width'.
          w_hoehe_1 = 'Height'.
          w_vol_1 = 'Cubic Mtr'.
          w_error = 'Error'.
          CONCATENATE w_xblnr_1  w_aubel_1   w_vemng_1
                      w_matnr_1  w_harmdesc_1 w_hc_1  w_cooland1_1
                      w_brgew_1  w_tknum_1   w_vbeln_1  w_vbeln1_1
                      w_exidv_1  w_vhilm_1   w_pack_no_1
                      w_brgew1_1 w_laeng_1   w_breit_1
                      w_hoehe_1   w_vol_1 w_error
          INTO w_longtext SEPARATED BY ','.
          it_objbin = w_longtext.
          APPEND it_objbin. CLEAR it_objbin.
    *--Append the details to Internal table of Email
          LOOP AT it_tab.
            DO.
              ASSIGN COMPONENT sy-index OF STRUCTURE it_tab TO <field>.
              IF sy-subrc <> 0.
                EXIT.
              ENDIF.
    Look for Commas in the field value.  If it exists, put quotes around
    value so that the file opens correctly with all the columns aligned
    in Excel.
              SEARCH <field> FOR ',' IN CHARACTER MODE.
    If search for commas was successful.
              IF sy-subrc = 0.
                CONCATENATE '"' <field> '"' INTO <field> IN CHARACTER MODE.
              ENDIF.
              IF sy-index = 1.
                i_dload-dload = <field>.
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
              ELSE.
    Put Comma as a separator for values in IT_DLOAD internal table
                SHIFT: i_dload-dload  LEFT DELETING LEADING space.
                CONCATENATE i_dload-dload <field> INTO i_dload-dload
                            SEPARATED BY ',' IN CHARACTER MODE.
              ENDIF.
            ENDDO.
            it_objbin = i_dload-dload.
            APPEND it_objbin. CLEAR it_objbin.
          ENDLOOP.
           flag = 0.
          endif.
    -Convert to correct format----
      CALL FUNCTION 'SO_RAW_TO_RTF'
        TABLES
          objcont_old = it_objbin
          objcont_new = it_objbin.
    create the control table entry for the main email
      DESCRIBE TABLE it_objtxt LINES tab_lines.
      CLEAR it_objpack-transf_bin.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num   = tab_lines.
      it_objpack-doc_type   = 'RAW'.
      APPEND it_objpack.
      DESCRIBE TABLE it_objbin LINES tab_lines.
      it_objpack-head_start = 1.
      it_objpack-head_num   = 0.
      it_objpack-body_start = 1.
      it_objpack-body_num   = tab_lines.
      it_objpack-transf_bin = c_x.
      it_objpack-doc_type   = 'CSV'.
      it_objpack-obj_descr  = w_filename. "'billing doc no.csv'.
      it_objpack-obj_name   = 'Billing Doc'.
      it_objpack-doc_size   = tab_lines * 255.
      APPEND it_objpack.
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = doc_chng
         PUT_IN_OUTBOX              = c_x
          commit_work                = c_x
        TABLES
          packing_list               = it_objpack
         object_header              = it_objhead
          contents_bin               = it_objbin
          contents_txt               = it_objtxt
          receivers                  = it_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      IF sy-subrc <> 0.
        WRITE: / 'failure in sending mail'.
      ELSE.
         if flag = 0.
           MESSAGE s999(pp) WITH text-007.
         endif.
         if flag = 1.
           MESSAGE s999(pp) WITH text-006.
         endif.
       WRITE: / 'success in sending mail'.
      ENDIF.
        ENDFORM.                    " p_send_email

Maybe you are looking for

  • Lookout connect PLC through local network

    Hello, I am a new Lookout user. Can I connect my PLC (with Modbus TPC module) with my PC (with Lookout) through the local network (i.e. connecting them by a switch box or router)? We need to monitor our system but we don't want to put our PC on site.

  • Does extproc for Oracle 64-bit 11.1.0.7 on Win 2003 64-bit load 32 bit DLL?

    Hello Background: We had Oracle 11.1.0.7.0 32-bit EE on Windows 2003 32-bit EE and now migrated to 64-bit (both OS and DB) and everything worked brilliantly ok except... Problem: We used to be able to connect to an external application (Postcode Plus

  • Rendering problems with bulleted slides

    I am having a problem with the latest version of Keynote 3. When I create a slide with one field with a bulletted list, and choose the "word pop" effect on the field, the bullets are randomly disappearing and won't appear on the slide. If I turn off

  • Problems activating an adobe forms object / lifecycle designer

    Hi everybody, our developers are getting more and more problems when they try to activate an adobe forms object in SAP. When they click on the activate icon, SAP freezes – and after 3-4 minutes of waiting, SAP displays, that e.g. 105.570 bytes were t

  • Identifying records based on one or more common fields

    Hi all This should be easy - but going round in circles. I want to be able to group together records based on whether at least one field is the same as the corresponding field in a different record. So: Account No Tel No PostCode ABC123 17654231 TS24