Error occuers in smartform

Hello Guys,,,,
When i am trying to see the previw of the quotation it opens in a new wondow and says "Error occuers in smartform". Rest of the screen is blank.  i checked this from standard SAP Bsuiness roles. it does the same.
I checked from GUI and it works fine.
can anyone help us understand what to check on this issue?
Thanks and regards,
lata
Edited by: latha reddy on Jun 22, 2010 4:12 PM

Hi Latha,
Usually in Web UI this could be because of the import structure IS_CONTROL_PARAMETERS in exec_smartform methods.  [This thread|Re: Print Preview not working in CRM Web UI; should solve your problem.
Regards,
Amar

Similar Messages

  • Error while activating smartforms:'itab' is neither specified under table.

    Hi,
        I got an error while activating smartforms,
    'ITAB' is not specified under tables nor defined as an internal table.
    This comes under loop - Data tab.
      itab into wa.
    Please rectify this error.

    Hi Jana,
      I already declared itab in global definitions as follows,
    Variable     Type            Associated type
    T_VBAP       TYPE         TYPES_VBAP
    (itab)             (type)          (str - structure)
    But still i m getting the error.
    Can u suggest some other soln.
    thanks for ur reply.

  • Error while activating smartforms - 'OCCURS N' specification missing

    Hi,
           I had a error while activating smartforms,
    'T_VBAP'    is not an internal table - the 'OCCURS N' specification is missing.
    Solve this error.

    Hi,
    u might have used the internal table directly without creating work area.
    pls create work area ur problem will be solved.
    Thankyou,
    Regards,
    Pavani

  • Error with PO Smartform

    Hi,
    I am trying to run PO Smartform but i am getting an error ' Table %Template 1 does'nt fit into window '. The Smartform is succesfully compiled but when i tried to print preview i am getting this message in result screen. Can i know the possible reasons for this error. Whether Smartform dynamically manage the size of all windows.
    Suggest me possible solutions for the error.
    Thanks

    hi ben,
    Dont increase the size of all windows.
    If the error u r facing is regarding <b>WIDTH</b> adjust the width of template as per the width of window.
    If it is with the <b>HEIGHT</b> , give the exact height for template that u gave for that particular window ( u can give less height for template than window but u cann't do the other ....)
    To check which one is that particular template that is showing error :
    select the page --> expand then search for %TEMPLATE1 that will be unique in the whole smartform.

  • Error in Calling Smartforms-During FAX output

    Hi experts
    I am getting the following error while processing the FAX output type.....
    Can you please advice how to proceed on this..
    Error message
    Error in Calling Smartforms
    Processing log of the Output type
    Object 0130001210
    Output type: Delivery Note
    Processing log for program RVADDN01 routine ENTRY
    Error during reading T001G (Return code
    Cannot process message, no route from userID to fax number
    Advance thanks for your support
    regards
    Raja

    Hi experts
    I am getting the following error while processing the FAX output type.....
    Can you please advice how to proceed on this..
    Error message
    Error in Calling Smartforms
    Processing log of the Output type
    Object 0130001210
    Output type: Delivery Note
    Processing log for program RVADDN01 routine ENTRY
    Error during reading T001G (Return code
    Cannot process message, no route from userID to fax number
    Advance thanks for your support
    regards
    Raja

  • HT201210 an unknown error occuered (1015) whats mean

    an unknown error occuered (1015) whats mean

    Error 1015 usually means your phone is jailbroken, or you are trying to circumvent the requirement to install the latest version of iOS when restoring the phone.

  • TS3694 what to do when 3194 error occuered

    what to do when 3194 error occuered ........plz answer me fast (ipod touch 4g ios 6.1.3)

    Restore error 3194 or This device isn't eligible for hte requested build:
    http://support.apple.com/kb/ts4451

  • Error while assigning Smartform in Sale Order

    Dear All,
    For taking the sale order printout, I do not want to create a SAP SCRIPT Form. So in NACE transaction, I have created one output type 'ZA01' and assigned a new Smartform to that output type.
    Now, after adding this output type in Sale Order, when I am going to print the sale order using ZA01 output type system is giving error that WRITE_FORM is invalid, START_FORM is missing.
    Please tell whether can we assign the Smartform to sale order or not. And if yes then how to correct the error.
    Kind Regards,
    Vishal

    Dear Raghu,
    I have checked it. And the entry is present in that table. But this error is coming only when I am giving Smartform. But system is not giving any error when I am giving script form.
    So the problem is only for SmartForm.
    Regards,
    Vishal

  • Error While Transporting Smartforms from 832 client to 834 client

    Hi
    I released my Smartform and Program...
    and i told our basis ppl to Transport the Code from 832 to 834
    but while transporting they are Getting this error
    Transport Control Program tp ended with error code 0212
    Errors:could not access file as supposed.
    My question is
    Y they r getting this error?
    is it link to Abap Program..
    bcz they are telling that there is a wrong in my Program...
    Bt my Program is working fine in 832 client...
    Can any one help me on this?

    Smitha,
    If you haven't done any changes in the program then there is no need but you are saying you have created error messages.Haven't you tagged the changes related to the smartform as well as the Error messages (ie message class) in the same request?
    If you have different requests one for error message and one for Smartform,then see to that both are transported.If smartform is using any of those error messages then you need to move the request which has got error messages first and then only the smartform related requests should be moved otherwise it will give a dump becuase by the time Smartform is moved to 834 the error messages request is not yet moved.Hence sequnece while moving the transport requests is very important.It is always advisable to have all the changes related to a program in one request.
    And added to that do check the link given by Gautam too.
    K.Kiran.

  • Runtime error in executing smartform

    Hi,
    I am working on smartform and its abap code in which i am getting runtime error :-
    In the function "/1BCDWB/SF00000004", the STRUCTURE parameter "ITEM" is typed
    in such a way
    that only actual parameters are allowed, which are compatible in Unicode
    with respect to the fragment view. However, the specified actual
    parameter "ITEM_FINAL1" has an incompatible fragment view.
    Here,item and item_final1(with header line) are the internal tables. plzz provide me guidelines for solvig this problem.
    Edited by: ricx .s on Jan 16, 2009 6:24 AM

    hi,
    i had declared the ITEM and ITEM_FINAL1 AS :-
    DATA : BEGIN OF item OCCURS 0,
           ebelp  LIKE ekpo-ebelp,
           txz01  LIKE ekpo-txz01,
           cc     LIKE cacns_general-reserve3,
           eindt LIKE eket-eindt,
           menge  LIKE ekpo-menge,
           rate   LIKE konv-kbetr,
           rate1  LIKE konv-kbetr, " NEW ZING
           rate2  LIKE konv-kbetr, " NEW ZGRD
           rate3  LIKE konv-kbetr, " NEW ZBDL
           disc   LIKE konv-kbetr,
           ed     LIKE konp-kbetr,
           ed1    LIKE konp-kbetr,"NEW
           ed2    LIKE konp-kbetr,"NEW
           tax    LIKE konp-kbetr,
           cutc   LIKE konv-kbetr,
           pf     LIKE konv-kbetr,
           insurance LIKE konv-kbetr,
           frt LIKE konv-kbetr,
           inst LIKE konv-kbetr,
           octroi LIKE konv-kbetr,
           knumh LIKE konh-knumh,"NEW
           matnr LIKE ekpo-matnr,"NEW
           vakey   LIKE konh-vakey,"NEW
           total LIKE konv-kbetr,
           mtart LIKE ekpo-mtart,
           bwtar LIKE ekpo-bwtar,
           knttp LIKE ekpo-knttp,
           meins LIKE ekpo-meins,
           END OF item.
    DATA : item_final1 LIKE item OCCURS 0 WITH HEADER LINE.
    here's d code of the form :-
    CALL FUNCTION form_name
        EXPORTING
          control_parameters = t_control_parameters
          output_options     = t_output_options
          user_settings      = 'X'
          vknumv             = vknumv
          vtex               = vtex
          vebeln             = vebeln
          vkwert             = vkwert
        TABLES
          header             = header
          item               = item_final1
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    IN the smartform i had declared it as it was in the declaration of the internal table(ITEM).
    I

  • Error in generating Smartforms

    Hi All,
    i have a created a smartforms, on moving to PRD it is generating error as shown in screenshot.
    Please tell me what can i do, i am not getting what is the error.

    Hi Shweta,
    You might have missed some transport request number to move PRD so you are getting dump .
    Please check all the transport number related to this development and move it to PRD in case you have missed.
    If are the transport are in place, Please check calculation if you are checking divide by 0 error.
    Your issue will resolve thereafter.
    Regards,
    Pravin

  • Error In emailing smartforms

    I am trying to email my smartform output to a specified email address, but I am getting an error messege as mail could not me send as in the function module 'SO_NEW_DOCUMENT_SEND_API1'
    Below is the code. The smartform contains a logo only.
    Pls see the code and tell me what isn that I am missing!
    *& Report  ZKHA_SMARTFORM
    REPORT  zkha_smartform.
    TYPE-POOLS: slis,
                abap.
    DATA  : BEGIN OF it_mara OCCURS 0,
            matnr LIKE mara-matnr,
            END OF it_mara.
    DATA: wa_ctrlop TYPE ssfctrlop,  "Smart Forms: Control structure
          wa_outopt TYPE ssfcompop,  " SAP Smart Forms: Smart Composer (transfer)
          t_otfdata TYPE ssfcrescl,  "Smart Forms: Return value at end of form Printing
          t_pdf_tab LIKE tline OCCURS 0 WITH HEADER LINE,       "#EC *
          t_otf TYPE itcoo OCCURS 100 WITH HEADER LINE,"#EC * "itcoo is OTF Struct
          w_filesize TYPE i,                                    "#EC *
          w_bin_filesize TYPE i,                                "#EC NEEDED
          fm_name TYPE rs38l_fnam.
    DATA : fullpath              TYPE string,                   "#EC *
           filename              TYPE string,                   "#EC *
           path                  TYPE string,                   "#EC *
           user_action           TYPE i,                        "#EC *
           encoding              TYPE abap_encoding.            "#EC *
    PARAMETERS: p_file TYPE rlgrap-filename NO-DISPLAY.
    DATA: numbytes TYPE i,
    cancel.
    *wa_outopt-tddest = ' '.
    wa_ctrlop-getotf = 'X'.
    wa_ctrlop-no_dialog = 'X'.
    *wa_outopt-tdnoprev = 'X'.
    *wa_outopt-tdnoprint = 'X'.                    " CHANGED HERE
    *wa_ctrlop-device = 'MAIL'.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname                 = 'Z_KHATEST1'
      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.
    ENDIF.
    CALL FUNCTION  fm_name
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
      control_parameters         = wa_ctrlop                       " CHANGED HERE
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      output_options             = wa_outopt                     " CHANGED HERE
      user_settings              = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
          job_output_info            = t_otfdata
      JOB_OUTPUT_OPTIONS         =
    EXCEPTIONS
       formatting_error           = 1
       internal_error             = 2
       send_error                 = 3
       user_canceled              = 4
       OTHERS                     = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *CASE sy-ucomm.
    WHEN 'PRNT'.                                         " ADDED HERE
        t_otf[] = t_otfdata-otfdata[].
        CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                      = 'PDF'
           max_linewidth               = 132
      ARCHIVE_INDEX               = ' '
      COPYNUMBER                  = 0
      ASCII_BIDI_VIS2LOG          = ' '
      PDF_DELETE_OTFTAB           = ' '
         IMPORTING
           bin_filesize                = w_bin_filesize
      BIN_FILE                    =
          TABLES
            otf                         = t_otf
            lines                       = t_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.
    Data: t_objbin type standard table of  SOLISTI1 with header line.
          Converted to length of 255 Char
    CALL FUNCTION 'SX_TABLE_LINE_WIDTH_CHANGE'
    EXPORTING
      LINE_WIDTH_SRC                    =
       LINE_WIDTH_DST                    =  '255'
      TRANSFER_BIN                      = ' '
      TABLES
        content_in                        = t_pdf_tab
        content_out                       = t_objbin
    EXCEPTIONS
       ERR_LINE_WIDTH_SRC_TOO_LONG       = 1
       ERR_LINE_WIDTH_DST_TOO_LONG       = 2
       ERR_CONV_FAILED                   = 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.
        PERFORM download_w_ext(rstxpdft) TABLES t_pdf_tab
                                         USING p_file
                                               '.pdf'
                                                'BIN'
                                               numbytes
                                               cancel.          "#EC *
       CLEAR: wa_outopt, wa_ctrlop.
    *ENDCASE.
    DATA:
            t_tline     TYPE TABLE OF tline,
            t_reclist   TYPE TABLE OF somlreci1,
            wa_doc_chng TYPE          sodocchgi1,
            wa_reclist  TYPE          somlreci1,
            wa_return   TYPE          ssfcrescl,
            v_descr     TYPE          so_obj_des,
            v_mailid    TYPE          ad_smtpadr,
            v_adrnr     TYPE          ad_addrnum ,
            v_len_in    TYPE          string.
              wa_doc_chng-obj_name   = 'SMARTFORM'.
              wa_doc_chng-expiry_dat =  sy-datum + 10.
             wa_doc_chng-obj_descr  =  v_descr.
              wa_doc_chng-sensitivty = 'F'.
              wa_doc_chng-obj_langu  =  sy-langu.
              wa_doc_chng-no_change  = 'X' .
            Selecting email address depending on
            address no.from ADR6 Table
             SELECT smtp_addr                         "E-Mail Address
             FROM   adr6      UP TO 1 ROWS
             INTO   v_mailid
             WHERE  addrnumber = v_adrnr.
             ENDSELECT .
             wa_reclist-receiver = v_mailid.
              wa_reclist-receiver = '[email protected]'. 
              " I have hard coded the mail address. It is automatically populating the adr6 table, I donno why???
    Pls give immediate resolution!!!!
              wa_reclist-rec_type = 'U'.
              APPEND wa_reclist  TO t_reclist.
    break-point.
    CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
      EXPORTING
        document_data                    = wa_doc_chng
       DOCUMENT_TYPE                    = 'PDF'
       PUT_IN_OUTBOX                    = 'X'
       COMMIT_WORK                      = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
      tables
      OBJECT_HEADER                    =
       OBJECT_CONTENT                   = t_objbin
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
        receivers                        = t_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 SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.

    Use the following steps for doing the same. These steps are tested succesfully.
    1.  Get the Function Module Name for the Smart form
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
         EXPORTING
           formname                 = c_fmname
         VARIANT                  = ' '
         DIRECT_CALL              = ' '
         IMPORTING
           FM_NAME                  = w_fmname
         EXCEPTIONS
           NO_FORM                  = 1
           NO_FUNCTION_MODULE       = 2
           OTHERS                   = 3
    2. Set the values to be passed in the Function Module to get the output of the Smart form in OTF format.
    Set the call for OTF format.
      t_control_parameters-no_dialog = c_x.
      t_control_parameters-getotf = c_x.
    3. Call the function Module for the smartform.
    CALL FUNCTION w_fmname
        EXPORTING
          ARCHIVE_INDEX              = H_ARCHIVE_INDEX
        ARCHIVE_INDEX_TAB          =
          ARCHIVE_PARAMETERS         = H_ARCHIVE_PARAMS
          CONTROL_PARAMETERS         = t_control_parameters
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
        OUTPUT_OPTIONS             =
        USER_SETTINGS              = 'X'
          Variable                   =  v_flag
        IMPORTING
        DOCUMENT_OUTPUT_INFO       =
          JOB_OUTPUT_INFO            = w_job_output_info
        JOB_OUTPUT_OPTIONS         =
        TABLES
          I_table                    = t_itab
        EXCEPTIONS
          FORMATTING_ERROR           = 1
          INTERNAL_ERROR             = 2
          SEND_ERROR                 = 3
          USER_CANCELED              = 4
          OTHERS                     = 5
    4. Convert the OTF format to PDF format using the w_job_output_info-otfdata
      DATA:  l_filesize TYPE i,
             t_lines LIKE tline OCCURS 0,
             t_objbin TYPE ty_tab_objbin.
    **/ Get the PDF version of the OTF
      CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
        IMPORTING
          bin_filesize          = l_filesize     
        bin_file              = bin_file
        TABLES
          otf                   = w_job_output_info-otfdata
          lines                 = t_lines
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          OTHERS                = 4.
    5. Convert the PDF format to format required for attachment.
    **/ Convert the PDF format to the table type required for the attachment.
      CALL FUNCTION 'QCE1_CONVERT'
        TABLES
          t_source_tab         = t_lines     
          t_target_tab         = t_objbin
        EXCEPTIONS
          convert_not_possible = 1
          OTHERS               = 2.
    6. Create the document to be sent by e-mail
    Creation of the document to be sent
    File Name: Name of the file to be attached
      w_doc_chng-obj_name  = ‘Flename’.
    Mail Subject
      w_doc_chng-obj_descr = ‘Test E-mail’(em1).
    Completing the recipient list     
      t_reclist-receiver = t_rec.          “e-mail id of the recipient
      t_reclist-rec_type = 'U'.
      APPEND t_reclist.
    Mail Contents
      t_objtxt = 'Line 1'(bd1).
      APPEND t_objtxt.
      CLEAR t_objtxt.                               
      APPEND t_objtxt.                         " to put in a blank line
      t_objtxt = 'Line 2'(bd2).
      APPEND t_objtxt.
      CLEAR t_objtxt.                
      t_objtxt = ‘Line 3'(bd3).
      APPEND t_objtxt.
      CLEAR t_objtxt.                                      
      APPEND t_objtxt.                         " to put in a blank line
      t_objtxt = ‘Line 4’(bd3).
      APPEND t_objtxt.
    Calculate email size in bytes
      DESCRIBE TABLE t_objtxt LINES w_tab_lines.
      READ TABLE t_objtxt INDEX w_tab_lines.
      w_doc_chng-doc_size = ( w_tab_lines - 1 ) * 255 + STRLEN( t_objtxt ).
    Creation of the entry for the compressed document
    for the email text
      CLEAR t_objpack-transf_bin.
      t_objpack-head_start = 1.
      t_objpack-head_num   = 0.
      t_objpack-body_start = 1.
      t_objpack-body_num   = w_tab_lines.
      t_objpack-doc_type   = 'RAW'.
      APPEND t_objpack.
    Creation of the document attachment
    (Assume that the data in OBJBIN is in BMP format)
      DESCRIBE TABLE p_objbin LINES w_tab_lines.
      t_objhead = ‘Fielname.PDF'(em5).
      APPEND t_objhead.
      CLEAR t_objpack.
    **/ Creation of the entry for the compressed/attached document
      t_objpack-transf_bin = c_x.
      t_objpack-head_start = 1.
      t_objpack-head_num   = 1.
      t_objpack-body_start = 1.
      t_objpack-body_num   = w_tab_lines.
      t_objpack-doc_type   = 'PDF'.
      t_objpack-obj_name   = 'Possibly hover name'.
      t_objpack-obj_descr  = ‘Mail Description'(em6).
      t_objpack-doc_size   = w_tab_lines * 255.
      APPEND t_objpack.
    7. Send the document by e-mail
    Sending the document
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_doc_chng
          put_in_outbox              = c_x
        TABLES
          packing_list               = t_objpack
          object_header              = t_objhead
          contents_bin               = t_objbin
          contents_txt               = t_objtxt
          receivers                  = t_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          operation_no_authorization = 4
          OTHERS                     = 99.
      IF sy-subrc <> 0.
        WRITE: / text-014, sy-subrc.
      ELSE.
        WRITE:  / text-015.
      ENDIF.
    8. Commit work: this step is important to send the email to transaction SOST.
    Once the email has reached the transaction SOST then it’s the job of the basis to do the configuration to send it to the specified e-mail id by internet.
    **commit work for the email to go into transaction SOST.
      COMMIT WORK.
    9.  In transaction SOST the mail will appear.

  • Error in sending smartform as fax

    Hi everyone,
    I am trying to send a smartform through Fax, and i am getting the following error;
    Cannot process message in node, parameters cannot be converted
         Message no. XS821
    Diagnosis
         The message cannot be processed in the node as parameters such as 'Send
         time' or 'Priority' cannot be converted. It is possible that entire
         parameters such as 'Recipient list' or 'Packet list' are missing.
    System Response
         Processing was terminated.
         SAP system additional information (error number, if available):
         MRSUM
         Additional information of the node used (in the system language of the
         node)
    Can you guys please help me solving this problem?
    Thanking you,
    Kind regards,
    I have changed my code several times, using different functions to send  the fax and i am getting the same error message each time.
    Please find below the piece of code i am using to send the fax.
    DATA:GT_MAIL_LINES TYPE STANDARD TABLE OF soli.
      data: gs_mail_lines TYPE soli.
    DATA: ls_object_hd TYPE sood1,
    ls_receivers TYPE soos1,
    lt_receivers TYPE STANDARD TABLE OF soos1,
    l_lines TYPE i,
    ls_sadrfd TYPE sadrfd.
    CLEAR: ls_object_hd, ls_receivers.
    REFRESH lt_receivers.
    ls_object_hd-objla = sy-langu.
    ls_object_hd-objnam = 'NOTE'.
    ls_object_hd-objdes = 'Fax subject line in here'.
    "Calculate size of table
    DESCRIBE TABLE gt_mail_lines LINES l_lines.
    READ TABLE gt_mail_lines INDEX l_lines INTO gs_mail_lines.
    ls_object_hd-objlen = ( l_lines - 1 ) * 255 + STRLEN( gs_mail_lines ).
    "Set Fax control structure
    "Fax number in structure must have no leading zero
    "as this is added by SAPOffice from the country code
    ls_sadrfd-rec_fax = '4421844
    ls_sadrfd-rec_street = 'Addr'.
    ls_sadrfd-rec_town = 'Addr'.
    ls_sadrfd-rec_name1 = 'Name'.
    ls_sadrfd-rec_state = 'MU'.
    ls_sadrfd-form_langu = 'EN'.
    ls_sadrfd-fax_form = 'Z_FAX_COVER'.
    ls_sadrfd-send_comp = 'USER'
    ls_sadrfd-send_immi = 'X'.
    ls_sadrfd-send_nam = sy-uname.
    ls_sadrfd-send_date = sy-datum.
    ls_sadrfd-send_time = sy-uzeit.
    "Convert Receiver information to char field
    CALL FUNCTION 'C147_WORKAREA_TO_CHARFIELD'
    EXPORTING
    I_WORKAREA = ls_sadrfd
    IMPORTING
    E_CHARFIELD = ls_receivers-recextnam.
    ls_receivers-recesc = 'F'.
    ls_receivers-mailstatus = 'E'.
    ls_receivers-sndart = 'FAX'.
    ls_receivers-sndpri = '1'.
    APPEND ls_receivers TO lt_receivers.
    "Send fax
    CALL FUNCTION 'SO_OBJECT_SEND'
    EXPORTING
    object_hd_change = ls_object_hd
    object_type = 'RAW'
    owner = sy-uname
    originator_type = 'B'
    TABLES
    objcont   = gt_mail_lines
    receivers = lt_receivers
    EXCEPTIONS
    OTHERS = 01.
    break buantoch.
    "The function doesn't commit so we must
    "do it if successful.
    IF sy-subrc = 0.
    COMMIT WORK AND WAIT.
    ELSE.
    WRITE: / 'Fax failed RAISE ERROR '(012).
    ENDIF.

    Hi,
    Then, you can test the FAX fuctionality like:
    go to System->Short Message->give a test message,give recipient as the FAX number,type as FAX->Shift+F8 the see if it works... else only SCOT errors will be there...
    See:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/2b/d925bf4b8a11d1894c0000e8323c4f/frameset.htm
    Also see:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/4b4fa090-0201-0010-d3b7-b233296d95ff
    Regards,
    Renjith Michael.

  • Error in customized smartform for goods recipt

    Hi experts
    I  have  created a customized smartform for goods recipt .
    I have used  form entry_we01 inside my zprogram and basically  fetching the material document no from  NAST-objky
    The problem is when i assign my program in TXN NACE
    it prevents the update of material document no MBLNR in the
    MSEG table .
    I get an express document as soon as I try to display the goods recipt stating " UPDATE HAS BEEN TERMINATED".
    and although material document has been generated it is not updated in the MSEG table.
    By the way this error does not happen when i use the standard driver program and standard form (SAPSCRIPT).
    Please suggest a solution

    Hi,
    Your problem may not be related with what you done in NACE.......Check for any other recent changes made in the System...

  • Error while printing smartforms

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

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

Maybe you are looking for

  • BSI Tax Factory 9.0 Upgrade

    Can folks give me an idea what kind of timelines they are facing to upgrade from BSI 8.0 to 9.0 assuming HR SPs and TUBS required?  I am trying to get a rough scope (weeks, months) for planning purposes.

  • Web Service Call From Consumer Proxy in ABAP: Security Settings

    Hello All, Have a couple of questions: We are working on a scenario where we have to connect to a web service from ABAP. We have extracted the WSDL, and generated the client proxy, and configured a Logical Port. However, at the time of actual call, w

  • Problem connecting 2 machines

    My application runs ok when i do it localy but when i run server in a different machine i get the follwing error. This happen after i connect to the server : Exception in thread "main" java.rmi.RemoteException: connection failed to host: 127.0.0.1; n

  • FCPX 10.0.7 collapses when working with 25p and 23,98p clips in the same timeline.

    FCPX 10.0.7 collapses when working with 25p and 23,98p clips in the same timeline. Did anybody reported this? never happened to me in previous versions. It seems to be solved when transcoding the 25p clips to 23,98p (both Canon EOS 5dMKII clips) But

  • Very confused with blackberry z10

    so i just got a blackberry z10 and I dont really understand how sms and emails work? So at first I selected keep messages forever, I then started receiving hundreds of emails (I then changed to 7 days as I have thousands of emails which i assume woul