Variable field in Header for every new page

Hi Friends.
I am printing a new page on every new material no encountered . At the same time the HEADER has a field called Container name which is different for each  material so this header field needs to be update each time when a new page is called to print .
How to handle this ? Please advise .
In my z calling program I am using this logic .
If  old_matnr  <> new_matnr
PERFORM PRINT USING 'MAIN' 'NEW_PAGE'.
endif.
Thanks!!
Hari

If you have created a seperate window for header then you cant pass a changing field . Instead keep that header window in the main window that will serve your purpose.
you need to put the condition
if &page& eq '1'.
header code.
endif.
Reward points if useful.
Regards,
Nageswar

Similar Messages

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

  • Report in background, how to avoid the header at every new page?

    Dear all,
        I have a big report which gives time out, so I run it in background mode, the problem arises when I go to SP01 and download the output, it doesnt appear as a continuous list but as a bunch of pages with a header in each one, so it is a pain to work with it in Excel.
       Any idea about downloadig it with out the header of the pages?
    Thanks in advance,
    Fede

    Write an utility for downloading from spool using below said fm and give the first_line parameter value as your first line after header
          call function 'RSPO_RETURN_ABAP_SPOOLJOB'
            exporting
              rqident              = wa_spool
              first_line           = 2   " Specify your  first line from header
            tables
              buffer               = i_spldata
            exceptions
              no_such_job          = 1
              not_abap_list        = 2
              job_contains_no_data = 3
              selection_empty      = 4
              no_permission        = 5
              can_not_access       = 6
              read_error           = 7
              others               = 8.

  • Write again sub-header and header for every start of new page in report

    Hello experts,
    In my report, I declared my line-count to be 0. I don't know if this is correct
    but what I want to do is that for every new page, I want to write again my
    sub-header and header. How do I do this? Thanks again guys!

    Hi again,
    1. CALL METHOD top->top_of_page
    What does it do ?
    Probably it prints the headings and sub-headings.
    2. Now, again in start-of-selection,
       we have written,
    CALL METHOD main->display_subheader.
    CALL METHOD main->display_header.
    , so it becomes twice.
    3. Ideally it could be like this :
    <b>TOP-OF-PAGE.</b>
    <b>CALL METHOD main->display_subheader.
    CALL METHOD main->display_header.</b>
    Remove
    CALL METHOD main->display_subheader.
    CALL METHOD main->display_header.
    from start-of-selection.
    regards,
    amit m.

  • How to get the text field in the header for only first page of the report

    Hi,
    I am developing reports in BI Publisher Enterprise where i am facing problem i.e., i have to get some text field in header,for only first page in the result but it is displaying in all the other pages of the report in result.So,please if you have any idea of how to solve it, please reply.It is required as early as possible.
    Thanks in Advance

    Invalid path? What are you doing? Writing the report output to an invalid directory?
    Where are your terms and conditions? It would be very easy just to put them in a database table and select them in your report query.

  • Changing customer number in alv top of page for every new customer

    hi experts,
    in alv grid display top-of- page, how to change customer number  customer name for every new customer.
    please help me.
    Regards
    Naveen.

    You may look into this blog
    http://help-abap.blogspot.com/2008/09/salv-model-5-add-header-top-of-page.html
    This is has been contributed by one of the SCN contributor Naimesh Patel.

  • ArchWiki: suggestion for a new page layout

    Finally, I have some time to spare for ArchWiki improvement.
    I have modified my article on CMYK support in The GIMP as an example.
    Please take a look at it here:
    http://wiki.archlinux.org/index.php/CMY … n_The_GIMP
    The code to produce the box on the right is here:
    {{sn|'''Article summary:'''
    This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images.
    It will also cover more general topics on CMYK colors and DTP.
    '''Required software:'''
    *[http://www.gimp.org/ The GIMP The GIMP]
    *[http://www.littlecms.com/ lcms]
    *[http://download.adobe.com/pub/adobe/iccprofiles/win/AdobeICCProfiles_end-user.zip Adobe ICC profiles]
    *[http://www.blackfiveservices.co.uk/separate.shtml Separate plugin source]
    '''Related article:'''
    *[[Using lprof to profile monitors]]
    This is the best we can do with current ArchWiki setup. It would be even better if we could list categories in the box, as well as i18n links.

A: ArchWiki: suggestion for a new page layout

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

dtw wrote:Doesn't display correctly in IE
I've been tinkering with the templates. It's fixed now, I think.
Anyway, the templates used for the job can be seen from the code:
{{Article summary start}}
{{Article summary text|This article will show how to enable rudimentary CMYK support in The GIMP using the Separate plug-in, and explain how to use color proof filter to soft-proof your images. It will also cover more general topics on CMYK colors and DTP.}}
{{Article summary heading|Translations}}
{{i18n_entry|Deutsch|CMYK support in The GIMP(Deutsch)}}
{{i18n_entry|English|CMYK support in The GIMP}}
{{i18n_entry|Español|CMYK support in The GIMP(Español)}}
{{i18n_entry|Finnish|CMYK support in The GIMP(Suomi)}}
{{i18n_entry|Français|CMYK support in The GIMP(Français)}}
{{i18n_entry|Nederlands|CMYK support in The GIMP(Nederlands)}}
{{Article summary heading|Required software}}
{{Article summary link|The GIMP (v2.0 and above)|http://www.gimp.org/}}
{{Article summary link|lcms (v1.15 ?)|http://www.littlecms.com/}}
{{Article summary link|Separate plugin (v0.10 and above ?)|http://www.blackfiveservices.co.uk/separate.shtml}}
{{Article summary heading|Related articles}}
{{Article summary wiki|Using lprof to profile monitors}}
{{Article summary end}}
As you can see, it's a bit more typing than before, but it sure looks better. I might shorten the names for the templates. I wanted to make them memorable so they are a bit long.
As you can see, the problem of i18n links integration was fixed, so you can use existing i18n template and combine with the new "Article summary" set.
I will modify the article about writing summaries to include those templates and examples.
EDIT:  :oops:  the i18n links in the article are just examples. Don't use them, since they lead to non-existing pages.
EDIT2: Okay, I've played around with the appearance of the summary box, but I'm at work now, so it's going nowhere. I'll play with it some more when I get home.

  • Excel o/p in Reports 9i-additional report header for every row

    Dear All,
    Is there any way to generate an Excel file output from OracleReports9i.Actually I have tried the simple report.
    I am able to create a delimited output.But the prob is it contains an additional report header for every row of the report and this is very strange.Its coming like that
    Empno     Ename     Job     7566     JONES      MANAGER
    Empno     Ename     Job     7902     FORD      ANALYST
    I need the Xls o/p like that
    Empno     Ename          Job
    7566     JONES      MANAGER
    7902     FORD      ANALYST
    8877 JAMES SALES
    my Environment oracle9i developersuite /forms9i/reports9i
    I have given     DESFORMAT = DELIMITED
              MODE      = CHARACTER
    I am able to generate the reports in html/HTMLCSSIE/HTMLCSS/PDF/RTF
    Only delimited is giving problem
    What should i do to resolve this issue. Please help me it is very very urgent for me.
    Thanks in advance
    Pavendhan.N

    I had the same problem and this is what I did, works great. You have the total control.
    function BeforeReport return boolean is
    fp text_io.file_type;
    begin
    -- creating a file name
    :CP_filename := 'C:\Gap'||to_char(sysdate,'MMDDYYHHMISS')||'.csv';
    -- Opening the file in write mode
    fp := text_io.fopen(:CP_filename,'w');
    -- writing the column headings into the file
    text_io.put_line(fp,'"Platform","Sys#","GapType",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    and then where ever it is suitable, depending on the requirement, write into file by opening it in the append mode.
    function R_G_systemplatformFormatTrigge return boolean is
    fp text_io.file_type;
    begin
    --     srw.message(99,:dname);
    fp := text_io.fopen(:CP_filename,'a');
    text_io.put(fp,'"' || :systemplatform || '",');
    text_io.put(fp,'"' || to_char(:sysno) || '",');
    text_io.put_line(fp,'"' || :CF_gaptype || '",');
    text_io.fclose(fp);
    return (TRUE);
    end;
    This works great. Hope this helps.

  • Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. How do I fix this?

    Safari and firefox 'cannot find the server' for every other page that i navigate to, unless I turn Wifi off and on. Once i reconnect to the network, the page loads, but after loading a few more pages, the same thing happens all over again.
    This happens each and every time, on different Wifi networks, in different locations.  On the other hand, I don't ever encounter this problem when I tether my laptop to my mobile phone's 3g/2g network using Personal Hotspot. How do I fix this?

    Try this DNS server ...
    Open System Preferences > Network > Advanced > DNS
    Click + and type:
    208.67.222.222
    Click + again and do the same.
    208.67.220.220
    Click OK.
    Quit and relaunch both your browsers to test.
    If that doesn't help, try here >  iOS: Troubleshooting Wi-Fi networks and connections
    And here >  Wi-Fi: How to troubleshoot Wi-Fi connectivity

  • How do i increase my key ID +1 for every new user

    what iam trying to do is that for every new user that register on my app will get a key id.. that is +1 higher then the old highest id.. i have done this i JavaDB but in mysql i get an exception
    here is my sql Q:
    sql = "insert into " + mytest_TABLE + "(" + mytest_ID + ", " + mytest_NAME
    + ") values ((case when (select max(" + mytest_ID + ") from " + mytest_TABLE + ")"
    + "IS NULL then 1 else (select max(" + mytest_ID + ") from " + mytest_TABLE + ")+1 end), "
    + encodeSQL(firstName) + ")";
    here is my exception:
    by the way mytest is my table..
    java.sql.SQLException: You can't specify target table 'mytest' for update in FROM clause
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
    at com.mysql.jdbc.Connection.execSQL(Connection.java:3250)
    at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1355)
    at com.mysql.jdbc.Statement.executeUpdate(Statement.java:1270)
    at cont.tt.updateContact(tt.java:49)
    at cont.tt.jButton3ActionPerformed(tt.java:179)
    at cont.tt.access$200(tt.java:6)
    at cont.tt$3.actionPerformed(tt.java:140)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
    at java.awt.Component.processMouseEvent(Component.java:6038)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3260)
    at java.awt.Component.processEvent(Component.java:5803)
    at java.awt.Container.processEvent(Container.java:2058)
    at java.awt.Component.dispatchEventImpl(Component.java:4410)
    at java.awt.Container.dispatchEventImpl(Container.java:2116)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
    at java.awt.Container.dispatchEventImpl(Container.java:2102)
    at java.awt.Window.dispatchEventImpl(Window.java:2429)
    at java.awt.Component.dispatchEvent(Component.java:4240)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
    sry for my bad english..
    really hope someone can help me out

    You need an 'Identity' column. In MySQL, you need to enable autoincrement and don't insert a value in the column while adding records; MySQL will auto increment the value.
    People on the forum help others voluntarily, it's not their job.
    Help them help you.
    Learn how to ask questions first: http://faq.javaranch.com/java/HowToAskQuestionsOnJavaRanch
    (Yes I know it's on JavaRanch but I think it applies everywhere)
    ----------------------------------------------------------------

  • 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

  • How to use a formula for dynamic New Page After?

    There is a formula for dynamic New Page After.
    How do I get value of formula?
    I am using RAS and the ReportClientDocument.

    There is a section object.  Off that there is a format property that is of type sectionformat.  From there there is a ConditionFormulas property which I believe is a collection of all the formulas you can set for a section.

  • Mail to be send for every new pur group

    Hi ,
    I have to send mail to recipients of  the purchase grp ekgrp..
    right now im able to send mail to all purchase orders of the pur.group, individually.
    but my requirement demands that
    the mail has to triggered for every new pur.group, all the pur orders wthin that group has to come in the mail body of that purchase group.
    now actually one loop is already running, plz avoid nested loops.. and  help me out asap.
    I give you the following code .
    all respective data declared above.
    FORM form_send_mail .
      SELECT ekgrp smtp_addr FROM zmmtr_ekko INTO TABLE it_zmmtr_ekko.
    SORT it_final by ekgrp.
      LOOP AT it_final." into wa_final.
        CLEAR: wa_objtxt,wa_reclist,wa_doc_chng,wa_objpack,g_tab_lines.
        REFRESH:it_objtxt,it_reclist,it_objpack.
    Mail Subject
        wa_doc_chng-obj_descr = c_subject.
    *Mail sensitivity
        wa_doc_chng-sensitivty = c_p.
    *Fetching employee name
        READ TABLE it_zmmtr_ekko  WITH KEY ekgrp = it_final-ekgrp.
        IF sy-subrc = 0.
          g_email = it_zmmtr_ekko-smtp_addr.
        ELSE.
          CONCATENATE c_message it_final-ekgrp INTO g_message SEPARATED BY space.
          WRITE: g_message.
          CONTINUE.
        ENDIF.
        MOVE c_hi TO wa_objtxt.
        APPEND wa_objtxt TO it_objtxt.
        CLEAR wa_objtxt.
            APPEND wa_objtxt TO it_objtxt.
          CONCATENATE c_po it_final-ebeln INTO wa_objtxt SEPARATED BY space.
          APPEND wa_objtxt TO it_objtxt.
          CLEAR wa_objtxt.
         APPEND wa_objtxt TO it_objtxt.
        DESCRIBE TABLE it_objtxt[] LINES g_tab_lines.
        READ TABLE it_objtxt into wa_objtxt index g_tab_lines."INTO wa_objtxt INDEX 1."g_tab_lines.
        wa_doc_chng-obj_langu = c_en.
    *Size of message body
        wa_doc_chng-doc_size = ( g_tab_lines - 1 ) * 255 + STRLEN( wa_objtxt ).
    *Creation of the entry for the compressed document
        CLEAR wa_objpack-transf_bin.
        wa_objpack-head_start = 1.
        wa_objpack-head_num = 0.
        wa_objpack-body_start = 1.
        wa_objpack-body_num = g_tab_lines.
        wa_objpack-doc_type = c_raw.
        APPEND wa_objpack TO it_objpack.
    *Completing the recipient list
    *target recipent
        REFRESH: it_reclist.
        CLEAR: wa_reclist.
        wa_reclist-receiver = g_email.
        wa_reclist-rec_type = c_u.
        APPEND wa_reclist TO it_reclist.
    AT NEW ekgrp.
          CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
            EXPORTING
              document_data              = wa_doc_chng
              put_in_outbox              = c_x
              commit_work                = c_x
            IMPORTING
              sent_to_all                = g_sent_to_all
            TABLES
              packing_list               = it_objpack
              contents_txt               = it_objtxt
              receivers                  = it_reclist
            EXCEPTIONS
              too_many_receivers         = 1
              document_not_sent          = 2
              document_type_not_exist    = 3
              operation_no_authorization = 4
              parameter_error            = 5
              x_error                    = 6
              enqueue_error              = 7
              OTHERS                     = 8.
        ENDAT.
        CASE sy-subrc.
          WHEN 0.
              WRITE: / c_mail ,g_email,c_mail0,it_final-ekgrp, it_final-ebeln, it_final-lifnr.
              SKIP 1.
          WHEN 1.
            WRITE: / c_mail1."chk mail content and do it..
            SKIP 1.
          WHEN 2.
            WRITE: / c_mail2.
            SKIP 1.
          WHEN 3.
            WRITE: / c_mail3.
            SKIP 1.
          WHEN OTHERS.
            WRITE: / c_mail4.
            SKIP 1.
        ENDCASE.
      ENDLOOP.
      WRITE:       / c_mail5.
      SKIP 1.
    ENDFORM.                    " FORM
    Rgds,

    The newly created database should automatically get picked up the maintenance plan.
    http://sqlmag.com/sql-server/inside-database-maintenance-plans
    No need to manually update the plan. I feel you need to have valid full backup for its successive Diff or Transaction log backup. 
    Are you getting any error in the job history?
    -Prashanth

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • According to material num,for every new material num  one line space.

    Hi,
    please give suggestion how to get vertical lines without breaking as shown below.
    I want according to material number(AT1),for every new material number  one line space have to be there.
    I used 'skip' so the verical line is breaking for every new material.
    Material Number  |   Material Description
    _____________ |______________________________________________
    |    AT1                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT2                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT3                  |   Catalyst - 18165-RNA-A013-Y2 (COPY)
    |    AT4                  |   Catalyst - 18165-RNA-A013-Y2
    |    AT5                  |   Catalyst - 18165-RNA-A013-Y2
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |  CGW0001              SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |  CGW0001              SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    |   CGW0001             SUBSTRATE 148 X 84 X 67 - 400/6/S/0.699L
    I need line continous but for every new material to material gap.
    Thanks,
    sree.

    Hi,
    write code like this.
    write : /1 sy-vline,120 sy-vline.
    give the line size for ex 120
    reward if usefull

  • Maybe you are looking for

    • ODI 11.1 RKM E-Business Suite Knowledge Module??

      I downloaded and installed the companion, I see many knowledge modules but not the "RKM E-Business Suite" Knowledge Module.. The documentation refers specifically to it by that name. Does it go by another name in ODI 11.1.1? Thank you, Jz

    • How do i change aspect ratio in iMovie?

      I was sent a video whose aspect ratio is messed up-squished vertically. I imported it into iMovie anyway thinking I could correct it. I thought it would happen i the Export dialog where I input a custom size. But it hasn't worked.

    • ACS DB Replcation Fails Through Cisco Firewalls w/Skinny Policy Inspect

      We run Cisco ACS v3.3 (Windows) on two servers over our WAN, and replcate the internal databases for redundancy. The problem is that replications fail between the ACS servers and it is because of the default port the ACS servers use to replicate over

    • Printing Email Message without List of Recipients

      I consistently receive email messages with dozens of recipients. How do I print the message without printing the complete list of recipients. It is especially problematic when the email is forwarded from another email with dozens of recipients, which

    • Export by megapixels limited from 1.0 to 512 MP. Need 0.3...0.5 Megapixels export.

      I asked here this question before LR3.6 but some jerk sayed "You don't need export below 1 mpx because 512 mpix is enough for all". Are nobody need export files lesser than 1 mpix for web and previews? I need it badly for web galleries.