WRITE STATEMENT IS GETTING EXECUTED BUT NOT GETTING DISPLAYED

HII All,
i hv created a selection screen with push button. Now when i m clicking that pushbutton, output is not getting displayed..when i debug program ,control enters in switch case and also executes write statement but write statement is not getting displayed.. below is the code ..
SELECTION-SCREEN BEGIN OF BLOCK INPUT WITH FRAME TITLE TEXT-001.
  SELECTION-SCREEN PUSHBUTTON 10(20) TEXT-002  USER-COMMAND FIR.
  SELECTION-SCREEN PUSHBUTTON 35(20) TEXT-003  USER-COMMAND SECOND.
SELECTION-SCREEN END OF BLOCK INPUT.
       WA-EMP_NO = 123.      
        WA-EMP_CO = 'A'.
        WA-EMP_N = 'APOORV'.
        APPEND WA TO IT_TAB.
AT SELECTION-SCREEN.
CASE SY-UCOMM.
WHEN 'FIR'.
PERFORM SUB1.
WHEN 'SECOND'.
        APPEND LINES OF IT_TAB FROM 2 TO 3 TO IT_TAB1.
        WRITE:/ 'SECOND INTERNAL TABLE CONTENTS'.
        LOOP AT IT_TAB1 INTO WA1.
        WRITE:/15 SY-TABIX, WA1-EMP_NO NO-ZERO, WA1-EMP_CO, WA1-EMP_N.
        ENDLOOP.
ENDCASE.
FORM SUB1.
LOOP AT IT_TAB INTO WA.
          WRITE:/ SY-TABIX, WA-EMP_NO NO-ZERO, WA-EMP_CO, WA-EMP_N.
ENDLOOP.
ENDFORM.
Plz help me..
Edited by: Julius Bussche on Jan 29, 2009 1:40 PM
Code tags added and please dont use Caps-Lock.

HI,
SELECTION-SCREEN BEGIN OF BLOCK INPUT WITH FRAME TITLE TEXT-001.
SELECTION-SCREEN PUSHBUTTON 10(20) TEXT-002 USER-COMMAND FIR.
SELECTION-SCREEN PUSHBUTTON 35(20) TEXT-003 USER-COMMAND SECOND.
SELECTION-SCREEN END OF BLOCK INPUT.
WA-EMP_NO = 123.
WA-EMP_CO = 'A'.
WA-EMP_N = 'APOORV'.
APPEND WA TO IT_TAB.
* AT SELECTION-SCREEN.                 "Comment this
START-OF_SELECTION.                     " Add this
CASE SY-UCOMM.
WHEN 'FIR'.
PERFORM SUB1.
WHEN 'SECOND'.
APPEND LINES OF IT_TAB FROM 2 TO 3 TO IT_TAB1.
WRITE:/ 'SECOND INTERNAL TABLE CONTENTS'.
LOOP AT IT_TAB1 INTO WA1.
WRITE:/15 SY-TABIX, WA1-EMP_NO NO-ZERO, WA1-EMP_CO, WA1-EMP_N.
ENDLOOP.
ENDCASE.
FORM SUB1.
LOOP AT IT_TAB INTO WA.
WRITE:/ SY-TABIX, WA-EMP_NO NO-ZERO, WA-EMP_CO, WA-EMP_N.
ENDLOOP.
ENDFORM.

Similar Messages

  • Using WRITE statement to get --- Page : 1 of 10

    I rcv some answer yesterday about the page no,
    Re: Using WRITE statement to get --- Page : 1 of 10
    but actually I wanted to write the page no on top-of page in a ALV report....
    how can i achieve that, that anyone with more concrete answer..more examples....
    Thanks..

    Hi,
    Did you check this:
    printing page numbers in report
    Eddy

  • Spool Error - Spool created but not opening/displaying. Message no SP01R042

    Dear All,
    In the ECC Production System, for SD documents Spool is  created but not opening/displaying.
    Message no SP01R042
    When we check the short dump for the user,
    The dump is -
    - POSTING_ILLEGAL_STATEMENT
    - Statement "CALL SCREEN" is not allowed in this form.
    Please help. Perfect answers will be definitely rewarded.
    Thanks & Regards,
    Sameer

    Hi Sri,
    Try to setup the printer at OS LEVEL.
    then,
    If on Windows---use method C.
    if not,
    use method U and map to your printer queue at OS level.
    Hope this resloves this issue.
    Reward Pts if useful
    Regards,
    Malti

  • How to remote desktop user can read, write ,modify and traverse folder but not execute?

    Now I ceate a user accout whis is user type and put him into remote desktop group.
    he can login this server by remote desktop.
    My server is windows 2003 but not in nt domain and  it is a workgroup computer.
    I want to limit him access right on one folder in which have many folders and .exe file.
    I only want he can read , write,modify file and traverse folder but not execute any .exe file.
    How can I implement this through NTFS.
    Please give me some advice.

    Hi,
    I think you could using advanced option to configure the file or folder permission:
    http://technet.microsoft.com/en-us/library/bb727008.aspx
    Regards.
    Vivian Wang

  • TS3999 ipad calendar:  events synch from mac to ipad in month display but not week display

    ipad calendar:  events synch from mac to ipad in month display but not week display

    finger trouble - it's all there.  tx

  • ITunes will not load - The program executes, but no GUI display

    Hey guys,
    I have iTunes 8.0.1 installed on a Windows XP Pro computer. It was a new installation of iTunes.
    After installing, I try to run iTunes, and all i see is the mouse changing to a timer for 2 seconds then reverting back to the pointer, but no application shows.
    I have tried reinstalling iTunes which does not work and I have both scanned my computer for viruses and spyware with F-secure and Spybot search and destroy respectively and have found nothing.
    Plugging in my iPod does not help.
    I have also tried using msconfig to disable all process and tried starting itunes and also disabling all but apple processes but also that does not work.
    I also tried to download the quicktime standalone to reinstall and that has not worked either.
    Can someone please give me some heads up as to how to proceed?
    Thank you very much,
    Jeff

    Can really nobody help me? I cant use my iPod without iTunes!

  • PB detects projector but not 20" Display

    I'm having a strange problem when connecting my 15" PowerBook G4 Ti DVI to a new 20" Apple Cinema Display (ACD). When I first got the display, I was able to connect just fine for about 8 weeks. I went on a trip and since my return, the PB won't detect the display.
    I took the PB to a Mac store and tried connecting to another 20" ACD... no luck. This lead me to believe that the PB display adapter was shot. However, I just tried to connect a Benq digital projector via VGA and the PB detects the projector without issue and works in both dual display and mirroring modes.
    So far I have reset the PRAM, the NVRAM, and the PMU, but it didn't help.
    I've also repaired permissions and repaired the disk (no errors found). Again, no luck.
    Finally, I tried closing the lid on the PB and clicking the external mouse to see if I could force the PB to display to the external 20" ACD. The technique worked for the Benq projector, but failed for the ACD.
    At this point, I'm not even sure how else to troubleshoot this issue, let alone fix it.
    Anyone have any ideas what might be causing this? Could it be a corrupted driver? Is there any way to reload Apple display drivers without having to do a fresh OS install?
    Your help is greatly appreciated!
    15" PowerBook G4 Ti DVI   Mac OS X (10.4.8)   20" Apple Cinema Display

    Hi, Wesley. Is it possible that your monitor's DVI cable has been damaged? You've verified that your DVI port is good, and also that your DVI->VGA adapter (and of course the projector's VGA cable) are good. If the DVI cable is detachable from the monitor, I'd try a different one and see whether the results are better.
    I took the PB to a Mac store and tried connecting to another 20" ACD... no luck. This lead me to believe that the PB display adapter was shot.
    When you tested with the display in the store, were you using your own display cable or the store's? Why did that test, which failed, suggest to you that your display adapter was bad? It wasn't in use when you connected a DVI display to a DVI Powerbook, was it? What did the store staff say when your Powerbook failed to detect their display?
    You do have a warranty and free phone support for the display; I think I'd go ahead and contact AppleCare about the problem and see whether someone there can help you. I see you've also posted in the Displays forum here; that was a good idea too.

  • Force password on system wakeup but not on display wakeup

    Hi everybody,
    is it possible to disable the necessary of a password when the display times out but force a password if the lid is closed and opened up again?
    I've found the possibility to set a timeout for both of them coupled in Lion. But I want the system never to ask a password when the screen goes to sleep but always ask a password when the lid is closed and opened up again.
    Thanks in advance for your help.

    Ramonekalsaw
    I just wanted to inform you that I went to my local Apple Store and the technical staff told me the keychain issue should to be looked at by them and to bring in iMac to figure out this issue. It should not be figured out by yourself as it could be a critical security problem.
    Pashue

  • VPRS condition to use, but not to display to user

    Hi,
    We have a requirement to use VPRS condition type in billing documents. However, the values in this condition should not be visible to the users.
    Please suggest, if this is possible and how.

    Hi
    Check OSS note 105621
    http://www.sapfans.com/forums/viewtopic.php?t=80256
    Regards
    Edited by: Dublin on Dec 24, 2009 12:42 PM

  • Footer Not Getting Displayed IN OO ALV

    HI Experts,
    I am using OO ALV and wish to display a footer for it.
    but the footer is not getting displayed.

    Footer for each page means you should use the EVENT END_OF_PAGE this will trigger , but not in display, but when you print the report it will work.
    Footer at the end_of report then you have to use END_OF_LIST event.
    BCALV_TEST_LIST_EVENTS
    check the above program to test the events.

  • How to use Write statement along with ALV output

    Hi expert,
    currently i have a requirement where i am first displaying message with write statement and after that ALV should be displayed ...something like below:
    vendor number is wrong.
    material number is wrong.
    plant is wrong.
    and then here ALV output -list of records updated in the database.
    but as of now the ALV is shown first and when going back then the write message information is dispayed.
    can anyone help how we can get this in only one screen?
    Thanks!!!
    Rajesh

    May below example give you some idea.
    TYPE-POOLS: slis.
    DATA: BEGIN OF it_kna1 OCCURS 0,
            kunnr TYPE kna1-kunnr,
            name1 TYPE kna1-name1,
            ort01 TYPE kna1-ort01,
          END OF it_kna1.
    DATA: it_fcat TYPE slis_t_fieldcat_alv WITH HEADER LINE.
    START-OF-SELECTION.
      SELECT kunnr name1 ort01
        FROM kna1 INTO TABLE it_kna1 UP TO 10 ROWS.
    END-OF-SELECTION.
      WRITE:/ 'Write Statement Display' HOTSPOT ON.
    AT LINE-SELECTION.
      CLEAR it_fcat.
      it_fcat-fieldname = 'KUNNR'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'Customer'.
      APPEND it_fcat.
      CLEAR it_fcat.
      it_fcat-fieldname = 'NAME1'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'Customer Name'.
      APPEND it_fcat.
      CLEAR it_fcat.
      it_fcat-fieldname = 'ORT01'.
      it_fcat-tabname = 'IT_KNA1'.
      it_fcat-seltext_l = 'City'.
      APPEND it_fcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          i_callback_program = sy-repid
          it_fieldcat        = it_fcat[]
        TABLES
          t_outtab           = it_kna1[].

  • Mini Displayport to DVI working in Bootcamp but not in Leopard

    I've got a new unibody MBP together with a mini displayport to dvi adapter.
    When I connected the dvi cable with the MDP2DVI adapter to my new MBP and my 3-months-old Benq 20" LCD monitor, nothing shown up no matter how I tried. The monitor just kept saying no signal could be detected.
    Being frustrated so I did some googling, and I'm surprised by the vast number of people who have got problems with the external display!! I really didn't notice this before I decided to buy this MBP and I'm a little regretted, coz the 2nd monitor is so essential to the productivity of my work...
    After searching around for a solution for some time, I am pessimistic of waiting for a solution from apple as I see some people had already address this issue in late 2008 but till now seems no solution had came out.
    Last night when I use bootcamp to enter Windows XP, surprisingly it can recognize my external display!!! So now I am quite sure that it's the problem of Leopard but not the display hardware nor the adapter nor my monitor/cable. Did anybody have the similar problem as me tried this in bootcamp??

    keepyourpower,
    For what its worth I've been having much the same issue with my Macbook Pro. Leopard will refuse to see the external display while Windows Vista on bootcamp 90% of the time will but not without some effort. I've been able to get Leopard to use the display after going in to Windows and manually selecting display attached in the display properties menu. It doesn't always work but it will sometimes.
    I'm 100% sure there is a flaw in the logicboard on some of the 2.4 Ghz that is causing this issue. I recently sent my portable in for repairs and they replaced the display which is why it was in and the Logicboard. I'm not sure why they replaced my Logicboard nothing was wrong with it, but with the new one its having much the same problem as you. As I said before I'm 100% sure this is a hardware defect in the Logic Board and if you are within your 14 day return window I'd see about asking your local Apple store to exchange the unit for a new one.
    Not really sure if this will help you at all but didn't want you to think you were alone with this issue..

  • A problem about WRITE statement

    Hi all
    I want to use the WRITE statement in the program.But when I write it ,the result doesn't show all in the screen . It only shows a part of the result.
    CALL TRANSFORMATION id
      SOURCE root1 = source1
             root2 = source2
      RESULT XML xml_string.
      WRITE  XML xml_string.
    Q: I want to show all the result , so what can i do now ?
    write /5(108) XML xml_string.
    what about the rest how to do ?
    Thanks in advance
    Nick.

    Hi,
    <b>write /5(108) XML xml_string</b>
    The above statement says that starting from 5th character write 108 characters of the string.
    If the string is bigger that this in size, then complete text will not be displayed.
    If the string is more in length, then u shud remove this 108 specification.
    Regards,
    Himanshu

  • Write statement after alv display

    Hi Experts,
                      My requirement  is that  i am displaying an output of ALV List display, in the List display i have a button which undergoes updation of records in Ztable.After pressing the button now i have to display Total no of records in write statement in which i should not have ALV display(i need 2 screens ).
    Regards,
    Vikram Sukumar

    <li>I don't know how you are doing but I am able to display. try this sample program for double click event.
    REPORT  ztest_notepad.
    DATA: BEGIN OF it_t001 OCCURS 0,
            bukrs TYPE t001-bukrs,
            butxt TYPE t001-butxt,
            adrnr TYPE t001-adrnr,
          END OF it_t001.
    TYPE-POOLS:slis.
    DATA:it_fieldcat   TYPE slis_t_fieldcat_alv,
         wa_fieldcat   LIKE LINE OF it_fieldcat.
    DEFINE fieldcat.
       wa_fieldcat-fieldname = &1.
       wa_fieldcat-tabname   = &2.
       wa_fieldcat-seltext_m = &3.
       append wa_fieldcat to it_fieldcat.
       clear  wa_fieldcat.
    END-OF-DEFINITION.
    START-OF-SELECTION.
       SELECT * FROM t001 INTO CORRESPONDING FIELDS OF TABLE it_t001 UP TO 10 ROWS.
       fieldcat: 'BUKRS' 'IT_T001' 'BUKRS',
                 'BUTXT' 'IT_T001' 'BUTXT',
                 'ADRNR' 'IT_T001' 'ADRNR'.
       CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
           i_callback_program      = sy-repid
           i_callback_user_command = 'USER_COMMAND'
           it_fieldcat             = it_fieldcat
         TABLES
           t_outtab                = it_t001.
    *&      Form  USER_COMMAND
    FORM user_command USING r_ucomm LIKE sy-ucomm rs_selfield TYPE slis_selfield.
       IF r_ucomm = '&IC1'.
         WRITE 'Venkat'.
       ENDIF.
    ENDFORM.                    "USER_COMMAND
    Thanks
    Venkat.O

  • Internal error getting displayed at times

    Hi all,
    I have created a home page for my client which has got a web Dynpro iView, the problem is that at times when i am opening the page an Internal error with the following statements are getting displayed in the Web Dynpro iView placed location , which is :
    com.sap.engine.services.servletsjsp.server.exceptions.WebSecurityException: Cannot associate security session when the http session has already another security session associated. Logout first._
    and when i refresh the page i'm able to view the contents properly. It would be very much helpful if anyone gives me an idea on why so is happening.
    Thanks in Advance.

    Hello Vipin,
    Kindly access this link and try to delete sessions.
    [link|http://help.sap.com/saphelp_nw70/helpdata/EN/45/e667ae3a704eb9853a5e20f92b92d8/frameset.htm]
    [Link2|http://help.sap.com/saphelp_nw70/helpdata/EN/69/c2508f4ba111d189750000e8322d00/frameset.htm]
    [link3|http://help.sap.com/saphelp_nw70/helpdata/EN/69/c2508f4ba111d189750000e8322d00/frameset.htm]
    [link4|http://help.sap.com/saphelp_nw70/helpdata/EN/69/c2508f4ba111d189750000e8322d00/frameset.htm]
    Regards.
    Soni Vinit

Maybe you are looking for