SX_OBJECT_CONVERT_RAW_SCR

hi,
I am working on  this function module i.e SX_OBJECT_CONVERT_RAW_SCR in ECC 6.0 in Z function group.
but this function module,doesn't exist in Ecc  6.0 however same exist in4.6c
Is there any repalcement for the function module SX_OBJECT_CONVERT_RAW_SCR in Ecc6.0????
since this function module does not exist in Ecc6.0 thats why i m getting dump while in 4.6c there is not any problem.
Thanxs and regards
Hemant
Edited by: hemant adlakha on Feb 4, 2009 11:57 PM

sorry, 
i wrote the z FG name.
Pls provide me help regarding this function module.

Similar Messages

  • How to send html in an email (46C) using SO_NEW_DOCUMENT_SEND_API1

    I am having trouble sending an email so that it appears in HTML format, nice and pretty.  I have been experimenting with FM SO_NEW_DOCUMENT_SEND_API1 and ATTSEND_API1.  I have been able to successfully send an email to myself (using an email address outside of SAP), but all I see is the html source code.   If I set the DOC_TYP to "HTM", I get the error "Message cannot be processed as it cannot be converted.".  Below is my sample code.   Has anyone been able to do this in 46C ?
    Thanks,  Mark
    REPORT ZYR_EMAIL_TEST1 .
    * SAP 46C
    data: maildata   type sodocchgi1,
          mailhdr    type table of solisti1    with header line,
          mailtxt    type table of solisti1    with header line,
          mailbin    type table of solisti1    with header line,
          mailpack   type table of sopcklsti1  with header line,
          mailrec    type table of somlreci1   with header line,
          tab_lines  type i.
    define bld_txt.
         clear mailtxt.
         mailtxt = &1.
         append mailtxt.
    end-of-definition.
    define bld_bin.
         clear mailbin.
         mailbin = &1.
         append mailbin.
    end-of-definition.
    start-of-selection.
      clear:    maildata, mailhdr, mailtxt,  mailbin, mailrec, tab_lines.
      refresh:  mailhdr, mailtxt, mailbin, mailrec.
      perform build_header.
      perform build_message.
      perform build_pack_list.
      perform build_receivers.
      perform send_mail_nodialog..
    * Use form initiate_mail_execute_program OR process
    * with txn SCOT.  Check status of mail with txn SOST.
    *  perform initiate_mail_execute_program.
      write: / 'End of program.'.
    *      Form  BUILD_HEADER
    form build_header.
      maildata-obj_name   = 'Email_Name'.
      maildata-obj_descr  = 'Email_Description'.
    *  maildata-obj_langu  =
    *  maildata-obj_sort   =
      mailhdr  = 'MYTEST.HTM'.
      append mailhdr.
    endform.
    *      Form  BUILD_MESSAGE
    form build_message.
      bld_txt '<html>'.
      bld_txt '<head>'.
      bld_txt '<title>Untitled Document</title>'.
      bld_txt '<meta http-equiv="Content-Type" content="text/html;'.
      bld_txt 'charset=iso-8859-1">'.
      bld_txt '</head>'.
      bld_txt '<body>'.
      bld_txt '<div align="center"><em><font' .
      bld_txt 'color="#0000FF" size="+7" face="Arial,'.
      bld_txt 'Helvetica, sans-serif">THIS'.
      bld_txt '  IS A TEST </font></em><br><font' .
      bld_txt 'color="#0000FF" size="+7" face="Arial,'.
      bld_txt 'Helvetica, sans-serif">Yahoo</font>'.
      bld_txt '</div>'.
      bld_txt '</body>'.
      bld_txt '</html>'.
    * Doc_Size is length of last line + ( nbr of other lines x 255 ).
      describe table mailtxt lines tab_lines.
      read     table mailtxt index tab_lines.
      maildata-doc_size = ( ( tab_lines - 1 ) * 255 ) + strlen( mailtxt ).
    endform.
    *      Form  BUILD_PACK_LIST
    form build_pack_list.
      clear mailpack.
      refresh mailpack.
    *  mailpack-transf_bin = 'X'.
      mailpack-head_start = 1.
      mailpack-head_num = 0.
      mailpack-body_start = 1.
      describe table mailtxt lines tab_lines.
      mailpack-body_num = tab_lines.
      mailpack-doc_type = 'HTM'.
      append mailpack.
    endform.
    *      Form  BUILD_RECEIVERS
    form build_receivers.
      mailrec-receiver  = '[email protected]'.
      mailrec-rec_type  = 'U'.
      mailrec-com_type = 'INT'.
      append mailrec.
    endform.
    *      Form  SEND_MAIL
    form send_mail.
      call function 'SO_NEW_DOCUMENT_SEND_API1'
           exporting
                document_type              = 'HTM'
                document_data              = maildata
    *           put_in_outbox              = ' '
           tables
                object_header              = mailhdr
                object_content             = mailtxt
                receivers                  = mailrec
           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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        write: / 'There was error.  sy-subrc = ', sy-subrc.
      endif.
    endform.
    *    Form  INITIATE_MAIL_EXECUTE_PROGRAM
    *   Instructs mail send program for SAPCONNECT to send email.
    form  initiate_mail_execute_program.
      wait up to 2 seconds.
      submit rsconn01 with mode = 'INT'
                    with output = 'X'
                    and return.
    endform.

    Yes, the OBJ_HTM function exists.  I found these also, that exist on our system.
    SX_OBJECT_CONVERT        
    SX_OBJECT_CONVERT_ALI_HTM
    SX_OBJECT_CONVERT_ALI_PRT
    SX_OBJECT_CONVERT_ALI_RAW
    SX_OBJECT_CONVERT_ALI_TXT
    SX_OBJECT_CONVERT_INT_RAW
    SX_OBJECT_CONVERT_OBJ_HTM
    SX_OBJECT_CONVERT_OBJ_R3O
    SX_OBJECT_CONVERT_OTF_PDF
    SX_OBJECT_CONVERT_OTF_PRT
    SX_OBJECT_CONVERT_OTF_RAW
    SX_OBJECT_CONVERT_RAW_SCR
    SX_OBJECT_CONVERT_RAW_TXT
    SX_OBJECT_CONVERT_SCR_OTF
    SX_OBJECT_CONVERT_TO_AFX 
    SX_OBJECT_CONVERT_TXT_INT
    And these are the entries I see in the SXCONVERT table:
    SX_OBJECT_CONVERT_ALI_HTM 
    SX_OBJECT_CONVERT_ALI_PRT 
    SX_OBJECT_CONVERT_ALI_RAW 
    SX_OBJECT_CONVERT_ICS_RAW 
    SX_OBJECT_CONVERT_INT_RAW 
    SX_OBJECT_CONVERT_OBJ_HTM 
    SX_OBJECT_CONVERT_OTF_PDF 
    SX_OBJECT_CONVERT_OTF_PRT 
    SX_OBJECT_CONVERT_OTF_RAW 
    SX_OBJECT_CONVERT_RAW_SCR 
    SX_OBJECT_CONVERT_RAW_TXT 
    SX_OBJECT_CONVERT_SCR_OTF 
    SX_OBJECT_CONVERT_TXT_INT 
    SX_OBJECT_CONVERT_OBJL_HTM

  • Email with html body and a pdf attachment

    Hi,
    i try to send a email with html body and one attach in pdf
    in release 4.6c using the SO_DOCUMENT_SEND_API1.
    I've put the html in the txt table and the pdf in bin table but i obtain the following situation:
    1) with only the html in the body i see a right email in html
    2) with the html body AND the pdf attach i obtain a empty mail with two attach.
    what can i do ? I's possible to do this.
    Thanks in advance.

    Contact my basis guy is a problem !!
    maybe a need a function similar to SX_OBJECT_CONVERT_RAW_TXT to convert raw (containing html text) into real html ?
    my view V_SXCONV contain:
    ALI     HTM     2     SX_OBJECT_CONVERT_ALI_HTM
    ALI     PS     4     SX_OBJECT_CONVERT_ALI_PRT
    ALI     RAW     1     SX_OBJECT_CONVERT_ALI_RAW
    ALI     TXT     2     SX_OBJECT_CONVERT_ALI_TXT
    ICS     RAW     8     SX_OBJECT_CONVERT_ICS_RAW
    INT     RAW     8     SX_OBJECT_CONVERT_INT_RAW
    OBJ     HTM     2     SX_OBJECT_CONVERT_OBJ_HTM
    OTF     PCL     3     SX_OBJECT_CONVERT_OTF_PRT
    OTF     PDF     1     SX_OBJECT_CONVERT_OTF_PDF
    OTF     PS     2     SX_OBJECT_CONVERT_OTF_PRT
    OTF     RAW     9     SX_OBJECT_CONVERT_OTF_RAW
    RAW     SCR     6     SX_OBJECT_CONVERT_RAW_SCR
    RAW     TXT     7     SX_OBJECT_CONVERT_RAW_TXT
    SCR     OTF     1     SX_OBJECT_CONVERT_SCR_OTF
    TXT     INT     7     SX_OBJECT_CONVERT_TXT_INT
    URL     HTM     2     SX_OBJECT_CONVERT_OBJL_HTM
    thanks a lot.

  • Conversions: From RAW to PDF

    Hello everybody,
    I am downloading a payslip spool in RAW format.
    Later, I need this RAW file to be converted to PDF.
    Can anybody explain me the fastest way of doing this using a minimum number of function modules?
    At the moment I am converting the file to OTF and the to PDF but using some obsolete SAP FM.
    Thank in advance.

    Hi Pablo,
    Could you share the solution? I am facing the same problem too.
    I was reading the payslip spool and splitting the list by individual employee. However, I am facing problem to convert the list to PDF file.
    I would like to prepare the file through conversion of RAW -> SCR -> OTF -> PDF.
    Could you guide me on the usage of FM SX_OBJECT_CONVERT_RAW_SCR?
    Thanks in advance.

  • Send Word / Excel / PPF to Spool

    Hy there,
    I need to create a Smartform to send via email with the PO as an attachement in PDF format, and that, i can do. No problem.
    But.....in the EBP system you can add attachements to the PO in Word, Excel, PPF format, and i need to send this files as an attachement too, i have the name and url of file but i can´t add them.
    Thanks..

    Dear Nuno:
    Is very dificult to make and Excel or Word File to send by e-mail. You just have to test and develop, take any of these function module's:
    SX_OBJECT_CONVERT_ALI_HTM
    SX_OBJECT_CONVERT_ALI_PRT
    SX_OBJECT_CONVERT_ALI_RAW
    SX_OBJECT_CONVERT_INT_RAW
    SX_OBJECT_CONVERT_OBJ_R3O
    SX_OBJECT_CONVERT_OTF_PDF
    SX_OBJECT_CONVERT_OTF_PRT
    SX_OBJECT_CONVERT_OTF_RAW
    SX_OBJECT_CONVERT_RAW_SCR
    SX_OBJECT_CONVERT_SCR_OTF
    SX_OBJECT_CONVERT_TO_AFX 
    SX_OBJECT_CONVERT_TXT_INT
    Good luck.
    Saludos,
    Mariano.

Maybe you are looking for