PrintJobFailed,printJobCompleted,printJobCanceled events are not triggering

Hi,
In my application we are printing some data. For that we are adding PrintStatusTracker listner class which impliments PrintJobListener to DocPrintJob.
Now the problem is... after print is given i am getting only 2 events triggered in PrintJobListener i.,e printDataTransferCompleted, printJobNoMoreEvents even though it is failed to print. But other events like printJobFailed, printJobCompleted, printJobCanceled are not at all triggering.
Please help me in this.
Thanks
Edited by: Bamgaram on Dec 31, 2009 9:12 AM

Hi Andrew,
I dont know how to post an SSCCE. if u want code pls find below.
     import javax.print.*;
     import javax.print.event.*;
     import javax.print.attribute.*;
     import java.awt.print.*;
     import java.awt.*;
     import java.awt.geom.*;
     import java.awt.event.*;
     import javax.swing.*;
import java.io.*;
     public class PrintJob {
     static class MyComponent extends JPanel
     implements Printable {
     Font theFont = new Font("Serif", Font.ITALIC, 48);
     public void paint(Graphics g) {
     super.paint(g);
     String msg = "Hello, Printer";
     g.setFont(theFont);
     FontMetrics fm = g.getFontMetrics();
     // Center line
     int width = getWidth();
     int stringWidth = fm.stringWidth(msg);
     int x = (width - stringWidth)/2;
     int height = getHeight();
     int stringHeight = fm.getHeight();
     int ascent = fm.getAscent();
     int y = (height - stringHeight)/2 + ascent;
     g.drawString(msg, x, y);
     g.drawRect(x, y-ascent, stringWidth, stringHeight);
     public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
     int x = (int)pageFormat.getImageableX();
     int y = (int)pageFormat.getImageableY();
     g.translate(x, y);
     if (pageIndex == 0) {
     paint(g);
     return Printable.PAGE_EXISTS;
     } else {
     return Printable.NO_SUCH_PAGE;
     public static void main(String args[]) throws Exception {
     final JFrame frame = new JFrame("Printing Graphics");
     frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
     Container contentPane = frame.getContentPane();
     final Component printIt = new MyComponent();
     contentPane.add(printIt, BorderLayout.CENTER);
     JButton button = new JButton("Print");
     contentPane.add(button, BorderLayout.SOUTH);
     ActionListener listener = new ActionListener() {
     public void actionPerformed(ActionEvent e) {
     DocFlavor flavor = DocFlavor.SERVICE_FORMATTED.PRINTABLE;
     PrintService printService =
     PrintServiceLookup.lookupDefaultPrintService();
     DocPrintJob job = printService.createPrintJob();
     PrintJobListener pjlistener = new PrintJobAdapter() {
     public void printDataTransferCompleted(PrintJobEvent e) {
     System.out.println("DataTransferCompleted");
     public void printJobCompleted(PrintJobEvent objPJEvent) {
          System.out.println("printJobCompleted");
     public void printJobFailed(PrintJobEvent objPJEvent) {
          System.out.println("Failed");
     public void printJobNoMoreEvents(PrintJobEvent objPJEvent) {
          System.out.println("NoMoreEvents");
     job.addPrintJobListener(pjlistener);
     PrintRequestAttributeSet pras =
     new HashPrintRequestAttributeSet();
     DocAttributeSet das = new HashDocAttributeSet();
     Doc doc = new SimpleDoc(printIt, flavor, das);
     try {
     job.print(doc, pras);
     } catch (PrintException pe) {
     pe.printStackTrace();
     button.addActionListener(listener);
     frame.setSize(350, 250);
     frame.show();
     }

Similar Messages

  • The TOP-OF-LIST and END-OF-LIST events are not triggered in spool

    Hi Everyone,
    I am displaying a block list ALV where when using "REUSE_ALV_BLOCK_LIST_APPEND", I have populated the events with TOP-OF-LIST and END-OF-LIST. The ALV is displaying perfectly with the top-of-list and end-of-list.
    I have created a button in the toolbar using the USER COMMAND which when clicked will generate a PDF file with my output result. In the subroutine for USER COMMAND , I have put the print parameters using "GET_PRINT_PARAMETERS". Then I have again called "REUSE_ALV_BLOCK_LIST_DISPLAY" with is_print parameter in order to generate the spool no. Then I am using "CONVERT_ABAPSPOOLJOB_2_PDF" to convert the spool to pdf.
    The problem that I am facing is that the spool is generated without the TOP-OF-LIST and END-OF-LIST. I cannot see the lines written in TOP-OF-LIST and END-OF-LIST in the spool.
    Also the font-size is reduced very much in the pdf.
    Please suggest me some solution if possible.
    <promise removed by moderator>
    Regards,
    Edited by: Thomas Zloch on Mar 29, 2011 4:40 PM

    Hi Everyone,
    I am displaying a block list ALV where when using "REUSE_ALV_BLOCK_LIST_APPEND", I have populated the events with TOP-OF-LIST and END-OF-LIST. The ALV is displaying perfectly with the top-of-list and end-of-list.
    I have created a button in the toolbar using the USER COMMAND which when clicked will generate a PDF file with my output result. In the subroutine for USER COMMAND , I have put the print parameters using "GET_PRINT_PARAMETERS". Then I have again called "REUSE_ALV_BLOCK_LIST_DISPLAY" with is_print parameter in order to generate the spool no. Then I am using "CONVERT_ABAPSPOOLJOB_2_PDF" to convert the spool to pdf.
    The problem that I am facing is that the spool is generated without the TOP-OF-LIST and END-OF-LIST. I cannot see the lines written in TOP-OF-LIST and END-OF-LIST in the spool.
    Also the font-size is reduced very much in the pdf.
    Please suggest me some solution if possible.
    <promise removed by moderator>
    Regards,
    Edited by: Thomas Zloch on Mar 29, 2011 4:40 PM

  • MouseEvents are not triggered for JMenu

    I would like to listen for MouseEvents but i'm not sure if it is a bug in java or some lack of knowledge on my side concerning event handling.
    I have a simple menu with one mouse listener and seems that mouseReleased and mouseClicked events are not triggered always as i would expect.
    if i run the code that has been attached below, than i have the following strange scenarios.
    Menu0 is not opened and click on it once:
    pressed Menu0
    clicked Menu0
    There is no mouseReleased received. why?
    Menu0 is opened and click on it once again:
    pressed Menu0
    released Menu0
    clicked Menu0
    Menu0 is collapsed and i have all the events. ok
    Menu0 is opened and click on Menu1:
    pressed Menu1
    released Menu1
    Menu0 is collapsed and there is no mouseClicked event. why?
    Menu0 is opened and go over Menu2 and click on it:
    pressed Menu2
    clicked Menu2
    There is no mouseReleased event. why?
    Press the mouse over Menu2 and release it over Menu3:
    pressed Menu2
    released Menu2
    why is it 'released Menu2' and not 'released Menu3' if it is pressed and released Menu2 than where is the clicked event anyway.
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.event.MouseListener;
    import java.awt.event.WindowAdapter;
    import java.awt.event.WindowEvent;
    import javax.swing.JFrame;
    import javax.swing.JMenu;
    import javax.swing.JMenuBar;
    import javax.swing.JMenuItem;
    public class MouseEventTest
         public static void main( String[] args )
              JFrame frame;
              JMenuBar menuBar;
              JMenu menu, subMenu;
              JMenuItem menuItem;
              MouseListener mouseListener;
              mouseListener = new MouseAdapter() {
                   public void mouseEntered( MouseEvent e )
                   public void mouseExited( MouseEvent e )
                   public void mouseClicked( MouseEvent e )
                        System.err.println( "clicked " + ((JMenuItem) e.getSource()).getText());
                   public void mousePressed( MouseEvent e )
                        System.err.println( "pressed " + ((JMenuItem) e.getSource()).getText());
                   public void mouseReleased( MouseEvent e )
                        System.err.println("released " + ((JMenuItem) e.getSource()).getText());
              menuBar = new JMenuBar();
              menu = new JMenu( "Menu0" );
              menu.addMouseListener( mouseListener );
              menuBar.add( menu );
              menuItem = new JMenuItem( "Menu1" );
              menuItem.addMouseListener( mouseListener );
              menu.add( menuItem );
              subMenu = new JMenu( "Menu2" );
              subMenu.addMouseListener( mouseListener );
              menu.add( subMenu );
              menuItem = new JMenuItem( "Menu3" );
              menuItem.addMouseListener( mouseListener );
              subMenu.add( menuItem );
              menuItem = new JMenuItem( "Menu4" );
              menuItem.addMouseListener( mouseListener );               
              subMenu.add( menuItem );
              frame = new JFrame();
              frame.setTitle( "MouseEvent test for JMenu" );
              frame.setBounds( 320, 240, 320, 240 );
              frame.setJMenuBar( menuBar );
              frame.addWindowListener( new WindowAdapter() {
                   public void windowClosing( WindowEvent e ) {
                        System.exit(0);
              frame.setVisible( true );
    }

    Well there are differences across Operating Systems. For example I'm using JDK1.4.2 on XP. When I click on Menu0 I get:
    pressed Menu0
    released Menu0
    clicked Menu0
    It is always better to use a "higher" level event when possible. In this case you should be using an ActionListener, if you want to know when a menu or menuItem is clicked. Or maybe you could use a MenuListener to know when a menu is opened and closed.

  • Interactive Form - button SubmitToSap - OnSubmit event is not triggered

    Please help to resolve triggering OnSubmit event problem.
    I created a test Webdynpro with UI element InteractiveForm.
    The InteractiveForm properties are:
    - displayType = native
    - enabled is checked.
    OnSubmit event  a method is called. The method contains very simple code so I could debug and see if the event is triggered.
    The form was created in SFP with  Layout type = Native.
    The form properies are:
    Default Lang = Javascript.
    Default run =  at client
    Preserve scripting changes to form when saved = Manually
    I have inserted Webdynpro script thru SAP Utilities menu.
    The form has SubmitToSap button and Textfield.
    So now i am trying to debug WDA.
    At runtime WDA opens Adobe form.
    If I enter data into Textfield and then click SubmitToSap button  -  OnSubmit event is triggered. I am happy.
    Then I run WDA again. This time I click  SubmitToSap button  right away without entering data into Textfield. OnSubmit event is NOT triggered this time.
    Is something wrong with my form properties?
    Thank you very much,
    Tatyana.

    Manas, you are right.
    OnSubmit event was not triggered unless U enter value into Textfield because the Textfield property was "Requiered".
    Also just for clarification the form Layout type  is ZCI Layout (not Native like I said above).
    Thank you!

  • Some NetStream statuses are not triggered anymore with FP 11.2

    I'm in charge of developing a video recorder in as3 (http://hdfvr.com) and the video recorder has been working fine for the past 2 years however with the latest FP update (11.2) it has stopped working because these 3 NetStream events are never triggered anymore:
    HDFVR.netStatusHandler(NetStream.Buffer.Empty) _state=uploading
    HDFVR.netStatusHandler(NetStream.Record.Stop) _state=idle
    HDFVR.netStatusHandler(NetStream.Unpublish.Success) _state=idle
    This happens regardless of the media server used (Red5/FMIS/Wowza)
    I have posted this issue in the Adobe Flash Player Bug Database:
    https://bugbase.adobe.com/index.cfm?event=bug&id=3154124
    I have also informed my clients and they're waiting for a fix, unfortunately I am not sure I can do a workaround without those NetStream events.

    I've report the same problem using Flash Player 11.2.
    From test that performed using  Flash Player 11.3 beta 3 the issue seems to be solved, so I can handle NetStream.Buffer.Empty event correctly.
    I'd like to ask your suggestion how is possibile workaround this problem until Flash Player 11.3 is not release as stable version.
    Some users that use automatic update has Flash Player update to last stable release (11.2), I'd like to ask you suggestion how to correct manage this case.
    I'd like to introduce some modification in the code for handle this case for example start a timer and monitor how many data are present in buffer, and when buffer is empty, use same function that should be called when NetStream.Buffer.Empty event is raised?
    I'd kindly like to ask if you can give to me some suggestion.
    Thank you very much
    Maurizio

  • My Customized Workflows are not triggering

    Hi All,
    I customized workflows.But in SWEL my all customized workflows are not triggering from the last two days..Before it was working..In SWE2 also done properly and SWU3 also fine.
    Please give suggession whereis the Problem?
    Regards,
    Soni

    If you look at the details of your event linkage entry (transaction SWE2) you will find that the "Check function module" field is not empty. The function module, when executed for the event you created, raised an exception - which is the standard way for a check function module to prevent a workflow from starting.
    The check function module could be one set up for a workflow start condition, namely SWB_CHECK_FB_START_COND_EVAL. If so, check the workflow start conditions for your workflow (transaction SWB_COND).
    Otherwise, examine the check function module's code to determine what it checks and why it prevents your workflow from starting.
    <a href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/c5/e4b027453d11d189430000e829fbbd/content.htm">SAP documentation: Using (event) linkages</a>

  • Events are not in order

    For some reason my events are not in chronological order. If I go to photos, they are, but in events there are some from August stuck in between events in December, and then many events are missing, which again, still exist under photos..

    View Menu -> Sort Events...

  • My Iphone calendar events are not showing up in iCal when I sync? Syncing has not been an issue till today?

    My Iphone calendar events are not showing up in iCal when I sync? Syncing has not been an issue till today?

    I found this tip from a 2011 discussion on the same topic.
    Open iCal and backup or export your entries. Make a note of the fie name and location, you're going to need them in a minute. Once your backup/export is completed, close the iCal application.
    Open Finder and remove everything inside the "Username/Library/Calendars" folder. For instance, if your username is "Joe", then move everything inside the "Joe/Library/Calendars" folder.
    Open the iSync application. It's located in the "/Applications/" folder. Once iSync is opened, go into the iSync Preferences (iSync -> Preferences) and push/click the "Reset Sync History" button. Then, close the iSync application.
    Re-Open the iCal application and Import (File -> Import) a new calendar. When prompted, use your notes from Step #1 to select the file your created earlier. Once completed, close the iCal application (you should have all of your calendar entries back.)
    Open the iTunes application and connect your Apple iPhone to the computer.
    Within the Advanced section of the Info tab for the Apple iPhone, check the box the overwrites/replaces the Calendar data on the Apple iPhone.
    Click the Apple/Sync button. New, modified and deleted entries should now be syncing correctly.
    That's it! You should be all set and iTunes, iCal and our Apple iPhone should all be playing nicely as friends again. We've used the exact method to repair our own Apple iPhone at least once... maybe even twice.

  • Top-of-page event is not triggered

    Hi,
    I have a problem with top-of-page event. I have a report that shows the results in ALV grid display. But I use "REUSE_ALV_GRID_DISPLAY" not OO alv and there is only one screen with number 1000. On the menu toolbar there is a button that prints the data of ALV in a list using "write" statement. While writing , "top of page" event is not triggered. I expect that it is triggered at the first "write" statement but isn't. Is there anyone who knows the cause of this problem?
    The code is below.
    Thanks.
    Tables ...
    TABLES : mara , makt , ekko , ekpo , zzith_yukh , lfa1 , t001w  , lips ,
             eket .
    global variables
    DATA : BEGIN OF list OCCURS 1,
           zztahsk LIKE ekko-zztahsk ,
           zterm LIKE ekko-zterm ,
           txz01 LIKE ekpo-txz01 ,
           name1 LIKE lfa1-name1 ,
           menge LIKE ekpo-menge ,
           meins LIKE ekpo-meins ,
           fyukl LIKE zzith_yukh-zzdel_flag ,
                             " Yüklenmi&#351; miktar var göstergesi ...
           inco1 LIKE ekko-inco1 ,
           netwr LIKE ekpo-netwr ,
           waers LIKE ekko-waers ,
           bedat LIKE ekko-bedat ,
           zzontar LIKE ekko-zzontar ,
           slfdt LIKE eket-slfdt ,
           tname1 LIKE t001w-name1 ,
           banfn LIKE ekpo-banfn ,
           ebeln LIKE ekko-ebeln ,
           ebelp LIKE ekpo-ebelp ,
           lifnr LIKE ekko-lifnr ,
           mtart LIKE mara-mtart ,
           matkl LIKE mara-matkl ,
           ekgrp LIKE ekko-ekgrp ,
           matnr LIKE mara-matnr ,
           eknam  LIKE t024-eknam,
           bukrs  LIKE ekko-bukrs,
           zzbltur LIKE ekko-zzbltur,
           END   OF list         .
    DATA temp  LIKE list OCCURS 1 WITH HEADER LINE .
    DATA total LIKE list OCCURS 1 WITH HEADER LINE .
    ALV fields
    TYPE-POOLS : slis.
    DATA : gt_fields TYPE  slis_fieldcat_alv OCCURS 1 WITH HEADER LINE .
    DATA : gt_events TYPE  slis_t_event.
    DATA : gs_layout TYPE  slis_layout_alv.
    DATA : gv_title  TYPE lvc_title VALUE 'Günlük Depo Say&#305;m Miktarlar&#305;'.
    DATA : gt_top_of_page TYPE slis_t_listheader.
    selection screen
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME TITLE text-001 .
    *Sat&#305;nalma organizasyonu
    *Sat&#305;nalma grubu
    *Sat&#305;c&#305;
    *Tarih
    *SAS no
    *Dosya no
    SELECT-OPTIONS:
    s_bukrs FOR ekko-bukrs .
    SELECTION-SCREEN SKIP .
    SELECT-OPTIONS:
    s_ekorg FOR  ekko-ekorg OBLIGATORY MEMORY ID eko ,
    s_ekgrp FOR  ekko-ekgrp ,
    s_lifnr FOR  ekko-lifnr ,
    s_ebeln FOR  ekko-ebeln .
    SELECTION-SCREEN END  OF BLOCK a        .
    Define Katalog
    DEFINE fill_catalog .
      gt_fields-fieldname  = &1.
      gt_fields-tabname    = &2.
      gt_fields-seltext_l  = &3.
      gt_fields-seltext_m  = &3.
      gt_fields-seltext_s  = &3.
      gt_fields-checkbox   = &4.
      gt_fields-cfieldname = &5.
      gt_fields-ref_tabname  = &6.
      gt_fields-ref_fieldname  = &7.
      gt_fields-edit       = &8.
      append gt_fields .
      clear gt_fields .
    END-OF-DEFINITION.
    Modify Catalog
    DEFINE modify_catalog .
      gt_fields-seltext_m = &1 .
      modify gt_fields  transporting seltext_m where fieldname = &2 .
    END-OF-DEFINITION     .
    TOP-OF-PAGE.
      write 'top of page'.
      PERFORM top-of-page.
    start-of-selection
    START-OF-SELECTION .
      PERFORM get_data.
      PERFORM listele .
    *&      Form  listele .
    FORM listele .
      PERFORM get_events .
      PERFORM alv_list_header.
      PERFORM get_field_catalog USING 'LIST' .
      PERFORM display_alv    .
    ENDFORM.                    " listele.
    *&      Form  getfield_Catalog
    FORM get_field_catalog  USING p_tabname .
      fill_catalog :
    'EBELN'   'LIST' '' '' '' 'EKPO' 'EBELN'   '' ,
    'ZZTAHSK' 'LIST' '' '' '' 'EKKO' 'ZZTAHSK' '' ,
    'ZZBLTUR' 'LIST' '' '' '' 'EKKO' 'ZZBLTUR' '' ,
    'MATNR'   'LIST' '' '' '' 'MARA' 'MATNR'   '' ,
    'MATKL'   'LIST' '' '' '' 'MARA' 'MATKL'   '' ,
    'TXZ01'   'LIST' '' '' '' 'EKPO' 'TXZ01'   '' ,
    'NAME1'   'LIST' '' '' '' 'LFA1' 'NAME1'   '' ,
    'MENGE'   'LIST' '' '' '' 'EKPO' 'MENGE'   '' ,
    'MEINS'   'LIST' '' '' '' 'EKPO' 'MENGE'   '' ,
    'FYUKL'   'LIST' '' '' '' 'ZZITH_YUKH' 'ZZDEL_FLAG'   '' ,
    'INCO1'   'LIST' '' '' '' 'EKKO' 'INCO1'   '' ,
    'NETWR'   'LIST' '' '' '' 'EKPO' 'NETWR'   '' ,
    'WAERS'   'LIST' '' '' '' 'EKKO' 'WAERS'   '' ,
    'BEDAT'   'LIST' '' '' '' 'EKKO' 'BEDAT'   '' ,
    'ZZONTAR' 'LIST' '' '' '' 'EKKO' 'ZZONTAR' '' ,
    'SLFDT'   'LIST' '' '' '' 'EKET' 'SLFDT'   '' ,
    'TNAME1'  'LIST' '' '' '' 'T001W' 'NAME1'  '' ,
    'BANFN'   'LIST' '' '' '' 'EKPO' 'BANFN'   '' ,
    'EKNAM'   'LIST' '' '' '' 'T024' 'EKNAM'   '' .
      gt_fields-ddictxt = 'M' .
      MODIFY gt_fields  TRANSPORTING ddictxt WHERE fieldname NE space.
      modify_catalog 'Yükleme No'            'VBELN'   .
      modify_catalog 'Malzeme Türü'          'ZZBLTUR' .
      modify_catalog 'Malzeme Tan&#305;m&#305;'        'TXZ01'   .
      modify_catalog 'Sat&#305;c&#305;'                'NAME1'   .
      modify_catalog 'Teslim &#350;ekli'          'INCO1'   .
      modify_catalog 'Döviz Tutar&#305;'          'ZZTOPLAM'.
      modify_catalog 'Döviz Kodu'            'WAERS'   .
      modify_catalog 'Sipari&#351;i Veren'        'TNAME1'  .
      modify_catalog 'Tahmini &#304;thalat Trh.'  'SLFDT'   .
      modify_catalog '&#304;thalata &#304;ntikal Trh.' 'BEDAT'   .
      modify_catalog 'Dosya Onay Tarihi'     'ZZONTAR' .
      modify_catalog 'Talep No'              'BANFN'   .
      modify_catalog 'Dosya Sorumlusu'       'EKNAM'   .
      modify_catalog 'Yük.Göstergesi'        'FYUKL'   .
    ENDFORM.                    " getfield_Catalog
    *&      Form  display_alv
          text
    -->  p1        text
    <--  p2        text
    FORM display_alv .
      DATA lv_repid LIKE sy-repid .
      lv_repid = sy-repid .
      CLEAR gs_layout.
      gs_layout-zebra                 = 'X'.
      gs_layout-colwidth_optimize     = 'X'.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program       = lv_repid
          i_callback_pf_status_set = 'SET_PF_STATUS'
          i_callback_user_command  = 'USER_COMMAND'
          is_layout                = gs_layout
          it_fieldcat              = gt_fields[]
          it_events                = gt_events[]
        TABLES
          t_outtab                 = list[].
    ENDFORM.                    " display_alv
    FORM set_pf_status USING  iv_nodisplay TYPE slis_t_extab.
      SET PF-STATUS 'STANDARD' ."excluding iv_nodisplay.
    ENDFORM.                    " SET_PF_STATUS
    FORM user_command  USING iv_ucomm LIKE sy-ucomm
                      rs_selfield TYPE slis_selfield.
      CASE iv_ucomm .
        WHEN 'PRINT'  . PERFORM print_data .
      ENDCASE       .
    ENDFORM.                    "USER_COMMAND
    FORM get_events .
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = gt_events.
      READ TABLE gt_events WITH KEY name = slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE 'ALV_TOP_OF_PAGE' TO ls_event-form.
        APPEND ls_event TO gt_events.
      ENDIF.
    ENDFORM.                    " getevents
    FORM alv_list_header .
      DATA: ls_line TYPE slis_listheader.
      CLEAR ls_line.
      ls_line-typ  = 'S'.
      ls_line-key  = 'Sat&#305;nalma Org.:'.
      CONCATENATE s_ekorg-low s_ekorg-high
      INTO ls_line-info SEPARATED BY '/'.
      APPEND ls_line TO gt_top_of_page.
      ls_line-key  = 'Sat&#305;nalma Grubu.:'.
      CONCATENATE s_ekgrp-low s_ekgrp-high
      INTO ls_line-info SEPARATED BY '/'.
      APPEND ls_line TO gt_top_of_page.
      ls_line-key  = 'Sat&#305;c&#305;.:'.
      CONCATENATE s_lifnr-low s_lifnr-high
      INTO ls_line-info SEPARATED BY '/'.
      APPEND ls_line TO gt_top_of_page.
      ls_line-key  = 'SAS No.:'.
      CONCATENATE s_ebeln-low s_ebeln-high
      INTO ls_line-info SEPARATED BY '/'.
      APPEND ls_line TO gt_top_of_page.
    ENDFORM.                    " alv_list_header
    FORM alv_top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_top_of_page.
    ENDFORM.                    "TOP_OF_PAGE
    FORM get_data .
      DATA : BEGIN OF tr ,
              menge LIKE eket-menge ,
              dabmg LIKE eket-dabmg ,
             END OF tr ,
             zzfiilytar LIKE zzith_yukh-zzfiilytar  .
    *- Get data ...
      SELECT *
        INTO CORRESPONDING FIELDS OF TABLE list
        FROM ekpo AS a
       INNER JOIN ekko AS b ON bebeln = aebeln
      WHERE b~ebeln IN s_ebeln AND
            b~bukrs IN s_bukrs AND
            b~loekz EQ space   AND
            b~lifnr IN s_lifnr AND
            b~ekorg IN s_ekorg AND
            b~ekgrp IN s_ekgrp AND
            a~loekz EQ space   AND
            a~elikz EQ space .
      LOOP AT list .
        CLEAR tr .
        SELECT menge dabmg
          INTO tr
          FROM eket
         WHERE ebeln = list-ebeln AND
               ebelp = list-ebelp.
          tr-menge = tr-menge - tr-dabmg .
        ENDSELECT.
        IF tr-menge LE 0 .
          DELETE list .
        ELSE .
          list-menge = tr-menge .
          IF tr-dabmg GT 0 .
            list-fyukl = '*' .
          ENDIF .
          SELECT SINGLE butxt INTO list-tname1 FROM t001
            WHERE bukrs = list-bukrs .
          SELECT SINGLE slfdt INTO list-slfdt FROM eket
          WHERE ebeln = list-ebeln AND
                ebelp = list-ebelp .
          SELECT SINGLE name1 INTO list-name1 FROM lfa1 WHERE lifnr = list-lifnr.
          SELECT SINGLE mtart matkl INTO (list-mtart,list-matkl)
          FROM mara WHERE matnr = list-matnr .
          SELECT SINGLE eknam INTO list-eknam FROM t024 WHERE ekgrp = list-ekgrp .
          MODIFY list .
        ENDIF .
      ENDLOOP      .
    ENDFORM.                    " get_data
    FORM print_data .
      LEAVE TO LIST-PROCESSING .
      NEW-PAGE NO-HEADING NO-TITLE LINE-SIZE 229 .
      SET PF-STATUS SPACE .
    PERFORM top-of-page .
    malzeme türü 1005 ler yazd&#305;r&#305;l&#305;r
      PERFORM yazdir_1005 .
    malzeme türü 1005 olmayanlar yazd&#305;r&#305;l&#305;r
      PERFORM yazdir_ne_1005 .
    Sat&#305;nalama gruplar&#305; bilgisi yazd&#305;r&#305;l&#305;r
      PERFORM yazdir_ekgrp .
    ENDFORM.                    " print_data
    FORM top-of-page .
      WRITE : 'ÜLKER GRUBU KONSOL&#304;DE' .
      WRITE AT 40 'Sevkiyat Bekleyen Malzemeler' COLOR COL_HEADING .
      WRITE :  180 sy-uname , sy-datum , sy-uzeit.
      NEW-LINE .
      ULINE 0(229) .
      WRITE :/2 'Rapor Kodu..............:' , (10) sy-tcode .
      WRITE :/2 'Sat&#305;nalma Organizasyonu.:' , (10) s_ekorg-low, '/', (10) s_ekorg-high .
      WRITE :/2 'Sat&#305;nalma Grubu.........:' , (10) s_ekgrp-low, '/', (10) s_ekgrp-high .
      WRITE :/2 'Sat&#305;c&#305;..................:' , (10) s_lifnr-low, '/', (10) s_lifnr-high .
      WRITE :/2 'Sat&#305;nalma Sipari&#351; No....:' , (10) s_ebeln-low, '/', (10) s_ebeln-high .
      NEW-LINE .
      ULINE 0(229) .
    Ba&#351;l&#305;klar yaz&#305;l&#305;r
      FORMAT COLOR COL_HEADING .
      WRITE :
      /(10) 'SAS NO.' CENTERED,
      (6)  'TAHS&#304;S'  CENTERED,
      (5)  'ÖDEME'   CENTERED,
      (5)  'Bel.T'   CENTERED,
      (25) 'MALZEME' CENTERED,
      (25) 'SATICI' CENTERED,
      (12) 'M&#304;KTAR' CENTERED,
      (3)  'BRM' CENTERED,
      (3)  'G' ,
      (7) 'TES.&#350;K.' CENTERED,
      (16) 'DÖV&#304;Z TUTARI' CENTERED,
      (3)  'DB.' CENTERED,
      (13) '&#304;TH.&#304;NTK.TRH.' CENTERED,
      (13) 'DOSYA ON.TRH.' CENTERED,
      (10) 'TAHM&#304;N.&#304;TH.TRH.' CENTERED,
      (20) 'S&#304;PAR&#304;&#350; VEREN' CENTERED,
      (10) 'TALEP NO.' CENTERED,
      (18) 'DOSYA SORUMLUSU' CENTERED.
      ULINE 0(229) .
      FORMAT RESET .
    ENDFORM.                    " top-of-page
    FORM yazdir_1005 .
      DATA ebeln LIKE list-ebeln  .
      SORT list BY zzbltur matnr .
      temp[] = list[] .
      DELETE temp WHERE mtart <> '1005' .
      LOOP AT list WHERE mtart = '1005' .
        CLEAR list-netwr .
        IF ebeln NE list-ebeln OR ebeln EQ space .
          REFRESH total . CLEAR total .
          ebeln = list-ebeln .
          LOOP AT temp WHERE ebeln = list-ebeln .
            list-netwr = list-netwr + temp-netwr  .
            CLEAR total .
            total-txz01 = '*** TKNK.MLZ. TOPLAMI ****' .
            total-meins = temp-meins .
            total-menge = temp-menge .
            COLLECT total .
          ENDLOOP                               .
          PERFORM write_list USING '1'  .
          LOOP AT total .
            PERFORM write_list USING '2'  .
          ENDLOOP .
          AT END OF zzbltur .
            ULINE 0(229) .
          ENDAT .
        ENDIF .
      ENDLOOP .
    ENDFORM.                    " yazdir_1005
    FORM write_list  USING    flag .
    flag 1 1005 için yazd&#305;rma
    flag 2 ise ara toplam
      IF flag = '1' .
       FORMAT COLOR COL_NORMAL .
        WRITE :
        /(10) list-ebeln ,
         (6)  list-zztahsk,
         (5)  list-zterm,
         (5)  list-zzbltur ,
         (25) list-txz01,
         (25) list-name1,
         (12) list-menge,
         (3)  list-meins,
         (3)  list-fyukl,
         (7)  list-inco1,
         (16) list-netwr,
         (3)  list-waers,
         (13) list-bedat,
         (13) list-zzontar,
         (10) list-slfdt ,
         (20) list-tname1,
         (10) list-banfn ,
         (18) list-eknam .
        FORMAT RESET .
      ELSEIF flag = '2'  .
       FORMAT COLOR COL_TOTAL .
        WRITE :
        /(10) '' ,
         (6)  '' ,
         (5)  '' ,
         (5)  '' ,
         (25) total-txz01,
         (25) '' ,
         (12) total-menge,
         (3)  total-meins,
         (3)  '' ,
         (7)  '' ,
         (16) '' ,
         (3)  '' ,
         (13) '' ,
         (13) '' ,
         (10) '' ,
         (20) '' ,
         (10) '' ,
         (18) '' .
        FORMAT RESET .
      ELSEIF flag = '3'  .
       FORMAT COLOR COL_TOTAL .
        WRITE :
       /(10) '' ,
        (6)  '' ,
        (5)  '' ,
        (5)  '' ,
        (25) total-txz01,
        (25) '' ,
        (12) total-menge,
        (3)  '' ,
        (3)  '' ,
        (7)  '' ,
        (16) total-netwr ,
        (3)  '' ,
        (13) '' ,
        (13) '' ,
        (10) '' ,
        (20) '' ,
        (10) '' ,
        (18) '' .
        FORMAT RESET .
      ENDIF .
    ENDFORM.                    " write_list
    FORM yazdir_ne_1005 .
      DATA matnr LIKE list-matnr .
      SORT list BY zzbltur matkl matnr .
      temp[] = list[] .
      DELETE temp WHERE mtart = '1005' .
      LOOP AT list WHERE mtart <> '1005' .
    Her yeni Malzeme için ara toplam yaz&#305;l&#305;r
        IF matnr NE list-matnr AND matnr NE space .
           REFRESH total . CLEAR total .
    Toplamlar al&#305;n&#305;r
          LOOP AT temp WHERE matnr = matnr .
            CLEAR total .
            total-netwr = temp-netwr  .
            total-menge = temp-menge  .
            total-txz01 =  '***     TOPLAM        ****' .
            COLLECT total .
          ENDLOOP                          .
          LOOP AT total .               .
            PERFORM write_list USING '3'  .
          ENDLOOP                       .
          ULINE 0(229) .
        ENDIF                      .
        PERFORM write_list USING '1'  .
        matnr = list-matnr            .
      ENDLOOP                           .
    Toplamlar al&#305;n&#305;r
      LOOP AT temp WHERE matnr = matnr .
        REFRESH total . CLEAR total .
        total-netwr = temp-netwr  .
        total-menge = temp-menge  .
        total-txz01 =  '***     TOPLAM        ****' .
        COLLECT total .
      ENDLOOP .
      LOOP AT total .
        PERFORM write_list USING '3'  .
      ENDLOOP       .
      ULINE 0(229)  .
    ENDFORM.                    " yazdir_ne_1005
    FORM yazdir_ekgrp .
      DATA: BEGIN OF total OCCURS 1 ,
            eknam LIKE list-eknam   ,
            zzbltur LIKE list-zzbltur ,
            sayi TYPE i ,
            END  OF  total          .
      DATA: BEGIN OF gtotal OCCURS 1 ,
            eknam LIKE list-eknam   ,
            zzbltur LIKE list-zzbltur ,
            sayi TYPE i ,
            END  OF  gtotal          .
      DATA: bltur LIKE zzith_bltur OCCURS 1 WITH HEADER LINE .
      DATA: len TYPE i  .
      DATA: wa LIKE total.
      REFRESH temp .
      SELECT * INTO TABLE bltur FROM zzith_bltur .
      CLEAR bltur .
      MOVE : 'ZZZZ'   TO bltur-zzbltur ,  " Sat&#305;r toplam&#305; için ...
             text-002 TO bltur-zztanim .
      APPEND bltur .
      CLEAR list   .
      SORT list BY eknam ebeln .
      DELETE ADJACENT DUPLICATES FROM list COMPARING eknam ebeln .
      LOOP AT list .
        CLEAR : total, gtotal .
        total-eknam = list-eknam .
        total-zzbltur = list-zzbltur .
        total-sayi  = 1 .
        COLLECT total   .
        total-eknam   = list-eknam .
        total-zzbltur = 'ZZZZ' .
        total-sayi  = 1 .
        COLLECT total   .
        gtotal-eknam = text-001 .
        gtotal-zzbltur = list-zzbltur .
        gtotal-sayi  = 1 .
        COLLECT gtotal   .
        gtotal-eknam = text-001 .
        gtotal-zzbltur = 'ZZZZ' .
        gtotal-sayi  = 1 .
        COLLECT gtotal   .
      ENDLOOP      .
      FORMAT COLOR COL_HEADING.
      ULINE AT /1(145).
      WRITE :/
      sy-vline , (15) 'Dosya Sorumlusu' , sy-vline .
      LOOP AT bltur .
        WRITE :(15) bltur-zztanim  , sy-vline .
      ENDLOOP  .
      ULINE AT /1(145).
      FORMAT RESET   .
      total-zzbltur = '0001' .
      MODIFY total TRANSPORTING zzbltur WHERE zzbltur = space .
      gtotal-zzbltur = '0001' .
      MODIFY gtotal TRANSPORTING zzbltur WHERE zzbltur = space .
      SORT total BY eknam .
      LOOP AT total  .
        AT NEW eknam .
          WRITE :/
          sy-vline , (15) total-eknam COLOR COL_HEADING ,
          sy-vline .
          LOOP AT bltur   .
            len = sy-tabix * 18 .
            len = len + 3 .
            CLEAR wa .
            READ TABLE total INTO wa WITH KEY zzbltur = bltur-zzbltur
                                              eknam   = total-eknam .
            WRITE AT len(15) wa-sayi NO-ZERO.
            WRITE sy-vline .
          ENDLOOP    .
        ENDAT      .
      ENDLOOP .
      LOOP AT gtotal  .
        AT NEW eknam .
          FORMAT COLOR COL_TOTAL .
          WRITE :/
          sy-vline , (15) gtotal-eknam ,
          sy-vline .
          LOOP AT bltur   .
            len = sy-tabix * 18 .
            len = len + 3 .
            CLEAR wa .
            READ TABLE gtotal INTO wa WITH KEY zzbltur = bltur-zzbltur
                                               eknam   = text-001    .
            WRITE AT len(15) wa-sayi NO-ZERO.
            WRITE sy-vline .
          ENDLOOP    .
        ENDAT      .
      ENDLOOP .
      ULINE AT /1(145).
      FORMAT RESET .
    ENDFORM.                    " yazdir_ekgrp

    Hi,
    In the function  use the top-of-page event as follows:
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
            EXPORTING
                    I_BYPASSING_BUFFER          =
                    I_BUFFER_ACTIVE             =
                    I_INTERFACE_CHECK           = ' '
                 I_CALLBACK_PROGRAM          = 'ZRPMSLM'
                    I_CALLBACK_PF_STATUS_SET    = ' '
                    I_CALLBACK_USER_COMMAND     = ' '
               <b>  I_CALLBACK_TOP_OF_PAGE      = 'TOP'</b>
    Define whatever to appear in top-of page in a subroutine named TOP.
    Hope this helps.
    Reward if helpful.
    Regards,
    Sipra

  • How can I import photo to computer if my photo were save in event instead of saved photo for ipad1?  Why Photo in event are not detected ?

    How can I import photo to computer if my photo were save in event instead of saved photo for ipad? Photo in event are not detected.

    Importing Personal Photos and videos from your iOS device to your computer.
    http://support.apple.com/kb/HT4083
     Cheers, Tom

  • Commit events are not broadcast because no JMS Transport is available.

    Just set up a new WebLogic 10.3.2 domain and I am seeing this while starting the Admin Server:
    <Mar 1, 2010 6:37:03 PM CST> <Error> <Security> <BEA-000000> <Commit events are not broadcast because no JMS Transport is available. Remote L2 caches will be out of sync.>
    anyone have any idea what this is and what's causing it?

    Hi,
    I followed the instructions given under " Configure the RDBMS security store " ( Step 6 ) and restarted my Server. :-
    +6. In the section labeled Server Synchronization Configuration, specify the appropriate settings for JNDI and JMS so that the RDBMS security store can cache database information in memory correctly. If the RDBMS is running in more than one JVM -- for example, the domain has multiple servers, or other Oracle products are sharing the same RDBMS store with the new domain -- these caches must be synchronized to ensure the integrity of the security data.+
    To configure server synchronization:
    +1. Specify a JNDI user name and password. This can be any valid user in the security realm who has access to JNDI.+
    +2. Create a JMS topic. You may reuse an existing one, if desired. For information, see Configure topics.+
    Caution: Failure to configure JMS notifications in a multiserver domain in which the RDBMS security store is configured may result in a security vulnerability.
    +7. Click Save.+
    +8. To activate these changes, in the Change Center of the Administration Console, click Activate Changes.+
    Not all changes take effect immediately—some require a restart (see Use the Change Center).
    However, I still see the same error :-
    *+<Error> <Security> <BEA-000000> <Commit events are not broadcast because no JMS Transport is available. Remote L2 caches will be out of sync.>+*
    Am I missing something ?
    Thanks,
    Sandeep Seshan

  • Events are not grouped by date

    Recently I had a crash on my iPhoto and had to basically re-input all 60,000 photos. All went well and iPhoto working okay now. Only issue is the events are not grouped by date anymore.  meaning I have several events that are on the same date. All the setting appear to be correct.
    Is there a way to have iPhoto regroup the events all by date?

    The only way to sort events is the view menu --> sort events - Using it you can re-sort events a few ways
    Events are not categorized so there is no way to "re-categorize" them
    What you need to do is to restore your backup of the iPhoto library from before the crash that caused you to import your masters folder into iPhoto
    And probably if you had rebuild the library after the crash you would have been OK - Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - from the resulting first aid window repair permissions and if necessary rebuild your database   --  this will not help on the new library that you created - it has to be done on the bad library that resulted from the crash
    LN

  • Since day light savings, events are not saving in my calendar. Has anyone else had this problem?, Since day light savings, events are not saving in my calendar. Has anyone else had this problem?

    Since day light savings, events are not saving in my calendar. Has anyone else had this problem?, Since day light savings, events are not saving in my calendar. Has anyone else had this problem?

    Greetings,
    I have not heard of that issue although some people have reported events showing an hour earlier / later (though I haven't seen that personally).
    Questions:
    What version of the Mac OS are you running (Apple > About this Mac)?
    Can you make an event and then it just disappears?
    Are you using iCloud / MobileMe / Google / Yahoo / Some other server based calendar?
    Try these in order:
    Go to Apple Menu > System Preferences > Language & Text > Formats > Region. Region should be set to the country of your choice. Do not have it set to "Custom" as this can have unexpected results in the iCal window.
    Go to Apple Menu > System Preferences > Date & Time and make sure the Date and Time are correct and that the correct Time Zone is selected.
    If that doesn't resolve the issue:
    1. First make an iCal backup:  Click on each calendar on the left hand side of iCal one at a time highlighting it's name and then going to File Export > Export and saving the resulting calendar file to a logical location for safekeeping.
    2. Go to iCal > Quit iCal
    3. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    --- NOTE: To get to "Home > Library" in Lion: Click anywhere on the desktop and then click on the "Go" menu at the top of the computer screen while holding down the "option" key on the keyboard.  You will see "Library" in the menu.
    4. Launch iCal and test.
    If the issue persists:
    1. Go to iCal > Quit iCal
    2. Remove the following to the trash and restart your computer:
    Home > Library > Caches > com.apple.ical
    Home > Library > Calendars > Calendar Cache, Cache, Cache 1, 2, 3, etc. (Do not remove Sync Cache or Theme Cache if present)
    Home > Library > Preferences > com.apple.ical (There may be more than one of these. Remove them all.)
    --- NOTE: Removing these files may remove any shared (CalDAV) calendars you may have access to. You will have to re-add those calendars to iCal > Preferences > Accounts.
    3. Launch iCal and test.
    Hope that helps.

  • Hello After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    Hello
    After upgrading iPhoto 9.1.2 when you synchronize the iphone / iphoto ipad events are not copied correctly (this option checked all the photos on itunes).

    I found this other thread discussing this topic, no fix, I will revert to 9.1.1 from Time Machine and wait for a new update.
    https://discussions.apple.com/thread/3023160?

  • In iTunes the Photo events are not the events in iphoto

    Since loaading the latest version on iTunes (10.7) the iPhoto events are not name as they appear in iPhoto and sone categories are just a date with not photo in that event... sone of the date are repeated several times... unsure of what is causing the events categories to mess up... The othe iPhoto categories are correct as for names and albums...
    What can I do to rectify the situation?

    Currently the only way to share your photos a) in the order you want, and b) with the titles you supply is to export them as jpegs, then re-import them, then share. Not exactly elegant (Apple - Are you listening?)

Maybe you are looking for