Skip to Content
avatar image
Former Member

New page for Material characteristics of each Item in Smartform

Hello Experts,

I have a task where I need to display data using the following conditions in a smartform:

1. Print Item data [one line] as a header on each page.

2. Print all material characteristic of that specific item on the page and if exceeds then go to the next page beginning item data as a header.

3. For each new item, begin with a new page.

I have two internal tables.  i. For Item data with item number and other data and such as material and ii. For Material Characteristics with item number.

I tried to use Table node before main window for Item data to display as header.  And Loop & Template for Material Characteristics inside main window.  But I am not able to display as required in 1. 2. & 3.

I am looking for expert's advise to resolve this issue.  I need a fresh solution.  Probably I am missing certain conditions.  Please help for solution.  I will award points for a correct solution that work for me.

I have search forum but could not find a solution.

Thanks in advance.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Jan 05, 2015 at 02:31 AM

    You would have to display your item/ material information in the main window as well (Also extend the main window so it covers the header area).

    You will have to use table/ loop inside the main window to display item data and then use another table/ loop within this (a nested one) to display characteristic details.

    After the end of loop/ table for characteristics detail you will have to insert a command node to trigger a page break

    Page 1

         Main window

              Table/ Loop 1 - For item details

                   Table/ Loop 2 - For material characteristics

                   Command node for page break

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Stacy,

      A bit tricky to achieve what you are trying. But give this a try

      Page 1

           Main window

                Loop 1 - For item details

                     Table - For material characteristics



                          Folder 1*

                              Line Type - for Item Header & Data

                              Line Type - for Material Characteristic Header

                              Line Type - for Material Characteristic Data 

                     Command node for page break

      * - Checkbox related to pagebreak settings checked only at folder and not at other rows/ line type



  • Feb 19, 2015 at 05:47 PM


    Please have a look at program SF_EXAMPLE_03 .

    All the loops are done in the program .

    This way you reduce the complexity of the smart form.

    Note the use of:

    call function 'SSF_OPEN'

    call function 'SSF_CLOSE'


    Add comment
    10|10000 characters needed characters exceeded

  • Feb 21, 2015 at 06:17 AM


    Hope you are linking  item data internal table and material characteristics internal table with common field ?.


    eg: table entries.

    itab 1.


    item material code.

    10   p4101 

    itab 2.

    material code   type

    p4101           zbou

    p4101           fert

    final_itab 3.

    item   material code     type

    10     p4101             zbou   

    10     p4101             fert.

    sort final_itab 3  by  item.

    " create programming lines.

    loop at final_itab3 into wa_final.

    CHECK sy-tabix NE 1. 

    AT new of item.

    lv_new_page  = 'X'.



    Create command.

    In condition tab.

    lv_new_page  = 'X'.

    Goto to new page.

    Hope it helpful,



    Add comment
    10|10000 characters needed characters exceeded