Calling multiple smartforms in a single driver program.

Hi ,
Can anybody tell me how can I call multiple smartforms in a single driver program.
Each form has been assigned a output type.
Regards,
Sudha.V

Hi,
Here i  have 2 smartforms assigned to different OUTPUT TYPES
Use this way
IF nast-kschl = 'FUCI'  .
    ci_form = 'ZLAYOUT'.
  ELSEIF nast-kschl = 'RD04'.
    ci_form = 'ZLAYOUT01'.
  ENDIF.
  CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
      formname           = ci_form
    IMPORTING
      fm_name            = fnam
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.
AFter this call the smartforms based on the output type
Please closeif solved,
Thanks,
Aditya
Edited by: aditya on May 21, 2008 6:15 PM

Similar Messages

  • 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

  • Calling multiple smartforms

    Hi All,
    My requirement is like this....
    Multiple smartforms are created by different programs..And now I want trigger all these smartforms with my program..Is it possible?
    When I tried to do like this it needs to come back and again print preview to go next smartform....Is is possible to call all the smartform at single execution.........
    Edited by: sundeep singh on May 30, 2008 9:06 AM

    g_output_options  TYPE ssfcompop, " Output Options for Smartform
    g_control_options TYPE ssfctrlop. " Control Options
    Control Options
      g_control_options-device    = 'PRINTER'.
      g_control_options-preview   = ''.
      g_control_options-no_dialog = 'X'.
    Output Options
      g_output_options-tdnoprev   = 'X'.
      g_output_options-tdimmed  = 'X'.
    Call Smartform
      CALL FUNCTION lv_fmname
        EXPORTING
        ARCHIVE_INDEX              =
        ARCHIVE_INDEX_TAB          =
        ARCHIVE_PARAMETERS         =
          control_parameters         = g_control_options
        MAIL_APPL_OBJ              =
        MAIL_RECIPIENT             =
        MAIL_SENDER                =
          output_options             = g_output_options
          user_settings              = ''  
    rwrd points if useful
    Bhupal

  • How to call multiple strus actions froma single jsp

    how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
    Thanks in advance

    how to call multiple strus actions froma single jsp, and that actions should be automatically called pls help me
    Thanks in advance

  • ECATT calling multiple Test script to single test script

    HI experts,
    How to integrate i mean calling multiple test script  to single test script and store in single test script in ECATT
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Apr 8, 2011 9:50 AM

    HI experts,
    How to integrate i mean calling multiple test script  to single test script and store in single test script in ECATT
    Moderator message: please search for available information/documentation.
    Edited by: Thomas Zloch on Apr 8, 2011 9:50 AM

  • 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

  • Multiple smartform output to single pdf file

    HI,
    I am new to ABAP. I have a requirement to combine multiple smartfrom output to  single pdf file.  I searched in this site. I got material but i did not get the complete concept. Can anybody tell me the methodology and sample code to do that.
    Thanks & regards,
    Maha.

    Hi Mahalakshmi,
    Clik on the link to view document: <b>[Combining Multiple Smartform Outputs Into One PDF File|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?overridelayout=true]</b>
    Thanks
    Venkat.O

  • Call two smartforms from two different print programs

    Hi Sapiens,
      I have a requirement that there are two different smartforms and they have there independent print programs.
      Just wanted to know weather is it possible in SAP to merge those to smartforms and there print programs so that first smartform is displayed first and second smartform is printed at its back(duplex printing).
    Regards
    Milind

    Hi,
    You can use submit program in the first program to call the second program and
    fetch the required interface data related to the second smartform and once u have the interface data
    for both the programs then u can merge the both smartforms data and display them as one layout instead of displaying the two layouts in different formats.
    For merging of data of both the smartforms u can do :Convert the output of first smartform into OTF format data then convert the data of second smartform into OTF table and append it to the first table .
    Now u have the data of both the smartforms in one table then convert this OTF data into PDF format and create a spool request with the combined forms data.
    Thanks,
    M.Naveen Kumar.

  • Multiple smartform Outputs in Single PDF

    Hi,
    I am displaying ALV report , from there I am converting my smartform output into PDF using CONVERT_OTF and Downloading it to my desktop.
    Now user is looking for push button in ALV, i.e Display PDF in Single File. I have created the pushbutton and tried to convert the OTF data PDF as per below link.
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/62ae7fcd-0b01-0010-3e9d-a54f26944450?quicklink=index&overridelayout=true
    My file is downloading to the desired path. When i tried to open that file it is giving error message as below.
    THERE WAS AN ERROR OPENING THIS DOCUMENT .  THE FILE IS DAMAGED AND COULD NOT BE REPAIRED.
    when i seleted the rows seperatly, it is displaying as PDF correctly, but if i tried to append the lines as per the above reference link i am getting the problem.
    Can anyone please help me out to solve this.
    Thanks & Regards,
    Srinivas Bhavanam
    Moderator message - Cross post locked
    Edited by: Rob Burbank on Mar 24, 2010 6:25 PM

    This article is correct about the //. First make sure you remove them correctly, and nothing else. Only 2 // must remain, one at the beginning, one at the end.

  • Calling multiple actions in a single event of the adobe component

    Hi ,
    We have a requirement to call both these events
    Java script
    ========
    1)app.eval("event.target.SAPValueHelp(\"" + this.somExpression + "\");");
    2)app.eval("event.target.SAPCheckFields();");
    on the <b>enter</b> event of drop down list on adobe form.
    Is this is possible or let me know some alternative to fire these two events to webDynpro application ?
    Regards,
    Nanda

    Well, I don't really like these theroretical discussions. Can you attach a simplified version of some of your code?
    There are many other ways to identify the particular control. You could for example search an array of references for the value of the "ctlref" event data node. This would make the code much more robust (your code will fail for example if you (or some other programmer updating your code in a few years!) notices a mispelling and edits the label without also changing the case structure cases).
    LabVIEW Champion . Do more with less code and in less time .

  • How to call two smartforms with using a single print program

    Hi,
       I have a requirement wherein I need to call two smartforms using a single print program.
       The interface parameters are different in two smartforms.
       I presently solved the issue using the smartform names as the reference.
       Can anyone let me know if there is any other way to solve it.
       I heard something about global params. But not sure.
       Please let me know the best possible way to solve this issue.
    Thanks and Regards,
       Debabrata

    Hi Debabrata,
    Based on the condition in your print program you can call the below code
    fname1 TYPE rs38l_fnam.
    IF -
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORMS'
    importing
       fm_name                  = fname1
    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 FNAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB      =
      ARCHIVE_PARAMETERS =
      CONTROL_PARAMETERS=
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT              =
      MAIL_SENDER                 =
      OUTPUT_OPTIONS           =
      USER_SETTINGS             = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO =
      JOB_OUTPUT_INFO             =
      JOB_OUTPUT_OPTIONS      =
    EXCEPTIONS
      FORMATTING_ERROR         = 1
      INTERNAL_ERROR              = 2
      SEND_ERROR                    = 3
      USER_CANCELED              = 4
      OTHERS                             = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ELSE.
    fname2 TYPE rs38l_fnam.
    call function 'SSF_FUNCTION_MODULE_NAME'
      exporting
        formname                 = 'ZSMARTFORMS'
    importing
       fm_name                  = fname2
    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 FNAME
    EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB      =
      ARCHIVE_PARAMETERS =
      CONTROL_PARAMETERS=
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT              =
      MAIL_SENDER                 =
      OUTPUT_OPTIONS           =
      USER_SETTINGS             = 'X'
    IMPORTING
      DOCUMENT_OUTPUT_INFO =
      JOB_OUTPUT_INFO             =
      JOB_OUTPUT_OPTIONS      =
    EXCEPTIONS
      FORMATTING_ERROR         = 1
      INTERNAL_ERROR              = 2
      SEND_ERROR                    = 3
      USER_CANCELED              = 4
      OTHERS                             = 5
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDIF.

  • Multiple smartforms call for transfer order

    Hi All,
    I have a requirement to call multiple smartforms based on customer number from same print program.How i would define nace setting and also in my requirement i have to create a ztable that will contain customer number and smartform name,that means i need to pic smartform name from that ztable for corresponding customer.But my form will trigger from transfer order transaction.
    Could you please help in this regard.
    Thanks
    Mohit

    Hi ankur,
    NACE setting doesn't happen for LT31(transfer order) transaction.Setting somewhere defined in SPRO in WM module.My problem is the i need to create ztable that is recommended by client to maintain customer number along with smartform name.
    Thanks
    Mohit

  • Reg : SMARTFORM name and DRIVER PROGRAM

    Dear Gurus,
    Can anybody help me out in providing standard SMARTFORM name and also driver Program for
    'ANNUAL MAINTENANCE CONTRACT CONFIRMATION' in CS(Customer Service) module.
    Cheers,
    Loverboy K

    Hi,
    there is on a standard system no smartform for you. So you have to do your thing with the standard sapscript.
    However there have been some BestPractices projects at SAP. There they have a lot of standard smartforms. Maybe you can download them from SAP somewhere the name will something
    with MMCON or MMDLS in it.
    you have to find out yourself because i do not have it here to send it to you.
    Gr., Frank

  • Combining multiple smartform output in one spool request

    Hi,
    I'm calling 5 different smart forms from driver program based on some conditions and trying to merge the output of each of these smart forms in a single spool request. I achieved this by setting control parameters no_open and no_close based on first or last print.
    The problem i'm facing now is when i call one particular smart form ZSMARTFORM6 along with other smartforms i'm getting a error FORM SMARTFORM6 has wrong Page format.
    If i call only this smart form it is working correctly.
    Any idea how to avoid this error message.
    Regards,
    Raghavendra

    Hi
    In The control Parameters u have an Option NO_OPEN   and NO CLOSE  u have to use this to combine multiple SSF to one Spool
    DATA SSFCTRLOP LIKE SSFCTRLOP.
    CALL FUNCTION 'SSF_OPEN'
    SSFCTRLOP-NO_OPEN = 'X'.
    SSFCTRLOP-NO_CLOSE = 'X'.
    CALL FUNCTION SMART1
    EXPORTING
    CONTROL_PARAMETERS = SSFCTRLOP
    CALL FUNCTION SMART2
    EXPORTING
    CONTROL_PARAMETERS = SSFCTRLOP
    CALL FUNCTION SMART3
    EXPORTING
    CONTROL_PARAMETERS = SSFCTRLOP
    CALL FUNCTION SMART4
    EXPORTING
    CONTROL_PARAMETERS = SSFCTRLOP
    CALL FUNCTION 'SSF_CLOSE'
    Surya
    Edited by: suryareddy on Aug 27, 2009 9:24 AM

  • Driver program for the Smart form

    Hi all.
    I have an issue in smart forms.
    we are implementing RE(Real Estate) module with the version ECC 6.0.
    In the RE ,for printing the forms.I know the name of the SMART form only.
    how can i know the corresponding Driver program.
    Plaese help me to solve this issue.
    Thanks on advance,
    Regards,
    Eswar

    Hi,
    You can get your driver program name from tnapr table but some are also configured from others way also.
    Try this will work in any case.
    Open your Smartform then execute.
    Then function module name is displayed
    Open function module and put a break point on first executable statement.
    May be break point on statement like
    CLEAR DOCUMENT_OUTPUT_INFO.
    After giving breakpoint trigger your Smartform for printing in fresh session then it will stop in debug mode then in call tab you can see your driver program name.

Maybe you are looking for