Table for Smartform

Hi,
I am to make a table with the item lines for a proforma invoice.
I should contain of 9 columns for fields and a total for the last 3 columns.
The fields are:
Line item number
Material number
Material descr.
Sales unit
Quantity
Price
Amount without VAT plus total at the last row
VAT Rate
VAT Amount plus total at the last row
Amount with  VAT plus total at the last line
The table should have solid frames around it and solid column lines.
I have looked at the standard proforma invoice but that seems quite different to this one.
If you can refer to another form from the standard collection that are similar to this or give me a doc. refer for this, it will be much appreciated.
Thanks in advance.

n/a

Similar Messages

  • Base table for Smartform names

    Hi All,
    WOuld u please let me know the base table that stores Function module and smartform names?? I need to get a count of such objects in my system ??
    Appreciate your help in advance
    Amogh

    Hello,
    STXFADM and TNAPR aslo u can refer in this table...
    Thank u,
    santhosh..

  • Sy-tabix for internal table in smartform

    Hi friends,
    How to capture the sy-tabix value for the entries in an internal table which has been looped into the loop of table node of a smartform?? I need to print something immedaitely after the end of the table
    For every record the value of sy-tabix is showing 1 !!
    Advance Thanks
    Aadarsh

    Hi Aadarsh,
    Give ur sy-tabix at the end of the loop.
    loop at itab.
    //table node populations.
    endloop.
    give a seperate loop for this.
    loop at itab.
    sy-tabix.
    endloop
    get the total no and print it after the table.
    If u r using do loop then give sy-index.
    Hope tihs helps u,
    Regards,
    Nagarajan.
    Message was edited by: Nagarajan Kumarappan

  • While selecting Frame for Table in Smartform

    hi
      While i am selecting Frame for Table in Smartform , it displaying very Bold frame.
    wat is the reason,
    guide me

    hi,
    do this steps,
    ->first in the shading of the table select white color
    ->provide the saturation as 100
    ->select the pattern and select any one of the pattern
    ->and then check the output
    you will get the required do this in the same fashion i explained
    Thanks,
    Nethaji.

  • Table inside table in smartform for pay statement

    Hi friends,
                       Here is one requirement of PAY STATEMENT in which all details(includes personal, Attendance, Payroll details) of all employee's of particular month should print in smart form. Client demanding the format in their previous system which is like this
    1. In the first row, HEADING Part includes
           a. Ist column - Emp id, name, dept, desig, DOJ
           b. 2nd column splits in to  number of leave types and days worked and working days.
           c. 3rd column - Earnings
           d. 4th column - Deductions
    2. From the second row, Data from driver program
          a. Ist column - Corresponding to Ist rows Ist Column
          b. Vice versa....
    First row is static text, which should display in each page.this should be done for all the existing employees(Almost 300+) with all the details discussed in the 2nd point..
    3. Finally they are asking to display, the total earnings and total deductions spent for the salary from the management.
    According to my knowledge, what i understood is : We need to use TABLE for this requirement, because all the details are dynamic and nothing is static except Personal details heading. What i thought is in the Header of table, Keep the First row, and in the Body, keep another table so that all  the dynamic data will be uploads for all employee..and i will be passing all data of each employee in one 1 row of table.And in the footer print final total earnings and deductions using two tables...
    I think my idea i explained is very complex and also not sure. Please suggest me solution in detail regarding this requirement.
    Please give me a response ..
    Thanks in advance..
    Sai Kiran Rao..
    +919781404778

    Hi Daniel,
                      Thanks a lot for your quick response. Sorry as i am providing L3 training to core users,  i was busy with other requirements similar to this. But this is actual requirement...
                                                                         Company name
                                                                        Company Adress
                                                                         Form Title
    empid            |    Calendar Days | Days worked |                  Leaves                                                   | Earnings  | Deductions|  
    empname      |                             | Days Paid      |           EL         CL              SL               CO       LWP|basic        | Tax            |
    doj                 |                           |                         |OB                                                                            |others      |Others         |
    department   |                            |                         |AV                                                                            |               |                    |
    designation   |                           |                         |BAL                                                                           |               |                    |
    emp1             |    31                    |  26                | -
    similar to others----
    value2
    value3
    value4
    value5
    emp2
    similarly for all the existing employees with all the details. And the header details should print in all pages. and finally they want me to display net calculation of all the earnings and deductions components like net of basic etc.
    They need in the exact format of what i have shown above.... I hope you understand the above requirement and please suggest me how to proceed in designing since go live date is near..
    please draw it in your paper with gaps between pipes and each column so that alignment will be done properly which will show you a actual designing.
    Thanks in advance..
    Sai kiran rao.

  • How to call Subroutines,Standard Text  & using Internal Table in SmartForm

    Hi all,
    need help in the following areas.Its very urgent!
    1.How to CAll Subroutines in Smart Forms
    2.How to CAll Standard Text in Smart Forms
    Situation:
    We have an Internal Table T_SALES with all the data which am going to display in the smartform,How to retrive data from an internal table in Smart forms
    Any Help in this direction would be highly appreciated.
    Regards
    Ramu

    Hi,
      When you are using quantity or currency fields, you have to mentiong the reference fileds in a tab called CURRENCY/QUANTITY FILEDS in the GLOBAL DATA node.
    Specifying a Currency or Quantity Reference
    Use
    In the ABAP Dictionary, you can assign a currency or quantity field to a table field. In the output of these fields, the system can then insert the relevant currency or unit:
    ·        If the value field is in the same table as the corresponding currency or quantity field, the system recognizes the reference automatically, and formats the value field according to the currency or unit in the assigned field.
    ·        If the value field is in a different table from the currency or quantity field, the system cannot recognize this reference automatically.
    In the second case, you must indicate this reference to the system in the form, to ensure that the value field is formatted correctly.
    Procedure
    You want to assign a currency or quantity field in one table (for example, CURTAB) to a value field in another table (for example, VALTAB).
           1.      Create the reference to the currency field by entering the following values:
    -         Field Name: VALTAB-VALUE, if this is the value field of VALTAB that you want to display.
    -         Reference Field: CURTAB-CURRENCY, which is the currency field of CURTAB.
           2.      Under Data Type, specify whether the data type is a currency or quantity.
    Result
    In the output of the PDF-based print form, the system formats the value field VALTAB-VALUE according to the assigned value in the currency or quantity field of the global variable CURTAB-CURRENCY.
    Thanks and Regards,
    Bharat Kumar Reddy.V
    Message was Added by: Bharat Reddy V
    Message was Added by: Bharat Reddy V

  • PASSING INTERNAL TABLE IN SMARTFORM

    HI' I M NEW TO SMARTFORMS, MY PROBLEM IS =THAT
    I'VE CREATED A NEW TYPE(SAY TY_BKPF) IN THE DRIVER PROGRAM.
    THEN I'VE DECLARED AN INTERNAL TABLE OF THIS TYPE.
    TO PASS THIS INTERNAL TABLE INTO MY SMARTFORM I'VE PASSED THE INTERNAL TABLE'S NAME INTO THE FUNCTION MODULE UNDER THE TABLES PARAMETER.
    BUT I'M NOT ABLE TO UNDERSTAND AS TO WHAT TYPE SHOULD I GIVE IT IN THE FORM INTERFACE IN THE TABLES TAB.
    PLZ HELP.

    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
    Also have a look at below sample code. It will give you idea abt the same.
    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
    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.
    Have a look at below link for more help on smart forms.
    http://sap.ionelburlacu.ro/sap0/sapsf001.htm
    http://help.sap.com/saphelp_erp2004/helpdata/en/a9/de6838abce021ae10000009b38f842/frameset.htm
    I hope it helps.
    Best Regards,
    Vibha
    *Please mark all the helpful answers

  • How to Define Internal Table in Smartform

    Hello,
    I have some problem on define Internal Table in Smartform
    I define a Temp_IT_Gen Type LBBIL_IT_GEN in Global Definiations
    but i find that it is not available for me to append data into it,
    the error message is Temp_IT_Gen is not a Internal Table - the Occurs n Specification is missing
    so how can i solve it?
    i want to use the internal table in the hold program.
    Thanks a lot in advance.

    Hi,
    First U define the Table type in 'TYPES' tab of Global Definitions and then assing that table type to Internal table in 'Global Data' tab.
    Eg:
    define the Table Type like below in TYPES tab.
    TYPES:BEGIN OF ty_TEMP.
            INCLUDE STRUCTURE XXXXXXX.
    TYPES:END OF ty_TEMP.
    TYPES: g_t_temp TYPE STANDARD TABLE OF ty_TEMP .
    Now, define the Internal table in Global Data tab like below:
    Variable Name    Type assignment    Associated Type
    G_T_ITEM_1       TYPE                    G_T_TEMP
    NOTE: whatever U define in Global Definitions can be used only in SMARTFORM, if u want to use it in Program U must define in Form Interface.
    Hope it helps!!
    Rgds,
    Pavan

  • Internal Table in smartforms

    how can we declare an internal table for a standard sap table in smartforms in the 'Global Setting' part of smartforms?

    Hai,
    You can define the standard table in smartforms like this.
    In Global settings:
    variable name     type assignment      reference type
    it_ekpo                 type                        table structure
    In Global definitions:
    variable name     type assignment      reference type
    it_ekpo                 type                        table structure
    regards,
    kamala.

  • How to Create a Table in SmartForms...?

    Hi,
      I want to create a table in smartforms. can u tell me the procedure....?

    You can create a table type in the abap dictionary and then use it as type for the table in the global interface of the smartform.

  • How to restrict height of table  in smartform without using template

    Hi Gurus,
    I am facing a problem with table in smartform.I have 5 records in my table.If i print all 5 then table is fine.But if i get only one record in table then size of the table reduces to one row.Is there any way that i can keep my table height same as for 5 records,though i pass 1 record.I cannot use template here,because  page-breaks are used in the form .
    Your solutions are highly appreciated.
    Thanks and regards,
    Meenakshi

    Hi,
    As far my knowledge goes, If there is one record then table lines will take the height of only one row. You cannot Restrict it to take height of 5 rows.
    A temporary solution could be to add empty records in your internal table so that the table uses all the 5 rows in the table while printing in the smartform. Since they are empty records your smartform will not display any data but will only use the height.
    If you have 1 record add 4 empty records, Similarly if you have 2 records add 3 empty records...
    This way all time the table will take the height of 5 rows.
    As i said earlier this could be a temporary solution.
    Thanks,
    Hari Prasad.

  • Problem with printing footer of table in Smartforms

    Hi Gurus!
    I have created a table in a window in Smartforms. I need to put in the totals at the footer of the table, displaying these values only at the end of the page. The problem I have encountered is that the footer prints immediately after the line of the main area. The form i'm printing right now is pre-printed, so I need to write the footer at a specified area.
    Let's say my table accommodates 20 lines. The footer must be written immediately after the 20th line. If, on the last page, there are only 10 lines, the footer must still print on the area after the 20th line.
    Really need your help guys, i'm hoping for a quick response. Thanks!

    I need to put both the main area and the footer in the same loop because there is a field where, when changed, it must page-break. The fields/values in the main area and the footer are all part of a sub-table that depends on a field of a bigger table.
    my smartform looks like this:
    Loop at header table.
       if order number changes, start new page.
       loop at table x.
           main area - print items of the table where order_number = header_table-order_number.
           footer - print totals of the table where order_number = header_table-order_number.
    Endloop
    So you see, i need to place the footer inside the loop also. It's the only way I know to work around this.
    Thanks.

  • Control Line Items of table in Smartforms

    Hi,
    Please help me out for following problem which  I am facing in smartforms.
    Scenario u2013 I am trying to print Bank Payment voucher, In this I am passing two internal  tables from my driver program, One internal table is for header details and other internal table for Line item details.
    I am Looping for header details and under the templates, I am populating header data into itu2019s appropriate places, for line item details, I am using Table and able to populate line item details, Now say my line item should print only 5 line items in one  page and if there are more than 5 line items , it should print next line items on next page.   when new page will start it should print header details  and footer details also,
    In last last row, I have put the program code where I am counting the number of line items, and below that i have put 'Command' and in command condition, I have stated that if linecnt > 5 , go to next page%2 and in page 2, I have again copied the header details but , it is not working,
    In short the Flow of Smartforms is given below.
    Loop    (For Header details)
    Template
    Template
    Template
    Table   (For Printing Line Item Details)
      (row 1
       row 2
      program line (Whre I am counting Number of Line items
      Command (Go to next page is activated )
    Template ( For Printing the footer details
    Page%2
    Template
    Template
    Template
    Looking out for your valuable help .
    Thanks and Regards
    Rani

    And one thing more that line count may not be increasing. ..... so try to send the flag of page triggring from ur driver program.
    as i have done here.
    *  Page Break after 21 Records means
      count_rec = 1.
      loop at it2_all_outlet_sale into wa_it2_all_outlet_sale.
        count_loop = sy-tabix.
        if count_rec = 21.
          wa_it2_all_outlet_sale-zyear = '9998'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index count_loop.
          clear: count_rec.
        endif.
        add: 1 to count_rec.
      endloop.
      describe table it2_all_outlet_sale lines count_rec.
    " This part of code for not page triggering after last 21 records
      read table it2_all_outlet_sale into wa_it2_all_outlet_sale index count_rec.
      if sy-subrc = 0.
        count_loop = sy-tabix.
        if wa_it2_all_outlet_sale-zyear = '9998'.
          wa_it2_all_outlet_sale-zyear = '9999'.
          modify it2_all_outlet_sale from wa_it2_all_outlet_sale index sy-tabix.
        endif.
      endif.

  • New-page for smartform

    Hello all,
    I am facing a problem using smartforms. I am printing a report where there is a loop running for a list of plants. For printing the information of each plant, I need to use a new page. Information of one plant may take several pages but for every new plant, I need to insert a page break.
    I am using a COMMAND with a checked next page option in my EVENT ON SORT BEGIN for the plant code.
    This does the trick, but if I use the command at the bottom, it inserts a blank page at the end of the report. If I use the command at the top of the event, it first shows a blank page and then the data from the 2nd page.
    Please sugest how can I fix this.
    Anmol

    Hi Friend,
            You can use following tips for generating smartforms for every new plant.I have generated sales order report using this steps.You can refer it.Tips are given below:
    1.Define the structure,workarea and internal table for sales order header and details and also define
    select-options for sales order.
    2.Also define the one STRUCTURE which has type as ssfctrlop.
    e.g. control type ssfctrlop.
         This variable we have to define because we are going to use this in
    SSF_OPEN function.This is used to avoid print preview while openning smartform
    for every sales order.
    3. Select data from vbak for sales header.
    4. Call function SSF_FUNCTION_MODULE_NAME.
    e.g.*CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
      CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = w_formname
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       IMPORTING
         fm_name                  =  w_functionname
       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.
    5.Now here define the various features or field in control structure.
    This is controls for smartform.
    e.g.  control-no_dialog = 'X'.
         control-preview   = 'X'.
         control-no_open   = 'X'.
         control-no_close  = 'X'.
    6. Call function SSF_OPEN.
         Here you have to pass the control structure which you have define in declaration.
    e.g.
    CALL FUNCTION 'SSF_OPEN'
        EXPORTING
      ARCHIVE_PARAMETERS       =
      USER_SETTINGS            = 'X'
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
      OUTPUT_OPTIONS           =
          control_parameters       = control
    IMPORTING
      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.
    7. Take loop at header internal table .
    8. Select data from vbak for sales details. Also select data from respective tables
    like makt,kna1 here.
    9.Then call function module which generated after executing smartform. And also pass the control structure
    in import parameter in this function module.
    e.g.  CALL FUNCTION '/1BCDWB/SF00000397'
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
        control_parameters         = control
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
      OUTPUT_OPTIONS             =
      USER_SETTINGS              = 'X'
          wa_vbak                    = wa_vbak
    IMPORTING
      DOCUMENT_OUTPUT_INFO       =
      JOB_OUTPUT_INFO            =
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_vbak                    = it_vbak
          it_vbap                    = it_vbap
    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.
    10.After endloop call function SSF_CLOSE.
         If it will help you reward me points.
    Regards,
    Santosh.

  • How can I take check box in particular cell of the table in smartforms??

    Hi experts,
       pls tell me how can I take check box in particular cell of the table in smartforms??
    It is not interactive form.
    I hv taken small windows as check boxes.but i think it is not a proper solution....give me another solution...

    Hi,
    first create text for a particular cell.
    In that we have a  text editor  in that text editor we have symbols in include menu.
    whatever the symboll u want to put to ur cell . just assign it.
    please check it. if it helpful reward points.
    regards,
    satish.

Maybe you are looking for

  • So what's the deal with AIM and Push notifications?

    So we all get 3.0. AIM is supposed to get push. So going into the AIM prefs, "push" is the same old send an SMS to the iPhone number. The SMS comes in, you hit reply and the iPhone opens SMS app!!! It doesn't open AIM. This is nuts. Talk about things

  • How do I do a clean install, and keep mail accounts?

    A little background: We have several Macs, and several email accounts. We're buying new machines and on some would like to mostly start over, using the App Store to install programs as each machine requires, cutting out a lot of the disk loading. The

  • Unable to find the universes in the Query Browser Panel of Dashboard Design

    Hi Experts, Can any one please help me out, as I am Unable to find the universes in the Query Browser Panel of Dashboard Design Tool. Thanks & Regards, Shivani Edited by: Shivani Yemula on Jul 19, 2011 4:40 PM

  • IMac shutting down spontaneously!

    Like the title says, my iMac will shut down all by itself, I think it is associated with getting really hot as it only happens when the computer has been running for a long time, like say 10 hours or more. Details- after this happens, the computer wo

  • Premier Pro CS4 having trouble with HDV video

    Recently I had a video shot with an HD camera and use the HDV codec. I couldnt even open these files in Adobe Premier - until someone was able to install Final Cut Pro on the computer (assumin FCP came with some sort of codec). I just dont know how t