Urgent smartforms!!!!!!

hi,
i hav a table called zborrower which contains 5 fields , one of the field is :"date_of_return" ....i need to display the details of the borrower based on the date range for date_of_return in the smartform using select options.......how could i do this??.......if there is any other method other than the select options do let me knw.......thank you 

*& Report  ZREP
REPORT  zrep NO STANDARD PAGE HEADING LINE-SIZE 200.
TABLES : zbooks,zborrower.
TYPES : BEGIN OF struct,
        bookid TYPE zbooks-bookid,
        bname TYPE zbooks-bname,
        bmodule TYPE zbooks-bmodule,
        copies TYPE zbooks-copies,
        bavailable TYPE zbooks-bavailable,
        borrowername TYPE zborrower-borrowername,
        dateofborrower TYPE zborrower-dateofborrower,
        dateofreturn TYPE zborrower-dateofreturn,
        END OF struct.
DATA : itab TYPE TABLE OF struct.
DATA : wa LIKE LINE OF itab.
SELECT-OPTIONS : s_dob FOR zborrower-dateofborrower.
PARAMETERS : p_bname TYPE zbooks-bname.
START-OF-SELECTION.
  SET PF-STATUS 'SMARTFORMS'.
  SELECT *
  INTO CORRESPONDING FIELDS OF TABLE itab
  FROM zbooks AS a
  INNER JOIN zborrower AS b ON abookid = bbookid
  WHERE b~dateofborrower IN s_dob
  AND a~bname = p_bname.
  LOOP AT itab INTO wa.
    WRITE : /10 sy-vline,
             15 wa-bookid COLOR 1 INTENSIFIED ON,25 sy-vline,
             26 wa-bname COLOR 2 INTENSIFIED OFF,51 sy-vline,
             52 wa-borrowername COLOR 4 INTENSIFIED OFF ,77 sy-vline,
             78 wa-dateofborrower COLOR 7 INTENSIFIED OFF,95 sy-vline,
             96 wa-dateofreturn COLOR 1 INTENSIFIED OFF ,120 sy-vline.
  ENDLOOP.
  WRITE:/10 sy-uline(111).
AT USER-COMMAND.
  CASE sy-ucomm.
    WHEN 'SMARTFORM'.
      CALL FUNCTION '/1BCDWB/SF00000231'
      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.
  ENDCASE.
TOP-OF-PAGE.
  WRITE: /10 sy-uline(111),
         /10 sy-vline ,15 'BOOK ID' COLOR 1 INTENSIFIED OFF,
         25 sy-vline, 26 'BOOK NAME' COLOR 2 INTENSIFIED OFF,
         51 sy-vline, 52 'BORROWER NAME' COLOR 4 INTENSIFIED OFF,
         77 sy-vline, 78 'DATE OF BORROWER' COLOR 7 INTENSIFIED OFF,
        95 sy-vline, 96 'DATE OF RETURN' COLOR 1 INTENSIFIED OFF,
        120 sy-vline.
  WRITE:/10 sy-uline(111).
END-OF-PAGE.
END-OF-SELECTION.
  WRITE:/'Current Date:' COLOR 3 INTENSIFIED OFF,sy-datum.

Similar Messages

  • URGENT: Smartform - Attaching Font to Device Type and Printing

    Hello Smarform Gurus,
    I have uploaded CORPOS font to SAP and using in SMARTFORMS. Whenever the PDF is called for invoice, it should print immediately.
    When I open the smartform and then print, the printout is coming fine with CORPOS font.
    Problem: When Invoice is created and PDF is called immediately, the prinout is not coming properly. It's because the printer device type KYOFS150 we are using does not support CORPOS. Pls let me know the options we have. We have also referred to SAP note 12462.
    Thanks in advance,
    Abhishek

    Hi
    U need to update the printer device type KYOFS150 or use another one supports that font
    Max

  • Urgent :smartform multiple line item

    hi forum,
    i have vbak by which i took header information.
      now i want to print lline items like mat1, mat2 mat3 corresponding to particular order no .where do i write code in smartform.
    in main window i have drawn a table in that , i have printed header of that table, but i don't know how to print material if there are 3 materials in one order.
    thanks

    You have several solutions:
    - Make a loop of internal table (you must set data, for example in the INITIALISATION, of table VBAP), and write using text.
    - Make a table, specify in the table the internal table used.

  • Urgent: smartform tutorials

    hi,
    i am new to the smart frms i want to have tutorials which are easy to understand and can be practised.
    points will be definately rewarded.

    Hi
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.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
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    call function 'SSF_FUNCTION_MODULE_NAME'
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc 0.
    WRITE: / 'ERROR 1'.
    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
    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 =
    TABLES
    GS_MKPF = INT_MKPF
    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.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic Page 7 or command-controlled Page 46)
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    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
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    You can use the PROGRAM LINES node to calculate the page totals in Table node.
    for migrating scripts to smart forms please follow the link
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9d/9599386185c064e10000009b38f8cf/content.htm
    Thanks,
    usha
    Reward points if useful.

  • Urgent-smartform

    have modified standard layout of script(form) by means of smartforms,now how can i attach it to the driver program and execute and see the output of smartform.

    hi,
    NACE is the Tcode used to link the Application type, Output Types and its processing Routines like ( Driver programs and attached Script forms or Smartforms).
    You should know the Application of a document first Like:
    for PO it is EF, for sales Doc's it is V1, for Delivery docs it is V2, for billing Doc's it is V3 etc.
    so first select the Application type (ex: EF) for PO and press OUtput types
    then a list will come in that you should know the related output type for PO.
    in this case it is NEU,
    select that and click on the processing Routines button on the left side
    it will display the Medium, Driver Program and the Script form or smartform related to that document..
    Reward if it helps..
    regards,
    Omkar.

  • Urgent smartforms Lang translation se63???

    Hi Experts,
    I had done the language conversion (smatform thru SE63)from English to French. Once I had done the target smartform. I am trying to save and activate the same, its not asking any request number, Its just simly saved. How can we track this and  How could we know it transports the successfull

    Hi,
    just do like follows,
    go to your smartforms driver program,
    select  Environment option from the menu options,
    select Transport organiser(requsets),
    here u can find the request id, that id u can transport.
    reward points if useful,
    seshu.

  • Urgent : Smartforms: Direct printing from module pool/dialog screen

    Hi all,
    i have a module pool screen where in from a screen i have some inputs from the user and after saving user wud click on a button called print which shud print a slip containing the screen data.now for this purpose i have made a smartform which on execution of it's driver program fetches data from DB table and puts on to SF.
    NOW MY ISSUE IS AS SOON AS THE USER PRESSES PRINT THE SMARTFORM SHUD DIRECTLY GET PRINTED.
    WAITING FOR ANSWERS
    THANKS AND REGARDS,
    SSACHIN SONI

    cool dude that wrked,thx giving u full points.i have on emore issue if u can  help:
    this driver program needs an input for which i've made a selection screen for testing but as i need to launch it frm mod pool screen i want that this program shud automatically get data(thr's only 1 field ) and shud nt get stopped at the selection screen.
    thanks
    sachin

  • Urgent : Smartform text Display

    Hello All,
    In my main window I have text in which I have to display 3 fields material description, quantity, unit. Currently it displays like this:
    A 10 EA
    B 12 EA
    C 13 EA
    D 10 EA
    E 10 EA
    But I want to display it like this:
    A 10 EA      B 12 EA
    C 13 EA      D 10 EA
    E 10 EA
    how to do this???
    Give me solutions for this.
    Thanks & Regards,
    Bharat
    Helpful answers will be rewarded.
    Edited by: bharat tambat on Dec 26, 2007 7:28 AM
    Edited by: bharat tambat on Dec 26, 2007 11:42 AM

    Hi ,
    This was exactly similar to one of requirement but this is not possible directly ...
    But ill can tell you what i did create a table inside the main window of structure
    material description, quantity, unit , material description, quantity, unit....
    Now if it is odd numbered record fill the first half fill the header line of the table and if it is even numbered record fill the 2nd half of the geadr line and finally appedn this to the tabel.
    Now use this tabel as the normal final internal table this will satisfy ur requirement

  • Very urgent smartform

    I am having 2 pages in my form. I am displaying 2 labels on first page and one label on next. If item quantity is one flag=1 and next page shud get printed and if item quantity is>1 divide it by 2 an dif reminder is 1 again flag=1 an dprint next page else keep on printing first page. First of all is it possible? I ahve tried by command giving condition also but its not happening.

    Thanks friend.
    I have tried in the same way but cudn't achieve the output. I am trying to print Batch No. for the delivery item quantity. For delivery no. if item quantity is 1 it should get dispalyed on next page directly by skipping first page coz it is having only one label. And respective batch no. shud get displayed. IF quantity is more eg. 6 it shud get displayed on first page which is ahving 2 labels per page. First page shud get printed for 3 times if qty is 7 then first page 3 times and next page 1 time likewise. How can I do this? I ahve added command in main window. Code is in first window. I ahve written code in main n tried also but not happening.

  • SmartForms:-Bill Details

    I need an urgent smartform development for an customer :-
    1) The Form will consits of 2 pages
    2) Left Corner:- Company Name&Logo and below it the address
    3) Right Corner:- Company Website and Page No: 1 0f 2
    4)Below the left Corner:- Bill Date :
                                        Bill Period From Date:
                                        Bill Period To Date:
    5)Customer Details:
      Customer Name:ABC                                            Customer Acct No:-1234
      Address:XYZ    
    6) Billing Summary
        Amount of Previous Stmnt mm/dd/yy                                      $4500.00
        Payment Received mm/dd/yy- Thank you                                $(4500.00)
             Balance Before Current Charges                                         $0.00
       Current Charges                                                                               $ 2421.00
             Current Charges Due on mm/dd/yy                                              $ 2421.00
         Your Total Balance Due                                                                   $2421.00
    7) Summary of Billing Details
    Service A/C     Rate Schedule     Service Address     Usage       Current Charges
      AC1                RTP-5                  ABC-1               417 kwh       $2421.00
    8) Did you Know...
    LATE PAYMENT CHARGE REMINDER...
    Reminder- a late payment charge of 0.9% will be applied to the total unpaid balance on your account if full payment is not received by the due date on this bill.
               -Please detach stub below and return with your payment-
           I                                                           I
           I                                I                          I
           I   Thankyou for           I  Past due if not   IEnter the amount you
           I                                I                         I  paid
           I                                I    paid by           I
           I   paying promptly      I                         I
           I__________________I  ____________________________________________
    9.)  2nd page follows now
    10) Same as 1st page
                 Now any body could give me the steps inorder to develop the smartform above all 10 its very urgent i will reward points to the maximum capacity whosoever helps me in solving .

    1) develop only 1 page and in print option put 2 in number of copies.
    2) define 2 header window before main window
    3) separate this header window by giving size like for left window 0 to 10 and right window 11 to 18
    4) for bill date pass import parameter s_budat-low & s_budat-high - print it
    5) customer detail - get data from kna1 & adrc
    6) billing summary use bsid & bsad
    7) for transaction detail use blart field (both table bsid & bsad).
    8) you can calculate   due date using   CALL FUNCTION 'NET_DUE_DATE_GET'.
    pass parameter from bsid table :
            i_zfbdt = i_bsid-zfbdt
            i_zbd1t = i_bsid-zbd1t
            i_zbd2t = i_bsid-zbd2t
            i_zbd3t = i_bsid-zbd3t
            i_shkzg = i_bsid-shkzg
            i_rebzg = i_bsid-rebzg
    thanks
    raj

  • Report using smart forms as the print module

    Hi
    I have to develop a report in order to print some data of the purchase orders after processing, in a given layout. To achieve this I have the relaxation to use smartforms to develop the layout. The processed data for multiple orders will be passed to the smartform function module created. This way the smartform will be generated and the control will return to the report in which the smartform FM was called. Please tell me the settings which will trigger the printout from the report.
    Regards
    SIM

    Hi,
    Most of the smartforms will be called from the driver program. Once the smartform is called the control will be returned to the program only.
    check the below threads
    urgent: smartform tutorials
    Thanks
    Arul

  • How to use CALL FUNCTION '/1BCDWB/SF00000014' in smartform urgent

    hiiiiiiiii
    Iam doing classical report n i want my output to be printed in smartform.
    So my output is in IT_FINAL table.In smartform in Form Interface Table column i had declare :::
    Parameter Name: IT_FINAL
    Type Assignment:LIKE
    Associated Type:ZSD_FINAL ( Its a structure of IT_FINAL)
    And in SE38..iam using...............
    data: FM_NAME1 type RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
    FORMNAME = 'ZCSF_SDPRSR03_PR'
    importing
    FM_NAME = FM_NAME1.
    CALL FUNCTION FM_NAME1
    EXPORTING
    IT_FINAL = IT_FINAL.
    So while running its giving dump..
    I DONT KNOW HOW TO USE THE ABOVE FUNCTION MODULE.
    CALL FUNCTION '/1BCDWB/SF00000014'
    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.
    Please suggest me with example if possible......URGENT.
    (Rewards if solved)
    Regards.

    Hi
    see the below doc and do accordingly
    How to create a New smartfrom, it is having step by step procedure
    http://sap.niraj.tripod.com/id67.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
    Here is the procedure
    1. Create a new smartforms
    Transaction code SMARTFORMS
    Create new smartforms call ZSMART
    2. Define looping process for internal table
    Pages and windows
    First Page -> Header Window (Cursor at First Page then click Edit -> Node -> Create)
    Here, you can specify your title and page numbering
    &SFSY-PAGE& (Page 1) of &SFSY-FORMPAGES(Z4.0)& (Total Page)
    Main windows -> TABLE -> DATA
    In the Loop section, tick Internal table and fill in
    ITAB1 (table in ABAP SMARTFORM calling function) INTO ITAB2
    3. Define table in smartforms
    Global settings :
    Form interface
    Variable name Type assignment Reference type
    ITAB1 TYPE Table Structure
    Global definitions
    Variable name Type assignment Reference type
    ITAB2 TYPE Table Structure
    4. To display the data in the form
    Make used of the Table Painter and declare the Line Type in Tabstrips Table
    e.g. HD_GEN for printing header details,
    IT_GEN for printing data details.
    You have to specify the Line Type in your Text elements in the Tabstrips Output options.
    Tick the New Line and specify the Line Type for outputting the data.
    Declare your output fields in Text elements
    Tabstrips - Output Options
    For different fonts use this Style : IDWTCERTSTYLE
    For Quantity or Amout you can used this variable &GS_ITAB-AMOUNT(12.2)&
    5. Calling SMARTFORMS from your ABAP program
    REPORT ZSMARTFORM.
    Calling SMARTFORMS from your ABAP program.
    Collecting all the table data in your program, and pass once to SMARTFORMS
    SMARTFORMS
    Declare your table type in :-
    Global Settings -> Form Interface
    Global Definintions -> Global Data
    Main Window -> Table -> DATA
    Written by : SAP Hints and Tips on Configuration and ABAP/4 Programming
    http://sapr3.tripod.com
    TABLES: MKPF.
    DATA: FM_NAME TYPE RS38L_FNAM.
    DATA: BEGIN OF INT_MKPF OCCURS 0.
    INCLUDE STRUCTURE MKPF.
    DATA: END OF INT_MKPF.
    SELECT-OPTIONS S_MBLNR FOR MKPF-MBLNR MEMORY ID 001.
    SELECT * FROM MKPF WHERE MBLNR IN S_MBLNR.
    MOVE-CORRESPONDING MKPF TO INT_MKPF.
    APPEND INT_MKPF.
    ENDSELECT.
    At the end of your program.
    Passing data to SMARTFORMS
    <b>call function 'SSF_FUNCTION_MODULE_NAME'</b>
    exporting
    formname = 'ZSMARTFORM'
    VARIANT = ' '
    DIRECT_CALL = ' '
    IMPORTING
    FM_NAME = FM_NAME
    EXCEPTIONS
    NO_FORM = 1
    NO_FUNCTION_MODULE = 2
    OTHERS = 3.
    if sy-subrc <> 0.
    WRITE: / 'ERROR 1'.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    <b>call function FM_NAME</b>
    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 =
    TABLES
    GS_MKPF = INT_MKPF
    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.
    Smartform
    you can check this link here you can see the steps and you can do it the same by looking at it..
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    SMARTFORMS STEPS.
    1. In Tcode se11 Create a structure(struct) same like the Internal table that you are going to use in your report.
    2. Create Table type(t_struct) of stracture in se11.
    3. In your program declare Internal table(Itab) type table of structure(struct).
    4. Define work area(wa) like line of internal table.
    5. Open Tcode Smartforms
    6. In form Global setting , forminterface Import parameter define Internal table(Itab) like table type of stracture(t_struct).
    7. In form Global setting , Global definitions , in Global data define Work area(wa) like type stracture(struct).
    8. In form pages and window, create Page node by default Page1 is available.
    9. In page node you can create numbers of secondary window. But in form there is only one Main window.
    10. By right click on page you can create windows or Go to Edit, Node, Create.
    11. After creating the window right click on window create table for displaying the data that you are passing through internal table.
    12. In the table Data parameter, loop internal internal table (Itab) into work area(wa).
    13. In table there are three areas Header, Main Area, Footer.
    14. Right click on the Main area create table line by default line type1 is there select it.
    15. Divide line into cells according to your need then for each cell create Text node.
    16. In text node general attribute. Write down fields of your work area(wa) or write any thing you want to display.
    17. Save form and activate it.
    18. Then go to Environment, function module name, there you get the name of function module copy it.
    19. In your program call the function module that you have copied from your form.
    20. In your program in exporting parameter of function pass the internal table(itab).
    SAP Smart Forms is introduced in SAP Basis Release 4.6C as the tool for creating and maintaining forms.
    SAP Smart Forms allow you to execute simple modifications to the form and in the form logic by using simple graphical tools; in 90% of all cases, this won't include any programming effort. Thus, a power user without any programming knowledge can
    configure forms with data from an SAP System for the relevant business processes.
    To print a form, you need a program for data retrieval and a Smart Form that contains the entire from logic. As data retrieval and form logic are separated, you must only adapt the Smart Form if changes to the form logic are necessary. The application program passes the data via a function module interface to the Smart Form. When activating the Smart Form, the system automatically generates a function module. At runtime, the system processes this function module.
    You can insert static and dynamic tables. This includes line feeds in individual table cells, triggering events for table headings and subtotals, and sorting data before output.
    You can check individual nodes as well as the entire form and find any existing errors in the tree structure. The data flow analysis checks whether all fields (variables) have a defined value at the moment they are displayed.
    SAP Smart Forms allow you to include graphics, which you can display either as part of the form or as background graphics. You use background graphics to copy the layout of an existing (scanned) form or to lend forms a company-specific look. During printout, you can suppress the background graphic, if desired.
    SAP Smart Forms also support postage optimizing.
    Also read SAP Note No. 168368 - Smart Forms: New form tool in Release 4.6C
    What Transaction to start SAP Smart Forms?
    Execute transaction SMARTFORMS to start SAP Smart Forms.
    Key Benefits of SAP Smart Forms:
    SAP Smart Forms allows you to reduce considerably the implementation costs of mySAP.com solutions since forms can be adjusted in minimum time.
    You design a form using the graphical Form Painter and the graphical Table Painter. The form logic is represented by a hierarchy structure (tree structure) that consists of individual nodes, such as nodes for global settings, nodes for texts, nodes for output tables, or nodes for graphics.
    To make changes, use Drag & Drop, Copy & Paste, and select different attributes.
    These actions do not include writing of coding lines or using a Script language.
    Using your form description maintained in the Form Builder, Smart Forms generates a function module that encapsulates layout, content and form logic. So you do not need a group of function modules to print a form, but only one.
    For Web publishing, the system provides a generated XML output of the processed form.
    Smart Forms provides a data stream called XML for Smart Forms (XSF) to allow the use of 3rd party printing tools. XSF passes form content from R/3 to an external product without passing any layout information about the Smart Form.
    SmartForms System Fields
    Within a form you can use the field string SFSY with its system fields. During form processing the system replaces these fields with the corresponding values. The field values come from the SAP System or are results of the processing.
    System fields of Smart Forms
    &SFSY-DATE&
    Displays the date. You determine the display format in the user master record.
    &SFSY-TIME&
    Displays the time of day in the form HH:MM:SS.
    &SFSY-PAGE&
    Inserts the number of the current print page into the text. You determine the format of the page number (for example, Arabic, numeric) in the page node.
    &SFSY-FORMPAGES&
    Displays the total number of pages for the currently processed form. This allows you to include texts such as'Page x of y' into your output.
    &SFSY-JOBPAGES&
    Contains the total page number of all forms in the currently processed print request.
    &SFSY-WINDOWNAME&
    Contains the name of the current window (string in the Window field)
    &SFSY-PAGENAME&
    Contains the name of the current page (string in the Page field)
    &SFSY-PAGEBREAK&
    Is set to 'X' after a page break (either automatic [Page 7] or command-controlled [Page 46])
    &SFSY-MAINEND&
    Is set as soon as processing of the main window on the current page ends
    &SFSY-EXCEPTION&
    Contains the name of the raised exception. You must trigger your own exceptions, which you defined in the form interface, using the user_exception macro (syntax: user_exception <exception name >).
    Example Forms Available in Standard SAP R/3
    SF_EXAMPLE_01
    Simple example; invoice with table output of flight booking for one customer
    SF_EXAMPLE_02
    Similar to SF_EXAMPLE_01 but with subtotals
    SF_EXAMPLE_03
    Similar to SF_EXAMPLE_02, whereby several customers are selected in the application program; the form is called for each customer and all form outputs are included in an output request
    Advantages of SAP Smart Forms
    SAP Smart Forms have the following advantages:
    1. The adaption of forms is supported to a large extent by graphic tools for layout and logic, so that no programming knowledge is necessary (at least 90% of all adjustments). Therefore, power user forms can also make configurations for your business processes with data from an SAP system. Consultants are only required in special cases.
    2. Displaying table structures (dynamic framing of texts)
    3. Output of background graphics, for form design in particular the use of templates which were scanned.
    4. Colored output of texts
    5. User-friendly and integrated Form Painter for the graphical design of forms
    6. Graphical Table Painter for drawing tables
    7. Reusing Font and paragraph formats in forms (Smart Styles)
    8. Data interface in XML format (XML for Smart Forms, in short XSF)
    9. Form translation is supported by standard translation tools
    10. Flexible reuse of text modules
    11. HTML output of forms (Basis release 6.10)
    12. Interactive Web forms with input fields, pushbuttons, radio buttons, etc. (Basis-Release 6.10)
    Regards
    Anji

  • Calling Smartforms from Module pool: Most Urgent

    Hi, Exeperts
    how can I call smartforms from module pool.
    I have done like below.
    First Created a push button on screen and used
    these code in user command through PAI
    FORM CALL_SMARTFORMS .
    DATA: V_FORM_NAME TYPE RS38L_FNAM.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
        FORMNAME           = 'ZSMART'
      IMPORTING
        FM_NAME            = V_FORM_NAME
      EXCEPTIONS
        NO_FORM            = 1
        NO_FUNCTION_MODULE = 2
        OTHERS             = 3.
    ENDFORM.                    " CALL_SMARTFORMS
    now I am getting form name in v_form_name, but it is not executing.
    Please help me out.
    Regards
    Rajiv singh.

    Well, as it's most urgent....
    One you have a value in V_FORM_NAME you need to call this function module, passing the fields and strucures that make up the interface to your form.
    Eg.
    DATA: DEVICE TYPE SSFCTRLOP .
    DEVICE-DEVICE = 'PRINTER'.
    DEVICE-NO_DIALOG = 'X'.
    CALL FUNCTION V_FORM_NAME
    EXPORTING
       CONTROL_PARAMETERS         = device
       USER_SETTINGS              = 'X'
    EXCEPTIONS
       FORMATTING_ERROR           = 1
       INTERNAL_ERROR             = 2
       SEND_ERROR                 = 3
       USER_CANCELED              = 4
       OTHERS                     = 5.
    Regards,
    Nick

  • Problem in executing a smartform URGENT!!

    HI,
    I created a template in my layout and created a structure
    z_tab which i had to pass in the smartform now
    my problem is
    in form interface i gave i_tab type z_tab
    and in template-> text iam adding a feild&i_tab-raw&( this is my feild name which i have to show in output) and in se38 my interface program i gave the necessary.
    But iam getting error saying
    "Reference field I_TAB-RAW unknown in form."
    please help its urgent
    Thank you

    the reference field which i gave in the structure was making this problem it was currency field and reference table was mismatched.
    Thankyou for replying raam & rahul.

  • URGENT!! Smartform : graphical edition impossible!

    Hi,
    I created a Smartform for Delivery Note with its print program in a newly upgraded ECC6.0 system. I customized in NACE in proper column.
    When I try to print it via VL02N, the message is:
    "Graphical edition impossible"
    Does anyone know how to solve this problem??
    Points rewarded immediately since its very urgent!
    Tarick.

    Hi again!
    I found out the reason!
    There was a graphic which was not uploaded properly in SE78...
    Tarick.

Maybe you are looking for