'COPY' as watermark  on the smartforms generated ?

hi all
where and how can i have the smartform print "COPY" if generated second time as watermark as  background.
thanks in advance

hi,
Check the system variable SFSY-COPYCOUNT in Copies window.
if sfsy-copycount = 1.
else.
move 'COPY' to w_text.
<<< then display this w_text in the window >>>>
endif.
Regards
Lekha

Similar Messages

  • Can we make modification to the smartform generated FM?

    Hello Friends,
    Can we make modification to the smartform auto generated FM?
    If yes, please let me know the procedure.
    Thanks,
    Shreekant

    if u modify your SF it will automatically modify that FM.
    what is the need of modifying the FM
    <b>Reward If USEFUL</b>

  • How add a watermark to the smartform page

    Hi All,
    Can anybody give me some pointers, how to add a watermark to the page .
    I have to display a water image, when the user trying to see print preview.
    I.e. on certain condition i need to print the water mark on the page .
    I have uploaded the BMP Image from se78,
    In the page, background picture i have added the image. But some how itu2019s coming for me in the foreground only. Where it was supposed to come as background picture.
    I have read some where only the grayscale type image only can come as background picuture.
    I have trying to upload grayscale type image, but its not allowing from se78.
    Thanks in advance

    hi,
    Yes you can add back ground picture based on a condition,
    Or you can dynamically decide which water mark shall appear based on a condition.
    You need to implement respective logic.
    In the INITIALIZATION of global data assign the image name that should prior appear.
    Later, in the CODE of a page, reassign the image name with respect to a condition. But make sure the assigning is done well before a new page is triggered else, that page would continue with the image you mentioned in the INITIALIZATION.
    Suppose the design such that, the page shall contain 10 items, with a image that varies with following page with same number of items.
    In the page, start a counter and track for the number records once the counter is 10, assign the image name.
    As soon as 10 records are printed, a page break is triggered and also a new image assigned to that page.
    Regards
    Sharath

  • Reduce smartform generated PDF size

    Hi,
    How to reduce the smartform generated PDF size. I have tried removing few tables,windows, logo(size 10KB) etc.. but the size didnt vary much. I am using new Font 'CorpoS' in my smartstyle and using PT language (has special characters).
    Current size of my PDF is 286KB and i want it to be 20-50KB.
    Please give me valuable suggestions on how to reduce the size.
    Please treat this as urgent.
    Thanks in advance.
    Regards,
    Manjeera.
    Edited by: Manjeera Chinigiri on Jan 30, 2008 11:02 AM

    Hello,
    please check the note 843480.
    Kind regards
    Marcin

  • How the text elements of the SMARTFORMS can generate a field?

    Hello guys
          I have got this problem of not getting the value of the fields from the smartform. i wrote the text element to populate the field by inserting as the following &IV_BID_HEADER-PROCESS_TYPE& first it comes with the shaded background but after i activate the smartform  the shaded part will gone and it remain as &IV_BID_HEADER-PROCESS_TYPE&  which basically cannot populate any value.
    can anyone help me on this,to keep the field remain shaded at the background which basicallly can populate the values of the fields.
    Thanks

    Hello,
    Please click on "FIELD LIST on/off" or ctrlshiftf4 and then drag and drop the same from the left bar.
    First find whether you have declared the value in Global Variables OR in Import/Export Interfaces.
    Hope this was helpful.
    Cheers,
    Suvendu

  • Debug the Smartform in QA

    Hi All,
    There is an issue in QA system.
    I need to debug the smartform-PROGRAM LINES in QA.
    can anyone pls let me know hw to debug the smartform-PROGRAM LINES.
    I kept the break point in print program SSF_Function_module_name.
    But control is not going to  program lines.
    Pls help with your suggestions.
    Thank u,
    Priya

    HI Priya,
      Get the generated Function Module name.  Copy name of the node ( name of Program Lines ). Find that node name in generated function module and put break point.
    you can get the Generated FM name by executing the FM 'SSF_FUNCTION_MODULE_NAME'  passing FORM name in SE37.
    Hope it helps.
    Edited by: Prasath Arivazhagan on May 25, 2010 2:10 PM

  • Unable to install a zone: Copying 0 files to the zone.

    Hi forum users,
    I really hope someone has any idea what could be wrong here.
    First of all, the server is patched with security and recommended patches, except for 118344-13 -> R-- SunOS 5.10_x86: Fault Manager Patch which I will install on the next maintenance day. It already has 4 zones running without problem.
    However when I try to install a new zone now it always fails.
    # zoneadm -z blah install
    Preparing to install zone <blah>.
    Creating list of files to copy from the global zone.
    Copying <0> files to the zone.
    Initializing zone product registry.
    Determining zone package initialization order.
    ERROR: package <SUNWcsu> is not complete: skipping installation of package
    ERROR: package <SUNWcsr> is not complete: skipping installation of package
    ERROR: package <SUNWcsl> is not complete: skipping installation of package
    ERROR: package <SMCreadl> is not complete: skipping installation of package
    ERROR: cannot determine dependency ordered package list from package repository </var/sadm/pkg>
    ERROR: cannot generate dependency ordered list of packages from global zone </var/sadm/pkg>
    ERROR: failed to initialize packages from global zone </> to zone </zones/blah/root>
    ERROR: cannot copy and initialize packages from global zone to local zone <blah> path </zones/blah/root>
    ERROR: cannot create zone boot environment <blah>
    zoneadm: zone 'blah': '/usr/lib/lu/lucreatezone' failed with exit code 74.
    To me it seems obvious that the problem lies in the fact that it doesnt even copy a single file to the configured zone, therefor it can't install any packages and all the rest fails too. The big question of course is, why does it think it only needs to copy 0 files? Has anyone encountered such a problem before? I havent found anything yet on patches breaking zoneadm install but might have missed it.
    Does it looks like a HD corruption?Might be since the Sun Management Console agent does seem to freeze on that server too once in a while.

    All the packages are fine in the global zone, pkginfo -l tells me the packages are complete.
    I did try the truss wrap but it gives me so much info it is hard for me to figure out if something is wrong. The only error i think that returns often and that is not resolved is:
    ioctl(4, TCGETA, 0x080471E4) Err#25 ENOTTY
    ioctl(4, TCGETA, 0x08047294) Err#22 EINVAL
    The part where it seems to compile a list of files to copy however is very empty of truss entries:
    Preparing to install zone <gal2en-survey>.
    Creating list of files to copy from the global zone.
    Copying <0> files to the zone.
    Initializing zone product registry.
    Determining zone package initialization order.
    read(4, 0x0806DD3C, 5120) (sleeping...)
    ERROR: package <SUNWcsu> is not complete: skipping installation of package
    This issue is still unresolved for me. For now the only way to create a new zone on that server is to manually copy all files from another zone, editing the zonecfg entry and net config files for the zone, then i can boot and run it.

  • F110: Automatic payment supports the smartforms instead of script.?

    Dear All,
    I have a requirement on smartforms.
    I want to configure the smartform instead of script in F110 at company code level.
    Whether I need to do code changes on driver program RFFOUS_C, because this program supports only script.
    Please let me know how to do it?
    Thanks & Regards,
    Bala.

    Bala Kumar,
    SPRO => Automatic Outgoing Paymenst =>Payment Methods / Bank Selcetion for Payment Program => Set Up All Company Codes for Payment Transactions => Check for your Company Code => Go for Paying Company Code (Click It) => at the bottom you'll see Forms. Mention your form there.
    In case if you wish to use Driver Program RFFOUS_C, i think you should make a z copy and alter as per smartform.
    Anmol Saxena.

  • Error in the Smartforms 'ERROR CANNOT BE CLASSIFIED'

    Hi,
         While Executing the output type of ME23N (Custom Output type), I am Getting the Below Error,
         From Debugging i came to know that the error is from the Smartform,
         From the SFTRACE, I got the Following Log.
        00trace begin level 05
        00trace version 046C01
        00time stamp 20140424094323
        00locale date 24.04.2014
        00locale time 15:13:23
        00system information
        00  sap version 731
        00  operating system AIX
        00  database system DB6
        00  database name JEQ
        00  user name 90498
        05overflow of non main window
        05! E SSFCOMPOSER 150
        05trace output closed due to error
         From the above Log the I came to Know that the error is Not from the Main Window, So I have Checked all the Dimension of the the Windows, Every      thing is fine(With in the Page Limit).
         The error is Generating from this Code in the Smartform's FM.
         Please Suggest a solution.
         Thanks
         Kranthi.

    Dear all,
    Thanks for the Response, The Issue Is Solved.
    There is No Overlapping of Wndows, In my Smart Form there are 2 Pages & both Contains Main Window. They Have Designed in Such a way that "TERMS & CONDITIONS" Should Come in Second Page, Kept the Control Command in the Footer of the Table.
    If the Table Entries of the Main Window are Less(i.e., fits in the first page) then it is working fine.
    So if the the Records are more and exceeds to the second page then the control commands also fires to the next page (Second page), Hence the error is rised.

  • Error in opening smartform generated PDF attachments

    Hi every one,
        my smartforms generate multiple emails based on the widely used code as shown below.
    The emails are successfully being sent to different locations, but the problem is the first PDF file is opening, but the others followed by it are not opening. It's giving an error ' File damaged and cannot be opened!'
    Pls see the below code and help me out.
    Points would be awarded.
    Thanks to all in advance!!
    Arnab
    REPORT  zvenkat_smartform_via_mai.
    *&  Structures and Infotype Internal tables.
    TABLES pernr.
    INFOTYPES:
      0000,
      0001,
      0002,
      0006,
      0022,
      0023.
    INCLUDE dbpnpmac.
    *&  Declaration part
    Types
    TYPES:
       BEGIN OF t_emp_info,
         pernr TYPE pa0001-pernr,
         ename TYPE pa0001-ename,
         bukrs TYPE pa0001-bukrs,
         persk TYPE pa0001-persk,
         stell TYPE pa0001-stell,
         gblnd TYPE pa0002-gblnd,
       END OF t_emp_info,
       BEGIN OF t_mard,
         matnr TYPE mard-matnr,
         werks TYPE mard-werks,
         labst TYPE mard-labst,
         meins TYPE mara-meins,
       END OF t_mard.
    Work areas
    DATA:
      w_emp_info TYPE t_emp_info.
    Internal tables
    DATA:
      i_emp_info TYPE STANDARD TABLE OF t_emp_info,
      i_mard     TYPE STANDARD TABLE OF t_mard.
    "  Mai related declarations
    "Variables
    DATA :
         g_sent_to_all   TYPE sonv-flag,
         g_tab_lines     TYPE i.
    "Types
    TYPES:
         t_document_data  TYPE  sodocchgi1,
         t_packing_list   TYPE  sopcklsti1,
         t_attachment     TYPE  solisti1,
         t_body_msg       TYPE  solisti1,
         t_receivers      TYPE  somlreci1,
         t_pdf            TYPE  tline.
    "Workareas
    DATA :
         w_document_data  TYPE  t_document_data,
         w_packing_list   TYPE  t_packing_list,
         w_attachment     TYPE  t_attachment,
         w_body_msg       TYPE  t_body_msg,
         w_receivers      TYPE  t_receivers,
         w_pdf            TYPE  t_pdf.
    "Internal Tables
    DATA :
         i_document_data  TYPE STANDARD TABLE OF t_document_data,
         i_packing_list   TYPE STANDARD TABLE OF t_packing_list,
         i_attachment     TYPE STANDARD TABLE OF t_attachment,
         i_body_msg       TYPE STANDARD TABLE OF t_body_msg,
         i_receivers      TYPE STANDARD TABLE OF t_receivers,
         i_pdf            TYPE STANDARD TABLE OF t_pdf.
    PARAMETERS:
               p_mai_id(99) TYPE c.
    *& Start-of-selection.
    START-OF-SELECTION.
    GET pernr.
      PERFORM get_data.
      PERFORM show_smartform.
    *& End-of-selection.
    END-OF-SELECTION.
    *&      Form  get_data
    FORM get_data .
      rp-provide-from-last p0000 space pn-begda pn-endda.
      rp-provide-from-last p0001 space pn-begda pn-endda.
      rp-provide-from-last p0002 space pn-begda pn-endda.
      MOVE-CORRESPONDING: p0000 TO w_emp_info,
                          p0001 TO w_emp_info,
                          p0002 TO w_emp_info.
      SELECT matnr werks labst
      FROM mard
      INTO CORRESPONDING FIELDS OF TABLE i_mard.
    ENDFORM.                    " get_data
    *&      Form  show_smartform
    FORM show_smartform .
      DATA :
        l_sform_name TYPE tdsfname,
        l_fm_name    TYPE rs38l_fnam.
      DATA :
            l_sf_control TYPE ssfctrlop,
            l_sf_options TYPE ssfcompop.
      DATA: i_otf LIKE itcoo OCCURS 100 WITH HEADER LINE.
           i_pdf LIKE tline OCCURS 100 WITH HEADER LINE.
      DATA: op_option TYPE ssfctrlop,
            job_output TYPE ssfcrescl.
    op_option-getotf = 'X'.
      l_sform_name = 'ZVENKAT_SMARTFORM'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = l_sform_name
        IMPORTING
          fm_name            = l_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.
      ELSE.
        CALL FUNCTION l_fm_name
          EXPORTING
            control_parameters = op_option
            output_options     = l_sf_options
            w_emp_info         = w_emp_info
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
       job_output_info            = job_output
          TABLES
            p0006              = p0006
            p0022              = p0022
            p0023              = p0023
            i_mard             = i_mard.
        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 'CONVERT_OTF'
          EXPORTING
            format = 'PDF'
          TABLES
            otf    = job_output-otfdata
            lines  = i_pdf.
        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 send_mai.
      ENDIF.
    ENDFORM.                    " show_smartform
    *&      Form  send_mai
    FORM send_mail .
      "Subject of the mai.
      w_document_data-obj_name  = 'MAI_TO_HEAD'.
      w_document_data-obj_descr = 'Regarding Mai Program by SAP ABAP'.
      "Body of the mai
      PERFORM build_body_of_mai
        USING:space,
              'Hi,',
              'I am fine. How are you? How are you doing ? ',
              'This program has been created to send simple mai',
              'with Subject,Body with Address of the sender. ',
              'Regards,',
              'Venkat.O,',
              'SAP HR Technical Consultant.'.
      "Write Packing List for Body
      DESCRIBE TABLE i_body_msg LINES g_tab_lines.
      w_packing_list-head_start = 1.
      w_packing_list-head_num   = 0.
      w_packing_list-body_start = 1.
      w_packing_list-body_num   = g_tab_lines.
      w_packing_list-doc_type   = 'RAW'.
      APPEND w_packing_list TO i_packing_list.
      CLEAR  w_packing_list.
      "Write Packing List for Attachment
      w_packing_list-transf_bin = 'X'.
      w_packing_list-head_start = 1.
      w_packing_list-head_num   = 1.
      w_packing_list-body_start = 1.
      DESCRIBE TABLE i_attachment LINES w_packing_list-body_num.
      w_packing_list-doc_type   = 'PDF'.
      w_packing_list-obj_descr  = 'PDF Attachment'.
      w_packing_list-obj_name   = 'PDF_ATTACHMENT'.
      w_packing_list-doc_size   = w_packing_list-body_num * 255.
      APPEND w_packing_list TO i_packing_list.
      CLEAR  w_packing_list.
      "Fill the document data and get size of attachment
      w_document_data-obj_langu  = sy-langu.
      READ TABLE i_attachment INTO w_attachment INDEX g_tab_lines.
      w_document_data-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( w_attachment ).
      "Receivers List.
      w_receivers-rec_type   = 'U'.      "Internet address
      w_receivers-receiver   = p_mai_id. "here mai Id should be given
      w_receivers-com_type   = 'INT'.
      w_receivers-notif_del  = 'X'.
      w_receivers-notif_ndel = 'X'.
      APPEND w_receivers TO i_receivers .
      CLEAR:w_receivers.
      "Function module to send mai to Recipients
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = w_document_data
          put_in_outbox              = 'X'
          commit_work                = 'X'
        IMPORTING
          sent_to_all                = g_sent_to_all
        TABLES
          packing_list               = i_packing_list
          contents_bin               = i_attachment
          contents_txt               = i_body_msg
          receivers                  = i_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc = 0 .
        MESSAGE i303(me) WITH 'Mai has been Successfully Sent.'.
      ELSE.
        WAIT UP TO 2 SECONDS.
        "This program starts the SAPconnect send process.
        SUBMIT rsconn01 WITH mode = 'INT'
                        WITH output = 'X'
                        AND RETURN.
      ENDIF.
    ENDFORM.                    " send_mai
    *&      Form  build_body_of_mai
          text
         -->L_MESSAGE  text
    FORM build_body_of_mai  USING l_message.
      w_body_msg = l_message.
      APPEND w_body_msg TO i_body_msg.
      CLEAR  w_body_msg.
    ENDFORM.                    " build_body_of_mai

    Hi,
    Check the code below
    1.converting smartform to PDF
    Summury: Converting the smartfrom to PDF is process of 3 simple steps.
    • Calling the Smart form, then it returns the OTF data in Return.
    • Converting the OTF data into required format using the Function Module CONVERT_OTF_2_PDF.
    • Download the File
    *& Report ZTEST_NREDDY_PDF
    REPORT ZTEST_NREDDY_PDF.
    DATA: it_otf TYPE STANDARD TABLE OF itcoo,
    it_docs TYPE STANDARD TABLE OF docs,
    it_lines TYPE STANDARD TABLE OF tline,
    st_job_output_info TYPE ssfcrescl,
    st_document_output_info TYPE ssfcrespd,
    st_job_output_options TYPE ssfcresop,
    st_output_options TYPE ssfcompop,
    st_control_parameters TYPE ssfctrlop,
    v_len_in TYPE so_obj_len,
    v_language TYPE sflangu VALUE 'E',
    v_e_devtype TYPE rspoptype,
    v_bin_filesize TYPE i,
    v_name TYPE string,
    v_path TYPE string,
    v_fullpath TYPE string,
    v_filter TYPE string,
    v_uact TYPE i,
    v_guiobj TYPE REF TO cl_gui_frontend_services,
    v_filename TYPE string,
    v_fm_name TYPE rs38l_fnam.
    CONSTANTS c_formname TYPE tdsfname VALUE 'ZTEST'.
    CALL FUNCTION 'SSF_GET_DEVICE_TYPE'
    EXPORTING
    i_language = v_language
    i_application = 'SAPDEFAULT'
    IMPORTING
    e_devtype = v_e_devtype.
    st_output_options-tdprinter = v_e_devtype.
    *st_output_options-tdprinter = 'locl'.
    st_control_parameters-no_dialog = 'X'.
    st_control_parameters-getotf = 'X'.
    .................GET SMARTFORM FUNCTION MODULE NAME.................
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = c_formname
    IMPORTING
    fm_name = v_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 SMARTFORM............................
    CALL FUNCTION v_fm_name
    EXPORTING
    control_parameters = st_control_parameters
    output_options = st_output_options
    IMPORTING
    document_output_info = st_document_output_info
    job_output_info = st_job_output_info
    job_output_options = st_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.
    ELSE.
    .........................CONVERT TO OTF TO PDF.......................
    CALL FUNCTION 'CONVERT_OTF_2_PDF'
    IMPORTING
    bin_filesize = v_bin_filesize
    TABLES
    otf = st_job_output_info-otfdata
    doctab_archive = it_docs
    lines = it_lines
    EXCEPTIONS
    err_conv_not_possible = 1
    err_otf_mc_noendmarker = 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.
    ........................GET THE FILE NAME TO STORE....................
    CONCATENATE 'smrt' '.pdf' INTO v_name.
    CREATE OBJECT v_guiobj.
    CALL METHOD v_guiobj->file_save_dialog
    EXPORTING
    default_extension = 'pdf'
    default_file_name = v_name
    file_filter = v_filter
    CHANGING
    filename = v_name
    path = v_path
    fullpath = v_fullpath
    user_action = v_uact.
    IF v_uact = v_guiobj->action_cancel.
    EXIT.
    ENDIF.
    ..................................DOWNLOAD AS FILE....................
    MOVE v_fullpath TO v_filename.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = v_bin_filesize
    filename = v_filename
    filetype = 'BIN'
    TABLES
    data_tab = it_lines
    EXCEPTIONS
    file_write_error = 1
    no_batch = 2
    gui_refuse_filetransfer = 3
    invalid_type = 4
    no_authority = 5
    unknown_error = 6
    header_not_allowed = 7
    separator_not_allowed = 8
    filesize_not_allowed = 9
    header_too_long = 10
    dp_error_create = 11
    dp_error_send = 12
    dp_error_write = 13
    unknown_dp_error = 14
    access_denied = 15
    dp_out_of_memory = 16
    disk_full = 17
    dp_timeout = 18
    file_not_found = 19
    dataprovider_exception = 20
    control_flush_error = 21
    OTHERS = 22.
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.
    Regards,
    Raj.

  • Problem in converting to PDF (in the smartform)

    Hello Eddy and Jashandeep,
            Fought for a while with the smartform and called it in my BSP Application.But here i faced a problem.The sequence is as follows -->
    1, I Created a smartform and wrote the code as given by 
       Mr.Eddy(weblog on PDF by Craig) in my BSP Application.
    2, I executed my BSP Application.
    3, Got the tableview on the page.
    4, Selected the 4rth Radiobutton in the list and then pressed Display.
    5, My application went for a dump saying :
       <b>"An exception with the type
        CX_SY_DYN_CALL_ILLEGAL_TYPE occurred, but was neither
        handled locally, nor declared in a RAISING clause"</b>
    Could u guys tell me what was the problem in my case.
    a. I think that there is problem in my Smart form!! 
       In my application I have the final table containing  
       18 fields.
       But in smartform i declared the table in the
       forminterface of type mcdata as i cannot define my 18
       fields type in the interface.
    SO a type mismatch may occured due to this and a dump was generated ...i guess it  is so....
    PLease help me to come-out of this problem.
    2, Plz help me in understand the following toooo.....
       Why do we have <b>6 radio buttons</b> for the PDF
       conversion ?
       a. The requirement is to download the table into a PDF.
          Can U plz tell me what is the purpose of each
        radiobutton.
    And a browse option is also given.
    <b>Why is this required when we have the content to be downloaded to PDF on the page itself in the form of a table ?</b>
    Regards,
    Deepu.K

    Hi Manasa,
           I did that.
    It's working in the SmartForm and in now it's working in my layout also.
    But,the spool output is not the output of my table-view.
    can u tell me what may be the reason ?
    Regards,
    Deepu.K

  • SEND_ERROR in the SMARTFORM function module

    Hi All,
    I want to send the PO via e-mai as attached PDF file. It is working fine in DEV. But in PRD i am getting SEND_ERROR in the SMARTFORM function module.
    can any one hep me to fix this????
    CALL FUNCTION fm_name
        EXPORTING
          archive_index      = toa_dara
          archive_parameters = arc_params
          control_parameters = ssfctrlop
          output_options     = ls_composer_param
          user_settings      = 'X'
          nast               = nast
          zxekko             = zxekko
          zxpekko            = zxpekko
        IMPORTING
          job_output_info    = job_output_info
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    Rgds,
    Rajesh.

    Hi,
    Go to se37,enter ur generated function module name .
    Put a brkpoint at first executable statement of that FM.
    If u run ur program,then it will stop.
    Then put brk point on SSRFT_READ_ERROR(From menu).
    after press f8,u will know what is the reason of ur error.
    and check thjis also
    http://wiki.sdn.sap.com/wiki/display/Snippets/Unique+Driver+Program+for+any+smartform+of+a+transaction
    Try like this.
    Thanks
    Gourav.

  • Send Email Attaching the Report generated in Program.

    Hi All,
    I am generating a report in list format with write statements.
    My requirement is to send an email attaching this report as an attachment.
    I wanted to know how to get the listobject of the report generated by my program from the memory. Can anyone guide me with this ?
    It will be appreciable , If any one can give me more information on sending mails attaching the reports  generated by the program.
    Thanks in advance,
    Mayank

    Hi,
    I think the problem is not clear.
    My problem is to get the listobject name which got generated after the program run.I want to attach this list report to the email. I have seen a code from one of the link.
    Here it is.
    List of Users According to Logon Date and Password Change
    NOTE: Create ALI/OTF Document in Spool
      SUBMIT rsusr200 WITH valid = 'X'
                      WITH notvalid = space
                      WITH unlocked = 'X'
                      WITH locked = space
                 EXPORTING LIST TO MEMORY AND RETURN.
    <b>* Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'LIST_FROM_MEMORY'.
      ENDIF.</b>
    Because listobject is of size RAW(1000)
    and objbin is of size CHAR(255) we make this table copy
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in             = lt_listobject
          out            = lt_objbin
        EXCEPTIONS
          compress_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'TABLE_COMPRESS'.
      ENDIF.
    Here the report is sumitted with the option of exporting the list in to the memory which is later read using 'LIST_FROM_MEMORY'.
    But here i need the same report's output to be captured and want to read the list generated from memory into table.
    How can i get the listobject of the list generated by the report in the same report program itself ??
    Please let me know.
    Mayank

  • Text and table structure getting jumbled up in the smartform output

    Hi all ,
    While viewing the print preview of a smartform output , i am facing  a strange issue.
    The hardcoded text is getting jumbled up .For eg:"As soon as possible"  becomes " as possible . soon as"
    The structure of the table is also getting reversed.That is the table is now getting displayed with the last couloum first.The data in the table is also coming in the reverse order.
    While executing the smartform directly , the layout is coming in the proper order.But while executing this through a transaction (FINT) , this issue is coming up.The print program is a standard program.
    I have tried deleting the window , copying it to a new smartform etc.I have also tried in different systems to check whether if it is an issue with the system.
    If anyone has faced a similar issue , please let me know how to solve it.Thanks a lot in advance.
    Regards,
    Rashmi

    Hi
    Please check the Printout rather the print Preview. and also check the Structure/table entries also that u printing and also if u r using template, then check the assignment 1 of 1 , etc to the texts.
    surya

  • How to change 'created by' name in the smartform

    Hi,
    I have copied one standard smartform into Z_smartform. My z_smartform is having 'created by' name as in standard smartform.
    Could anyone please tell me how to change that name to my name.
    Thank you,
    Regards,
    Kusuma.

    Hi,
    Now I understand. I tried to reproduce your problem by copying a standard smartform and the 'Create by' had my user ID.  But now you say you uploaded the smartform from a file it becomes clear.
    The uploaded smartform will retain the user ID from the original form, if you want to change this copy the form to a temporary name, then copy it back again to the original name.
    Regards,
    Nick

Maybe you are looking for

  • Unable to install 3.1 application into 3.0.1.00.07

    Hi everyone, I am trying to import Mr.Kubicek's application into my workspace, but I am getting an error as follows: ORA-20001: GET_BLOCK Error. ORA-20001: Execution of the statement was unsuccessful. ORA-06550: line 9, column 1: PLS-00306: wrong num

  • Problem about the "EOF"

    I am trying to load spatial data into a database with SQL*Loader and it work, after that i valid each geometry in the spatial column by calling SDO_GEOM.VALIDATE_GEOMETRY_WITH_CONTEXT() then oracle show me that the connection gateway is "EOF" and the

  • How to make cell editable in new alv

    hi experts: i'm use cl_salv_table=>factory to display data, but I can't make some cell or column editable,does any body can help me?thanks!

  • Controlling multiple movies with one button

    Hi flash gurus, I have 4 movies of the same length running on my stage in the FLV playback component, with different instance names. I also have a single play/pause component. I want all of the movies to play together and unpause/pause when I press t

  • Moved project and now can't open it in FCP X

    In a moment's inattention I moved the project folder to a different location on my Movie Directory. Final Cut couldn't find it so I ppanicked and put it back. Still FCP X cannot find it. I am sure I haven't lost it as it appears in FCP X Project list