Using alternative option in SMART forms

hi,
I have a quick question about using the alternative window in Smartforms.
When the condition mentioned is true, all the objects/windows under the true will be executed. However, when the condition is false nothing gets done. I would expect all the objexcts in the False category to get executed. Can anyone reason this out.
Regards,
Diwakar

the situation is as follows:
If v_x = 'Del' the title of the report needs to be as "Delivery Note", else it needs to be as "Invoice".
So, after coding the condition using the alternative option, i have placed two text elements each under true and false. If V_x is 'Del' i see the title delivery note in the report. however, if i chaneg the value of v_x, i am not able to see 'invoice ' as the title. The output is blank.

Similar Messages

  • Selecting user input from Select option into smart form

    Hi,
    when i use parameter then i wil show company code in smart-form output
    but when i use  select option then its throwing error parameter specified here is different
    what should i do in this case i want to design a big select option screen for taking user input
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS.
    pls help me in this regards.
    ketan..

    hi
    thnx for your reply
    can u pls elaborate in my code
    now i changed code   BUKRS    = SO_BUKRS-low.
    either i can give low or high but how to select from range
    REPORT  ZMM.
    TABLES BSEG.
    DATA : V_FORMNAME TYPE TDSFNAME VALUE 'ZPUR_REG',
           V_FMNAME TYPE RS38L_FNAM.
    *PARAMETERS SO_BUKRS TYPE BUKRS.
    SELECT-OPTIONS : SO_BUKRS FOR BSEG-BUKRS.
    DATA : Z_CONTROL TYPE SSFCTRLOP,      "Smart Forms: Control structure
            Z_OPTIONS TYPE SSFCOMPOP.      "SAP Smart Forms: Smart Composer (transfer) options.
    MOVE 'X' TO : Z_control-no_dialog,        "SAP Smart Forms: General Indicator
                   Z_options-tdnewid,          "New Spool Request (Print Parameters)
                   z_control-PREVIEW.         "Print preview
    MOVE 'LP01' TO Z_options-tddest.         "Spool: Output device
    MOVE space  TO Z_options-tdimmed.        "Print Immediately (Print Parameters).
    MOVE 'PRINTER' TO Z_control-device.      "Output device
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME = V_FORMNAME
      IMPORTING
        FM_NAME  = V_FMNAME.
    CALL FUNCTION V_FMNAME
      EXPORTING
        CONTROL_PARAMETERS = Z_CONTROL
        OUTPUT_OPTIONS     = Z_OPTIONS
        USER_SETTINGS      = ''
        BUKRS              = SO_BUKRS-low.
    ketan..

  • Urgent -- using Standard text in SMart forms

    Hi Techi's.
    I have created a standard text using SO10 , and included the same in smartform.
    But the requirement is , i need to change the format of the standard text with my own style, so i craeted a Smart style with relevant Paragraph  and Character formats.
    Plz help me out in linking the STandard text with the smart style.
    I know how to include smart style in smart form, but the issue is "how to include Smart style for the created  Standard Text ".
    Urgent and helpful answers will be rewraded.
    Regards,
    Naveen

    hi naveen
    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    regards
    ravish
    <b>plz dont forget to reward points if helpful</b>

  • Using SET COUNTRY in SMART forms

    Hi All,
    We have used SET COUNTRY 'GB' in the smart forms initialization code editor.
    But it is not reflecting currency formats & date formats in the country specific formats.
    I have to change the setting only in smart forms code only as i will not be able to edit print program.
    can any body solve this issue!
    Any system setting we need to do!
    Thanks in advance.
    Thanks,
    Deep.

    hi..
    U can change the settings in SU01.
    give ur username.
    Change in DEFAULTS tab, in Decimal Notation field.
    regards,
    Padma

  • Passing SELECT-OPTIONS to smart forms

    hi ,
       how can we pass select options from a program to a smart form.
    Regards
    Arun

    Hi,
    Just try to append the valid values in select options  to internal table from report.
    Then pass that internal table(ofcourse, you need to create user-defined struture if needed in SE11) from report to smart forms.
    Rgds,
    J.Jayanthi

  • How to use Barcode option in adobe forms!!!!!!!

    Hi Expert,
    I need some information.
    Please tell me how to use barcode in adobe forms.
    Is there any standard program?
    Please help me.
    BR
    Srinivasareddy
    Moderator Message: Search for available information first.
    Edited by: kishan P on Nov 29, 2010 11:29 AM

    How about the online help in the builder?
    Regards
    Grant Ronald
    Forms Product Management

  • How to use address node in smart forms

    hii all,
          can any one tell me how to print the address usin the address node in smartforms....pls explain me in detail...
    thank you.

    Hi Neelima,
    Create a Address Node to print the addres of particular object like vendor, customer, plant, company address etc...
    for example vendor address
    To Print the address, you need to declare a variable VENDOR_ADRNR TYPE ADRNR in Form interface Import Parameters.
    Get the Vendor Address Number from LFA1 Table and pass the value to the form interface parameter when you call the smartform function module in the print program.
    Pass this to Address number &VENDOR_ADRNR& in the address number field, then the system will get the address of the vendor automatically.
    Regards,
    Satish

  • Amount in Words using SPELL_Amount in Arabic Smart-forms

    I am facing the difficulty during the step in smartform printing. Client is to have a printout in Bi-lingual (english+arabic), Arabic is printing fine. The maintenance language of smartform is arabic.
    Problem arises:
    I am using the function SPELL_AMOUNT to get the "Amount in Words" of Gross Value. In the print preview and printout, "Amount is words" are appearing as jumbled. for example,
    Gross Value  238,476.00 SAR
    Expected Amount in Words Two Hundred Thirty-Eight Thousand Four hundred Seventy-Six.
    Appearing Amount in Words Seventy-Six Two Hundred Thirty-Eight Thousand Four Hundred.
    Waiting for your valuable inputs.

    Hi,
    Try the below code:
    Pass the amount after Decimal to the Spell amount seperately and then concatenate the two parts of the amount.
    For example : 30.60 USD
    Store the amount in a character string. Split the string at decimal point using a SPLIT statement.
    DATA: amount_total(10),
    round(7),
    dec_part(3).
    DATA: dec(1) TYPE c VALUE '.',
    amount_total = '30.69'.
    SPLIT amount_total AT dec INTO round dec_part.
    First pass variable 'round' to Spell_amount and then in the second call pass variable 'Dec_PART' and concatenate the two results.
    Regards,
    sirisha.

  • HOW TO DISPLAY ALTERNATIVE PAGE NO IN SCRIPT AND SMART FORM

    HI, I HAVE TEN PAGES IN SCRIPT AND FORM, I HAVE TO DISPLAY PAGE-NO IN FIRST PAGE AND 2 PAGE NO NEED TO DISPLAY AGAIN 3RD PAGE HAVE TO DISPLAY. HOW TO DO THIS

    hi......
        In Smart forms u have use "ALTERNATIVE" option for printing alternative page numbers.
        In Sapscript use coding to solve this problem,
                 if ( &page& mod 2 ) = 0
                       &page&
                 endif
    Regards,
    ARUN.

  • Smart form where used list

    Hi All,
    I want to change a smart form interface, before that I have to know where used list of this smart form but I can't. Could any one tell me how I can see the where used list of smart form.
    thanks in advance
    chetan vishnoi

    Hello,
    the previous suggestions won't work because smartforms are usually used with a dynamic function call.
    I have the following suggestions:
    1) Go to SE37 and display the where-used list of function SSF_FUNCTION_MODULE_NAME. Now find the entries where input parameter FORMNAME equals the name of your smartform.
    2) Change the interface of the smartform such that it is still compatible to the previous version, i.e. all new parameters are optional. If you want to change the type of a parameter, create a new parameter instead. You could then alter the coding in the following way:
    IF NOT parameter_old IS INITIAL.
      MESSAGE 'Interface has changed' TYPE 'E' RAISING ERROR_OCCURRED.
    ENDIF.

  • 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

  • Syntax for sum in Smart Form based on Selection criteria in Program.

    Hi,
    We have created smart form for printing confirmation entries in desired format. We have given some selection criteria in the program. Now, we want to do the sum of certain fields in the smart form based on selection criteria given in program and selection screen.
    But we are getting wrong sum in the smart form than expected.
    When we debug the program during run time, we are getting correct records as per our expectations. But result of sum in the out put is not as per given selection criteria.
    Do we need to establish link between "select option" and "Smart form"? How can we use internal table created for select option in the smart form?
    Thanks & regards
    Vijay

    Hi,
    There will be no option to sum the values in smartforms, You just have to sum and append the data to internal table and display the internal table data in the form.
    Regards,
    Satish

  • Smart form and Jet form

    Hi,
    Please let me know the difference betweeen Smart form and jet form and in which scenarios we use them.
    thanks

    HI,
    <b>
    Smart forms</b>
    <u>https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/formPrinting-SAPscript,Smartforms&</u>
    Smartforms: Frequently Asked Questions
    What are the differences between SAP Scripts and Smartforms?
    How can I insert symbols in Smartforms?
    I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
    How can I make the Smartforms to choose a printer name by default?
    How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?
    How can I display the total number of pages in Smartforms?
    How can I display the total number of pages in Smartforms?
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    What are the various text formatting options in Smartforms?
    How can I provide a background shading to the table?
    Where can I provide the input parameters to the smartform?
    Where can I define my own global types for the smartform?
    I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
    I have created a table node for display. Where can I check the condition which must satisfy to display the table?
    How can I define Page Protect in Smartforms?
    What is the difference between Template and Table in Smartforms?
    Where can I define the paragraph and character format for the smartforms?
    What are the differences between SAP Scripts and Smartforms?
    SAP Scripts are client dependent whereas Smartforms are client independent.
    SAP Scripts require a driver program to display the output whereas in smartforms the form routines can be written so that it is standalone.
    An integrated Form Builder helps to design Smartforms more easily than SAP Scripts
    An Table Painter and Smartstyles to assist in building up the smartforms
    On activation a function module is generated for Smartforms
    It is possible to create a Smartform without a main window
    Smartforms generates XML output which can be viewed through the web
    Multiple page formats is possible in smartforms
    How can I insert symbols in Smartforms?
    Select the Text node.
    Change Editor (Click the button above Check near the Editor)
    Go to menu Include->Characters->SAP Symbols
    Choose the SAP symbol that you want to insert.
    I have a smartform which works fine in DEV. After trasnsporting it to PROD, there is no Function module generated for this smartform. As a result my program dumps in PROD?
    The Smartform that is created in the Development may not have the same name in the Production server. So it is always advised to use the Function Module SSF_FUNCTION_MODULE_NAME to get the Function Module name by passing the Smartform name.
    DATA: fm_name TYPE rs38l_fnam.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        formname           = 'ZSMARTFORM'
      IMPORTING
        fm_name            = fm_name
      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 fm_name
    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.How can I make the Smartforms to choose a printer name by default?
    In the CALL FUNCTION of the Smartform Function Module, set the output options parameter to set the printer name.
    The output options is of the type SSFCOMPOP which contains the field TDDEST. Set the TDDEST field to your default printer name.
    How can I make the Smartforms to display a print preview by default without displaying the popup for print parameters?
    In the SSF_OPEN function module,
    Set the OUTPUT OPTIONS paramter TDDEST to your printer name.
    Set the CONTROL PARAMETERS and control parameters as shown below,
    control-preview = 'X'.
    control-no_open = 'X'.
    control-no_close = 'X'.
    control-no_dialog = 'X'.
    control-device = 'PRINTER'.
    control_parameters-no_dialog = 'X'.
    control_parameters-no_open = 'X'.
    control_parameters-no_close = 'X'.
    OUTPUT_OPTIONS-TDDEST = 'PRINTER NAME'.
    OUTPUT_OPTIONS-TDNOPRINT = 'X'.
    CALL FUNCTION 'SSF_OPEN'
      EXPORTING
        output_options     = output_options
        control_parameters = 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.How can I display the total number of pages in Smartforms?
    Use SFSY-FORMPAGES to display the total number of pages in the Smartforms
    &SFSY-PAGE& Current page number
    &SFSY-FORMPAGE& Total number of pages in the currently formatted layout set
    &SFSY-JOBPAGE& Total number of pages in the currently formatted print request
    &SFSY-COPYCOUNT& Original-1,1st copy-2
    &SFSY-DATE& Date
    &SFSY-TIME& Time
    &SFSY-USERNAME& Username
    I'm using the variable SFSY-FORMPAGES, I get a star "*" instead of the total number of pages.
    There may not be enough space in the window to display the variable, either increase the window dimensions or condense the spaces using &SFSY-FORMPAGES(C)&
    What are the various text formatting options in Smartforms?
    &symbol(Z)& Omit Leading Zeros
    &symbol(S)& Omit Leading Sign
    &symbol(<)& Display Leading Sign to the Left
    &symbol(>)& Display Leading Sign to the Right
    &symbol(C)& Compress Spaces
    &symbol(.N)& Display upto N decimal places
    &symbol(T)& Omit thousands separator
    &symbol(R)& Right justified
    &symbol(I)& Suppress output of the initial value
    How can I provide a background shading to the table?
    In the Table Painter, you can specify the color and shading for the table lines.
    Where can I provide the input parameters to the smartform?
    The input parameters for the smartform can be defined in Global Settings->Form Interface.
    The Associated Type must be defined in the ABAP Dictionary.
    Where can I define my own global types for the smartform?
    The global types(within the smartform) can be defined in Global Settings->Global Definitions->Types
    The types defined here will be global through the entire smartform.
    Also the form routines can be defined Global Settings->Global Definitions->Form Routines
    I have defined my own Program Lines, where I have used a global variable G_TEXT. I get an error G_TEXT is not defined?
    Whenever using the global variables in the Program Lines, enter the variable name in Input Parameters if you are going to use(read) the variable. If you are going to both read/write the variable value enter the same in Output Parameters.
    I have created a table node for display. Where can I check the condition which must satisfy to display the table?
    The conditions can be defined in the Conditions tab. In smartforms all the nodes have a condition tab where you can specify the condition to be satisfied to access the node.
    How can I define Page Protect in Smartforms?
    To define Page Protect for a node go to the Output options and check the Page Protection checkbox.
    What is the difference between Template and Table in Smartforms?
    The Template contains a fixed number of rows and columns, where the output is fixed.
    The Table can have variable number of rows
    Where can I define the paragraph and character format for the smartforms?
    The paragraph and character format for the smartforms can be defined in the transaction SMARTSTYLES
    Mohan
    Award points if it adds information.

  • How to Print Digital Signature in Smart forms.

    Hi Experts,
    Any one please help me how to use digital signatures in SMARTFORMS.?
    Which are the tables used to store digital signatures and please any one have any demo program which prints the the digital signature using smartforms kindly let me know.
    Thanks,
    Sunil kairam.

    Hi Sunil,
    After doing some research in sdn and other sources i found the following result...
    Digital Signatures are nothing but graphics that we can store in SAP and use in our Smart Forms.
    For Example you can create a .bmp file of your signatures, upload it via SE78, and then use it in your Smart Forms in your Footer Area as "Authorized Signatory".
    The Logic in the Print Program can be something as follows -
    1. Maintain a Z Table having fields like PLANT, FORMID (Name of the SmartForm), USERID.
    2. Before calling the Form, the validation is made for the Logged in User with the Z Table created.
    3. If the User Entry exists in the Z-Table, the Form is called and the Signature Image is displayed in the Footer Block i.e. the Authorized Signature.
    4. If user entry does not exist in the Z-Table then the message is displayed "You are not the Authorized for Printing the Form" and exits the Transaction.
    refer to these links:
    [http://help.sap.com/saphelp_nw04s/helpdata/en/23/c8b4cb4b3847a9bc32fe100f368411/frameset.htm]
    [http://help.sap.com/saphelp_nw04/helpdata/en/21/530b37cb3ed605e10000009b38f936/frameset.htm]
    if u find some info on the topic pls let me know..
    best of luck!!!
    thanks
    ravi

  • Text issue in Smart form

    Hi All,
    I have an Custom smart form, and under the pages and windows i have 2 Pages First Page and Next page.
    The First Page  next page is set as Next Page and the second page next page is also set as Next page.
    Now when the Smart form is displayed in the PDF Format then only the first page Header comes in the proper way but the 2nd , 3rd and so on pages depending upon the data the Headers are all coming as an Junk text (Not some other language but the overlapping of characters).
    The Header texts are all in the Table in the header field and also some texts are dynamically populated by the OTR and some are static.
    I am not sure why is this happening can any one give me some inputs?
    Regards,
    Dipu

    Exactly thats what i am using now but want to know whether is it possible by using TEXT instead of creating Graphics node.
    In graphics we can use both .bmp as well as .tif files but not text.So what is the solution of using TEXT Ids in Smart forms.
    Thanks for all your answers but still i didn't get the solution to my problem.
    Regards,
    Chandra

Maybe you are looking for