New page in smart form when displaying internal table data in table

Hi ,
My requirement in smartform is like
I'm using the tables to display the internal table data in main window .
based on SORTF field in the internal table ,when SORTF field value changes all the related to that SORTF value should be displayind in the new page.
Please anybody tell me that , how to do this?
Thanks
Naveen

Hi Navi,
    Try this Logic.
1) Go to Smartform,
2) Declare a flag variable w_flag type c
3)Go to Main Window
   a) Go to table
   b) Create one more Table Line
   c) Create a CODE Line in that.
       write inside CODE  as Below:-
             CLEAR: w_flag.
             ON CHANGE OF w_final-sortf.
               w_flag  = 'X'.
              ENDON.
   d) Create one COMMAND Under CODE line created above.
       click on check Box "Go to New Page"  ( Page1 or Page2 or give as reqd ).
       click on conditions tabe of COMMAND
       write: w_flag = 'X'.
Hope this will work
Reward Points if Useful
regards
Avi.............

Similar Messages

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • How do u get New page in Smart form dynamically

    How do u get New page in Smart form dynamically

    page break in smart form
    Re: New Page in Smart Forms
    Page break inside a loop  in smart form

  • **To branch to a new page in Smart forms after main window**

    I have three pages where on second pages main window so my data many be carry on next 3, 4, pages and my requirement is to display  data(like notes ) on last page after all contain of main window .that last  third page is different formatting on basis of company code lets 10 different pages. On second page in main window I write u2018commandu2019 and General Attributes, Tick Go to new page in. On the Determine the new page using the list box next to the checkbox. The output of the main window will continues on the new page of third pages. I did this for my all company like (command for 10 , command for 11u2026.).BUT also on second page option of next page in General Attributes. Where in can maintain next pages entry is single...if I put blank the error comesu2026thingu2019s 1) what should I have to maintain in second page for next page.
    2) how I get data from multiple page design (I design 10 pages from that I want one should display):- I used condition option in command for company still getting error .
    So kindly help me  for such scenario.
    Edited by: nshahare on Aug 5, 2011 4:07 PM

    Hi nshahare ,
    Format the way you have asked the question, It is highly unclear what issue you are facing.
    Be clear, be cool and then post(edit) the question again. we are here to help you.
    BR
    Dep

  • New page in smart forms

    Hi,
           I have requirement of displaying each record of an internal table on individual pages.When iam trying to include command line inside the main of table its giving error saying explicit page breaks not allowed.Any pointers regarding this plzzz.
    Thanks and Regards,
    Rajashree

    Hi Rajashree,
    I have just tried the same on our system without any problem. How did you exactly define your page break?
    Regards,
    John.

  • Repeat Line item prints on every new page of smart form of Service PO

    Dear Sir,
    I am  facing following Problem & need abaper help.
    example:-
    PO type is Service
    Line item 10.  Transportation  1  AU
      under this activities
              01.  Transportaion by Tree wheeler 3 Rs/ KM
              02.  Transportaion by Four wheeler 8 Rs/ KM
              03.  Transportaion by Heavy vehical 10 Rs/ KM
    Line item 20      Errection     1 AU
    Sub services are,
            01. Errection of Boiler   200 RS/Hr
    Like this way
    Now I am seeing Print Preeview
    Suppose line item 20 come in second page , in this case system copies sub services of firs line item
    example : - system shows line item 20 in second page as shown below which is wrong.
    Line item 20      Errection     1 AU
               01.  Transportaion by Tree wheeler 3 Rs/ KM
              02.  Transportaion by Four wheeler 8 Rs/ KM
              03.  Transportaion by Heavy vehical 10 Rs/ KM
    Pls, suggest where I need to change.
    Regards,
    Ravi

    hi ,
    i think you are not clearing the Barcode variable once it has printed.
    try declaring the variable like this in smartform,
    BARCODE     TYPE     CHAR24
    when one loop excecutes .and end of loop  in command line clear this variable.
    thanks & regards,
    kat.

  • How to know no of pages in smart forms to be printed ?

    Hi,
         How to know no of pages in smart forms to be printed ?
    though i got SFSY structure during run time of smartform , even that was not useful.
    &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.
    for that Page &SFSY-PAGE& of &SFSY-FORMPAGES&
    during debug of smart form i don't  understand how it is calculating no of pages  ,as i kept break point before printing page no in smart form.
    please check my  two screen shots, sfsy-formpage still contains current page no only but not total no of pages.
    Help Required.
    Thanks In advance.

    Hi Prakash,
    You will not get these values during debugging.. Let the program execute completely, you will get the right values.
    As Manish said, the value for &SFSY-FORMPAGES& will be known only after all the pages are processed, though it is not necessary that you use them in the final window only. It can be a text node in a window of any type.
    You will get the desired output, just cant see them during debugging within the program. At the time of printing or in the print review, output would be as expected.
    Also, FYI, it would be better to give total pages as &SFSY-FORMPAGES(3ZC)&  as there can be error if the total number of pages exceeds 9, due to lack of sufficient space to print more digits

  • How to create new page in adobe form.

    how to create new page in adobe form.

    Hi
    First Go To Layout.
    On Hicherchy Platte , rightclick on Subform and select option new body page.
    This way you can create body page for the particular subform.
    if you want to create master page , right click on page 1 and select New master page.
    Hope this will helpful to you.
    Rewards if useful.
    With Regards
    Nikunj Shah

  • How to Populate Internal table data to Table Control in a Report Program

    Dear All,
           How to Populate Internal table data to Table Control in a Report Program? It is a pure report program with out any Module pool coding involved, which is just used to display data. Till now it is being displayed in a report. Now the user wants the data to be displayed in a table control. Could someone tell me how to go about with this.
    Thanks in Advance,
    Joseph Reddy

    If you want to use a table control, you will need to create a screen.
    In your report....
    start-of-selection.
    perform get_data.  " Get all your data here
    call screen 100. " Now present to the user.
    Double click on the "100" in your call screen statement.  This will forward navigate you to the screen.  If you have not created it yet, it will ask you if you want to create it, say yes.  Go into screen painter or layout of the screen.  Use the table control wizard to help you along the process.  It will write the code for you.  Since it is an output only table control, it will be really easy with not a lot of code. 
    A better way to present the data to the user would be to give it in a ALV grid.  If you want to go that way, it is a lot easier.  Here is a sample of the ALV function module.  You don't even have to create a screen.
    report zrich_0004
           no standard page heading.
    type-pools slis.
    data: fieldcat type slis_t_fieldcat_alv.
    data: begin of imara occurs 0,
          matnr type mara-matnr,
          maktx type makt-maktx,
          end of imara.
    * Selection Screen
    selection-screen begin of block b1 with frame title text-001 .
    select-options: s_matnr for imara-matnr .
    selection-screen end of block b1.
    start-of-selection.
      perform get_data.
      perform write_report.
    *  Get_Data
    form get_data.
      select  mara~matnr makt~maktx
                into corresponding fields of table imara
                  from mara
                   inner join makt
                     on mara~matnr = makt~matnr
                        where mara~matnr in s_matnr
                          and makt~spras = sy-langu.
    endform.
    *  WRITE_REPORT
    form write_report.
      perform build_field_catalog.
    * CALL ABAP LIST VIEWER (ALV)
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                it_fieldcat = fieldcat
           tables
                t_outtab    = imara.
    endform.
    * BUILD_FIELD_CATALOG
    form build_field_catalog.
      data: fc_tmp type slis_t_fieldcat_alv with header line.
      clear: fieldcat. refresh: fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material Number'.
      fc_tmp-fieldname  = 'MATNR'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '18'.
      fc_tmp-col_pos    = 2.
      append fc_tmp to fieldcat.
      clear: fc_tmp.
      fc_tmp-reptext_ddic    = 'Material'.
      fc_tmp-fieldname  = 'MAKTX'.
      fc_tmp-tabname   = 'IMARA'.
      fc_tmp-outputlen  = '40'.
      fc_tmp-col_pos    = 3.
      append fc_tmp to fieldcat.
    endform.
    Regards,
    Rich Heilman

  • Error when reading the DDIC-data for table

    Hi Tobias
    We upgraded from DMIS 2011 SP04 to SP07. We are in development system.
    To test initial load, we stopped replication for an existing table and then started replication for the same table.
    Mass transfer id connects ECC system to BW on HANA system.
    Replication errored with the following message:
    Error when reading the ddic-data for table MARD (RFC destination DWACLNT010).
    Looking for your guidance.
    Kind Regards
    Kamaljit Vilkhoo

    Was able to solve using oss note 1972533.

  • Smart forms- when i print a report it print main window data on same page

    hi,
    when i print a report it print main window data on same page .
    i.e. if data is more then one page then it shows data page wise on computer screen but when i print it print all data on same only one page by over wrriting .
    pl. help why it is happening
    i create page in page i set next page and in second page give first page.
    mukesh

    mukesh,
    what happened to this: smart form
    close that please.
    by the way,did you tried with what i suggested?
    lets say mainwindow in 1st page.
    copy the first page to second page.
    now.
    for 1st page: next page is : page2
    for page2: next page is also : page2

  • Display either ( first and second page ) or only second page on smart form

    Hi All,
    There is a requirement in which we get Program name and smart form name from table TNAPR.Now the smart form contains 2 pages.We have to check condition in the program and based on the condition we have to Display either ( first and second page ) or only second page of the smart form.
    Can any one please tell how to solve this .
    Tahnks in advance.

    SSFCOMPOP-SPONUMIV-->Number range number
    SSFCOMPOP-TDPAGESLCT-->Pages selected for printing
    Data: t_out type ssfcompop.
    If COndition.
    t_out-sponumiv = 'Number Range'.             " 1-2  or 2
    ESLE.
    t_out-sponumiv = 'Number Range'.
    ENDIF.
    OR:
    If COndition.
    t_out-TDPAGESLCT = '2'.        " Else Bot pages will print      
    ENDIF.
    Pass T_out to the function module.
    CALL FUNCTION 'FORM'
        EXPORTING
    *   ARCHIVE_INDEX              =
    *   ARCHIVE_INDEX_TAB          =
    *   ARCHIVE_PARAMETERS         =
    *   CONTROL_PARAMETERS         =
    *   MAIL_APPL_OBJ              =
    *   MAIL_RECIPIENT             =
    *   MAIL_SENDER                =
    OUTPUT_OPTIONS             = t_out
    *   USER_SETTINGS              = 'X'.
    Regards,
    Gurpreet

  • How to display multiple pages in smart forms

    Hi Experts,
        I am facing one problem in Smartforms. here i am using one page & main window, Mainwindow consists  one TABLE, it contains 100 records. While printing this smartform, i am getting only one page and mainwindow was filled with only 80 records...remaining 20 records has to display in 2nd page but it was not displaying 2nd page at all.
    Can any one please help me.
    Thanks,
    sreelakshmi.

    Hi,
    Use the same page name in the general attributes-> next page of your created page.
    Thanks
    Arul.

  • A window to be displayed in last page In smart form

    Hi,
    I have to  display a window in last page  . Its actually like a footer in which some information is diplayed.
    so this footer shud be displayed in last page. Kindly any one guide me regarding this issue.
    Thanks in Advance
    Regards,
    Neelima.

    Hi,
    u can do this by using some concept......
    1. draw the main window upto the bottom where the footer is supposed to be....
    2. draw the footer window as secondary window overlapping the main window at the bottom.
    3. set the footer window event as 'Only after end of main window'.
    4. in the main window create ur table...
    5. In the footer of the table set Footer with height = 'same height as the footer secondary window'.
        tick the 'at end of table' and untic the 'at page break'.
    6. add a blank line type with blank text element(only few enters) on footer of table...
    7. In the table line types. press details and tick the 'no page break' for the footer line type.
    this will do the trick....
    what happens here is, the footer window will only print at the end of the main window...if the main window ends at the bottom, then it will check whether there is space for the footer...if no space is available then it will go to the next page.. otherwise it will print the footer of the table (which is blank) and then print the footer window over it(which is of the same height as the table footer)...

  • How to supress a blank page in smart forms

    Hi,
    I am using a command in Smartforms to trigger a new page whenever a new BELNR(Accounting document). My problem is in the output i am getting a first page is blank and remaining pages are ok.
    What i did Is In conditions tab i written as temp NE belnr. So first time temp is nothing so blank page is coming. and in the following text elements i am passing a belnr value to the temp.
    Temp = belnr and in general attributes go to new page check box has been activated. Then how to supress a blnk page.
    Regards
    Ramakrishna .P

    Hi,
    I am not using loop.
    In main window i have the contents as
    Header---- Headers for table
    Main Area---- text elements ( i have fileds slno, belnr,glaccount,cost center,gtext,description,dmbtr,wrbtr)
    In belnr field i have created the command there i am comparing the condition temp ne Belnr and go to new page on conditions tab
    wrbtr text element i am passing the g_temp =belnr
    My requirement is whenever new belnr comes new page has to trigger and corresponding gl accounts need to be displayed and end of the belnr i want to display the footer.
    For your information passing the belnr values from the print program (select options) to smart form
    Footer---footer

Maybe you are looking for

  • Weird Happenings with a VO.  Looking at seede VO.xml generates empty java

    Hi, I imported a seeded VO.xml into my project. Right clicked on it to see the attributes and copy the query. The intention was to extend the view. After doing so, I closed the view object editor. I must have clicked 'Apply' by mistake. Now I see VOI

  • Intergration with Windows 8.1 Photos App Share Charm

    I can not find any documentation on this anywhere, so excuse me if this is in a guide somewhere. I want my application to run whenever the user opens the native 'photos' app, then goes to the share option in the charms menu. My current computer says

  • Soft-Proofing Alternative

    Since the soft-proofing feature in the full-blown PS was not included in  PSE8, does anyone know of an action or plug-in that will enable  soft-proofing? If not, I assume that the alternative will be the consumption of paper  & ink through trial-&-er

  • [SOLVED] .AURINFO and makepkg --source

    The documentation suggests that one use makepkg --source to build source packages for AUR, but also states that one should include a .AURINFO file. See Arch User Repository and Arch Packaging Standards I made a .AURINFO file by hand and placed it in

  • Notes keeps crashing on my Mac

    I have a note in Notes that I can't alter, delete, or close--I get the rainbow wheel of death and then a server message that Notes quit unexpectedly, and a whole bunch of text I don't understand. Here are some: (Exception Type:  EXC_BAD_ACCESS (SIGSE