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.

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

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

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

  • How to print two different multiple pages in smart forms

    Hi All,
    In my form iam printing 12 different pages.In that 11th & 12 th pages are having two different formats and if more records are there for each page i have to print more similar pages.For 12th page iam using main window in that by using command and table nodes iam printing similar pages for 12th one.
    But come to 11th page i don't have more than one main window in my form.So iam unable to use the command node.
    Can anybody help regards to this problem.
    Regards,
    Srinivas Reddy.Ch

    hi Srinivas..
    u don't have multiple main windows in smartform but we can us the same window for multiple number  of pages...
    wht u need to do is use the CONDITIONS Tab of every node..
    in the check <b>only on page</b> PAGE11.. for the node u want to trigger in page11 and for other node <b>only on page</b> PAGE12 for the node u want to trigger in page12.
    i hope it is clear now.. let me know if u want more clarification.
    Please Close this thread.. when u r problem is solved. Reward if Helpful
    Regards
    Naresh Reddy K

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

  • How to display line items twice in a single page in sap script

    HI,
      I am working on check printing. I copied the standard driver program and form to Zprogram and ZForm. Which are RFFOUS_C(print program) and F110_PRENUM_CHECK(Form Name).
    I want to display the line items twice in the same page and sub sequent pages.
    Currently I am able to display line items only once.
    Example:
    PAGE1.
    line item1
    line item2
    line item3
    line item4
    line item5
    line item1
    line item2
    line item3
    line item4
    line item5
    line items 1 to 5 which are in main window.
    How to achive this problem.
    Regards,
    vinod

    Hi
    I had the same request for a check form in Canada. I solved it by writing the line item output into variables and print these variables in a second window. It was ~10 hours of effort, not a real nice technical solution but it worked.
    If you require I can send you a PDF of the sap script form definition. You can contact me at [email protected] Answers can take 1 week or more. 
    Best regards
    JD

  • Printing in only last line item printing in main window

    Hi All,
    My requiremnet is to print same data in two blocks for F110 payment cheque
    Iam using 2 main windows to print same data if block exceeds it will go to next page
    iam calling the windows as shown below
    CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window   = 'MAIN00'
            element  = hlp_ep_element
            function = 'APPEND'
          EXCEPTIONS
            window   = 1
            element  = 2.
        IF sy-subrc EQ 2.
          err_element-fname = t042e-zforn.
          err_element-fenst = 'MAIN00'.
          err_element-elemt = hlp_ep_element.
          err_element-text  = text_525.
          COLLECT err_element.
        ENDIF.
        CALL FUNCTION 'WRITE_FORM'
          EXPORTING
            window   = 'MAIN01'
            element  = hlp_ep_element
            function = 'APPEND'
          EXCEPTIONS
            window   = 1
            element  = 2.
        IF sy-subrc EQ 2.
          err_element-fname = t042e-zforn.
          err_element-fenst = 'MAIN01'.
          err_element-elemt = hlp_ep_element.
          err_element-text  = text_525.
          COLLECT err_element.
        ENDIF.
    Iam getting only last line item printing in main window
    Please provide the inputs.
    Thanks,
    Kamalakar.
    Please use code tags.
    Edited by: Rob Burbank on Nov 25, 2011 11:51 AM

    Hi,
    My requirement was to print same block twice in cheque printing of F110.
    I have used the function module  'WRITE_FORM_LINES' to print more than one line item in secondary window in the script .
    fill the Lines internal table as shown below.
    Example :
        lines-tdformat = 'TM'.
        CONCATENATE regup-xblnr ',,' w_date ',,'  w_bsak-sgtxt ',,' w_gross ',,' w_dis ',,'
        w_net INTO lines-tdline.
    APPEND lines.
    CALL FUNCTION 'WRITE_FORM_LINES'
          EXPORTING
           function                       = 'APPEND'
           header                         =  header_t
           type                           = 'BODY'
           window                         = 'MAIN01'
        IMPORTING
          FROMPAGE                       =
          PENDING_LINES                  =
          TABLES
            lines                          = lines
         EXCEPTIONS
           function                       = 1
           type                           = 2
           unopened                       = 3
           unstarted                      = 4
           window                         = 5
           bad_pageformat_for_print       = 6
           spool_error                    = 7
           codepage                       = 8
           OTHERS                         = 9
        IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
        ENDIF.
      ENDIF.

  • When I am merging a Pages document, the header and graphic is only printing on every other page?

    I have make a Merge file from Pages.  When I go to print this, the Header and Graphic is only printing on every other page.  Can anyone advise?

    That is very hard to follow.
    We have no idea what you are merging, nor what header or graphic you are referring to as we can not see the document.
    My guess is that you are talking about something like a letterhead which has a logo and address only on the first page and none on the following pages.
    Each merge is probably running over the 1st page and onto a following blank page. If you want the "Header and Graphic" to appear on subsequent pages as well then you will need to create master pages/objects for the following pages to suit.
    This is how you go about doing it for a standard letterhead and follower:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=182&highlight=letter head&mforum=iworktipsntrick
    Just add the graphics to the follower pages as well.
    Peter

  • Repeat the Group Header on a new page

    Crystal Reports will only repeat the Group Header on a new page if there is at least one Detail on that page. If the last page of a group has only the Group Footer, then the Group Header will not repeat onto that page.
    Is this correct?
    I have this problem and have struggled to find which switch setting that I had used was overriding the "Repeat the Group Header on a new page" setting.

    Hi Renju,
    Conditionally suppressed sections are Not suppressed when exporting to .txt, unfortunately.
    -Abhilash

  • Firefox prints only every other page on a bulk print run, why?

    I use Firefox to bulk print Ebay invoices. It's been just fine for years. But 2 days ago it started printing just every other page in full. Intervening pages had only the top 20% printed (headers and footers are set to blank), and it prints one extra blank sheet at the end of the print run. 'Fit to page width' is enabled. I print at A5 size. When I check print preview it shows the problem exactly. The preview confirms 80% of every second page is missing, and there is an extra blank page at the end. Anyone else have this problem?

    Hi ashura,
    When you print, check to see which presets and defaults are selected. It could be a stored preference to only print every other.
    In order to reset these preferences in Firefox:
    *[[Fix printing problems in Firefox]]
    Did this help?

  • Include report header for every new page.

    Hi expert,
    I have create a report with two buttons, 'previous page' and 'next page'. when i click the buttons, my report will go to another new page. I am using NEW-PAGE in my report.
    My problem now is, how can i include TOP-OF-PAGE for every new page in my report? When i click on the button, the TOP-OF-PAGE will not trigger by my report.
    Pls advise how to solve it.
    Thanks in advance.

    top-of-page will get triggered in spool request only when u run in background.

  • Over flow issue while printing footer in last page in PDF forms

    Hi,
    Could any one let me how to display footer in last page only at end of page reserving 5cm of space.
    I have designed my form with two pages:First Page and Next Page in Master Page
    Body Page contains table details and some texts after the table lines.
    First and Next Pages has footer(5cm) at the bottom.
    If Page <> Last Page,footer is not displayed.
    If page = Last Page, footer should be displayed at the very end of the page
    I have a table with multiple line items. If the line items end in First page the footer should be displayed at the bottom of the page. If the line items flow to the next pages footer should be displayed in the last page only. Next pages should be using the footer space at the end of each page if it is not the last page.
    If the positions are wrong can anyone suggest the position of the footer space and how to stop overflow of the line items onto the footer

    You have to place the footers in 2 main windows.
    write script to hide the footer if the current page is not last page. Use below script to find the total number of pages and current page in layout:ready event.
    Var no_of_pages   =   $layout.pageCount (  )
    Var curpage = $layout.page  (  ref  (  $  )  )

  • 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

Maybe you are looking for