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.

Similar Messages

  • Mulitple Smartforms for single output type

    Hi Experts,
    I have 4 programs and 4 smartforms and One output type Z999.
    Depends on Company code i need to generate appropriate smartform using VF02.
    ( 4 programs & 4 smartforms means,
      US invoice, US Creditmemo, Canada Invoice and Canada creditmemo).
    Is it possible to assign 4 smartforms & 4 programs in NACE transaction in single output type?
    If it is not possible what is the way? Please adivise me.

    Hi,
    I don't think so that you can not do it directly. But there is a workaround for your problem. You can define your output type as SAP script and enter program name and entry routine. You can ignore a SAP script name because you are going to use Smartforms. In this entry routine you will call different Smartforms based on company code of your document.
    But why don't you use different output types for different documents? That would be the best solution.
    Cheers

  • Can we call multiple Smartforms from single Driver Prog?

    Hi all,
    Can we call multiple smartforms from single Driver Program. Here Driver program is custom Program.
    I want to give Print Parameter only once and output should get printed one after the another smartform in same order of smarforms were called.
    If yes, then how?
    Thanks in advance.

    Yes, you can do this in your Smartform driver program.
    Each time you call you Smartform function module you will need to change the values in structure OUTPUT_OPTIONS slightly.
    On the first call set TDNEWID to X.
    After this, set it to space
    On the last form set TDFINAL to X.
    This will put all of the output into one spool request, in the order they are called in the program.
    Regards,
    Nick

  • Help required: Two smartforms for same output type?

    Dear All,
    I have a requirement to display bill of lading for a shipment.
    The shipment usually contains two kinds of materials.
    The data to be displayed for the first set of materials data is different from what is
    displayed for the second set/kind of materials. The layout(columns and structure) is entirely
    different. But the user wants to see the two sets of data in two pages, (for the same output type).
    But, from what I know, we can only associate one smartform to an output type.
    Any inputs.
    Thanks.

    Hi
    V/30, just check your output type, if you click on form and routines there is option assigning multiple programs and forms (i,e, Upto 5).
    Have not tried it , you can try and let us know your feedback
    Regards
    Jitesh

  • How to attach Multiple attachments to single mail

    How to attach multiple pdfs to single mail  ?
    or
    how to attach one pdf & One excel & One word document to single mail ?
    Thanks In Advance

    Hello Karunya,
    Please refer to the link below.
    https://wiki.sdn.sap.com/wiki/display/Snippets/Send%20email%20with%20multiple%20zipped%20attachments
    Regards,
    P Bansal

  • Send PDF attachment to Multiple Receipents - SD Document Output Type

    Hi,
    i have created a new output type in v/30 transaction for the sales order to send externally (i.e. as Email attachment). Output type ZWWW and Application V1. In the mail Title and texts entered the title (Subject). In the processing routines selected medium as u201CExternal Sendu201D and program /SMB40/RVADOR01, Form routine as ENTRY and also inputted the custom smartform name in the PDF/Smartform form. In the partner function tree, selected sold-to party (SP) for External send. SAVEd it.
    The above setup will send email to just one email id maintained in the customer master. I wanted to send the email to multiple email ids.
    Any suggestions on how to go about doing this?
    Thanks,
    Balaji

    Hi,
    You can specify the Partners in partner functions in NACE transaction as you already given to sold-to party.
    Regards,
    Raju.

  • Printing multiple forms for one output types.

    Hi,
    I need to print the form 4 times for one specific output type.  My internal table contains only one record, but for that one record also i need to print 4 forms. How can i do this, i tried using control parameters but in vain.
    Any suggestions of how to achieve this,
    Thanks & Regards,
    Ramana.

    Hi,
    I am working with only one smart form. But there are different output types(ZVSL, ZVFX, ZVFE & ZVFI) configured for that form. But for one specific output type (ZVSL), i need to repeat the print for 4 times.
    Thanks & Regards,
    Ramana

  • Calling Multiple forms for a single Output Type in Smartforms

    Hi SAP Gurus..
    I want to call 2 smartforms simultaneously for a Single O/P type.
    But the problem is that My Driver Program in Standard. I cannot edit the Driver form. Whatever I need to do I can do it only in the Smartforms.
    Please help me out in this....

    I guess the better way is to customize your print program. I am not sure whether there are any other alternatives for doing this.
    Rgds,
    SaiRam

  • Where to find predined smartforms and corresponding output types?

    he send it urgent pls?

    Please have a look at below link. It will give you some details.
    http://help.sap.com/bp_autov1470/Auto_DE/HTML/PreconfSmartForms_EN_DE.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • Printing issue in smartform with output type

    Hi ,
    I am facing issue while I am taking print from zebra printer.
    I am trying to take a print from MB90 but its not coming but its giving status 'processed' and same from the spool, in spool its showing status complete but not giving any printout.
    if I m attaching  my smartform with another output type which already working for another label(smartform), then its giving print.
    So, what I want to know..
    Its can be a problem with output type config or from basis side.
    Please help.
    Thanks,
    Sandeep

    well i have seen setting are correct but having one issue it doesnt trigger automatically I do it manually from MB90 and rest of the things are correct becaoz i have seen while debug its going correct form from driver program, when i am runniing from MB90 manually .
    Thanks,
    Sandeep

  • Print program for the smartform for selecting the output type (email/fax)

    Hi All,
    Requirement :I have to create a print program for the smartform where the output type may be print out,email or fax ,so i need to put the condition for selecting the output type (like printout,email,fax).
    can any body please let me know how  to put the condition for selecting the desired  output type ?
    Thanks in advance
    Rahul

    Hi
    It is not the output type that has to be changed
    it is the MEDIUM which you have to change and configure
    for printout medium is 1
    for FAX medium is 2
    for MAIL it is 7.
    so instead of printout change the medium to 2 or 7 for the same output type and attach to the same driver program and smartform/form.
    Reward points for useful Answers
    Regards
    Anji

  • Whats mean by output type w.r.t  script & smartform

    Hi!
    Whats mean by output type w.r.t  script & smartform
    Thanks,
    Imran.

    Output type - this is application ,which is attached to transaction,when you create document ,automatically layout will trigger
    Let me say one example :
    We have Purchase order ,we create purchase order ,order goes to the vendor.
    Creation of purchase order at ME21N Transaction,now vendor will receive the order in the form of layout( Layout will go by usingE-Mail,Fax and so on ).
    Output type is attaching to purchase order,output contains layout name(Script name(SE71) and Print program.
    Look AT NACE Transactio->select EF Application->click on output type->select NEU Output type ->click on processing routines.
    here you can see the purchase order print program and layout.
    if you want to see the output in purchase order
    just goto ME22N( My assumption is you have purchase order) click on messages.
    now enter output type = NEU
                      Medium = Print output
                       Partner = VN
                       Partner number = vendor number(See in purchase order)
    language = En
    Now click on Further data ->select send immediately->back
    click on communication method - >Local destination (LP01 or LOCl) back -.save it
    now click on print preview -> you will able to see the output

  • Multiple output type against a billing type

    Hi All,
    I have a small requirement, I have created 2 output types and I want to assign it to the same billing document.
    As per requirement, I can choose 2 different prints for same document.
    But, when I am checking through issue output to through a billing document no., its only showing a single output type.
    Please guide me on the missing settings aspect.
    I have maintained the condition record also for billing docs through VV31....

    Hi Aurin,
                   Have your created  different access sequences for both the out put types? You  have to create the the condition records for both. These output types should be there in the procedure which has been assigned to the billing type.In the Condition Record you have to maintain the communication strategy aswell.There  will be a check box "Print Immediately. Tick that check box and check If there is any requirement has been assigned to the Access Sequence. Some times the Access Sequences have Requirements associated with it(Unless until some conditions get fulfilled you wont be able to generate the output). Last but not least try to enter the second out put which is not getting picked up and it should tell you why its not getting picked up. Kindly please let me know If you could solve it.
    Regards
    Ram Pedarla

  • Multiple issuing in output type?

    I want to control printing times of a output type.
    can I apply the function of "Multiple issuing" in a output type to "Transm. Medium" = 1?
    who can give me a way?

    In the config, there is an option to "Multiple issue", i am not sure if you are referring to this. If this option is checked then the system will propose this output everytime the document is opened in Change mode.
    Now to answer your query reg, processing the output in a specific time you may choose the Dispatch time as "Send periodically with scheduled Job" or "Send with own transaction".Once you do this the o/p will be proposed but will be in Yellow status and you can run a job to process these outputs. I think you can run the program RSNAST00 in the b/g at specific times to process these o/ps.
    Hope this helps.
    Regards,
    Mani

  • Will the processing of an Output type be skipped?

    Hello,
    Suppose there are two output types defined for a condition.
    1. Now, when the first output type triggers, will the second output type be skipped?
    2. If not, is there any way to ensure that if the first type triggers then the second output type will be skipped?
    Regards,
    Debanjan Das

    Suppose there are two output types defined for a condition.
    I guess you are not sure what you are looking for. You can have multiple conditions of a single output type. The above statement doesn't hold true.
    Regards,
    Naimesh Patel

Maybe you are looking for

  • How to use recovery partition for installing OS

    hello,          i tried a lot to recover my os with lenove own button for system restore but it did't work and finaly i install OS XP Professional and manualy install all drivers. i must wanna say to lenove mangment that their this way is absolut mor

  • Router not picking up modem. (Please Help)

    Hello there, I have been using my linksys e3000 router for almost 2 years... no problems at all.. But today a storm came and for some reason after the power outage my router no longer seems to pick up singal from my modem... everything will light up.

  • Printing web pages on Tiger to HP LaserJets results in 79.01FE error

    I'm cross-posting this question on both Apple's and HP's support forums. I've seen a lot of talk about this problem on various forums but no answers... and the answer has to be somewhere in Apple or HP, 'cause it's not a user-based error. I've spent

  • I cannot choose "undo" command anymore.

    I have Mavericks and the latest update to Final Cut Pro X.  I noticed a few weeks ago that I can no longer "Undo" a command.  Does anyone know a workaround for this?  Is it a Mavericks problem? Also, When FCPX crashes, it doesn't save the last state

  • WPA2 enterprise, Can not authenticate with ACS

    Hi, I am setting up WPA2 enterprise for wireless users with PEAP authentication, but can not get authentication server to authenticate them, and failed reason is generic "EAP-TLS or PEAP authentication failed during SSL handshake" The AP I am using i