Creating a pop window in smart forms runtime with text entry

Dear Experts,
I Need to Create a pop window ( in run time of smart forms ) in which the user can enter some text and that text needs to be populated in the smart forms ouput.
i know that I can write code inside smart forms to do it.
I dont know when where and what to done to achieve this functionality.
Can any of you help me out in this scenario.
WIth Thanks and Regards
Ravishankar Vembu.

HI
Where u want to call this POPUP.
u can call the popup in INITIALIZATION tab and in PROGRAM LINES also.
eg.. create program lines--> call the FM
data: V_SVAL type sy-ucomm.
CALL FUNCTION 'ACE_POPUP_WITH_4_OPTIONS'
IMPORTING
   ANSWER        = V_SVAL.
when u call the smatform the popup will be displayed automatically
Please Close this thread.. when u r problem is solved. Reward if Helpful
Regards
Naresh Reddy K

Similar Messages

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • How can i create Header and items in SMART FORM

    Hi Experts,
    How can i create Header and items in SMART FORM in the below driver program.
    _Header fields_
    SELECT BUKRS BUDAT GJAHR CPUDT USNAM BLART BELNR XBLNR BLDAT WAERS KURSF
      FROM BKPF INTO CORRESPONDING FIELDS OF TABLE IT_HEAD WHERE BELNR IN S_BELNR AND BUDAT IN S_BUDAT AND GJAHR EQ S_GJAHR AND BUKRS EQ S_BUKRS AND CPUDT IN S_CPUDT AND USNAM IN S_USNAM.
    Item firlds
    SELECT BUZEI BSCHL SGTXT SHKZG KOSTL PRCTR WERKS WRBTR HKONT KUNNR ZFBDT FROM BSEG INTO CORRESPONDING FIELDS OF TABLE IT_ITEM
      FOR ALL ENTRIES IN  IT_HEAD WHERE BELNR = IT_HEAD-BELNR AND GJAHR = IT_HEAD-GJAHR AND BUKRS = IT_HEAD-BUKRS.
      LOOP AT IT_HEAD.
    MOVE-CORRESPONDING IT_HEAD TO FINAL.
        LOOP AT IT_ITEM
        WHERE BELNR = IT_HEAD-BELNR.
          MOVE-CORRESPONDING IT_ITEM TO FINAL.
    ENDLOOP.
    ENDLOOP.
    Regards,
    Sreedhar.

    for these internal tables you can pass some Identifier  for both tables.
    in header file : IT_HEAD
    IDENT   type  char10,
    BUKRS type BUKRS,
    BUDAT type BUDAT,  like
    in header file :IT_ITEM
    IDENT   type  char10,
    BUZEI type BUZEI,
    BSCHL type BSCHL,  like  in item data
    you need to fille the  IDENT value like
    IT_HEAD:
    10 -- DE01-- 10.20.2009
    20 -- CH01-- 10.20.2009
    IT_ITEM
    10 -- 1234-- KSCHL value  like all records
    10 -- 2345-- KSCHL value  like all records
    10 -- 6783-- KSCHL value  like all records
    20 -- 3452-- 1KSCHL value  like all records
    20 -- 4532-- KSCHL value  like all records
    20 -- 4535-- KSCHL value  like all records
    in smartform you need to create 2 tables.
    or create
    LOOP  with IT_HEAD
    table with IT_HEAD
    table with IT_ITEM
    and put the condition for each table in  DATA tab where condtion  like IDENT = IT_HEAD-IDENT
    in item table also INDENT = IT_ITEM-INDENT..

  • How to create the Paragraph styles in Smart Forms

    Dear Techie's,
    Please let me know, How to create the own Paragraph styles in Smart Forms i.e to make the line or a particular font in BOLD.
    Please put the light ASAP.
    Regards,
    Maddu.

    hi
    good
    You can create additional fonts and style with transaction SMARTSTYLES
    This can then be define in the paragraph and character formats, which you can then be assign to texts and fields in the Smart Form. 
    The character formats includes effects such as superscript, subscript, barcode and font attributes.
    thanks
    mrutyun^

  • Smart form problem with multiple pages & table problem

    Hi experts,
    I have a problem with my smart form with multiple pages
    Situation: I have a smart form that ALWAYS has at least 2 pages. In one page the quotation, in the second page (basically this is the 3rd page as the 2nd page is optional) the terms and conditions. Sometimes however, when there are many items in the quotation more than 1 page is needed for the quotation.
    The (optional) second page of a quotation has a different header than the first page of a quotation. So I made a second page with 2 secondary windows (where the header texts are in). The main window is after the secondary windows and has to finish the quotation.
    The problem is that my headers of the second page are never printed, it stays a blank space. The table however does continue and is printed.
    Another problem I have is that I have a table (with the quotations) with 6 columns. The first 2 columns are displayed correctly but once the 3rd column the columns are shown on a lign below.
    Regards,
    PJ

    I would suggest another approach to this problem.
    Use just one page. For the headers on the first page, use a secondary window and on the conditions tab, choose the additional event - Only on First Page.
    For the different header on the second page, create another secondary window on the same page (probably even overlapping the first header on your layout). But in this one, on the conditions tab, choose the additional event - Not on First Page.
    The table should flow as you would be using the Main window for this one.
    As for columns, if they are too wide and wont fit in the same line, it would move to the next line. So you would have to re-adjust the line width and test.
    Hope this resolves your problem.
    Regards,
    Ancy
    Edited by: abapfreak on Oct 4, 2010 11:52 AM

  • Smart Forms : problem with Float Variable

    Hi  Expert,
       I have a probelm with Float variable. In my smart forms one fields of table QAMV contain value like 8.0000000000000000E+01.
    I have to remove the exponent and display value like 80.
    I have tried wa_qamv-sollwert(E10.4).. but it not working.
    Can U suggest me some solution.
    Regards
    Swati.
    Edited by: Swati Namdev on Apr 27, 2010 12:19 PM

    Hi,
    Please follow the steps.
    1. In your smart form create a variable w_val ,, type,, associate type -->  CHAR10
    2. Now write a code, jsut above your node where u wud like to get this value... For this Create -> Flow Logic -> Program Lines.. Now you have editor..
    3. In input parameters , put i_tab-QAMV.. and in output parameter put w_val... and Code like below
    CALL FUNCTION 'MD_CONV_QUANTITY_FLOAT_TO_PACK'
      EXPORTING
        iv_menge       = i_tab-qamv
      IMPORTING
        EV_MENGE       = w_val.
    4. Now grag and drop this w_val from global data field list...your this w_val will have the rounded value.. Pls try this and check..   It will work.
    Regards,
    Lokesh.
    Edited by: Lokesh Tarey on Apr 27, 2010 9:28 AM

  • Smart Form problem with address layout

    Hello everyone,
    I need your help please for a smart form problem. We need the address layout for great britain with street1, street2 etc. but currently street2 is alligned before street1.
    We are using the FM ADDRESS_INTO_PRINTFORM (SAP standard address node) and according to the documenation the layout for GB is different as we see it currently.
    We have checked the sold-to and all contact persons, they have as country GB and language EN maintained.
    In customizing for address screen layout there is nothing chosen (tested to set up Europe, but did not change anything).
    For the customizing 'specify my countries...' we have maintained GB as country with the address layout key 006, vehicle country key GB and language key EN.
    For the described setting shouldn't there be designed the address in our smart forms according to 006? Anyhting in customizing we missed?
    Thanks a lot for your answers.
    Torsten

    Hi,
    Try to use line priority of FM, below is a brief of documentation. You can read it more in FM documentation:
    Control Parameters
    See also the parameter documentation.
    ADDRESS_TYPE - Address type (from 3.0C)
    There are three types of address:
    Address type '1': addresses of firms or organizations; the address
    structure which is used in most SAP applications as 'Address'.
    Address type '2': address of a person
    Address type '3': work address, usually the address of a contact person
    in a company
    The default value SPACE for the address type is handled like type '1',
    and is needed for the upwards-compatibility of the function module.
    Which parameters are used for which address type is explained in the
    ADDRESS_TYPE parameter documentation.
    The three character "address layout key" of the recipient country (LAND1) controls which of the available country-specific routines is used to format addresses for the country in question. This key is stored in field T005-ADDRS and is entered in Customizing under Global settings -> Set countries -> Define countries, on the detail screen under "Address layout key".
    Keys for customer routines in the SAP enhancement SZAD0001 can be
    maintained via the transaction SM30 (extended table maintenance),table
    name T005A, in the customer name range, and be assigned in country customizing.
    The address attributes are passed in the structures ADDRESS1 (type 1), ADDRESS2 (type 2), ADDRESS3 (type 3) or ADRSWA_IN (type SPACE).
    NUMBER_OF_LINES (ADRSWA_IN-ANZZL)
    The number of lines available for the address layout. If the number of
    lines is not sufficient for the complete layout of an address, then
    lines are consecutively suppressed according to the rules of the country in question. Use the parameter LINE_PRIORITY (ADRSWA_IN-PRIOR) overrules the standard sequence in which the output lines are to be suppressed.
    LINE_PRIORITY (ADRSWA_IN-PRIOR)
    If not equal to SPACE, this field overwrites the standard sequence in
    which the lines are suppressed if the available number of lines ANZZL is
    insufficient.
    The standard sequence is defined as follows:
    Type 1:   'AP43HRT7I86LC2BS5O'       (GB:  'APRT4327I86CBS5LO')
    Type 2:   'APHRT7I86LCBS5O'          (GB:  'PRT7I86CBS5LO')
    Type 3:   'APF43HR7I86TLC2BSND5O'    (GB:  'APRT4327I86CBS5LNDIO')
    where (if they occupy a line of their own):
    A = Title
    P = Mandatory empty line 1
    F = Function of the contact person in the company
    4 = Name 4
    3 = Name 3
    H = Different city
    R = Region
    T = District
    L = Name of country
    C = Postal code
    T = District
    7 = Street 3 (field STR_SUPPL2)
    I = Street 5 (field LOCATION)
    8 = Street 4 (field STR_SUPPL3)
    6 = Street 2 (field STR_SUPPL1)
    L = Country
    C = Postal code
    2 = Name 2
    B = PO Box
    S = Street or PO Box
    5 = c/o name
    N = Name (and title) of a person
    D = Department
    O = City
    Which of these attributes are available for maintenance can vary. All
    fields exist in Business Address Services.
    STREET_HAS_PRIORITY (ADRSWA_IN-WAREN)
    'X': Street has priority over PO Box (delivery address for example)
    ' ': PO Box has priority over street. This is the default value.
    regards,

  • Smart forms print with EPSON LQ-2500

    HI all,
        I have a problem that my EPSON printer can not print all the lines of the table in Smart-forms. And always the same lines can not be printed. If I output the form with PDF Printer first, then, I print the PDF file with my printer, it would be quite well. So I think there should be sth. wrong with my programe or settings in SPAD. Is there someone can help me to solve this problem? Many thanks!

    Hi Anji and Ravi,
      thank you for your reply; in Quality and PRD the character format "H" exists
    and in effect the format of text type A is correct.
    Also the angular brackets are correct <\>.
    Regards.                                                 Paolo
    Message was edited by:
            Paolo Cavallini

  • In produstion one window in smart form is not getting displayed

    hello everyone,
    i had created one smartform report,
    its getting executed on development,
    but on production only one window not getting displayed,rest of the windows are displaying.
    can you give me some suggestions so i can make changes in smartforms.
    thaking ya
    chitra

    First check for window conditions
    which window is not displaying secondary window or copies window or Final window or address window
    and tell me the clearly

  • I donot need pop screen before Smart form printing

    HI All ,
    I execute a print program which calls a smartform . then appers the screen on which you  fill printer name then go for print preview or print . I do'not want this screen to appear .
    I have tried using this code please Help .
      DATA : lw_ssfcompop TYPE ssfcompop,
             lw_ssfctrlop TYPE ssfctrlop.
      CLEAR lw_ssfcompop.
      CLEAR lw_ssfctrlop.
        lw_ssfcompop-tddest = 'LOCL' .
        lw_ssfcompop-tdnoprev = gc_x.
        lw_ssfcompop-tdiexit = gc_x.
        lw_ssfctrlop-device = gc_printer.
        lw_ssfctrlop-no_dialog = gc_x.
      ENDIF.
    regards
    Saurabh Garg

    Hi Saurabh,
    It is easy...
    data: ctrl_param type ssfctrlop,
    out_option type ssfcompop,
    fm_name type rs38l_fnam.
    <b>ctrl_param-preview = 'X'.
    out_option-tddest = 'LP01'. " </b>or whatever <b>
    ctrl_param-no_dialog = 'X'.</b>
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    formname = gv_form
    VARIANT = ' '
    DIRECT_CALL = ' '
    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
    exporting
    <b>control_parameters = ctrl_param
    output_options = out_option
    user_settings = space</b>
    tables
    itab = itab[]
    exceptions
    This will work.
    <b>Award points if found useful.</b>
    Regards,
    SP.

  • Smart Form Language and text style

    Hello Experts,
    I'm creating an Arabic SmartForm and I have 2 issues:
    1- when I create my own style and assign it to my form text, the font family has no effect, whatever font family I set in the style, the same text is display when running the smartform which means the font family I set has no effect and the system is taking a default font family which ddoes not fit requirements.
    2- when text is printed the characters spacing is taking most of the form space, I need to control the characters spacing within a single word, how can I do that? because if I decrease the font size, the text became not clear, if I increase the font size then I have no space enough.
    Please help me in these points as it seems SAP SmartForm tools are not very helpful when it comes to complex designed forms.
    Thanks in advance.

    > 1- when I create my own style and assign it to my form text, the font family has no effect, whatever font family I set in the style, the same text is display when running the smartform which means the font family I set has no effect and the system is taking a default font family which ddoes not fit requirements.
    you must tell SAP which fonts (family, size, style) are available on the printer, using SE73 transaction (system and printer fonts). You may use Font conversion button in SE73 to check the font is not converted to another family or another size.
    > 2- when text is printed the characters spacing is taking most of the form space, I need to control the characters spacing within a single word, how can I do that? because if I decrease the font size, the text became not clear, if I increase the font size then I have no space enough.
    If your printer font is a TrueType font, you can define a 7.5 points font instead of 8 for example, in SE73. Don't forget that SE73 unit of measure is decipoint, so it should be entered 075 (instead of 7.5).

  • ABAP smart forms integration with CRM

    Hi
    As our ABAPers created their smartforms, now i need to integrate there designed smartforms with our CRM server. How to do it, what is the procedure...???
    To do this process i worked on this following area. That is i went into Content Management in that we have Define Document Template Profile, and Next assign Document Template Profile to Application  and Finally Assign Transaction Types to Templates for Folder and Doc. Template Profiles.
    Here in Application the ABAPers created Z type smartforms are not displaying in that only Standard Application is displaying. So i need the link here i want to  see their forms in Application. How it comes here....??????
    If i get here their smartforms in Application , my problem is solved , from here i can put it in my Transaction Type.
    Early reply will be Appreciated.
    Regards
    S.Bethi

    Hi Santosh
    You may benefit from this link Re: To replace standard smartform by a custom form, to be used in PRINT PREVIEW
    I have been looking for this problem as well, I have followed the configuration steps by copying from standard configuration however I cannot get the print out. I got an error message like " No manual print actions found"
    Do you managed this issue?
    Thanks
    Mehmet

  • Smart forms-copies&final windows

    hi! please give me info on copies and final windows in smart forms with examples if possible.

    Hi,
    <b>Copies Window</b>
    Use
    You use the copies window to define an output area for the print output, whose content you want to appear either only on the copy or only on the original. This allows you to flag copies as copies when the form is printed.
    Prerequisites
    You use this window type only if you want to print copies of your form. In the spool dialog in the Number input field of the Copies group box enter the number of copies (including the original).
    Features
    You can determine where to print the inferior nodes of a copies window:
    Both on the original and on the copies ( Original and Copies )
    Only on the original ( Only Original )
    Only on the copies ( Only Copies )
    You can use the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 to query whether the current output is the original or, respectively, which number the copy has.
    Extras
    You frequently print a graphic on the copies to flag them as copies. If, independent of the copy, the graphic is always the same, SAP Smart Forms can buffer the graphic before printing the page and thus increase performance. To do this, you must flag the copies window accordingly:
    If you mark Identical Copies SAP Smart Forms buffers the output to increase performance. Within such a window, any queries of the system fields SFSY-COPYCOUNT or SFSY-COPYCOUNT0 have no effects.
    If you mark Different Copies SAP Smart Forms generates the contents again for each copy. You use this option if, for example, you want to number your copies consecutively (Copy 1, Copy 2, Copy 3, and so on).
    <b>Final Window</b>
    Use
    You may want to display or query values on the first page that are determined only during processing. For example, you may want to name the grand total in the letter text of an invoice. However, this amount is determined only after listing all individual items. Or you may want to query on the first page within a condition the total number of pages, which the system calculates only after processing all pages.
    In such a case, you use the final window: Processing first skips all windows of this type in the tree and works its way to the end of the tree. Only after the actual processing is finished, the final windows are processed in the order in which they appear in the tree (from top to bottom). Now any information is available that is known only at the end of the form processing.
    Integration
    As of Release 6.10 you can set this window type using a radio button on the General Attributes tab. For Releases 4.6C and 4.6D you must first upload a Support Package. Selection of this window type differs for these releases. For more information, refer to Note 359009 in SAPNet.
    Activities
    Create a window.
    To set the window type, use the Window Type list box on the General Attributes tab.
    For further details refere the smart form documentation...
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9b/e3b0d9c2a711d3b558006094192fe3/frameset.htm
    Thanks and Regards,
    Bharat Kumar Reddy.V

  • Creating a pop up window.

    Hi Friends,
    If Sy-subrc <> o,
    some error message.
    But the error message should be as a pop Up window.
    So to create the pop window whats the procedure.
    Thanks,
    Shejal.

    Hello,
    I also try to create a pop-up window en use the following coding:
    if vbak-kunnr = '0000000484'.
      Call function 'POPUP_TO_INFORM'
      EXPORTING
      titel = 'pop-up'
      txt2 = 'pas op'
      txt1 = 'pas nog een keer op'.
      exit.
    endif.
    This pop-up only has to appear for customer 484 and this also happens. However the pop-up stays on the screen and I cannot continue with the order. What part in my coding is wrong or wat is missing?
    Thanks in advance,
    Ivo

  • Smart forms - Dynamic sizing of the windows.

    Hi gurus, iam working on smartforms, i have a problem.
    My requirement is: Printing a table data on the smart form. Is the window which prints this table data is resized with the amount of table data, if so, what is the procedure i should follow for to print this data in the window.
    Please give me the steps to go with the above issue. iam new to smartforms. what is the size of the window i should give in the Form painter and what all the attributes i should declare.
    Plz give a detailed explanation..
    Regards,
    chaitanya

    Hi Chaitanya.
    I would like to suggest a few references,
    [SDN - Reference for Smart form - setting dynamic window height  |Smart form-setting dynamic window height;
    [SDN Library - Standard Reference - Dynamic Window Height - SMARTFORM Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d937ec90-0201-0010-0ca8-b6cb3b6dd1ef]
    Hope that's usefull.
    Good Luck & Regards.
    Harsh Dave

Maybe you are looking for