LCD Problem -- Replace display or use MBP as desktop?

Internal video is usually dead on my MBP 3,1 -- dark grey screen (but not black) with various vertical stripes. External display works fine. Internal display periodically comes back to life for no apparent reason but then fades back to its usual unhelpful state over time or if it is touched, however lightly. Per Apple, I do not have a defective nVidia card. Initally, Apple proposed their $310 fix which I've had twice before (paid by Amex)-- once for a SuperDrive another time for a logic board. Then noticing two slight dings in the case, the Apple genius said that the machine wasn't eligible for the $310 deal, as such machines had to be pristine. This notwithstanding the fact that Apple had previous logged the dings as cosmetic. At that point, the new display went up to $700 and I was told that I'd need a new logic board if I wanted a meaningful warranty. Obviously, I'm not spending $1200 on a three year old laptop. So I decided to do it myself, something the Apple genius conceded made sense.
I've replaced the data cable with no success. My next step is to replace the inverter cable, although I doubt this will do anything because the brightness controls on my dead LCD seem to work fine. That leaves me with inverter (unlikely) and the actual LCD to replace.
Do I go ahead with the LCD which runs from $150-250. If it succeeds, I may get several more months out of my Mac. If I don't, I'm looking at a new logic board which I won't buy, leaving me out $300.
I'd be tempted to suck it up and pay too much for a new Mac but I really need a 15" model with an Expresscard adapter slot -- something that no longer exists. If I buy a new laptop which would be hardship right now, it would likely be a Lenovo W510 (i7 processor, 500gb hard drive, good display for photo editing, etc.) all for $1785. My preference though is to keep this laptop going and put those funds toward a Mac desktop which I also need.
Any suggestions on the display replacement? Shall I go out and do it? What is the likelihood that I'll do it but won't succeed. Could the fault lie with the motherboard, as well?
Thanks for your suggestions.
Max
ps - Time is of the essence. I need to resolve this over the next week.

Thanks for the clear-headed analysis. Ordinarily, I would agree with you especially since I never actually sell old electronics. I just give them to friends and family who are behind me on the technology curve. Here's some additional information.
I've been using the MBP primarily for Photoshop but am finding with CS5 that it is slow. It's my only real computer. I have a Lenovo S10e that runs OSX but that's for fun. I have four external hard drives that use eSATA connectors (I shot 600gb of photos last year alone.) I'm starting to work with video and the MBP stutters on playback. So I've accepted that a MacPro or something like that with a high-end monitor is in my near future. I have to travel next week for an assignment with a working laptop.
I've priced the current line of MBP's and am looking at $3000 which I'd rather put toward my desktop. I can come up with the money but that will set back the desktop project and leave me with a laptop that isn't cut out for the bulk of my work. The 17" which accepts ExpressCards doesn't come in an i7 configuration and isn't very portable. If I go with a 15" model, I still need to keep my old machine around to transfer files on an as-needed basis to a Firewire hard drive.
I've seen many posts in these forums about the nVidia issue with users describing symptoms similar to my own. The solutions have included replacing the data cable, inverter cable, inverter, display and (less often and usually at Apple's expense) the motherboard. Assuming that I can live with the consequences that something else will inevitably break, the question I'd like to find an answer to is whether based upon:
the display occasionally functioning perfectly;
(ii) the external display working perfectly; and
(iii) the graphics card passing Apple's diagnostic test
I can assume that the motherboard is ok - for the moment. (I realize that every time I reopen the case to change wires, disassemble the display, etc. I'm increasing the likelihood that one day the motherboard won't be ok.)
Any thoughts?
Thanks again for your help.
Max

Similar Messages

  • Problem with Display.setCurrentItem() using J2ME-Polish

    Hi,
    I am fairly new to J2ME-polish and have encountered a situation that I am having a problem with. I am loading a form with a number of String Items. When I display the form I would like to focus to the last String Item that has been placed on the form. I have been using Display.setCurrentItem() in J2ME but when I try using it in J2ME-Polish I receive this message :"de.enough.polish.ui.Screen (3022): Screen: unable to focus item (did not find it in the container or is not activatable ) "
    Below is a snippet of my code.
            // si14 in a StringItem defined earlier in the code
            // It is the last stringItem placed into the form
            form.append(si14);
            display = Display.getDisplay(this);
         display.setCurrent(form);
         display.setCurrentItem(form.get(0));Thanks

    http://forums.sun.com/thread.jspa?threadID=686256&messageID=10864566

  • Problem in displaying data using ALV interactive using OOPS

    Hi friends,
    I have created one interactive report using oops..
      on my selection screen i have a select-option  TABNAME for DD02L table with no intervals option.
    ie : i enter table names in that field..
    for example i enter VBAP
                                   MARA,
                                   MARC.       etc
    when i execute i get a basic list which gives some details about the tables.
    now on my basic list when i double click on any row then ie : say if i click on 2nd row , in the back ground based on the index on which i have click iam reading that particular row from the table and from that using the table name iam displaying the all the fields of the table in the ist secondary list....
    Till now its working fine but once when i go back to the back to the basic list and when i click another row... here even if click another row its displaying the same fields of the table which was ist click.
    ie : say ist time i have clicked mara then later vbap.....But its displaying me the mara details instead it should display vbap details...
    I have used refresh_table_display method also.... But its not working fine...
    How can i correct it...
    Regards,
    Kumar.

    Hello Kumar
    I can only guess that you call the second screen (perhaps '0200') within the event handler method for event DOUBLE_CLICK. This is not really a good idea. Instead use a simple trick to overcome this refreshing problem:
    METHOD handle_double_click.
    " Save the row perhaps in a static attribute of your event handler method, e.g.
    .  lcl_eventhandler=>ms_row = e_row.  " ms_row defined as static attribute of event handler class
    " Trigger PAI with a defined ok-code:
      CALL METHOD cl_gui_cfw=>set_new_ok_code
        EXPORTING
         ok_code = 'DETAIL_LIST'.
    ENDMETHOD.
    This method call triggers PAI of your screen which otherwise does not occur after an event has been raised.
    MODULE user_command_0100 PAI.
      CASE gd_okcode.
        WHEN 'DETAIL_LIST'.
           perform DISPLAY_DETAIL_LIST.  " and call screen '0200'
        WHEN OTHERS.
      ENDCASE.
    ENDMODULE.
    The next time you make a double click a new row/index is filled into the static attribute. By triggering PAI (followed by PBO) you ensure a flushing (= refreshing) before the secondary list is displayed.
    Regards
      Uwe

  • LCD problems, replaced cable now lcd has lost color

    I replaced the lcd cable on my powerbook because of lines running horizontally across my screen and now I still have lines running across it and the screen seems to have lost color too.

    Yes, I hooked up powerbook up to my desktop lcd monitor and it displays fine. Previously before replacing the cable I could open or close the monitor and the lines would move/disappear, after replacing the cable and switching it back the lcd looks like its a yellowish tint. I can twist the screen a little and the lines move but the color isn't coming back up.

  • Problem of displaying data using the two RFMs

    Hi All,
    I have an application:
    a) Displaying of table using  BAPI1
    b) Updating the same table and returning the status whether the updation was successful or not.
    for this we have two BAPIs:
    1. BAPI 1: Two import parameters are imported and some  export parameters are displayed.
    2.BAPi 2 : In this rows under the export parameters of BAPI 1 become the import parameters and they update the table and Flag returns the value whether its successful or not?
    I have done the first part of displayin the table.
    How should i update the table in second scenario as i have to use the rows under the export parameters as import parameters?
    Any suggestions on this
    Thanks in advance
    Srikant

    Hi
       So you are able to execute the first BAPI and get the results in a Table say TABLE1.
    Now you want to pass the values in Table1 as Import parameters to BAPI2.
    If that is the case then do the following.
    After you execute BAPI1 and fill TABLE1 with values.
    Loop the table1 and pass the values to BAPI2 as import parameters. Note that in BAPI2 if you are passing multiple values then your import parameter must be declared under the Table Parameter Tab in the RFC.
    Hope that is what you are looking for.
    Let me know if you require any other clarifications.
    regards
    ravi

  • Problem in displaying data using Radiobuttons?

    Hi All,
    I have a requirement where along with some input fields in have three radiobuttons and under each of the radiobuttons there are date fields, now when i click on the first radiobutton the second date field has to be disabled and the a report o/p has to be generated, again when i click on the second radibutton the first date field has to be disbaled and second report o/p has to be generated and when the third one is clicked both the date fields has to be disabled and the third report o/p has to be generated.
    I have written the code for disabling the fields, the problem is when i click on the second radiobutton it does not disable the first date field and is taking a long time in execution and the control is terminating the program.
    The report o/p logic has been written in three different subroutine forms. Please tell me how i can overcome this problem. I am attaching my code in this mail.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for v1 modif id ABC,
                    s_vkorg for v2 obligatory modif id ABC,
                    s_vtweg for v3 obligatory modif id ABC,
                    s_spart for v4 obligatory modif id ABC,
                    s_fkart for v5 obligatory modif id ABC.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    selection-screen begin of line.
    parameters: p1 radiobutton group g1 default 'X' user-command ucomm.
    selection-screen end of line.
    parameters:s_date type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p2 radiobutton  group g1.
    selection-screen end of line.
    parameters:s_date1 type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p3 radiobutton group g1.
    selection-screen end of line.
    selection-screen skip 1.
    selection-screen end of block b2.
    At Selection-Screen Output.
    loop at screen.
    if p1 = 'X' and
    screen-name = 'S_DATE1' or screen-group1 = 'ABC' .
    screen-input = 0.
    modify screen.
    elseif p2 = 'X'
    and screen-name = 'S_DATE' or screen-group1 = 'ABC'.
    screen-input = 0.
    modify screen.
    elseif p3 = 'X' or screen-group1 = 'ABC'.
    check screen-group1 = 'XYZ'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    At Selection-Screen.
    if p1 = 'X'.
    perform dailysummaryinvoice.
    elseif p2 = 'X'.
    perform blockedinvoices.
    elseif p3 = 'X'.
    write:/ 'Display'.
    endif.
    refresh: s_bukrs,
           s_vkorg,
           s_vtweg,
           s_spart,
           s_fkart.
    Please help.
    Regards,
    MD

    Hi friend,
    Check this code i hope it ll be hep full for u.
    *& Report  ZDTK_FI_CRDB
    *& AUTHOR            : D TARUN KUMAR
    *& FUNC CONSULTANT   : ABDUL GANI
    *& TRANSPORT REQ NO. : RD1K902089
    *& PACKAGE           : ZTARUN
    *& TRANSACTION CODE  : ZCRDB
    *& DESCRIPTION : CREDIT DEBIT NOTE FOR CUSTOMER OR VENDOR.
    REPORT  ZDTK_FI_CRDB NO STANDARD PAGE HEADING
                                LINE-COUNT 65(5)
                                LINE-SIZE 80
                                MESSAGE-ID ZTAR_FI
    *&       STRUCTURE DECLARATION
    TYPES : BEGIN OF TY_ADDR,
                    BUKRS TYPE BUKRS,          "COMPANY CODE
                    LIFNR TYPE LIFNR,          "VENDOR NO
                    KUNNR TYPE KUNNR,          "CUSTOMJER NO
                    NAME1 TYPE NAME1,          "NAME1
                    NAME2 TYPE NAME2,          "NAME2
                    ORT01 TYPE ORT01,          "CITY
                    ORT02 TYPE ORT02,
                    PSTLZ TYPE PSTLZ,          "POSTAL CODE
                    STRAS TYPE STRAS,          "STREET
                    ADRNR TYPE ADRNR,          "ADDRESS NO
                    TELF1 TYPE TELF1,          "TELEFHONE NO
                    TELF2 TYPE TELF2,          "TELEFHONE NO 2
                    TELFX TYPE TELFX,          "FAX
             END OF TY_ADDR,
          BEGIN OF TY_LFA1,
                   KUNNR TYPE KUNNR,          "CUSTOMJER NO
                   NAME1 TYPE NAME1,          "NAME1
                   NAME2 TYPE NAME2,          "NAME2
                   ORT01 TYPE ORT01,          "CITY
                   ORT02 TYPE ORT02,
                   PSTLZ TYPE PSTLZ,          "POSTAL CODE
                   STRAS TYPE STRAS,          "STREET
                   ADRNR TYPE ADRNR,          "ADDRESS NO
                   TELF1 TYPE TELF1,          "TELEFHONE NO
                   TELF2 TYPE TELF2,          "TELEFHONE NO 2
                   TELFX TYPE TELFX,          "FAX
            END OF TY_LFA1,
           BEGIN OF TY_DOCM,
                    GJAHR TYPE GJAHR,
                    BELNR TYPE BELNR_D,
                    BUDAT TYPE BUDAT,
                    BLDAT TYPE BLDAT,
                    BLART TYPE BLART,
                    BSCHL TYPE BSCHL,
                    SHKZG TYPE SHKZG,
                    XBLNR TYPE XBLNR,
                    DMBTR TYPE DMBTR,
                    SGTXT TYPE SGTXT,
                    REBZG TYPE REBZG,
                    REBZJ TYPE REBZJ,
                    KUNNR TYPE KUNNR,
                    LIFNR TYPE LIFNR,
             END OF TY_DOCM.
    *&       TABLE DECLARATION
    DATA : T_ADDR TYPE STANDARD TABLE OF TY_ADDR,
    *&       WORK AREA  DECLARATION
           W_ADDR TYPE TY_ADDR,
           W_DOCM TYPE TY_DOCM,
          W_LFA1 TYPE TY_LFA1,
    *&       GLOBLE VARIABLE DECLARATION
           G_KUNNR TYPE KUNNR,
           G_LIFNR TYPE LIFNR,
           DCAMT TYPE DMBTR.
    *&       INITIALIZATION
    INITIALIZATION.
    CLEAR :
    *REFRESH :
    *&       SELECTION SCREEN DECLARATION
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R1  RADIOBUTTON GROUP RAO DEFAULT 'X' USER-COMMAND hit.
    SELECTION-SCREEN COMMENT (50) TEXT-003 FOR FIELD R1.
    PARAMETERS R2  RADIOBUTTON GROUP RAO.
    SELECTION-SCREEN COMMENT (50) TEXT-004 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN END OF BLOCK B2.
    *SELECTION-SCREEN: BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-005.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN BEGIN OF LINE.
    *PARAMETERS R3  RADIOBUTTON GROUP RAJ DEFAULT 'X' USER-COMMAND hit.
    *SELECTION-SCREEN COMMENT (50) TEXT-006 FOR FIELD R1.
    *PARAMETERS R4  RADIOBUTTON GROUP RAJ.
    *SELECTION-SCREEN COMMENT (50) TEXT-007 FOR FIELD R2.
    *SELECTION-SCREEN END OF LINE.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN : END OF BLOCK B3.
    *&       AT SELECTION SCREEN
    AT SELECTION-SCREEN.
           PERFORM VALIDATE_SELECTION.
    *&       AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
           PERFORM SCREEN_OUTPUT.
    *&       START OF SELECTION
    START-OF-SELECTION.
    IF R1 = 'X'.
            PERFORM GET_DOCUMENT_L.
    ELSEIF R2 = 'X'.
            PERFORM GET_DOCUMENT_K.
    ENDIF.
    *&       END OF SELECTION
    END-OF-SELECTION.
    PERFORM DISPLAY.
    *&       TOP OF PAGE
    *TOP-OF-PAGE.
          PERFORM PAGE_HEADER.
    *&      Form  VALIDATE_SELECTION
          text
    form VALIDATE_SELECTION .
    DATA : L_BUKRS TYPE BSID-BUKRS.
    SELECT SINGLE BUKRS FROM KNB1
                        INTO L_BUKRS
                       WHERE BUKRS = S_BUKRS.
    *IF SY-SUBRC <> 0.
    *MESSAGE E001.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    DATA : L_KUNNR TYPE BSID-KUNNR.
    SELECT SINGLE KUNNR FROM BSID
                        INTO L_KUNNR
                       WHERE KUNNR = S_KUNNR.
    *IF SY-SUBRC <> 0.
    *MESSAGE E002.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    endform.                    " VALIDATE_SELECTION
    *&      Form  SCREEN_OUTPUT
          text
    form SCREEN_OUTPUT .
        IF R1 = 'X'.
          LOOP AT SCREEN.
            if screen-group1 = 'GP1'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-group1 = 'GP2'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    endform.                    " SCREEN_OUTPUT
    *&      Form  GET_DOCUMENT_L
          text
    FORM GET_DOCUMENT_L .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSIK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSIK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_LFA1.
    ELSE.
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_LFA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR VENDOR' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_L
    *&      Form  GET_LFA1
          text
    FORM GET_LFA1 .
    SELECT SINGLE LIFNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM LFA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE LIFNR = W_DOCM-LIFNR.
    ENDFORM.                    " GET_LFA1
    *&      Form  GET_DOCUMENT_K
          text
    FORM GET_DOCUMENT_K .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSID
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSID INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_KNA1.
    ELSE.
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAD
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAD INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_KNA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR CUSTOMER' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_K
    *&      Form  GET_KNA1
          text
    FORM GET_KNA1 .
    SELECT SINGLE KUNNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM KNA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE KUNNR = W_DOCM-KUNNR.
    ENDFORM.                    " GET_KNA1
    *&      Form  DISPLAY
          text
    FORM DISPLAY .
    LONG TEXT *************************
    *DATA : BEGIN OF inline OCCURS 0,
    *END OF inline.
    *TYPES: BEGIN OF TY_LONGT,
                   tdformat TYPE tdformat,
                   tdline TYPE tdline,
          END OF TY_LONGT.
    *DATA : TLONGT TYPE STANDARD TABLE OF TY_LONGT,
          WLONGT TYPE TY_LONGT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    *DATA: MATNR LIKE PBIM-MATNR.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: BEGIN OF HTEXT.
    INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    CONCATENATE S_BUKRS W_DOCM-BELNR S_GJAHR '002' INTO  TNAME.
    *SEPARATED BY SPACE.
    DATA : W_STXL TYPE STXL.
    SELECT SINGLE * FROM STXL INTO W_STXL
                             WHERE TDNAME = TNAME.
    IF NOT W_STXL IS INITIAL.
    *SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
    *MOVE PBIM-BDZEI TO TNAME.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                        = SY-MANDT
        ID                            = W_STXL-TDID
        LANGUAGE                      = W_STXL-TDSPRAS
        NAME                          = TNAME
        OBJECT                        = W_STXL-TDOBJECT
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
        HEADER                        = HTEXT
      TABLES
        LINES                         = LTEXT
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LTEXT.
    IF LTEXT-TDLINE NE ''.
    MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
    APPEND DTEXT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    LONG TEXT *************************
    CUSTOMER / VENDOR NO *************************
    DATA : CUVE(10).
    IF R1 = 'X'.
    CUVE = W_ADDR-LIFNR.
    ELSEIF R2 = 'X'.
    CUVE = W_ADDR-KUNNR.
    ENDIF.
    CUSTOMER / VENDOR NO *************************
    CR / DR DATA *************************
    IF DCAMT IS INITIAL.
    SELECT SINGLE DMBTR FROM BSIS INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ .
                          ( KOART = 'D' OR KOART = 'K' ).
    ENDIF.
    CR / DR DATA *************************
    DATA: CNAME TYPE BUTXT.
    SELECT SINGLE BUTXT FROM T001 INTO CNAME
                       WHERE BUKRS = S_BUKRS.
    DATA : NAME(60),
           STREET(60),
           TELFX(60).
    CONCATENATE W_ADDR-NAME1 W_ADDR-NAME2 INTO  NAME
    SEPARATED BY SPACE.
    CONCATENATE W_ADDR-ORT01 W_ADDR-ORT02 'POSTAL CODE :' W_ADDR-PSTLZ INTO  STREET
    SEPARATED BY SPACE.
    CONCATENATE 'Tel No.:' W_ADDR-TELF1 W_ADDR-TELF2 'FAX :' W_ADDR-TELFX INTO  TELFX
    SEPARATED BY SPACE.
    DATA : CRDB(20),
           CRDBA(16),
           BALC TYPE DMBTR.
    IF W_DOCM-SHKZG = 'S'.
    CRDB = 'Debit Note No. :'.
    CRDBA = 'DEBIT'.
    BALC = DCAMT + W_DOCM-DMBTR.
    ELSEIF W_DOCM-SHKZG = 'H'.
    CRDB = 'Credit Note No. :'.
    CRDBA = 'CREDIT'.
    BALC = DCAMT - W_DOCM-DMBTR.
    ENDIF.
    SKIP 5.
    *FORMAT INVERSE.
                ULINE 03(77).
    WRITE : 03 SY-VLINE, 80 '|',
            /03 SY-VLINE, NAME, 60 'No.:' COLOR 7, CUVE COLOR 7, 80 '|',
            /03 SY-VLINE, W_ADDR-STRAS, 80 '|',
            /03 SY-VLINE, STREET, 80 '|',
            /03 SY-VLINE, TELFX, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 05 CNAME COLOR 2,  80 '|',
            /03 SY-VLINE, 36 CRDB RIGHT-JUSTIFIED, 59 W_DOCM-BELNR, 71 W_DOCM-GJAHR, 80 '|',
            /03 SY-VLINE, 58 'DATE :', W_DOCM-BUDAT, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|'.
    IF NOT DTEXT IS INITIAL.
    LOOP AT DTEXT.
    WRITE : /03 SY-VLINE, 05 DTEXT-TDLINE COLOR 1, 80 '|'.
    ENDLOOP.
    ELSEIF W_DOCM-SGTXT NE ''.
    WRITE : /03 SY-VLINE, 05 W_DOCM-SGTXT COLOR 1, 80 '|'.
    ELSE.
    WRITE : /03 SY-VLINE, 80 '|'.
    ENDIF.
    WRITE : /03 SY-VLINE, 80 '|',
    *WRITE : /03 SY-VLINE, TNAME, 80 '|',
           /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 08 'WORKING OF INTEREST CALCULATION AS ON                                   ' COLOR 4,
             47 ASON COLOR 4, '  [ 360 DAYS BASIS ]' COLOR 4, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 11 'DATE', 23 'INVOICE', 41 CRDBA, 55 'BALANCE', 64 'DAYS', 70 'INTEREST', 80 '|',
            /03 SY-VLINE, 23 ' AMOUNT', 41 'AMOUNT', 55' AMOUNT', 70 ' @ 8.00% ', 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 06 W_DOCM-BUDAT, 15 DCAMT, 32 W_DOCM-DMBTR, 47 BALC, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 10 'PREPARED BY', 35 'ACCOUNTANT', 60 'MANAGER', 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    ENDFORM.                    " DISPLAY
    Thanks & Regards,
    D Tarun Kumar.
    Edited by: Devalla Tarun Kr. on Aug 28, 2008 3:40 PM

  • Problem in displaying PDF using JSP

    I stream a PDF to the browser in my JSP. I set the content type in response header to "application/pdf".
    The pdf gets displayed most of the times. Sometimes the browser displays some junk characters.
    Need help in preventing the browser displaying these junk characters occassionally
    Thanks,
    Ramesh

    <%@ page import="java.io.*" %>
    <%@page import="java.io.BufferedInputStream"%>
    <%@page import="java.io.DataInputStream"%>
    <%@page import ="java.io.File"%>
    <%@page import="java.io.FileInputStream"%>
    <%@page import="java.io.FileNotFoundException"%>
    <%@page import="java.io.IOException"%>
    <%
    int i;
    boolean fileexist = false;
    File filename = null;
    BufferedInputStream br = null;
    FileInputStream fr = null;
    OutputStream fout = response.getOutputStream();
    BufferedOutputStream bout = new BufferedOutputStream(fout);
    filename = new File("C:/Documents and Settings/Zunotech011/My Documents/NetBeansProjects/pdfread/build/web/whitepaper.pdf");
    fileexist = (filename.exists() && filename.canRead());
    if (fileexist)
    response.setContentType("application/pdf");
    response.setHeader("Content-disposition","attachment; filename='newfile.doc'");
    byte[] bytes = new byte[256];
    fr = new FileInputStream(filename);
    out.print(fr);
    while ( (i = fr.read(bytes)) > 0)
    bout.write(bytes,0,i);
    fr.close();
    bout.close();
    else
    %>

  • Problem in displaying images using JLabel in Netbeans

    hi all,
    i am trying to display an image on JLabel in Netbeans.The image is visible in the design view but not displayed in the runtime.Can anyone help me out with suggestions???

    Duplicate - answer here http://forum.java.sun.com/thread.jspa?threadID=5153605&messageID=9578626#9578626

  • Problem in displaying rows using hGrid

    Hi everyone,
    I'm having diffilculties in creating hGrid
    -> I have one table with columns Employe_number, Last_name, and Manager_id.
    -> Created EO
    -> Created VO and VL
    I expect to retrieve a row similar to figure below
    Lastname..........................................Emplno
    Victor.............................................1
    .....Rockwell......................................2
    ..........Ford.....................................21
    ...............Mel.................................211
    .....Chan..........................................3
    ..........Madison..................................31But I only get the direct report
    Lastname..........................................Emplno
    Victor...............................................1
    .....................................................2
    .....................................................3People under Rockwell and Chan are not populated..
    This is similar to tutorial's hGridPG but I gues I missed out something.
    Appreciate for any help.
    Thanks,
    Elmer
    Edited by: Elmer on Jan 30, 2010 12:13 AM

    Hi everyone,
    I was able to solve this problem. It's the value i put in the ancestor node.
    From /oracle/apps/per/xxTree/webui/MainPG.TreeRN
    To /sm/oracle/apps/per/xxTree/webui/MainPG.TreeRN
    Elmer

  • Problem connecting to rdp using RemoteApp and Desktop

    I am having trouble connecting to a remote app server using the Remote App and Desktop connections feature on 2012 R2. It is a domain server. It works with most user but not with a few. I can put the web address in it ask for and it comes up and says error
    in connecting. please contact admin. I have tried signing off and rebooting the physical server. but no luck on it connecting. I can get it connect through the internet site and on a different server. How to fix when there is no error number. 
    Thanks
    AC

    Hi,
    Since it works for most users I think this could be a permission issue with the rest. For your information:
    Assign Domain Users and Domain Groups to a RemoteApp Program
    http://technet.microsoft.com/en-us/library/dd851539.aspx
    Hope this helps.

  • Thunderbolt display problems using MBP with lid closed

    I am experiencing a very reproducible problem since purchasing aThunderbolt display to use with a recent (1 month old) Macbook Pro 13"2.7GHz i7.
    I use my MBP with lid closed with myThunderbolt display. If Ithen allow the MBP to sleep and power down, on restarting it the WiFi hasstopped working- the menu bar says I am connected by WiFi but Safari will notconnect to the internet and Time Machine cannot connect to the Airport/TimeCapsule to backup. Nothing I do will fix it (shutting down all programs, turingWiFi off then on) and so I have to shutdown/reboot BUT THEN the MBP freezesduring shutdown (waiting 15, 20, 30 minutes!) and I have to hold down the powerbutton (hard reboot). Once I reboot everything works fine UNTIL I take a breakand the computer goes to sleep again.
    Doesn't seem to be a problem with the MBP lid open, but I needto test this a bit more to be sure...
    On top of this the Bluetooth trackpad now keeps going on andoff; connected, not connected despite being near or the computer. Veryirritating at best, unusable at worst. This only started to be a major problem(every 10-15 minutes or so) when I started to use the Thunderbolt display.
    These problems seems to be in some ways similar to anotherthread:
    https://discussions.apple.com/message/16205098#16205098
    ("Major problemswith Thunderbolt display & MBAir")
    I have applied the recent Thunderbolt Firmware update, and SMC& PRAM/NVRAM resets. Interestingly these seemed to work initially but thenafter a prolonged power-down period the problem has recurred. Back to square 1.
    Any ideas out there?

    Just to be clear, have you installed everything that you find on this page?
    http://support.apple.com/kb/HT4644
    I just talked to Apple Care about Thunderbolt issues in general and even though I already had the Thunderbolt Software Update installed, he had me reinstall it.  If you go to this page:
    https://discussions.apple.com/message/16889000#16889000
    you can read in detail about the issues I was having which have for the most part been remedied (for now at least!)
    The Thunderbolt cable definitely transfers heat for some reason even when there isn't a high CPU utilization.  The process 'kernel_task' seems to be where the API for thunderbolt is running.  But for some reason, the behavior of CPU Utilization to Fan Speed is amplified when connected to the TBD.
    Apple Care is researching it.

  • Using MBP with Viewsonic LCD

    Hi, I am trying to use a ViewSonic Monitor (1680X1050, dynamic contrast 4000:1) with my MBP (leapord 10.5.2). I cannot get the colors to look normal - any suggestions?

    Sure. If I am showing a slide from a presentation, the whole slide is displayed on the MBP screen but only a portion of the slide is displayed thru the LCD projector onto the screen. It looks as if the MBP display settings need to be adjusted for the presentation. I am thinking that is the problem, because I can actually click on the presentation slide displayed on the MBP and move it around the computer screen so that it is correctly displayed thru the LCD projector onto the display screen. I am just not sue which display setting I should use when projecting thru an LCD projector.

  • Using Boot Camp to install Windows XP: problems with display going blank

    I have a new Mac mini (early 2009) connected to an older NEC MultiSync LCD (VGA only) display through a KVM.
    I initially used the Apple Mini DisplayPort to VGA adapter to make the display connection.
    All worked fine with Mac OS X, but when I attempted to use Boot Camp to install Windows XP (Home), the display would go blank with the display saying "no signal" at some point during the install and I couldn't get the mini's display back without power cycling the mini. Numerous attempts at removing the Boot Camp partition, re-partitioning, and retrying resulted in nothing but frustration. I typically had to force the mini to boot from the OS X install DVD or Mac partition to make the mini usable again.
    I have used my LCD display and KVM combination with a variety of computers running a variety of operating systems, including older Mac minis running both Mac OS X and XP, with no problems. And I intend to keep using it, so I wasn't going to assume the problem was there!
    After noting that Apple had already released a [firmware update|http://support.apple.com/downloads/Mini_DisplayPort_to_VGA_FirmwareUpdate] for this adapter to address "[possible intermittent flickering and compatibility issues|http://support.apple.com/kb/HT3492]", I double checked that it was up to date--and it was. But, it made me suspicious that this adapter might have some more problems and be the source of the troubles I was experiencing.
    So, I got an Apple Mini-DVI to VGA adapter and tried that.
    No more display problems! Everything works fine with Mac OS X. Windows XP installed without so much as a flicker, and it works smoothly with my setup.
    I'm curious if I'm the only one who was affected by this problem?

    Restart your Mac while holding down the Alt/Option-key until you get to the Boot Selection Screen.
    Choose to boot OSX.
    Use the BootCamp Assistant to remove the Windows partition.
    Go to System Preferences then Startup Volume and rest the default to be your OSX volume.
    Reboot your Mac again.
    Follow the instructions from here http://support.apple.com/kb/TS3173 and use the BootCamp Assistant again to install Windows 7
    Stefan

  • I WANT TO BUY A MAC BOOK PRO. MUST I WAIT FOR THE ONE WITH RETINA DISPLAY. WILL THE FACT THAT THERE IS NO CD ROAM BE A PROBLEM. CAN YOU USE A EXSTERNAL CD ROAM ON A MAC?

    I WANT TO BUY A MAC BOOK PRO. MUST I WAIT FOR THE ONE WITH RETINA DISPLAY. WILL THE FACT THAT THERE IS NO CD ROAM BE A PROBLEM? CAN YOU USE AN EXSTERNAL CD ROAM WITH A MAC?

    Apple will gladly sell you a color coordinated and texture matching external SuperDrive to go with your Retina'ized MBP for about $80 bucks.
    Note that those models are completely sealed with no serviceable or upgradeable parts inside. So if you decide to bite the bullet, be sure to customize its guts to your heart's content from the get-go as no further change will be possible. This means CPU speed, amount of RAM and size of the solid state drive. Other external options, like the Superdrive, can be added later.

  • How can I use an external display with my MBP lid closed and disconnected to power?

    I know that I can use an external display when my MBP lid is closed and it is connected to power. I was wondering why it does not work when the power cable is removed.
    I only use an external display when I am at home so my MBP acts like a Mac Pro or Mac Mini in that way, but it is not good to leave the battery charging constantly on a MBP so I want to disconnect the power and use external display and have the lid closed. Is this possible or do I have to leave my lid open when running on battery power?

    I'm plugged into my wall socket at least 90% of the time - probably more. I always make sure that I take my MBP off mains about once every two weeks and let it run down to about 30-40% and then plug it back up. This keeps the ions flowing and the battery healthy. My MBP will be one year old on March 20, 2013, and my battery health is still at 99%. I run in clamshell mode most of the time now - since I bought a 27" Apple Thunderbolt Display. Only occasionally am I off mains - and then because I'm exercising my battery, usually.
    Don't worry about running of mains most of the time - just be sure and unplug about once every two weeks (or twice a month) and let your battery dip to the 30-40% mark and you'll be fine.
    Good luck,
    Clinton

Maybe you are looking for

  • Dunning procedure and interest calculation

    Hi All, usually in dunning procedure, the interest is calculated on over due items based on the period from Last Dunning date to run date. If the customer is never dunned before and this MDAT is never populated, how will the program generally calcula

  • Error while uploading file in BPS

    Hi all, I am getting an error while uploading file to BPS through web interface I get a red stop button with error message : error while calling up RFC. when i double click the red stop button, i get no long text but the error message I get is UPC 20

  • Free Self Signing Midlet for Series 60 3'rd Edition

    Hi folks, I just read a great blog about self signing midlets with your own certificate and run them successfully atleast in Series 60 2'nd ed. phones. and this whole process is absolutely free. Just read the blog, follow the procedure and u are read

  • Post a custom event with jsp portlet

    I have a portal page which contains a jsp portlet and a couple of other portlets. The jsp has several links and when the links are clicked and the page is redrawn on the portal, I want the jsp portlet to fire events to which the other portlets in the

  • I can't reproduce correctly a reference file .mov in full screen in iTunes

    Hi everybody. Today I have been trying to organize my film collection in iTunes. First, I read that the best way if I had the films in a hard drive was creating a reference file, called .mov. I tried different ways to create it, first with QuickTime