Attach customized smartform in IW32

Dear Experts,
I need to copy the standard smartform to a customized one and make some changes and attach it. The already attached form is a PM_COMMON which is a script.
1. Is there any smarform, if yes then what?
2. How can I attach standard driver program with the customized form? Will it get attached automatically if the write customized smartform name in the form below?   
Regards
Mani

Hi Mani,
you can copy driver program  RIPRCT00 to zRIPRCT00 something. and  comment
PERFORM main_print. from this driver program. once you comment this Perform then your SAP script part will be  disconnect from this.
you can add new  perform  after PERFORM order_data_import and  add your SSF code here  like below reference code.
-tdcopies         = wworkpaper-tdcopies.    " copies
  lwa_outputop-tdnewid          = wworkpaper-tdnewid.     " new spool entry
  lwa_outputop-tdimmed          = wworkpaper-tdimmed.     " immediately
  lwa_outputop-tddelete         = wworkpaper-tddelete.    " delete after
  lwa_outputop-tdcover          = wworkpaper-tdcover.     " cover page
  lwa_outputop-tdcovtitle       = wworkpaper-tdcovtitle.  " title for cover
  lwa_outputop-tdreceiver       = wworkpaper-tdreceiver.  " report to ->
  lwa_outputop-tdarmod          = wworkpaper-tdarmod.     " Archive mode
  lwa_outputop-tdtelenum        = wworkpaper-tdtelenum.
  lwa_outputop-tdteleland       = wworkpaper-tdteleland.
  IF NOT wworkpaper-print_lang IS INITIAL.
*... reset the default print_language with a specific language
*... if it was set in t390_u or set on the paper selection screen
    print_language =  wworkpaper-print_lang.
  ELSE.
    print_language =  original_print_language.
  ENDIF.
*... should a print record be written later.
  IF device = c_screen
  OR device = c_preview.
    dont_log = yes.
  ELSE.
    dont_log = space.
  ENDIF.
  IF device = c_preview.               " special print preview option
*    itcpo-tdpreview = yes.
*    itcpo-tdnoprint = yes.             " no sneaky printing from SAPSCRIPT
    lwa_outputop-tdnoprev = ''.
    lwa_outputop-tdnoprint = 'X'.
  ELSE.
* itcpo-tdpreview = space. " make sure preview is off otherwise
    lwa_outputop-tdnoprev = 'X'.
  ENDIF.
*$*$ ARCHIVE LINK
  g_toa_dara_tab-function   = c_dara.  "archive function
  g_toa_dara_tab-sap_object = archive_type. "Order or Notification
  g_toa_dara_tab-ar_object  = t390-ar_object.  "arch object
  g_toa_dara_tab-object_id  = object_id.    " order or notif number
  g_toa_dara_tab-mandant = t390-mandt.
  g_arc_params_tab-sap_object  = archive_type. "Order or Notification
  g_arc_params_tab-ar_object   = t390-ar_object.
  g_arc_params_tab-mandant = t390-mandt.
  g_arc_params_tab-report = t390-abapname.
*-> SY fields not available in update task
  g_arc_params_tab-arcuser = sy_uname.
  g_arc_params_tab-datum   = sy_datum.
  lwa_ssfctrlop-no_dialog = 'X'.
  lwa_ssfctrlop-preview = 'X'.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = lc_fname "'ZPMEU_MAINTN_JOB'
    IMPORTING
      fm_name            = lw_fmname
    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 lw_fmname
    EXPORTING
      archive_index      = g_toa_dara_tab
      archive_parameters = g_arc_params_tab
      control_parameters = lwa_ssfctrlop
      output_options     = lwa_outputop
*     USER_SETTINGS      = 'X' "space'
      caufvd             = caufvd
      riwo1              = riwo1
      iloa               = iloa
      iviqmel            = iviqmel    "FSTS1628
    TABLES
      iaffhd             = iaffhd
      op_print_tab       = op_print_tab
      kbedp_tab          = kbedp_tab
      ihpad_tab          = ihpad_tab
      ihsg_tab           = ihsg_tab
      ihgns_tab          = ihgns_tab
      iafvgd             = iafvgd
      iripw0             = iripw0
      iresbd             = iresbd.
same reference code you can call in your samrtform.
Please try to this way for your development. It may be helpful for you.
Regards,
Prasenjit

Similar Messages

  • 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

  • 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

  • Calling custom Smartform on execute Campaign

    Hello experts,
    does anybody know which steps i need to take when i wnat to execute a custom Smartform instead of sending e-mail.
    I need to attach Smartform because to campaign needs to generate a phsical letter which is made in StreamServe bases on the XSF file the Smartform generates.
    Waiting for reply
    Greetings Richard

    Hi,
    As far as I understand, in order to execute a Smartform you need to implement this using BADI 'CRM_MKT_EXP_CAMP_DAT'.
    (This is exit used for Connecting External Tools for Follow-Up Processing)
    Follow customization path :
    SPRO > CRM > Marketing Planning and Campaign Management > Campaign Execution > BADI's >
    BAdI: Transport of Campaign Data to Open Channel
    Use method : IF_EX_CRM_MKT_EXP_CAMP_DAT ~ EXPORT_CAMPAIGN_DATA to implement the same.
    Hope this is useful and helps.
    Regards,
    Anup

  • Attach Custom Report to PO Approval Notification

    Hi All,
    I m currently working on a requirement to attach a custom report along with the PO Output for communication report in the PO Approval. I was tracing and found out that the PO Output for communication has been submitted in PO_COMMUNICAITON_PVT package. After that i am unable to trace further. Please let me know how i can i trace this and how to attach a custom report in PO Approval.
    Thanks in advance.

    Hi,
    We are unable to understand your requirement correctly.. Do you use any schedule conc. request to generate the Custom report??? At what time you want to attach custom report in the PO, during the PO creation process by the buyer (before submitting for approval)?
    Can the buyer, generate the custom report and save it locally (in his m/c) before attaching it to the PO..?
    Kind Regards,
    S.P DASH

  • 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...

  • 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

  • Contents of a custom print program for a custom smartform

    Hi...
    Can you please tell me if we are writing a custom print program from scratch for a custom smartform for which there is no standard form available what are all the things that need to be coded in the print program..
    My doubts on this are if we are configuring this form for output types of PO purchase order for mediums 1,2, 5 and 6 does any extra coding need to be done in the print program that is related to these mediums or is it just a configuration issue..
    Apart from data retrieval part and call the function modules to send the data to smartforms what are the other things that we need to code in a custom smartform..  Anything that we need to code related to printing issues..
    It would be great if someone can post a custom print program for any output type valid for mediums 1, 2, 5 and 6.
    Also my last doubt is do we need to do anything in SE11 in designing a smartform and in what context do we need it...
    Thanks and appreciate your help... Surely will reward for all the helpful answers..
    Thanks again..
    Kanthi..

    Hi,
    yes you need to create your own print program. You need to catch printing information and to send data to your smartforms.
    To send data to your smartforms you need to use structure describe in the data dictionnary.
    This is a peace of code for sending information to a smartform that will be print used an external program (Esker)
      DATA: it_data       LIKE TABLE OF zssf_bl WITH HEADER LINE,
            w_formname TYPE tdsfname ,
            w_fm_name  TYPE rs38l_fnam ,
            is_output  TYPE ssfcompop ,
            is_control TYPE ssfctrlop ,
            is_job_out TYPE ssfcresop .
    *  Récupère le nom du module fonction.
      MOVE 'Z_BL_STT' TO w_formname.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = w_formname
        IMPORTING
          fm_name                  = w_fm_name
        EXCEPTIONS
          OTHERS                   = 3.
    * Prépare les paramètres d'impression.
      is_output-xsfcmode   = 'X'.
      is_output-xsf        = 'X'.
      is_output-xsfoutmode = 'S'.
      is_output-xsfoutdev  = 'DOCL'.
      is_output-xsfformat  = 'X'.
      is_output-tdnoprev   = 'X'.
      is_output-tdnoprint  = ' '.
      is_output-tddest     = 'DOCL'.
      is_output-tdprinter  = 'PLAIN'.
      is_output-tdnewid    = 'X'.
      is_output-tdimmed    = 'X'.
      is_output-tddelete   = 'X'.
      is_control-no_dialog = 'X'.
      is_control-preview   = ' '.
      is_control-no_open   = 'X'.
      is_control-no_close  = ' '.
    * Prepare le formulaire
      CALL FUNCTION 'SSF_OPEN'
        EXPORTING
          user_settings      = ' '
          output_options     = is_output
          control_parameters = is_control
        IMPORTING
          job_output_options = is_job_out
        EXCEPTIONS
          OTHERS             = 5.
    * Appels du formulaire.
      CALL FUNCTION w_fm_name
        EXPORTING
          control_parameters = is_control
          output_options     = is_output
          is_bl              = zbl_soustrait
        TABLES
          it_data            = it_data
        EXCEPTIONS
          OTHERS             = 5.
    You need to catch information from the NAST table maybe
    Rgd
    Frédéric

  • Custom SmartForm for Purchase Order Printing

    Hi,
    I need a customized smartform for purchase order, which is called after the standard transaction ME9F.
    I adjusted "Conditions for Output Control" by using transaction NACE  ( Erased the name of the form MEDRUCK, Entered my customized smartform's name under smartform Form part and chose the type as smartform )
    However, I couldn't success to see my printview whereas I continued to see the printview of Medruck.
    I'd searched for the problem through here and the net,  I found some names of smartforms such as: /SMB40/MMPO_L  and /SMB40/MMPO_A and their driver programs like: /SMB40/FM06P . The package which consists of these elements was mentioned as " /SMB40/ "... but despite I downloaded it, my system still doesn't have the elements.
    So, how can I use my own purchase order smartform or if i need the forms mentioned,  in which best practice package i can find them?
    SAP ECC 6.0
    SAP_APPL 604
    SAP_BASIS 701
    Thanks in advance,

    Hi,
    If your SAP doesnt have a standard smartform for PO, it is quite complicated to use smarform rather than sapscript.
    I guess that you will need to modify the program SAPFM06P that calls the sapscript and make it call the smartform.
    I will take a few time to adapt the sapscript.
    Regards
    Miguel

  • Passing data to custom smartform from a custom program...

    Hello Gurus,
    Since, the function module gets generated dynamically at runtime when smartform is activated, I know that first I should use  "SSF_FUNCTION_MODULE_NAME" and pass custom smartform name to it to get the name of function module. Then I have to use call function '/XXXXXXXXX'.
    Now, I am writing a custom code and I want the data from my select program in custom program to be passed to smartform ? How can I pass the data from my custom program to smartform ? Do I pass it before using function module "SSF_FUNCTION_MODULE_NAME" ? If yes, how ?
    Regards,
    Rajesh.

    hi,
    u have to declare ur structures in form interface and can retrive the data from custom program.
    check this sample code.
    declare structure in interface.
    WA_MKPF TYPE MKPF.
    write ur custom code lik this.
    DATA: wahz TYPE zmemigo_form_header,
          wa_mkpf  TYPE mkpf.
    DATA: t_itemz LIKE zmemigo_form_item OCCURS 0,
          t_mseg   TYPE mseg OCCURS 0,
          waitemz TYPE zmemigo_form_item,
          waitem TYPE mseg.
    DATA : form_name TYPE tdsfname VALUE 'ZPS_STN'.
      DATA : fnc_module TYPE rs38l_fnam.
    SELECT SINGLE mblnr INTO wa_mkpf-mblnr FROM mseg
                CLIENT SPECIFIED WHERE  mandt EQ sy-mandt
                                   AND  mblnr EQ p_mblnr
                                   AND  mjahr EQ p_mjahr
                                   AND  bwart EQ '351'
                                   AND  shkzg EQ 'H'.
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = form_name
        VARIANT                  = ' '
        DIRECT_CALL              = ' '
        IMPORTING
         fm_name                  = fnc_module
        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 fnc_module
        EXPORTING
          wa_headz         = wahz
          wa_mkpf          = wa_mkpf
        TABLES
          it_itemz         = t_itemz
          it_mseg          = t_mseg
        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.

  • 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.

  • How to Rename A custom Smartform

    Hello Experts,
    I have a custom smartform downloaded from legacy ex: YTEST, i need to rename it as ZTEST and upload to the current R3 system.
    Thanks
    Rajasekhar
    Moderator message: please search for available information first.
    Edited by: Thomas Zloch on Mar 6, 2012

    Hi Rajasekharnr,
    You can upload the smartform using  "Utilities->Upload Form"  from  the SMARTFORMS inital screen.

  • Configure HRFORMS to call a custom Smartform.

    Hello All-
    We have a custom Payroll Form created in PE51 and we have a custom smartform which uses this custom payroll form.
    By using TCode HRFORMS can we configure to call a custom smartform. If so can you please let me know how? Or do you have a document of how to use HRFORMS please let me know.
    Thanks-
    Chakri.
    Edited by: chakri somisetti on Jul 1, 2008 4:54 PM

    Hi Chakri,
    I think PE51 forms are different from what you do from HRFORMS...
    PE51 uses a intermediate config table which can be maintained via PE51_CHECKTAB tcode. It allows you
    to configure what data to print at waht position and other formatting options. You can enhance std. print program behind the form class (CEDT etc ) to select any custom data and print it on the form.
    HRFORMS - you create a form here and choose the pre-prepared data strctures - here the front form can be a smart from or form builder (PDF forms - tcode SFP). IF you create a form from HRFORMS it will generate the underlying form and print program for you. You can then modify this form as per your requirements...
    I dont have much knowledge on how to use that Infostars/info dimensions of HRFORMS. may be you can look at a standard from or search in the forums. I am sure you will find some useful info...
    hope this helps
    thanks

  • Adding a custom field in IW32 Components tab

    Hi,
    I had a requirement to add a custom field in the "components" tab of IW32 transaction.
    I tried to find out an exit for this transaction but I haven't found any exit that fullfills this requirement.
    Please provide me some information whether there is an Exit, BAdI or any enhancement spots available to add a custom field.
    Thanks in Advance.

    Hi,
    you can add a custom tab in IW32 tcode via the function group XWOC.

Maybe you are looking for

  • HP laserjet pro 200 color printer m251n dependency on usbstor

    hello sir.

  • How to show a dynamic title

    Hi Guys, I have a simple question. How do I do in the selection screen that when certain value is entered to the selection field there appears another characteristic of the value next to it. For example in the selection screen a user enters vendor nu

  • Can't install iTunes on my new Vista-PC

    I bought my Dell Notebook 2 months ago. It's with Vista Home Premium (no upgrade from XP, Vista installed from the beginning) and runs fine so far. But I've got no chance installing iTunes - seems to be simply impossible (it tells something of "Visua

  • When I type on the iPad the cursor disappears

    If I am typing in an email or a google document And have to go back to change something, I am unable to do so.  If it lets me go back, I can't move the cursor back to the end of the sentence.  Anyone else have this problem? I don't see the cursor at

  • How to get rid of the green screen from BrinH

    Using Windows 7 with Firefox 33, Internet Explorer 11 and Flash Player 15.0.0.189. Each time I try to play a video instesd of the start playing arrow a green screen opens, the audio plays for about 30 seconds and then stops. I have to use Task Manage