Printing header items

Hi all,
I am working on script.When the line items increases the header text element should be printed in script in next page but when there is no line item then the header text should not be printed.In my case when there is no line items in second page then also i m getting the header items.Please  tell me how to solve this.
thanks
Manu

Hi
Their are two ways you can do this.
1-Instead of defining two pages in your script you can define one one page say 'First' and then in the next page of First you can give First page.
2-You can trigger the new-page through some coding in the script.You can put a check for line item through a perform statement in your script code and then based on that you can trigger the new page for your script.
Neha

Similar Messages

  • Text in PO(text tab in header & item) is not shown in the Print Preview

    Hi Guys,
                I face a problem in ME23N.Text maintained in Purchase Orders (text tab in header & item)  is not shown in the Print Preview.
                Can you guys help.Do I need to write a subroutine pool for this.
                <<text removed by moderator>>
    Regards,
    Rajiv
    Edited by: Matt on Nov 12, 2008 1:20 PM

    Hi ,
    Use bapi bapi_po_getdetail .
    CALL FUNCTION 'BAPI_PO_GETDETAIL'
        EXPORTING
          purchaseorder   = is_ekko-ebeln
          item_texts      = c_x
          header_texts    = c_x
        TABLES
          po_header_texts = it_header_text
          po_item_texts   = it_item_text.
    Regards
    Neetesh

  • 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 to print table items in column in smartform in 4.6c version.

    Hi Experts,
    I want to print the items i have in columns (like name invoice number) in smartforms but when i create table in main window there no options for header footer and main area, i have created the template for header and footer but how i print the items in columns. Pls reply ASAP.
    Thanks in advance,
    Abhishek Pandey.

    Hi
    create a table under main window
    Under the Header create a Row or Line
    Under the Row create a Cell and Under that Cell create a text field
    In that text you can write what ever field name u want to write
    Reward if it is helpful to you
    Thanks
    Krushna

  • To buy a new printer or new print head?

    Hi,
    I have a canon i9100 a3 printer which is 6 years old. the print head has had it, so i need to either buy a new print head for £60, or buy a new printer and i can't decide which one would be better.
    I don't want to spend more than around £250 on a new printer.
    So my question is, would the extra £190 on a new printer be worth the extra quality, of as i've already invested £350 in the i9100 would it be better to buy a new print head for it as the difference would be negligible.
    thanks!

    Hello Martin,
    I think one point that may have been missed by everyones price offerings is that you have an A3 capable printer. I don't think you will be able to get another A3 printer for anything under £250. The Canon iX5000 is the cheapest of the current Canon A3 printers and it retails for AUS$599. Checking the NexTag UK site, the prices range from £235 to £357.
    But even with those prices, there is definitely advantages to buying new rather than spend money on an old dog. The increase in the number of inks used and the advances in ink permanence are one factor. If you are printing mainly A3 posters, then the new ChromaLife inks print a very nice image in combination with 6 to 8 ink printers on photo paper.
    Driver support would be the next important matter. If you do update to 10.6, you want to ensure that the your model is also supported, something that a lot of early adopters have not factored and are being caught out.
    The last item is parts. Vendors typically keep parts for 5 to 7 years. If you have had the printer for 6 years but it was already out for six months before you bought it, then you may only have another 6 month window of being able to get more parts should something else fail...
    Pahu

  • Smart form problem when printing header in table

    Hi Friends,
    I am facing some problem in smartform. In my smartform there is a table - where I should print "Header" at each start of line items and also at page break. So, I checked both the check boxes in Header as "Start of table" and "Page break".
    Now the problem is in main window - it is printing Header and line items are coming. After finished Again the header is coming and line items are coming. In some cases - What is happenning is: If the first page ends at the header only - Header is getting printed in the first page and the page ends here. In the next page also "Header is appearing because i checked page break". So, it is appearing twice.
    Could someone please guide me on this issue.
    Regards,
    Hari

    Hi,
    At any case the two headers will not be displayed if you select the both "start of table" and "at page break.". Please check whether there is another widow in the form from where the header is displaying.
    Thanks ,
    Abhijit

  • How to print header in first and last  page only in SAPSCRIPT

    Hi!
    How to print header in first and last  page only in SAPSCRIPT,
    in between pages,  I need to print all line items in MAIN window only .
    Thanks in anticipation!
    Aki.

    Hi All,
    Thanks for your early update...but my requirement here is
    I have two pages (FIRST , NEXT ) First is having Header, Main and Footer
    NEXT is having Main and Footer ..I am printing PO here..let us think that my PO is having 20lines items , let us assume that it takes five pages...
    Now how application is printing is ..first set of data is printing in FIRST page and remainiang data distributed to 4 pages printing in NEXT page ..but what my requirement is , I need fifth page print on FIRST page, instead of NEXT page... Ultimately I need last set of data always print in FIRST ie out of 5 pages 1st print on FIRST 2nd 3rd 4th print on NEXT and 5th print again on FIRST .
    hope you this will clear you.
    Thanks!

  • Print the item text in the PO

    Dear All,
    I had come across one issue.
    In the Purchase order print i am printing the item text and also the header text.
    But in this if it is having the symbol " & " then the text after the "&" symbol was not printing.
    After that symbol it was skipping.
    Can anyone help me in this.

    Hi,
    '&' is used for priting variable's values e.g suppose there is a variabel 'lv_var' and if i want to print the value of it in script i have
    to write code as '&LV_VAR&' (& in the start and end of the variable name), and this is why the text after '&' in your line item, is
    not getting printed.
    To resolve this issue just replace '&' with 'and' (hope is is being used for AND).
    Regards,
    Raj Gupta

  • Printing header text

    hi,
    when i went through smart form code ,i found the following code for printing texts for items(me23n-->item--
    >texts)
    in TEXT  node in smartform   (for printing item text):
    TYPE: INCLUDE TEXT
    TEXT NAME : &G_TEXT_KEY&
    TEXT OBJECT: EKPO
    TEXT ID: F01
    LANGUAGE: &SY-LANGU&
    How to create text name,text object,text id?
    when i gave text name & text id in SO10 &then display it's giving message Text Id F01 for Text Object  TEXT does not exist.
    how to create text object EKPO instead of  TEXT.where can i see this TEXT OBJECT option.
    how can i print header texts in ME23N?
    please help?

    hi mustafa,
      1. If you want to create text name, text object, text id.. you have to create functionally in spro settings....
       spro
    > mm
    > purchasing
    > messages
    > texts for messages
    > define texts for purchase order
        here you can define header texts or item text functionally
    If you want to create in you po then go to header text tab and create with respective  text
    2.  if you want to print header texts simply pass only
         po number in text_name,
         text_object : ekko
         text_id : depends up on ur text check i header text tab
        language key u know as usual
    Don't forget to reward points
    praveen

  • How can i order a new printer head for my photoshop 7250e

    How can i order a new printer head for my photoshop 7250e  Is there a number i can ring to speak to someone or email address i can use or a web page where i can order one
    or a list of agents i can use to get it from
    Finding simple information seems impossible, no where does it mention spares or replacements 
    I have tried a lot of fault finding am convinced this is the problem  

    Hello NigelH1, 
    The Print Head for the Photosmart 7250  is not available outside HP.
    Please call HP Tech Support for further assistance.
    If you are in US , the toll free # is 1-800-474-6836 .
    If you are not in US , then log on to www.hp.com , at bottom-left corner there is a world map icon, click on it and then select the region you belong to, which would then provide support options for you for that region.
    Regards,
    Jabzi
    Give Kudos to say "thanks" by clicking on the "thumps Up icon" .
    Click "Accept as Solution" if it solved your problem, so others can find it.
    Although I am an HP employee, I am speaking for myself and not for HP.

  • I can't print an item,and each time I attempt to do so a message reads that the item is either spam

    I can't print an item,and each time I attempt to do so a message reads that the item is either spam or contains a virus.
    What gives?

    What is the format of the item you are attempting to print (via ePrint?)?  Is it a supported format?  See an updated list here.
    Although I am an HP employee, I am speaking for myself and not for HP

  • How to print header lines at the top of every page with Alv list display?

    Dear all,
    I need a requirement with printing issue. A program list should be printed with the function reuse_alv_list_display.
    The list has several pages and then can be printed but the header lines appear only first page when they printed. The other pages don't have header lines, they continue with the next record of the list remaining from previous page. I use the alv parameters as below:
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = l_repid
          i_callback_pf_status_set = 'ALV_PF_STATUS'
          is_layout                = ls_layo
          it_fieldcat              = lt_fcat
          i_default                = 'X'
          i_save                   = 'A'
          is_variant               = ls_variant
          it_events                = lt_events
        TABLES
          t_outtab                 = lt_data
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
    and lt_events as below:
      ls_event-name = 'END_OF_LIST'.
      ls_event-form = 'ALV_END_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'END_OF_PAGE'.
      ls_event-form = 'ALV_END_OF_PAGE'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_LIST'.
      ls_event-form = 'ALV_TOP_OF_LIST'.
      APPEND ls_event TO lt_events.
      ls_event-name = 'TOP_OF_PAGE'.
      ls_event-form = 'ALV_TOP_OF_PAGE'.
      APPEND ls_event TO lt_events.
    So, how can I print header lines for every page?
    Best Regards,

    Hello Saba,
    Your point might be very close to solution.
    Because in the selection screen of the program there are two radio buttons, one of them visits 'REUSE_ALV_COMMENTARY_WRITE' function and the other doesn't. The one which visits has a problem with header liens in every page when printing. But I couldn't find out the solution yet.
    reuse_alv_list_display uses 4 event and of course I call subroutine. There are end_of_list, end_of_page, top_of_list and top_of_page. I use in the subroutine for top_of_page:
      CALL FUNCTION 'LVC_TRANSFER_TO_SLIS'
        EXPORTING
          it_fieldcat_lvc         = gt_fcat
        IMPORTING
          et_fieldcat_alv         = lt_fcat
        EXCEPTIONS
          it_data_missing         = 1
          it_fieldcat_lvc_missing = 2
          OTHERS                  = 3.
      CALL FUNCTION 'REUSE_ALV_LIST_WIDTH_GET'
        EXPORTING
          it_fieldcat = lt_fcat
        IMPORTING
          e_width     = l_width.
    WRITE l_reptx TO l_reptx CENTERED.
      NEW-LINE.
      WRITE: AT (l_width) l_reptx CENTERED.
      SUBTRACT 10 FROM l_width.
      WRITE: AT l_width sy-pagno RIGHT-JUSTIFIED.
        CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
          EXPORTING
            it_list_commentary       = lt_header
      I_LOGO                   =
      I_END_OF_LIST_GRID       =
    Do you have other suggestions ?

  • Dunning - Print all items

    Hi,
    I have set in SPRO for dunning:
    dunning level      print all items
    1                          
    2                           X
    3                           X
    4                           X
    When I run transaction F150, I have 1 item in level1 and 3 items in level2, no exist another open items.
    I use form created in smartforms (copy from F150_DUNN_SF)
    When I print form for level2, I have in form only 3 items. But they would have to be 4 items, I think when I check "Print all items".
    I tried it also F150_DUNN_SF - and some result.
    Kindly let me know why don't print 4 items?
    Regards, Jaroslav

    Hi ramanuje
    I don't understand your answer.
    I have form Z_F150_DUNN_SF (copy form F150_DUNN_SF). Have I check write in its?
    Where? In initialization? In initialization I have CALL FUNCTION 'GET_SF_DUNN_DATA' that return 3 items. After that follows:
    IF sy-subrc <> 0.
       SY-MSGID = 'FM'.
       SY-MSGTY = 'E'.
       SY-MSGNO = 461.
       raise others.
    ENDIF.
    h_t040a-text1 = space.
    show_interest = space.
    loop at th_mhnd into mhnd where xzins = ' '.
      show_interest = 'X'.
      exit.
    endloop.
    with regards, Jaroslav

  • How to print header and footer in SET_TABLE_FOR_FIRST_DISPLAY

    Hello Experts,
             How to print header and footer while using the method SET_TABLE_FOR_FIRST_DISPLAY, any tips from the experts will be appreciated.
    Regards,
    Babu

    Hi,
    there are four events for printing: print_end_of_list, print_top_of_list, print_end_of_page and print_top_of_page. More information about implementing these events is in this bible for ALV:
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e8a1d690-0201-0010-b7ad-d9719a415907
    Cheers

  • Print head alignment keeps on getting worse and worse the more I try to "fix" it

    First off, I know that this question doesn't really belong in the mbp section, but since I am printing from one, I thought this would be the closest match.
    I have an Epson NX420 printer which came with my 2011 mbp 13in for free (err... $100 off the original $95ish to be exact). It will turn 3 years old in less than a month.
    This past week, I have had troubles printing "good" images, so I did the print head alignment on Epson Printer Utility 4, following the written directions. I printed something out, and it was still disgustingly off, so I repeated the process two more times, each time printing something different. The vertical alignment is fine, but the horizontal alignment seems to get worse and worse. One thin line will be split into two in some places, and one will be dotted while the other solid, and in the case of color, the two bands are different colors. Solids come out grainy.
    I don't want to waste any more paper and expensive ink for something that is not fixing itself. Since my mbp is still under Applecare warrenty, will Apple fix or trade my current printer for another one for free, or does Apple have nothing to do with printers other than its sale? If not, are there alternative ways to fix this problem? I am sure I am choosing the box without any bands at all and if there is I choose the lightest band-in-a-box and click realignment.
    Here is the recent printout of random lines and text, after three unsuccesful trials of print head alignment.

    This is a printer issue and it's only covered under the Epson Warranty Program, which is 1 year.  AppleCare has nothing to do with that.
    You'll probably have to replace the printer if the print heads cannot be replaced.  That's the issue when you buy an inkjet that has print heads that aren't part of the ink cartriges... when they go bad, they go bad and you're hosed.  If the issue persists after a print cartridge change, then it's definitely the heads.

Maybe you are looking for

  • Can't open .jar file? (I have Lion)

    I have written a program in Eclipse, and  I exported it as a runnable jar to my desktop. But when I go and click on it I get this message: The Java Jar file "Four Room Game.jar" could not be launched check the console for possible error messages what

  • Conditional Sum and look at next record

    First off, here is an example XML structure <DATASET> <DATASET_ROW> <DEPARTMENT>1</DEPARTMENT> <FEE>30</FEE> <DIVISION>Displayed Title</DIVISION> </DATASET_ROW> <DATASET_ROW> <DEPARTMENT>1</DEPARTMENT> <FEE>20</FEE> <DIVISION>Displayed Title2</DIVISI

  • Have file in Trash and can not empty trash . Showing 63 files and tried to shut down and restart and still will not empty

    Have file in Trash and can not empty trash . Showing 63 files and tried to shut down and restart and still will not empty.Anyone know what can be done?

  • Enabled WebLogic Server domain administration port, now can't connect

    I am having troubles in an OID 11g cluster using new custom identity and Java standard trust, so setup a basic lab server with WLS 10.3.3 admin server and one managed server. All was well. I enabled the domain-wide admin port (9002) and can access th

  • Missing Mail Plug-ins?

    I sent an email containing a couple of jpg's. In the conversation view, my sent email has a blank space for each jpg's with the words "Missing Plug-in". Are there really some missing plug-ins or does this mean something else? Thanks HNick