Issue in attachment of smartform to VF03

Hi Experts,
I have done research still the issue is not solved.
I have to attach customized smartform in vf03. When the user clicks the print option, it should open the print preview of the smartform. In menu, when I click billing document-->issue output to, it says 'No output has been selected for printing'.
How to do it? Please guide.
Thanks
Purnand

purnand dhingra
Check Nace Settings, did u assign correct program or not ?
just assign standard driver program with your customized and see the results.
based on that you copy standard one to Z , and make the changes again as per your requirement.
Regards,
Bastin.G

Similar Messages

  • How to attach ERP smartform to a ERP Quotation generated from CRM 7.0

    Hi,
    I have this requirement of calling the ERP smartforms in CRM 7.0 where ever applicable.
    I don't want to use Transaction Launcher and also creating the same smartform in CRM would be double work.
    1. Can we attach a smartform of ERP to LEAD/OPPORTUNITY when we click on the MORE button on toolbar and choose PREVIEW OUTPUT/ TRIGGER OUTPUT. I think in ACTION we can just assign a smartform which is created in CRM system.
    Actually this is my client requirement and since my first CRM implementation do't know whether this is a valid point and how to go on.
    2. Also on ERP Quotation view page (toolbar) there is no button called MORE to PREVIEW OUTPUT. Can we assign a smartform to ERP Quotation?
    If any body can direct me on this issue would be of great help and full points will be given.
    Thanks,
    Jaya

    Hi,
    as far as I know there is no standard way of doing this in CRM 7.0.
    I imaging it would be possible to call an ERP smartform from CRM by :
    - writing an RFC capable function module in ERP that wraps the call of the smartform and returns the generated PDF data.
    - writing a function or method in CRM that calls the ERP function module and displays the returned data.
    In the lead and opportunity the print preview is done by having a print relevant action in the action profile assigned to the transaction type and I guess for these it should be possible to call a function module by creating an own smart forms method.
    But I think this is not possible for an ERP quotation, so you would have to create an own button. In the event handler for this button, one could call the ERP function module and display the result.
    Paul

  • Issue with attachment in OAF

    Hi All,
    I have a issue with attachment functionality in OAF,
    I have a custom OAF page, in the header part of the page i have one attachment button there i am attaching a file, so i am able to attach the file the issue is.
    when the page loads for the first time it will populate a sequence in one of the field in the page , but when i am clicking the add attachment button i am able to aatched a file but the sequence getting chnaging, but i need the same sequence wht it was displayed during first page loads, so how i can restict page refreshing in attachment functionaly so that i can store the attachment file in the same sequence number what it was populared first time, please help me on this.
    Thnaks

    I could able to solve the issue by using the above code in an if else statement, in process request i kept
    like below:
    if (aFlag.equals("attachment")) {
    am=(OAApplicationModule)pageContext.getSessionValueDirect("xxretainAM");
    else
    rest of my code in process request
    Thnaks

  • Issue with attachment file name

    Hi All,
    This is about an issue with attachment file name:
    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    Regards
    kiran

    we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
    - <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
      <SAP:Name>1 .Header1.txt</SAP:Name>
    Error we are getting is
    Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
    So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
    Thanks for interste and assisting
    Regards
    Kiran

  • Attaching multiple smartform to single output type

    Hello Experts,
    I have 2 different smartforms for invoice....
    these two i have to call depending upon the type of customer.
    I want to know that is it possible to attach both smartform to single output type ( in this case RD00).
    if not..., Please suggest me how i can achieve this.
    Thanks,
    Amar

    If your question is if is it possible to have 2 different SMFs in one single output the answer is yes.
    You have to use the control_parameters-no_open and control_parameters-no_close
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname           = 'ZSMF1''
        IMPORTING
          fm_name            = g_funcion
        EXCEPTIONS
          no_form            = 1
          no_function_module = 2
          OTHERS             = 3.
      IF sy-subrc EQ 0.
        g_control_param-no_close = 'X'.
        CALL FUNCTION g_funcion
          EXPORTING
            control_parameters         = g_control_param
          TABLES
            g_t_lugares                = g_t_lugares2
          EXCEPTIONS
            formatting_error           = 1
            internal_error             = 2
            send_error                 = 3
            user_canceled              = 4
            OTHERS                     = 5 .
    *   Smartform Puestos
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = 'ZSMF2''
          IMPORTING
            fm_name            = g_funcion
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        IF sy-subrc = 0.
          g_control_param-no_close = ''.
          g_control_param-no_open  = 'X'.
            CALL FUNCTION g_funcion
              EXPORTING
                control_parameters = g_control_param
                i_num_pages        = l_tot_pages
                i_curr_pages       = l_pages_2
              TABLES
                g_t_puestos        = g_t_puestos_ssf
              EXCEPTIONS
                formatting_error   = 1
                internal_error     = 2
                send_error         = 3
                user_canceled      = 4
                OTHERS             = 5.
          ENDIF.
      ENDIF.

  • How to Attach a Smartform to a BOR method

    Hi Friends,
    I had a query How to Attach a Smartform to BOR method.To attach a customized Smartform to a Customized BOR Object.

    Hi,
    In the BOR object, create a method say display_SF. Now in the ABAP properties for that method give "OTHER" option.
    Now in the BOR object, you can find the program which is used. Inside that program, You need to write the code to fetch the required data (ONLY BASIC REQUIRED DATA WILL BE ENOUGH) and call the smartform by passing all the print parameters and all the required data for that smartform.
    Now inside the smartform, with imported required data, you can write all the logic and data fetch etc for the printouts.
    The following sysntax can be used to fetch the required data into the method and can use to pass the same while calling the smartform.
    SWC_GET_ELEMENT CONTAINER 'Plant' PLANT.
    Regards,
    Harish

  • Attach a Smartform as a document to an Opportunity

    Does anyone know if it is possible to automatically attach a Smartform as document to an Opportunity.
    e.g.
    I have created an Opportunity and I have printed out the Offer (Smartform) But now I want this Offer to be saved as an attachement (Document tab) to this Opportunity.
    I hope there is someone who an help me!
    Thanks in advance!
    Best regards,
    Joost Goudriaan

    Couple of points.
    Someone with only Pages '09, or early Pages v5 releases, will not be able to open that Pages v5.2.2 document
    Pages v5.2.2 saves documents as folders. Right-click on the document, and then choose compress.
    The document is now a single file object (filename.pages.zip), and will attach to Mail with no problem
    Recipients save from Mail, and double-click to convert back to filename.pages.

  • Output could not be issued message whlie handling smartforms.

    while executing the smartform i am getting Output could not be issued message and i am getting no display.
    My functinal consultant had created new output type for VF03 tcode ( a copy of existing one), and i copied the same program and smartforms with slight modifications.
    now while executing the output type through VF03 I am getting the abouve message.
    and while checking there is no data in JOB_OUTPUT_INFO internal table of the smartform.
    what will be the reason? and how to correct this.
    <b>this is an urgent task.</b>

    Hi,
    This might be mostly becoz of due to data not getting passed to the Smartform.
    First ensure that, you get the data in the internal table of the Driver program and then check the same in the SM...
    So please check and let me know if the problem persists.
    Thanks,
    Vishnu.

  • Issues with attaching an Adobe Story File to a clip in PPCC

    Hi,
    I read through a lot of stuff and watched a couple videos but still have an issue with the attachment.
    What I do is I go into the Metadata and assign my scene number (3.01). I export the script as a .astx. File/right click, attach story file-> select the file go back to metadata and it tells me nothing found. This is really frustrating what's wrong with it?

    Worked this one out, I had the bullet set on file and not staging

  • Send email through SO_NEW_DOCUMENT_ATT_SEND_API1 with PDF attachement of smartforms.

    Hi,
    I am converting a smartform to PDF and then sending it as an attachment to email using FM SO_NEW_DOCUMENT_ATT_SEND_API1.
    But I am getting this error. 'Error calling FM <SBCOMS_SEND_REQUEST_CREATE> in <SO_DOCUMENT_SEND_API1> with SY-SUBRC <1>'
    I am passing below entries to packaging list table.
    Packing list for Email Text
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'RAW'.
    Packing list for PDF
            ls_packing_list-transf_bin = 'X'
            ls_packing_list-head_start = 1.
            ls_packing_list-head_num   = 1.
            ls_packing_list-body_start = 1.
            ls_packing_list-doc_type   = 'PDF'.
    Please let me know if I am missing anything.
    Regards,
    Nishant

    Hi Nishant,
                   Please refer my below code last week only i have implemented this logic.
    call function 'CONVERT_OTF'
         exporting
           format                = 'PDF'
           max_linewidth         = 132
         importing
           bin_filesize          = w_bin_filesize
         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.
    pdf_output[] = t_pdf_tab[].
    loop at pdf_output.
         translate pdf_output using ' ~'.
         concatenate gd_buffer pdf_output into gd_buffer.
       endloop.
       translate gd_buffer using '~ '.
       do.
         it_mess_att = gd_buffer.
         append it_mess_att.
         shift gd_buffer left by 255 places.
         if gd_buffer is initial.
           exit.
         endif.
       enddo.
       ld_email   = p_email.
       ld_mtitle = p_mtitle.
       ld_format              = p_format.
       ld_attdescription      = p_attdescription.
       ld_attfilename         = p_filename.
       ld_sender_address      = p_sender_address.
       ld_sender_address_type = p_sender_addres_type.
    *#Fill the document data.
       w_doc_data-doc_size = 1.
    *#Populate the subject/generic message attributes
       w_doc_data-obj_langu = sy-langu.
       w_doc_data-obj_name  = 'SAPRPT'.
       w_doc_data-obj_descr = ld_mtitle .
       w_doc_data-sensitivty = 'F'.
    *#Fill the document data and get size of attachment
       clear w_doc_data.
       read table it_attach index w_cnt.
       w_doc_data-doc_size =
          ( w_cnt - 1 ) * 255 + strlen( it_attach ).
       w_doc_data-obj_langu  = sy-langu.
       w_doc_data-obj_name   = 'SAPRPT'.
       w_doc_data-obj_descr  = ld_mtitle.
       w_doc_data-sensitivty = 'F'.
       clear t_attachment.
       refresh t_attachment.
       free t_attachment.
       t_attachment[] = it_attach[].
      clear it_attach[].
      refresh  it_attach[].
      free  it_attach[].
    *#Describe the body of the message
       clear t_packing_list.
       refresh t_packing_list.
       t_packing_list-transf_bin = space.
       t_packing_list-head_start = 1.
       t_packing_list-head_num = 0.
       t_packing_list-body_start = 1.
       describe table it_message lines t_packing_list-body_num.
       t_packing_list-doc_type = 'RAW'.
       append t_packing_list.
    *#Create attachment notification
       t_packing_list-transf_bin = 'X'.
       t_packing_list-head_start = 1.
       t_packing_list-head_num   = 1.
       t_packing_list-body_start = 1.
       describe table t_attachment lines t_packing_list-body_num.
       t_packing_list-doc_type   =  ld_format.
       t_packing_list-obj_descr  =  ld_attdescription.
       t_packing_list-obj_name   =  ld_attfilename.
       t_packing_list-doc_size   =  t_packing_list-body_num * 255.
       append t_packing_list.
    *#Add the recipients email address
       clear t_receivers.
       refresh t_receivers.
       free t_receivers.
       clear : email.
       select single usrid_long into email from pa0105 where pernr = wa_pernr-pernr
         and subty = '0010' and seqnr = ''.
       t_receivers-receiver = email.
       t_receivers-rec_type = 'U'.
       t_receivers-com_type = 'INT'.
       t_receivers-notif_del = 'X'.
       t_receivers-notif_ndel = 'X'.
       append t_receivers.
       ld_sender_address = 'HRD1'.
       ld_sender_address_type = 'B'.
       call function 'SO_DOCUMENT_SEND_API1'
            exporting
                 document_data              = w_doc_data
                 put_in_outbox              = 'X'
                 sender_address             = ld_sender_address
                 sender_address_type        = ld_sender_address_type
                 commit_work                = 'X'
            importing
                 sent_to_all                = w_sent_all
            tables
                 packing_list               = t_packing_list
                 contents_bin               = t_attachment
                 contents_txt               = it_message
                 receivers                  = t_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.
    *#Populate zerror return code
       ld_error = sy-subrc.
    *#Populate zreceiver return code
       loop at t_receivers.
         ld_receiver = t_receivers-retrn_code.
       endloop.
    check it and Revert back .
    Regards,
    Thangam.P

  • How to attach a smartform in to an e-mail

    Hi All,
        My scenario is i wants to send a quotation details to customer for acceptance for this i prepared a smartform which contains quotation details. I wants to send this information to Customer for this i created a Outgoing email activity can i send by using this activity, if yes let me know how to attach smartform in to this activity and how this ourgoing email will reach to customer , what settings i need to do.
    Thanks in Advance.
    kumar.

    Hi,
    Go to SPRO Customer Relationhip management ->transactions->BasicSettings->DefineTransactionTypes.
    Here select your  order type and press on display appliction tool bar .
    you will see 5 different blocks.
    In Profiles block, for the field Action Profile select ZORDER_MESSAGES for email and ZORDER_MESSAGES_PRINT for printing.
    Thank You,
    Gajendra.

  • Issue with Attachment download from Mail?

    I am having an issue with an attachment. I opened the attachment from an email account on my iPad2 and the screen has just gone black. Mail will not let me out of trying to view the attachment. I tap on the screen and nothing happens. It has frozen my mail accounts. Any one have an idea how to cancel the attachment if the mail is not responding?

    Do a hard reset: Press and hold on the Home button and the On/Off button at the same time. Continue to hold even after you see the "Slide to Power off" screen. Hold until the Apple logo comes up.

  • Output issue in production for smartforms

    Dear friends,
    ther is  an issue in printing of the form in production. the same smartform is working for few of the documents in production and not working for many of the documents. there is a message please filnd it below.
    *Table INFO does not fit into window.*
    *Message no. SSFCOMPOSER173*
    *Diagnosis*
    *You tried to display table INFO in a window. However, the table either is too wide for the window or a horizontal shift by the specified value is impossible because the table would then no longer fit into the window. The same error occurs if a template is too high for the current subwindow. This is usually noticed in the check when the form is activated, but in some cases (with device types such as ASCIIPRI) the table measurements have to be adapted and this does not occur until runtime. With device type ASCIIPRI, for example, only integral multiples of 1/6 inches (vertical) or 1/10 inches (horizontal) can be used for positioning. The height of a line within a template therefore changes, for example, from 3mm to 4.2mm, causing the total height of the template to increase and exceed the height of the window.*
    *System Response*
    *The system issues an error message.*
    *Procedure*
    *Correct the positioning of table INFO or make the window bigger*
    i even increased the size of the form a lot
    If any one find the problem please help me.
    thanks and regards,
    venkat.

    Hi
    Check This Link
    smartforms error 173
    Re: smartform
    i Hope you can find Solution
    Ranga

  • Issue with attachment

    Hi,
    I have added an attachment to a custom page and I've create a custom table for this attachment with two columns :
    1. FILE_OBJECT with BLOB type
    2. FILE_NAME with VARCHAR2
    I am able to upload successfully any file to the FILE_OBJECT column (and the file display as 'VIEW' link ) but the issue how I can display the file name into the FILE_NAME column
    Please advise.
    Regards...Ashraf

    I ran the gpupdate on some machines and it seems to work but got some feedback from 1 user sherandomly has the pdf problem. 
    What is the setting in GPO that define the attachment in outlook?

  • How to attach a smartform in BOR object

    Hi,
    I want to know how to attach a z smartform to BOR object? I tried to search out here but not able to have the result.
    Kindly provide the guidelines for it....
    Regards,
    Rickky

    Hi,
    In the BOR object, create a method say display_SF. Now in the ABAP properties for that method give "OTHER" option.
    Now in the BOR object, you can find the program which is used. Inside that program, You need to write the code to fetch the required data (ONLY BASIC REQUIRED DATA WILL BE ENOUGH) and call the smartform by passing all the print parameters and all the required data for that smartform.
    Now inside the smartform, with imported required data, you can write all the logic and data fetch etc for the printouts.
    The following sysntax can be used to fetch the required data into the method and can use to pass the same while calling the smartform.
    SWC_GET_ELEMENT CONTAINER 'Plant' PLANT.
    Regards,
    Harish

Maybe you are looking for