Why we need of tables in smartforms

very very urgent

Follow these steps to create a table
In the window, right click, say create table,
In the table tab, click details,
Specify a Line type say L1, define how many columns you want and their width, you can also do this on the table painter by drag-drop.
Now in the Header,Main Area,Footer wherever you want as per your requirements, Right Click, say create table line, specify the line type you defined in the table painter.
In the Data section, click Loop at INTERNAL TABLE into WORK AREA
In the cells of the rows, print the work areas
EXAMPLE:
If you want 5 columns, you need to declare 5 cells in one line type of the table
Click on Table -> Details, then do the following
Line Type 1 2 3 4 5
L1 2mm 3mm etc
Here specify the width of the columns as many as you want..
then in the header/main area of the table, click create Table Line, Rowtype is L1, automatically 5 cells will come,In each cell create a text element, display the variable to be printed there
&wa-1&
&wa-2&
and so on

Similar Messages

  • Why we need internal tables how it has its own significance for its purpose

    we can maintain tables in oracle also and some other features .but how internal tables differ from them in its functioning

    u2022 In ABAP/4, you work mainly with tables. Tables are the essential data structures in the R/3 System. Long-life data is stored in relational database tables.
    u2022 Besides database tables, you can create internal tables which exist only during the runtime of your program. ABAP/4 provides various operations for working with internal tables. You can, for example, search for, append, insert, or delete lines.
    u2022 The number of lines in an internal table is not fixed. Depending on requirements, the system increases the size of internal tables at runtime.
    u2022 You can use internal tables to perform table calculations on subsets of database tables. For example, you can read a certain part of a database table into an internal table (see Reading Data into an Internal Table).
    From the internal table, you can then calculate totals or generate a ranked list.
    In ABAP/4, you can distinguish between internal table data types, which define the structure of internal tables, and internal table data objects, which are the actual internal tables and can be filled with data. An internal table data type is an abstract definition of a data structure which can be used to declare data objects as internal tables.
    u2022 Another use for internal tables is reorganizing the contents of database tables according to the needs of your program. For example, you can read data relevant for creating a telephone list from one or several large customer tables into an internal table. During the runtime of your program, you can then access this list directly without having to perform a time-consuming database query for each call.
    Table type
    The table type determines how ABAP will access individual table entries. Internal tables can be divided into three types:
    Standard tables have an internal linear index. From a particular size upwards, the indexes of internal tables are administered as trees. In this case, the index administration overhead increases in logarithmic and not linear relation to the number of lines. The system can access records either by using the table index or the key. The response time for key access is proportional to the number of entries in the table. The key of a standard table is always non-unique. You cannot specify a unique key. This means that standard tables can always be filled very quickly, since the system does not have to check whether there are already existing entries.
    Sorted tables are always saved sorted by the key. They also have an internal index. The system can access records either by using the table index or the key. The response time for key access is logarithmically proportional to the number of table entries, since the system uses a binary search. The key of a sorted table can be either unique or non-unique. When you define the table, you must specify whether the key is to be UNIQUE or NON-UNIQUE. Standard tables and sorted tables are known generically as index tables.
    Hashed tables have no linear index. You can only access a hashed table using its key. The response time is independent of the number of table entries, and is constant, since the system access the table entries using a hash algorithm. The key of a hashed table must be unique. When you define the table, you must specify the key as UNIQUE.
    I hope it helps.
    Have a look at below link for details:
    [Internal Tables|http://help.sap.com/saphelp_nw70/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/frameset.htm]
    Best Regards,
    Vibha
    Please mark all the helpful answers

  • Why do we need two tables before OBIEE answer will work ?

    I just imported a physiical table and dragged it to BMM layer and to presentation layer. I am getting these error messages after I save
    " nQsError 15001 could not load navigation space for subject area xxxx '
    15013 Logical table xxxx does not join to any other logical table
    Wondering why we need a join if there are no other tables
    thanks

    It's a conception of BI Tool. It will be at least one dimension and one fact with link between.

  • Why do we need Work Table in ODI???

    Hello All,
    Please help me on this..
    Why do we need Work table in ODI???
    Why ODI is creating c$_0table_name (work table)?
    Thanks
    Ravikiran

    Hi,
    this is the standard "Load Data" from LKM SQL to SQL
    +<%for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){%>+
    +<%=odiRef.getDataSet(i, "Operator")%>+
    select     <%=odiRef.getPop("DISTINCT_ROWS")%>
    +     <%=odiRef.getColList(i, "", "[EXPRESSION]\t[ALIAS_SEP] [CX_COL_NAME]", ",\n\t", "", "")%>+
    from     <%=odiRef.getFrom(i)%>
    where     (1=1)
    +*<%=odiRef.getFilter(i)%>*+
    +*<%=odiRef.getJrnFilter(i)%>*+
    +<%=odiRef.getJoin(i)%>+
    +<%=odiRef.getGrpBy(i)%>+
    +<%=odiRef.getHaving(i)%>+
    +<%}%>+
    as you can see in C$_ you could have some filtered data. If you have got a source table containing invoicing (10kk rows) you could filter last_update column and obtain 1k rows for example and copy only this tiny subset.

  • Header pinting without data in table in smartform, why?

    Header pinting without data in table in smartform, why?

    Can u please tell how did you solve the problem?
    Thanks.
    Daz.

  • Why do v need 2 generate new smartform from scratch when v have a standard

    hi experts
    why do v need 2 generate new smartform from scratch when v have so many standard smartforms can any one explain in detail the scenario where v have 2 do that
    thanks
    bhanu

    Hello Bhanu,
    Standard smartforms are for standard SAP applications.
    Every client will customise standard SAP to suit their own requirements. So if there is a requirement specific to the cleint, they can ask us to develop a custom Smartform.
    Award points if found useful.
    Regards
    Indrajit.

  • Need help in downloading SMARTFORM

    I need to download my smartform @ presetation server as a PDF format,
    I have written following code for that:
    DATA: lv_filename   TYPE string,
          lv_binfile    TYPE i,
          lv_datab      TYPE STANDARD TABLE OF itcoo,
          lv_pdftab     TYPE STANDARD TABLE OF tline.
    CALL FUNCTION 'CONVERT_OTF'
        EXPORTING
          format                = 'PDF'
          max_linewidth         = 132
        IMPORTING
          bin_filesize          = lv_binfile
        TABLES
          otf                     = lv_datab
          lines                 = lv_pdftab
        EXCEPTIONS
          err_max_linewidth     = 1
          err_format            = 2
          err_conv_not_possible = 3
          err_bad_otf           = 4
          OTHERS                = 5.
      IF sy-subrc <> 0.
          ENDIF.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = lv_filename
          filetype                = 'BIN'
    *      write_field_separator   = 'X'
    *      confirm_overwrite       = 'X'
        TABLES
          data_tab                = lv_pdftab  .
    With this I am able to download a PDF file with no data and error "OTF end command // missing in OTF data" .
    >>Please let me know why this is not working
    Please debug & you will find it yourself. Don't expect others to do your Job
    Edited by: Suresh Datti on Aug 31, 2009 12:28 PM

    Hi,
    Try this code,
    {'code'}tables : kna1,VBAK.
    data : t_kna1 type kna1 occurs 1,
           t_itab type kna1 occurs 1,
           t_vbak type vbak occurs 1,
           t_vbap type vbap occurs 1,
           w_kna1 type kna1,
           w_itab type kna1,
           w_vbak type vbak,
           w_vbap type vbap.
    select-options : s_custno for kna1-kunnr.
    data :cs type ssfctrlop.
    cs-no_open = 'x'.
    cs-no_close = 'x'.
    select * from vbak into table t_vbak
              where kunnr in s_custno.
    if sy-subrc = 0.
      message s001(ztest_msg).
    endif.
    sort t_vbak by kunnr vbeln.
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
      ARCHIVE_PARAMETERS       =
      USER_SETTINGS            = 'X'
      MAIL_SENDER              =
      MAIL_RECIPIENT           =
      MAIL_APPL_OBJ            =
      OUTPUT_OPTIONS           =
      CONTROL_PARAMETERS       =
    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.
    loop at t_vbak into w_vbak.
      select * from kna1 into table t_kna1
                where kunnr = w_vbak-kunnr.
      sort t_kna1 by kunnr.
      select * from vbap into table t_vbap
                 where vbeln = w_vbak-vbeln.
      sort t_vbap by vbeln posnr.
      loop at t_kna1 into w_kna1.
        w_itab-kunnr = w_kna1-kunnr.
        w_itab-name1 = w_kna1-name1.
      endloop.
      CALL FUNCTION '/1BCDWB/SF00000215'     " this is the FM from smartform
        EXPORTING
       ARCHIVE_INDEX              =
       ARCHIVE_INDEX_TAB          =
       ARCHIVE_PARAMETERS         =
         CONTROL_PARAMETERS         = cs
       MAIL_APPL_OBJ              =
       MAIL_RECIPIENT             =
       MAIL_SENDER                =
       OUTPUT_OPTIONS             =
       USER_SETTINGS              = 'X'
          W_KNA1                     = w_itab
          W_VBAK                     = w_vbak
    IMPORTING
       DOCUMENT_OUTPUT_INFO       =
       JOB_OUTPUT_INFO            = JOI
       JOB_OUTPUT_OPTIONS         =
        TABLES
          T_VBAP                     = t_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.
    endloop.
    CALL FUNCTION 'SSF_CLOSE'
    IMPORTING
      JOB_OUTPUT_INFO        =
    EXCEPTIONS
      FORMATTING_ERROR       = 1
      INTERNAL_ERROR         = 2
      SEND_ERROR             = 3
      OTHERS                 = 4
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.{'code'}
    Regards,
    Vijay
    Edited by: vijay kumar pamulapati on Aug 31, 2009 12:21 PM
    Edited by: vijay kumar pamulapati on Aug 31, 2009 12:24 PM

  • Urgent:Why Script is cliend dependant and smartform is not client dependant

    Hi all,
    Can any one pls tell me why script is client dependent and smartform is not client dependant.
    <b>Please give some real time examples in brief</b>
    regards
    tapu

    Hi
    DIFFERENCE BETWEEN SMARTFORMS AND SAPSCRIPTS ARE:
    1. script is client dependent one while smartform is client independent.
    2. In scripts we have to write print program while in smart forms it is not necessary.
    3. In scripts we can print background logo while in smartforms we cant print background logo
    4. In scripts we have 99 main windows while in smartforms we have only 1 main window.
    5. In scripts we should write paragraph format otherwise we cant execute program while in smartforms no need to create paragraph formats .
    6. In scripts we can print the text in only two character formats.
    while in smartforms we can do with more.
    7. In scripts we dont have line types while in smartforms we have linetypes.
    8.Multiple page formats are possible in smartforms which is not the case in SAPScripts
    9.It is possible to have a smartform without a main window .
    10.Labels cannot be created in smartforms.
    11.Routines can be written in smartforms tool.
    12.Smartforms generates a function module when activated.
    SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. Client dependence is a fundamental one. Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively ...
    also refer
    difference between smartforms and scripts
    Diff betwen Scripts & smartforms
    advantages of smartforms over scripts
    Whenever a smartform is created, a funciton module gets generated. So, we can access the smartform in different clients. But in case of scripts, it is not so.. So, scripts are client dependent.
    Smart Forms are implemented using the Function Module SSF*, and all the logic lies in the FM. Function Modules are client independent objects, so Smart forms are also client independent
    SAP Scripts are the Layout Forms that you design and there are aviable in the client in which you have created them, for making them available you have to copy across the clients.
    Because, Sapscripts are saved in ITF format as text in client dependant tables STXH and STXL. smartforms are not saved in client dependant tables and visible across clients.
    SAPscript technology is based on a mainframe product from the 1980s, while Smart Forms have only been around since (roughly) 2001. With that sort of time gap, there are bound to be significant differences between the two tools. As you have noted correctly, client dependence is a fundamental one.
    Although SAPscript has had some incremental improvements over time, its forms have always been -- under the hood -- relatively passive objects, with minimal embedded logic. These forms were designed to be driven and controlled by ABAP programs, much in the way ABAP programs read in database tables to produce reports; if you ever download a SAPscript form (e.g., via utility program RSTXSCRP), and look at the portable text file it produces you'll see what I mean. Many text objects (e.g., invoice header texts) are bound directly to documents which are client-dependent, so it makes sense for these text objects to also be client-dependent. From a complexity standpoint, SAPscript forms are close enough to these text objects where I can see how it made sense at the time to make them client-dependent too.
    Conversely, a Smart Form is significantly more robust and complex. For instance, it can contain program nodes and nested tables with patterns. When a Smart Form is compiled, it generates an ABAP function module – and these are always client-independent. This is appropriate, given that this form has more in common with an ABAP program than its predecessor. For instance, when a print program calls a Smart Form, the form itself takes over to produce output, without any further direction from the print program. In fact, the join is so seamless that I often find myself using a Smart Form's Initialization section for logic to handle any data gathering not handled by the print program. I would never even think to attempt this with SAPscript.
    I suspect several factors figured into SAP's decision to make Smart Forms client-independent, including customer feedback. There are significant advantages to client-independence. For instance, a change made in one development client happens immediately across all development clients. Among other things, this means we don't have to waste time figuring which client contains the most recent version -- they all do! In addition, transporting Smart Forms is easier, since we can safely bundle them together in the same transport as their client-independent print programs (no worry about mixing client-dependent and independent objects).
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • Unable to see data in Table in smartform

    Hi all,
    I need to create a smartform where I have to print the header details at the start and then below that details for all line items for a particular document.
    so i have data ;ike :
    Header data :
    field 1 : field 2:
    Field3 : field4:
    field5: field6:
    Item data :
    field1 field2 field3 field4 --> Item 1
    field1 field2 field3 field4 -->Item 2
    field 1 field2 field3 field4 -->Item3
    For the Header data,Im planning to use a template in a secondary window.
    However for the item data,i need to use a table (As i know the no of records only at runtime).Also another reason for usng table would be that I dont need the header on each flloowing page but only the Line item details on the following pages.
    Now my ques is :
    1.I hav ecreated the form and put some constant /texts to just test the form.I am able to see the texts/data in the header data.However  Im unable to see the data for the Item i.e. in the TABLE.
    I have used template for Header details which I can see.
    I dont know what Im doing wrong.Is it because in the DATA tab under TABLES,I have given an interna table but there is no data in the table?
    I have defined only 1 line type in  my table an dthat has 4 cells (as I need to print 4 item fields under the Item data)
    PLease let me know what I am doig wrong because of which Im unable to see the item data in table form.
    Thanks!

    Hi,
    Have you used any exists?
    in exists is there any system date kind?
    Can you try to run your report thru RSRT and use debug option there.
    before reporting please check your all connected targets have data for reporting.
    mean at targets-->request tab, reporting symbol was there or not.
    Any master data objects included in multi provider?
    if yes then please check those, if any ACR was running then it may cause you.
    if possible try to develop simple query with as per needs(mean to see 2015 data only).
    As my guess selections/filters migth be hidden, please check those.
    Thanks

  • Issue in display format of a internal table in SMARTFORM

    I m printing an internal table in smartform.when a particular field exceeds the coloumn's length.the rest of the texts come down to the next line.It can be shown in the below example.i m printing "+ text to be printed" in that particular coloumn.
    Because of the size of the coloumn in table ,"ed." comes down as shown.
    +  text to be print
    ed.
    I dont want ed to come directly down '+'.I want it to start from where 't' of 'text'
    starts in the above line.
    Notice that the requirement is to print "ed"  after '4' spaces.
    Please suggest what i need to do to get the desired result...
    Regards
    Rudra

    Unfortunately there is no such way.

  • Issue in display format of internal table in smartform

    I m printing an internal table in smartform.when a particular field exceeds the coloumn's length.the rest of the texts come down to the next line.It can be shown in the below example.i m printing "+ text to be printed" in that particular coloumn.
    Because of the size of the coloumn in table ,"ed." comes down as shown.
    <b>+ text to be print
    ed. </b>
    its coming by default.
    I want it like  <b>+ text to be print
    ed</b>
    I dont want ed to come directly down '+'.I want it to start from where 't' of 'text'
    starts in the above line.
    Notice that the requirement is to print "ed" after '2' spaces.And we can not use the string length concept bcoz not of characters after which the line comes down is not fixed.May be some change of setting in smartform will do the trick.
    Please suggest what i need to do to get the desired result...
    Regards
    Rudra

    Unfortunately there is no such way.

  • Internal table in smartforms without use predifined structure

    Hi !!!
      I have a doubt is possible to use an internal table that was defined in a program but not in a structure in the data dictionary ??
      How i need define this in smartform ??
      I'm doing  the following:
       In the global definitions in the tab types i define a type.
       types: begin of ty_tab,
                  data1  like ....
                  data2  like ...
                end of ty_tab.
       types: ti_itab type standard table of ty_tab.
      In the form interface in the tab import
      I define the internal table  ti_namex:
       parameter name:  ti_namex type ti_itab.
    When i try to activate the system send a message: Form interface,  type ti_itab is unknown
       Somebody have any suggestions ??
      Thanks for your support
            Noemí H.
    Edited by: Noemi Reyna Huerta Araujo on Jun 28, 2011 8:25 PM

    Hi Noemi,
    As per Srilathau2019s answer, it cannot recognize the parameter, it showu2019s error.
    But it is possible to pass the values from your driver program to the smart form through the internal tables defined in the driver program to the smart forms, without needing to create structure to the internal table in the data dictionary.
    Follow the procedure given below.
    In smart form to get the required data from driver program you need to declare the variable / field in form interface menu as import parameters with their associated types.
    Run the smart form take functional module generated by smart form, then in driver program call function by using function module.
    In that called function you get field which we declared in smart form.
    Then pass final internal table field to fieldu2019s in exporting section of call function
    Hope this will help you.
    Regards,
    Pravinkumar

  • IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan

    Hi Experts,
    IF Auto Update Statistics ENABLED in Database Design, Why we need to Update Statistics as a maintenance plan for Daily/weekly??
    Vinai Kumar Gandla

    Hi Vikki,
    Many systems rely solely on SQL Server to update statistics automatically(AUTO UPDATE STATISTICS enabled), however, based on my research, large tables, tables with uneven data distributions, tables with ever-increasing keys and tables that have significant
    changes in distribution often require manual statistics updates as the following explanation.
    1.If a table is very big, then waiting for 20% of rows to change before SQL Server automatically updates the statistics could mean that millions of rows are modified, added or removed before it happens. Depending on the workload patterns and the data,
    this could mean the optimizer is choosing a substandard execution plans long before SQL Server reaches the threshold where it invalidates statistics for a table and starts to update them automatically. In such cases, you might consider updating statistics
    manually for those tables on a defined schedule (while leaving AUTO UPDATE STATISTICS enabled so that SQL Server continues to maintain statistics for other tables).
    2.In cases where you know data distribution in a column is "skewed", it may be necessary to update statistics manually with a full sample, or create a set of filtered statistics in order to generate query plans of good quality. Remember,
    however, that sampling with FULLSCAN can be costly for larger tables, and must be done so as not to affect production performance.
    3.It is quite common to see an ascending key, such as an IDENTITY or date/time data types, used as the leading column in an index. In such cases, the statistic for the key rarely matches the actual data, unless we update the Statistic manually after
    every insert.
    So in the case above, we could perform manual statistics updates by
    creating a maintenance plan that will run the UPDATE STATISTICS command, and update statistics on a regular schedule. For more information about the process, please refer to the article:
    https://www.simple-talk.com/sql/performance/managing-sql-server-statistics/
    Regards,
    Michelle Li

  • Why we need ABAP if we can connect With Crystal Reports to SAP R/3

    Hi,
        I am new to Crystal reports.I came to know that we can connect SAP R/3 by using SAP InfoSet,SAP Table Cluster and Function connectivity in Crystal Reports.So we can generate reports for SAP R/3 database with out need of ABAP.So why we need to go ABAP module.Is there any disadvantages if we dont use ABAP to generate reports or we can use always Crystal Reports to generate Reports for R/3 database?

    Hi,
    it is correct that you can built a Crystal Report without the need to use ABAP, but we have lots of customers that have invested over the years into ABAP Routines and Crystal REports is able to leverage those as well. So with Crystal Reports you have the choice to leverage existing ABAP Functions as a source for reporting - which might help to leverage complex processing on the backend - or to use InfoSets and tables.
    regards
    Ingo

  • 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.

Maybe you are looking for

  • I am receiving nearly hourly kernel panics on 2014 retina mbp

    Starting last night, seemingly out of the blue, I have been receiving nearly hourly kernel panics / crashes on my 3 week old Retina MBP.  At first I thought my USB mouse was causing it, but it has since happened again after I stopped using it.  I hav

  • Hyper links work in i-web but when site is published it does not....HELP!!

    Hi group. I am fairly new to I-web and I mus tsay I love the program. It cam with my new I-mac and this is my first mac as I am a "swticher" from the PC days!! I was surprised that the mac came with such a good program as -i-web. Anyway.... Ok, I del

  • Error in RFC destination SWU3

    Hi Team, Recently we have performed System Copy from Production to QAS system. After system copy we checked that workflow is not working properly in system and RFC destination WORKFLOW_LOCAL_xxx does not exist in system So we went to SWU3 and tried t

  • Entire Photostream not loading onto iPhoto '11?

    I just bought a new MacBook Pro, and after activating Photostream on iPhoto, not all photos are being displayed on it (iPhone says 770 photos are on the stream, but iPhoto only shows 183). Is there a way to get all of them onto my Mac? It isn't a pro

  • Is there a way to set up preferences;

    So that music is transferred to the iTunes library but books and movies stay in my own hierarchical folders without having to change preferences each time I want to add something to the library?