Smartforms supression

hai abapers,
        i am doing a smartform template in which i need to supress hostids in the  header area. suppose for a single order there is single host id then that host id should be printed in the header area. otherwise i.e., if there are more than one host ids then it should be printed on the data area. plz give some description + code if u have any. Thank u in advance.

Hi ateeq,
belwo links might help you.
http://www.sap-img.com/smartforms/sap-smart-forms.htm
http://www.sapgenie.com/abap/smartforms_detail.htm
http://www.sap-basis-abap.com/sapsf001.htm
http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
regards,
venu.

Similar Messages

  • How to supress the dialog box in smartforms

    Hi Experts,
    Can any body tell how to supress the dailog box while executing the smarform.
    valid answers will be rewarded.
    Thanks,
    Satish.

    data p_out like ssfcompop.
    Look at smartform function module,there could be option like
    p_out-tdnoprev = 'X'.
    pass p_out to smartform function module

  • How to supress a window in smartform

    how do we supress a window in a smartform when i reach a particular page.my sf has 2 pages defined.first and next.and my output has 12 pages of matter.when i reach a specified page number i dont want a window in my form to b displayed.one thing is that the page number from which i dont want a window is not fixed. it may b 3rd or 4th or any other.
    hope to c the reply soon.

    Hi Yathish
    If you want to supress a window put a condition in the condition tab of that particular window ,and the condition to supress for a particluar page no which is not static, write one program lines this way.
    take a variable v_page.
    depending upon your condition assing the value for this variable and put a condition on the supressing window as when this variable value is say 1 then dont print this window.
    then this window will  not be printed for that condition.
    Hope this helps you solve your problem.
    Kindly reward points if helpful.
    Regards
    Zarina

  • Supress print pop up in smartforms

    Dear Friends,
    I need to supress the print popup in smartforms. I mean i want print directly, i dont want pop up. Now when i execute that program i am getting pop up and giving printer name and then print. But i want the print directly, i am giving printer name on the selection screen.
    I have tried with different combinations of control parameters and output parameters, but its not working.
    Any help will be highly appreciated.
    Thanks a lot in advance.

    DATA : z_control TYPE ssfctrlop,                                                " here define two structures (ctrl and options)
           z_options TYPE ssfcompop.                                                   " like  ssfctrlop and ssfcompop.
      MOVE 'X' TO : Z_control-no_dialog,                                         " these are the status of variables
                    Z_options-tdnewid,                        "  of 'output options' and 'control parameters' structures
                    z_control-PREVIEW.                              " that have to be set before passing to the form.
      MOVE 'LP01' TO Z_options-tddest.                "
      MOVE space  TO Z_options-tdimmed.                "
      MOVE 'PRINTER' TO Z_control-device.           "
      call function 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname = 'ZPURCHASEORDER2'
        IMPORTING
          fm_name  = fname.
      CALL FUNCTION FNAME
        EXPORTING
          CONTROL_PARAMETERS = z_control                 " here the structures are passed
          OUTPUT_OPTIONS     = z_options                 " into the form in stmt 'exporting' so that
          USER_SETTINGS      = ''                                 " print options are not popped up b4 disp of smartform.
        TABLES
          IT_EKKO            = TAB_EKKO
          IT_EKPO            = TAB_EKPO
          IT_LFA1            = TAB_LFA1.
    Regars,
    Sumit Nene.

  • How to supress dialog box when calling smartforms and just create a spool..

    Hello Experts,
    I want to supress the dialog box where you can print preview or print your smartforms. What
    I want is to just create a spool file for this one. Think of it as smartforms running in background.
    Thank you guys and take care!

    Hi again Vishwa,
    I modified my code according to your last reply but it still wouldn't work. The dialog still pops up without the print and print preview buttons. Below is my code:
    MOVE 'X'    TO ltyc_control-no_open.
        MOVE 'X'    TO ltyc_control-no_close.
        MOVE 'X'    TO ltyc_control-no_dialog.
        MOVE 'X'    TO ltyc_options-tdnewid.
        MOVE 'X'    TO ltyc_options-tdnoprev.
        MOVE 'X'    TO ltyc_options-tdnoprint.
        MOVE 'LOCL' TO ltyc_options-tddest.
        MOVE space  TO ltyc_options-tdimmed.
        CALL FUNCTION 'SSF_SHOW_DIALOG'
          EXPORTING
    *        ARCHIVE_PARAMETERS         =
            user_settings              = ''
            output_options             = ltyc_options
            control_parameters         = ltyc_control
    *        OK_BUTTON                  = ''
          IMPORTING
    *        E_ARCHIVE_PARAMETERS       =
            e_output_options           = ltyc_options
            e_control_parameters       = ltyc_control
          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.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname                 = lcc_z2574ffi_ra_cimb
    *        VARIANT                  = ' '
    *        DIRECT_CALL              = ' '
          IMPORTING
            fm_name                  = ltyc_function
          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 ltyc_function
          EXPORTING
            control_parameters = ltyc_control
            output_options     = ltyc_options
            user_settings      = ''
            im_adrnr           = gtyc_adrnr
            im_name1           = gtyc_name1
            im_name2           = gtyc_name2
            im_str_suppl1      = gtyc_str_suppl1
            im_str_suppl2      = gtyc_str_suppl2
            im_str_suppl3      = gtyc_str_suppl3
            im_post_code1      = gtyc_post_code1
            im_city1           = gtyc_city1
            im_vblnr           = gtyc_vblnr
            im_zaldt           = gtyc_zaldt
            im_swnes           = gtyc_swnes
          TABLES
            im_regup           = gt_regup
          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.
    Edited by: Viraylab on Nov 26, 2008 10:55 AM

  • Supress empty page which is due to dynamic page (smartforms)

    hi all,
    i' ve got the problem that i get an empty page at the end of my printout.
    the forms is defined as following:
    first_page - following page: next_page
    next_page - following page: next_page
    and in the main window i have a dynamic page (via command node)
    confirmation_page - following page: manual_guide_page
    manual_guide_page - following page: first_page
    the problem is the following page of my last dynamic page, but it is not possible to leave the following page in that case empty and it is necessary to use a page with a main window.
    has anyone an idea how i can solve this problem??
    it it possible to stop printing a page that is empty in smartforms, as i can't set any conditions for the page itself.
    thanks!

    you can put condition like in your program lines
    DESCRIBE TABLE gt_lips LINES gv_lines.
    gv_tabix = sy-tabix + gv_tabix.
    in COMMAND node  put condition like GV_TABIX LE GV_LINES
    you wont get empty pages...

  • Supress gaps in the field in smartform

    Hi
    I am using wrbtr as amount field in my smartform and  length of that field is 15. i want to decrease the gap between the preceding word(Rs.) and amount field. How can it be done?

    before putting in the smart form you just add one program lines and declare one character variable of size 15 say
    AMOUNT type CHAR15.
    now 
    AMOUNT = it_tab-wrbtr.
    condense amount.
    then drag & drop this amount field...

  • How to supress blank lines in smartforms...

    Hello Experts,
    I am showing the address of the customer in my form but I noticed that when a variable doesn't have a
    value, it still shows as a blank line. For example:
    Customer 123
                        <--- I want to remove this line
    San Francisco, California.
    How can we do this guys?
    Thank you and take care!

    Hi Viraylab,
    There are two ways by which you might clear this issue.
    1. If you have created a template for the same and under that, if you have created separate rows for each field/group of fields, then you need to remove those rows, as the blank row will be displayed as it is.
    2. You can directly write the code for the condense using the statement CONDENSE wa_field.
    Regards,
    -Syed.
    Edited by: wahid hussain syed on Dec 16, 2008 11:17 AM

  • Supress Background Print parameters when user executes ALV report by F9

    Hi friends,
         How can we Supress Background Print parameters pop-up, when user executes ALV report by F9
    or by navigation from selection screen -i.e;  Program ->>Execute in Background.
    Please guide me
    Thanks in Advance,
    Ganesh

    Sorry,
    i need to supress the POP-UP which asks for background Print Parameters in the ALV report. when i press F9 in a selection - screen of a Tcode
    as we supress Pop-up for a smartform or script by passing the Print Parameters
    This 'RS_SET_SELSCREEN_STATUS' excludes the commands(say F9 function code) in report
    I think we need to set the Print paramters in the Program
    please guide me
    Thanks,
    Ganesh

  • How to supress a blank page in smart forms

    Hi,
    I am using a command in Smartforms to trigger a new page whenever a new BELNR(Accounting document). My problem is in the output i am getting a first page is blank and remaining pages are ok.
    What i did Is In conditions tab i written as temp NE belnr. So first time temp is nothing so blank page is coming. and in the following text elements i am passing a belnr value to the temp.
    Temp = belnr and in general attributes go to new page check box has been activated. Then how to supress a blnk page.
    Regards
    Ramakrishna .P

    Hi,
    I am not using loop.
    In main window i have the contents as
    Header---- Headers for table
    Main Area---- text elements ( i have fileds slno, belnr,glaccount,cost center,gtext,description,dmbtr,wrbtr)
    In belnr field i have created the command there i am comparing the condition temp ne Belnr and go to new page on conditions tab
    wrbtr text element i am passing the g_temp =belnr
    My requirement is whenever new belnr comes new page has to trigger and corresponding gl accounts need to be displayed and end of the belnr i want to display the footer.
    For your information passing the belnr values from the print program (select options) to smart form
    Footer---footer

  • Smartform output as a e-mail

    Hi,
    I want to send the smart form output as a pdf attachment in a mail.
    For that, I am getting OTF text from the smartform function module and converting the OTF to pdf attachment
    and sending the mail.
    But, when I am going to send the e-mail, I want to hide the 'Print/Preview' dialog box.
    By using some paramater no_dialog, no_open & no_close, I am able to hide the 'Print/Preview' dialog box.
    But, in this case I am not getting OTF text from the smartform function module and I am not able to
    create pdf attachment.
    Please let me know, how to handle this situation.
    Thanks in advance,
    Sreenivas Reddy

    Hi,
    For mail PDF attachment follow the link
    https://wiki.sdn.sap.com/wiki/display/Snippets/SmartformtoMailasPDF+attachment
    For supressing the popup follow use
    T_control-preview = 'X'.
    T_control-no_open = 'X'.
    T_control-no_close = 'X'.
    T_control-no_dialog = 'X'.
    T_control-device = 'PRINTER'.
    T_control_parameters-no_dialog = 'X'.
    T_control_parameters-no_open = 'X'.
    T_control_parameters-no_close = 'X'.
    T_SSFCOMPOP-TDDEST = 'PRINTER NAME'.
    T_SSFCOMPOP-TDNOPRINT = 'X'.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
    output_options = T_SSFCOMPOP
    control_parameters = t_control
    user_settings = ' '
    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.
    Regards,
    Amitava

  • Output in smartform

    I dont want print preview screen in the smartform output.
    so i used control_parameters = 'X' in the my functional module.
    but my question is how i make sure i am getting the output screen
    or how can i get the output screen by supressing print preview.

    We had a similar scenario...
    Well here is the solution...
    For ONLY PREVIEW
    ST_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    ST_CONTROL_PARAMETERS-PREVIEW = 'X'.
    For PRINTING DIRECTLY
    ST_CONTROL_PARAMETERS-PREVIEW = ' '.
    ST_CONTROL_PARAMETERS-NO_DIALOG = 'X'.
    ST_OUTPUT_OPTIONS-TDIMMED = 'X'.
    CALL FUNCTION v_fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    CONTROL_PARAMETERS = st_control_parameters
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    OUTPUT_OPTIONS = st_output_options
    USER_SETTINGS = 'X'   default it to space
    IMPORTING
    DOCUMENT_OUTPUT_INFO = st_document_output_info
    JOB_OUTPUT_INFO = st_job_output_info
    JOB_OUTPUT_OPTIONS = st_job_output_options
    TABLES
    IS_LABELS = IS_LABELS
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    also
    IF sy-subrc = 0.
          CALL FUNCTION 'CONVERSION_EXIT_SPDEV_INPUT'
            EXPORTING
              input  = l_pdest
            IMPORTING
              output = l_output_option-tddest.
        ENDIF.
    SELECT SINGLE patype
    FROM tsp03
    INTO l_output_option-tdprinter
    WHERE padest = l_output_option-tddest.
    IF sy-subrc = 0.
    Do nothing
    ENDIF.
    Populate output options
    l_output_option-tdimmed = 'X'.
    l_control-no_dialog = 'X'.
    CALL FUNCTION v_form_fm
    EXPORTING
    control_parameters = l_control
    output_options = l_output_option
    user_settings = ''
    p_first = p_first
    p_title = v_title
    p_prog = v_prog
    p_system = v_system
    p_date = v_date
    p_time = v_time
    p_user = v_user
    p_plant = v_plant
    TABLES
    i_report = i_report
    i_mat_zfg = i_mat_zfg
    EXCEPTIONS
    formatting_error = 1
    internal_error = 2
    send_error = 3
    user_canceled = 4
    OTHERS = 5.

  • 'No blank lines' - SMARTFORM Paragraph settings HELP!

    Hi,
    I'm new to smartforms. I'm creating an invoice using smartforms. In sapscript we have the ability to define a paragraph format as 'No blank lines' by checking the appropriate checkbox for that paragraph setting.
    Where do I do this for paragraph formats in Style for Smartforms? Or do I do this somewhere else?
    I've looked high and low and can't find it anywhere!
    Any help would be appreciated in the form of reward points.
    Thanks
    Liam

    Hi,
    Does anyone else have any other options? Increasing line spacing only increases the space between lines. What I really need is to supress blank lines.
    In other words assume I have the following:
    &LINE1&
    &LINE2&
    &LINE3&
    &LINE4&
    where &LINE1& = 'A',
    &LINE2& = 'B',
    &LINE3& = 'C',
    &LINE4& = 'D',
    If &LINE3& does not contain any values I don't want to see:
    A
    B
    <blank>
    D
    I want to see:
    A
    B
    D
    This is easily done in sapscript using paragraph formats checking option 'No blank lines'. However I can't find a similar option in SMARTFORMS.
    Correct answers or helpful suggestions will be rewarded.
    Thanks
    Liam

  • SPOOL not generated while smartform is executed in Background

    Hi
    I have issue while creating spool for smartform in background.Its works fine in foreground and i m able to view the outpt.
    But in background it should generate a spool but it is not generating?
    I have given the ouput options to supress the dialog but it still it is not generating the spool.
         control-preview = 'X'.
          control-no_dialog = 'X'.
          control-device = 'PRINTER'.
          control-no_dialog = 'X'.
          control-GETOTF = 'X'.
          OUTPUT_OPTIONS-TDDEST = 'LP01'.
          OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    Any suggestions??
    Thanks & Regards
    Jyo

    Hi Jyotheswar,
    When the smartform is generated in background create a new spool by using following code
          output_options-no_dialog = 'X'.
          output_options-tdarmod = 1.
          output_options-tdcopies = 001.
          output_options-tddest = 'LP01'.
          output_options-tdprinter = 'SWIN'.
          output_options-tdlifetime = 1.
          output_options-tdnewid = 'X'.
    tdnewid is the field used to create a new spool request.  You can get the new spool request number in job_output_info-spoolids.
    Regards,
    Birendra

  • Cols in smartforms

    hai abapers,
         i have a requirement in which i have to supress the whole column in the table. is it possible in smartforms. plz respond quickly. its urgent

    Hi Hasmath,
    Please follow these steps to supress a column in smartforms. I assume that you are using TABLES.
    In TABLE node you might have created line types for columns. When you supress columns using the condition tab, you may get error or formatting problem. This is because the new cell is determined using the 'NEW CELL' checkbox in the output condition of the table child node (such as text node). When you supress one column, the data that is to be displayed in the next column will come in the previous one. This is fine if you want to disable a particular column completely and move the other columns to the left.
    But if you want to only supress the column value then use the 'Alternate condtion' node.
    Now let me tell you how to do both.
    Condition tab - In the text node you can find a tab for giving condition. Enter the condition there. The node will be displayed only when the condition is true.
    Alternate condition - This is similar to condition but we have True as well as False. So you can have two text nodes, one for true and another for false. You can copy the existing text node under 'True' and a text node with blank in 'False'.
    Hope this will help you.
    Thanks
    Vinod

Maybe you are looking for

  • Adavance Adapter  Engine Performance Tuning

    Hi all, We are using PI-7.11 .  We are working on an asynchronus scenario that reads JMS queue and  calls  server proxy at the receiver. The interface is configured  to bypass the ABAP stack(Integration server) by  using advance adapter configuration

  • Account opening using debit card

    Hi. i am from india i have icici debit card no credit card i want to publish my game on apple store. so how can i do this can it possible to get apple developer purchase of 99$ using debit card (ICICI bank VISA debit card )

  • After upgrade Flash Player not working.

    I have tried to upgrade to the newest flash player twice now and both times it has failed to work. I am running MacOS 10.5.8 and all browsers are current. I have tried to disable the hardware acceleration Setting but the Settings dialog doesn't appea

  • Calculating working hours to hibernate query

    Hello, How to i convert this into Hibernate Nativesql query SELECT sql_calc_found_rows                                          gstime,        MAX(stoptime)                                                AS mx,        MIN(starttime)                  

  • Dynamic display of Measure in SSAS

    Hi All, I have a requirement where i need to show count of Customers under a Sales Person. For this we created a Measure with Count of Customers. But Users want to see this Measure only when they select Sales Person Dimension on Pivot. That means thi