Output display problem....Urgent.!!!

Hello friends.
I have a field which has a numeric o?p.
But as the user specification the result should be such that if
a) the data is 100.0000 then it sud display 100
b)the data is 1.600 then it sud display 1.6
c)the data is .1000 then it sud display .1 only.
This data is for only one field not 3 seperate fileds.
So please suggest me some way out.
Regards,
Shweta

Hi ,
Execute the logic below for all the values in ur requirement and see if this logic is working for you.I hope this will do .
You have to convert to characters to make this functionality work .
Im expecting some more logics from SDN members Lets wait and see .
data : v1 type p decimals 4.
data : rem(6) type c.
data : v3(13) type c.
data : val1(4) type c.
data : v4(17) type c.
v1 = '100.0000'.       "give ur inputs here
v3 = trunc( v1 ).
rem = frac( v1 ).
rem = rem * 100.
val1 = rem.
condense  val1 no-gaps.
condense  v3 no-gaps.
if val1 is not initial.
concatenate v3 val1 into v4 separated by '.' .
else.
v4 = v3.
endif.
write:/ v4 no-zero.
Regards,
Vijay.

Similar Messages

  • Urgent: regarding output display problem

    hi,
    i had made dis report for displaying changes made to a purticular material in a purticular month.
    d poblem is dis when i check a materail in MM04 which use to display a change made to a single material and when i check further that what changes had made it shows 4 changes but when i check my report it shows only 2 changes had been made.
    plzz help me out as help will be definately rewarded.
    last time i asked in dis forum not much help was provided.
    here is d code:-
    REPORT ZNEW01 no standard page heading LINE-SIZE 310.
    TABLES: CDHDR,CDPOS.
    DATA: BEGIN OF ITAB OCCURS 0,
    OBJECTCLAS LIKE CDHDR-OBJECTCLAS,
    OBJECTID LIKE CDHDR-OBJECTID,
    USERNAME LIKE CDHDR-USERNAME,
    UDATE LIKE CDHDR-UDATE,
    UTIME LIKE CDHDR-UTIME,
    TCODE LIKE CDHDR-TCODE,
    CHANGE_IND LIKE CDHDR-CHANGE_IND,
    END OF ITAB.
    DATA: BEGIN OF ITAB1 OCCURS 0,
    OBJECTCLAS LIKE CDPOS-OBJECTCLAS,
    OBJECTID LIKE CDPOS-OBJECTID,
    FNAME LIKE CDPOS-FNAME,
    CHNGIND LIKE CDPOS-CHNGIND,
    VALUE_OLD LIKE CDPOS-VALUE_OLD,
    VALUE_NEW LIKE CDPOS-VALUE_NEW,
    END OF ITAB1.
    SELECT-OPTIONS: M_DATE FOR CDHDR-UDATE,
    U_ID FOR CDHDR-CHANGE_IND.
    SELECT BOBJECTCLAS BOBJECTID BUSERNAME BUDATE BUTIME BTCODE B~CHANGE_IND INTO
    TABLE ITAB
    FROM CDHDR AS B WHERE B~OBJECTCLAS = 'MATERIAL' AND UDATE IN M_DATE AND CHANGE_IND IN U_ID.
    Check not itab[] is initial.
    SELECT OBJECTCLAS OBJECTID FNAME CHNGIND VALUE_OLD VALUE_NEW INTO TABLE
    ITAB1 FROM CDPOS
    FOR ALL ENTRIES IN ITAB WHERE OBJECTID = itab-objectid and objectclas = ITAB-OBJECTCLAS .
    *SELECT OBJECTCLAS OBJECTID FNAME CHNGIND VALUE_OLD VALUE_NEW INTO TABLE
    *ITAB1 FROM CDPOS
    *WHERE OBJECTID = itab-objectid and objectclas = ITAB-OBJECTCLAS .
    ULINE.
    LOOP AT ITAB.
    WRITE:/ ITAB-OBJECTID,22 ITAB-USERNAME,ITAB-UDATE,ITAB-UTIME,ITAB-TCODE.
    LOOP AT ITAB1 WHERE OBJECTCLAS = ITAB-OBJECTCLAS AND OBJECTID = ITAB-OBJECTID.
    WRITE: 60 ITAB1-FNAME,ITAB1-CHNGIND,ITAB1-VALUE_OLD(40),ITAB1-VALUE_NEW(40).
    ENDLOOP.
    ENDLOOP.

    hey ric
    i have tested ur code
    i think u have got a problem with the selection criteria "date"
    because i have cross checked the code you have developed and through the transaction
    it is impeccably right
    i think the selection of date in your report should be the range of dates in which they have been modfiied/changed
    if satisfied plz do reward
    regards
    samarendra

  • Output display problem in alignment

    i am displaying vendor wise purchase register details in my output  i have many line items per each vendor.
    i want to display vendor wise line items.
    suppose AFTON CHEMICALS is coming 10 times in the output i want to display this  with all line items.
    example..
    NAME                           AMOUNT  BILLNO
    AFTON CHEMICALS       10000      AS105
    MUMBAI
    400078
    AFTON CHEMICALS       20000      AS106
    MUMBAI
    400078
    AFTON CHEMICALS       30000      AS107
    MUMBAI
    400078
    AFTON CHEMICALS       40000      AS108
    MUMBAI
    400078
    AFTON CHEMICALS       50000      AS109
    MUMBAI
    400078
    but now i am getting  output  as below.
    AFTON CHEMICALS      
    MUMBAI                        
    400078                         
                                         10000      AS105
                                         20000     AS106
                                         30000      AS107
                                         40000      AS108
                                         50000      AS109
    I want to display above  output as below
    AFTON CHEMICALS       10000      AS105
    MUMBAI                         20000     AS106
    400078                           30000      AS107
                                         40000      AS108
                                         50000      AS109
    i have written code as following
    loop at output.
    on change of output-name1.
    write:/output-name1,
           /output-name2,
          /output-ort01,
          /output-pstlz.
    endon.
    write:/ output-amout, output-billno.
    Pls suggest me how to display my line items infront of the name1 as i said above.
    Pls suggest me its very urgent.

    Venkat rao,
    Check the sample program for your case. It solves your problem
    REPORT zvenkat_test2.
    DATA:
          BEGIN OF itab OCCURS 0,
             name1 TYPE char25,
             name2 TYPE char25,
             ort01 TYPE char25,
             pstlz TYPE char25,
             amt   TYPE p0008-bet01,
             billno TYPE i,
           END OF itab.
    DO 10 TIMES.
      itab-name1 = 'AFTON'.
      itab-name2 = 'CHEMICALS'.
      itab-ort01 = 'Bombay'.
      itab-pstlz = '400078'.
      itab-amt   = 2000 + sy-index.
      itab-billno = sy-index + 1.
      APPEND itab.
      CLEAR itab.
    ENDDO.
    LOOP AT itab .
      ON CHANGE OF itab-name1." OR itab-name2 OR itab-ort01 OR itab-pstlz.
        RESERVE 4 LINES. """Check this
        WRITE:/ itab-name1,
              / itab-name2,
              / itab-ort01,
              / itab-pstlz.
        BACK.                   """Check this
      ENDON.
      WRITE: /30 itab-amt, itab-billno.
    ENDLOOP.
    Regards,
    Venkat.O,

  • Crystal report display problem--urgent

    i am trying to display to display crystal report in jsp page..
    i have mentioned the entries in web.xml as below
    <env-entry>
              <env-entry-name>clientSDKOptions</env-entry-name>
              <env-entry-value>C:\ProgramFiles\Common Files\Crystal Decisions\2.0\jars\clientSDKOptions.xml</env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
         </env-entry>
         <env-entry>
              <env-entry-name>crystal_image_uri</env-entry-name>
              <env-entry-value>/crystalWeb/crystalreportviewers/</env-entry-value>
              <env-entry-type>java.lang.String</env-entry-type>
         </env-entry>
    crystalWeb is webproject folder.
    waiting for an earlier response.
    thanks to all
    krish..
    [11/05/04 11:01:33:164 GMT+08:00] 41c3089e WebGroup I SRVE0180I: [crystalWeb] [crystalWeb] [Servlet.LOG]: /CrystalReportsInteractiveViewer.jsp: init
    [11/05/04 11:01:40:404 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/css/default.css has not been defined
    [11/05/04 11:01:40:444 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/search.js has not been defined
    [11/05/04 11:01:40:515 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/js/fw_menu.js has not been defined
    [11/05/04 11:01:40:525 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlogo.gif has not been defined
    [11/05/04 11:01:40:555 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mviewlist.gif has not been defined
    [11/05/04 11:01:40:575 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:40:585 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:595 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mnextgrey.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprevgrey.gif has not been defined
    [11/05/04 11:01:40:675 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mgotopage.gif has not been defined
    [11/05/04 11:01:40:685 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mexport.gif has not been defined
    [11/05/04 11:01:40:655 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mfirstgrey.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/msearch.gif has not been defined
    [11/05/04 11:01:41:045 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mprint.gif has not been defined
    [11/05/04 11:01:41:055 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mzoom.gif has not been defined
    [11/05/04 11:01:41:065 GMT+08:00] 6d40488e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined
    [11/05/04 11:01:41:015 GMT+08:00] 41c3089e OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mlastgrey.gif has not been defined
    [11/05/04 11:02:21:463 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelpover.gif has not been defined
    [11/05/04 11:02:25:940 GMT+08:00] 20668882 OSEListenerDi E PLGN0021E: Servlet Request Processor Exception: Virtual Host/WebGroup Not Found : The web group /crystalreportviewers/images/toolbar/mhelp.gif has not been defined

    Possibly it's a path problem try to rewrite env-entry-value for clientSDKOptions with either double backslashes or simple slashe.
    Furthermore the blanks in the path migth be a reason for your problem.
    David

  • Report output display problem

    I developed purchase register for vendor wise when i am displaying out put it is taking 4 lines gap for each vendor.
    my output is coming as below.
    Afton chemicals  100020  01.2.2008
    sector 6             10021   02.2.2008
    Mumbai.
    here it is taking 4 line space
    indian additives  123456  09.02.2008
    sector 20           124567  10.02.3008
    newdelhi
    here it is taking 4 lines space
    abatap chemicals  456789 12.03.2008
    deonar                  123456 13.03.2008
    mumbai              
    again 4 lines space it is taking.
    i have given line-count 10.
    in my pogram i have used with in loops
    reserved 8 lines and back statement.
    how to reduce space between each vendor.
    i written code as ..
    report puchase order line-count 10.
    loop at output.
    onchange of output-name1.
    reserved 8 lines.
    write: output-date , output-amount.
    back.
    endon.
    write: output-billno.

    Hi,
    the reason for your program behaviour is the combination of reserve 8 lines. and the back. statement You could either reduce the number of 8 lines, try to do without back or use a simple skip.
    Rgds.
    Roman Weise

  • Regarding Subform display problem(URGENT)

    Hi Experts,
    I have a requirement......I am passing 3 tables from interface to form layout...I want to display data from these tables to different subforms based on some condition
    for ex...........
    table T1 passing to subform S1
    table T2 passing to subform S2
    table T3 passing to subform S3
    My requirement is these subform should be display only based on some condition like if some value is there in table T1 then only S1 subform should be display otherwise not.
    Please suggest me what script i will write for this.
    Regards
    Gaurav

    Hi,
    You have to write in form calc under form ready event.
    As of now, i dont have any system to check.You can check any standard forms like vendor statement / customer statement which have page totals.
    for example, drag the S1 subform into one more sumforn with flow content say SS1.Write the below (similar) code.
    // get total number of records
    Var record_count = $.Table1.data.all.length
    Var flag
    Var value_check = '222'
    For I = 0 upto ( record_count - 1 ) step 1 do
    if $.Table1.data<i>.field1 = = value_check
    flag = 'X'
    endif
    Endfor
    if flag = = 'X'.
    $.S1.presence = "hidden"
    endif
    Please check the syntax.
    pavan meda

  • JTable Display problem (urgent)

    Hi all,
    Does anyone here know how to make a all columnns in my table visible
    This is my code. It simple bunches up the columns but I need them spaced out.
    Thanks all :)
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    public class TableProblem extends JFrame {
    Vector rows, columnHeads;
    BorderLayout borderLayout1 = new BorderLayout();
    JScrollPane jScrollPane1 = new JScrollPane();
    JTable jTable1 = new JTable();
    public TableProblem ()
    testData(); // used to put data in the vectors for the table
    initTable(); // used to instantiate and setup the gui
    setSize(1100,600);
    show();
    public static void main(String[] args) {
    TableProblem tprob = new TableProblem();
    public void testData ()
    int mc = 100;
    int mr = 100;
    int k = 0;
    Vector temp;
    columnHeads = new Vector();
    for (int i=0; i<mc; i++)
    columnHeads.addElement(Integer.toString(i));
    rows = new Vector();
    for (int i=0; i<mr; i++)
    temp = new Vector();
    for (int j=0; j<mc; j++)
    temp.addElement(Integer.toString(k++));
    rows.addElement(temp);
    public void initTable()
    getContentPane().setLayout(borderLayout1);
    jTable1 = new JTable(rows,columnHeads);
    jScrollPane1 = JTable.createScrollPaneForTable(jTable1);
    getContentPane().add(jScrollPane1, BorderLayout.CENTER);
    jScrollPane1.getViewport().add(jTable1,null);
    jScrollPane1.getViewport().add(jTable1, null);
    jTable1.setMinimumSize(new Dimension(8000,2000));
    /****************************************************/

    If I understood you correctly, I think this is what you need:
    // Prohibit table from resizing itself
    jTable1.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    Regards,
    Boris

  • Display Problem : URGENT!

    All 8 iMac's screens have gone black at my father's office, he expects me to figure something out to fix them in the next 4 hours. But i need some help.
    What is the key command to shut down an iMac G4 running 10.4? And yes i know its not an Intel based, but i could not find the right section for it in time.

    Control+Eject will bring up a four option dialog box (which you can't see), then Return will shut it down.

  • Problem In report output display when i run in the background

    Hi,
    In a classical report i am printing around 17 fields  the width of the report out put is around 800 characters.
    If i run  the report in the  fore ground it running perfectly. But the thing is when i give large selection is it GETTING ' TIMED OUT ' as it is running more than an Hour.
    so i wanted to run it in the back ground to avoid TIME OUT problems.
    But when i run in the backgroud   i am not getting  full  out put in the SPOOL request(SIZE of the report output may causing the problem) .
    Pls come up with some solutions
    Thanks in advance

    Try increasing the spool length..
    Refer this link for doing so.
    Spool List output display > 255 char when the rpt is run in Background
    Thanks
    mahesh

  • Hello to all: My iMac has developed a video display problem. It displays everything in cartoon like colors - purple, green, blue. Can this be repaired? Is there a way to output to a different monitor? Thanks in advance!  isplays

    Hello -
    My iMac has developed a video display problem. Everything now appears in a strange, cartoonish way. Purples, greens, blues. Can this be fixed, and if so, any idea how much it might cost? Also, could I output to a seperate monitor? I plan to replace the unit , but cannot right now. Thanks!

    Go to System Preferences > Universal Access > Seeing.
    In the Display area, reset it to "Black on white" by clicking that checkbox.
    You can also reset it by pressing Command-Option-Control-8

  • Another dual display problem - GeForce FX 5200

    I've seen lots of questions about dual display problem, situation when trying to connect two non-apple vga displays to your graphic card.
    I have GeForce FX 5200 graphic card, with 2 display output's. And two DELL 17" vga LCD displays.
    I manage to connect 1 display regulary with dvi to vga converter, but for other display I tried several difrent converters ADC to DVI to VGA, and it just did NOT work.
    G5 could see other display in display settings, in arrange option I coud see two identical displays, but I don't get anu picture (desktop) on other display???
    Is it problem with output's on my graphic card (Gforce FX 5200), could it be soloved with some ADC to VGA converter?
    P.S. Dr. Bott ADC VGA Extractor is not compatible with GeForce FX 5200????
    G5 dual 2.1Ghz   Mac OS X (10.3.4)  

    I've seen lots of questions about dual display
    problem, situation when trying to connect two
    non-apple vga displays to your graphic card.
    I have GeForce FX 5200 graphic card, with 2 display
    output's. And two DELL 17" vga LCD displays.
    I manage to connect 1 display regulary with dvi to
    vga converter, but for other display I tried several
    difrent converters ADC to DVI to VGA, and it just did
    NOT work.
    This won't work if the ADC to DVI adapter is not passing through the analog signals needed for VGA.
    G5 could see other display in display settings, in
    arrange option I coud see two identical displays, but
    I don't get anu picture (desktop) on other
    display???
    Is it problem with output's on my graphic card
    (Gforce FX 5200), could it be soloved with some ADC
    to VGA converter?
    Yes.
    P.S. Dr. Bott ADC VGA Extractor is not compatible
    with GeForce FX 5200????
    It should work. On Dr. Botts web-site it says:
    "VGA Extractor is compatible with any video card with an ADC port in a PowerMac G5"

  • Display problem after RAM Upgrade to MS6712

    Hi there,
    after a RAM upgrade (512mb to 3GB) my PC has developed a display problem. The graphics are slow / rippled and video playback is very poor. In device manager no "display adapters" are present and there is also an error mesage referring to the VIA CPU to AGP2/AGP3.0 controller not having enough free resources to run due to a conflisct with VGAsave? I've downloaded the latest VIA chipset drivers to no effect?
    System info: MS6712 MB, AMD Athlon 1.25GHZ, XP SP3.0

    OK, here's the info on my PSU;
    It's a Powerman FSP250-60GTU(PF). Input: 230V - 5A, 50Hz. Max Output: 250W
    While I had the case open I took out 2 of the RAM modules and without making any other changes everything appeared to work fine with just the 1GB, so I tried putting 1 more back in to take it to 2GB and again all seems fine? Does this indeed point to my PSU then? If so and it works fine with 2GB should I be thankfull for a 512mb to 2GB upgrade and send the 3rd module back to Crucial??
    Before I posted this thread I did run a memtest from Memtest86+ with all three modules installed and it came up with NO problems?
    Re Henry's post, I searched using the format of the part no on the RAM modules themselves i.e. M368L2923FLN-CB3 and it took me here:
    http://www.samsung.com/global/business/semiconductor/productListNonflexTable.do?fmly_id=118&sht_id=1
    Other info on printed the modules themselves: 1GB DDR PC2700 CL2.5
    According to Everest my CPU temp (with 2GB installed) is: 43 degrees (MOBO 30 degrees and HD 42 degrees) - do these seem normal?

  • Reporting display problems to Apple

    If you are having display problems, you should not be waiting for others to complain or just sit there stewing in your juices. Call AppleCare and tell them what's going on. People in IT have told me that one of the most frustrating things that they encounter are customers who do not complain about real problems. If they don't complain, no one knows that there's a problem, and the customer just gets depressed or hostile for mysterious reasons. You may discover that someone has been doing some kind of awkward work-around for a software problem or bug, and when you ask then how long that has been going on, they may say 5 years!
    I just called AppleCare earlier today and carefully explained the symptoms of my screen and why it bothered me. I tried to explain that the gradient problem is triggering alarm bells in my brain that there must be some kind of vision problem. The guy on the other end was very patient, asked questions, and really seemed to listen. He admitted to me that they need to know this stuff. I finally had to get off the phone because of a lightning storm, but I got a case number to continue the conversation later this weekend.

    Let us know what happens! I've also been on the phone with Apple -- three times in the past week -- and I've gotten two different people to actually admit, in a sort of weak way, that they're actually aware of the problem. They want my machine to go to "repair", since I'm past the 14 days, first suggesting that I bring it to the Apple Store far from my neighborhood, and then telling me that I can get a site visit after complaining that I hardly have time to get there (totally true) and I'm small and the thing is difficult for me to carry (totally true), although I have to wait for my extended AppleCare, which I purchased yesterday, to arrive in the mail. One of them told me that she thought she's heard of some of these problems actually being fixed. We'll see.
    Two of them have suggested that I try an archive/reinstall, just to confirm that it's not a software problem, although both admitted that it was probably a hardware problem anyway. Has anyone tried that? Has anyone wondered what that original iMac update 1.0 actually did?
    I've been trying to emphasize my theory about a DC offset on the LCD inverter output, and supposedly they are taking notes, but I wonder if any of that actually makes it up to the engineers. I'm hardly a crank. I have science, very advanced math, and IT backgrounds, and did a lot of tinkering with electronics as a kid. I really wish I could talk directly to the engineers.
    And speaking from a long IT background, I can say that one of the most dangerous customer relations things you can do is deny that a real problem exists. That tactic always backfires with a vengeance.

  • Delete modify in itab output display

    hi,
    i am create a query for delete data from database table by using an internal table i am delete data from DB table but a problem are come as in output display
    i am showing  the
    NUMBER OF ENTRIES ARE DELETE FROM TABLE: 2
    NUMBER OF ENTRIES ARE REMAIN IN TABLE AFTER DELETEION:
    seletion screen contains 
    SELECT-OPTIONS: s_ordid FOR zapolp22-ordid,   "APO order id
                                s_matnr FOR zapolp22-matnr,   "Material Number
                     s_locto FOR zapolp22-locto.   "APO Destination location
    PARAMETERS: p_days TYPE i. "Number of days
    the problem are as:
    if i am given only P-days parameter value 3
    than it works as fine
    showing output right as 2 rows are deleted
    and 8 rows are remains in table
    if i given all fields fill up in selection screen
    as s_ordid----->4516 to 4517
        s_matnr---->85503 to 85505
       s_locto------> m100 to m101
    p_days----> 2
    then i get output display as
    number of entries  are deleted   2
    number of entries are remain in table  0.
    but the 2 rows are deleted from DB table and 8 rows are remain in table but it not show the 8 rows on display screen it shows zero.
    my code is as:
    DATA:  lv_count  TYPE i,
           lv_count1 TYPE i.
    DATA: lv_date TYPE sy-datum.
    SELECT mandt
           ordid
           schedid
           matnr
           locto
           lfmng
           lfdat
           locfr
           rqmng
           rqdat AS lv_date
           prckz
           blkstk
           oppdelqty
           zzapologmod
           zzflagurgent
           zzapottype
           zzndays_l_time
    FROM zapolp22 INTO TABLE lt_output
    WHERE ordid IN s_ordid  AND
           matnr IN s_matnr  AND
           locto IN s_locto.
    SORT lt_output[] BY rqdat.
    >Number OF Days to be Counted
    lv_date = sy-datum - p_days.
    LOOP AT lt_output.
      IF lt_output-rqdat LT lv_date.
        MOVE-CORRESPONDING lt_output TO lt_delete.
        APPEND lt_delete.
        lv_count = lv_count + 1.
      ELSE.
        lv_count1 = lv_count1 + 1.
      ENDIF.
    endloop.
    DELETE FROM zapolp22  WHERE rqdat LT lv_date AND
                                ordid IN s_ordid AND
                                matnr IN s_matnr AND
                                locto IN s_locto.
    IF sy-subrc = 0.
      WRITE:/25 'Number of entries deleted            :', lv_count.
      WRITE:/25 'Number of entries remaining          :', lv_count1.
    ELSEIF sy-subrc NE 0.
      WRITE:/ 'No data are selected for delete'.
    ENDIF.
    Tell me where in this code i do mistake.
    Thanks jayant.

    I don't know the contents of the table, but if you increase the number of restrictions in the SELECT statement, it will probably have lesser entries.
    Now, you are not really counting the total number of rows left in the table, but the total number of rows in the table that match the criterion.
    Basically, the first time (with lesser options) 10 rows are put into internal table, and 2 are deleted. So 8 are left.
    In the second time, only 4 rows are getting selected, of which 2 are deleted, and 2 are left in the internal table NOT in the database table. In the database table, more rows are left (because they never got selected into the itab)
    But if you want to count the total number of rows left in the DB, its better to count the number of rows in the end of the program with:
    SELECT COUNT(*) FROM dbtab INTO lv_integer.
    This can be pretty slow if the table is huge.

  • J2EE StartUp Problem, URGENT.

    Hi all!
    I'm having a problem since friday with the J2EE Engine Startup. The problem is that MMC says me that the server is running but i can access to the server by anyway. The developer trace of the jcontrol process is:
    [Thr 2968] Tue Aug 09 13:59:50 2005
    [Thr 2968] JControlICheckProcessList: process server0 started (PID:1544)
    JStartupStartJLaunch: program = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[00] = C:\usr\sap\J2E\JC00/j2ee/os_libs/jlaunch.exe
    -> arg[01] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> arg[02] = -DSAPINFO=J2E_00_sdm
    -> arg[03] = -file=C:\usr\sap\J2E\JC00\SDM\program\config\sdm_jstartup.properties
    -> arg[04] = -nodeName=sdm
    -> arg[05] = -nodeId=2
    -> arg[06] = -syncSem=JSTARTUP_WAIT_ON_2964
    -> arg[07] = -jvmOutFile=C:\usr\sap\J2E\JC00\work\jvm_sdm.out
    -> arg[08] = -stdOutFile=C:\usr\sap\J2E\JC00\work\std_sdm.out
    -> arg[09] = -locOutFile=C:\usr\sap\J2E\JC00\work\dev_sdm
    -> arg[10] = -mode=JCONTROL
    -> arg[11] = pf=C:\usr\sap\J2E\SYS\profile\J2E_JC00_toshiba-user
    -> lib path = PATH=C:\j2sdk1.4.2_08\jre\bin\server;C:\j2sdk1.4.2_08\jre\bin;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    -> exe path = PATH=C:\j2sdk1.4.2_08\bin;C:\usr\sap\J2E\JC00\j2ee\os_libs;C:\oracle\WAS\92\bin;C:\oracle\WAS\92\jre\1.4.2\bin\client;C:\oracle\WAS\92\jre\1.4.2\bin;C:\Program Files\Oracle\jre\1.3.1\bin;C:\Program Files\Oracle\jre\1.1.8\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\j2sdk1.4.2_08\bin;C:\oracle\WAS\92\Appache\perl\5.00503\bin\MSWin32-x86;C:\usr\sap\J2E\SCS01\exe;C:\usr\sap\J2E\JC00\exe;C:\usr\sap\J2E\SYS\exe\run
    [Thr 2968] Tue Aug 09 13:59:51 2005
    [Thr 2968] JControlICheckProcessList: process SDM started (PID:1556)
    [Thr 1188] Tue Aug 09 14:01:01 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:01:58 2005
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] JControlMSMessageFunc: receive command:6, argument:1213679940 from Message Server
    [Thr 1188] Tue Aug 09 14:10:25 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:15:45 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:20:46 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:26:06 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:31:07 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:36:27 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:41:28 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    Then i try to login the visual admin gives me a windows error and the msg_server process shuts down alone. Then i restart that node and agregate the following lines to the trace:
    Thr 1188] Tue Aug 09 14:42:25 2005
    [Thr 1188] *** ERROR => MsINiRead: NiBufReceive failed (NIECONN_BROKEN) [msxxi.c      2488]
    [Thr 1188] *** ERROR => MsIReadFromHdl: NiRead (rc=NIECONN_BROKEN) [msxxi.c      1652]
    [Thr 1188] Tue Aug 09 14:42:27 2005
    [Thr 1188] ***LOG Q0I=> NiPConnect2: SiPeekPendConn (10061: WSAECONNREFUSED: Connection refused) [nixxi_r.cpp 8588]
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:32 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:38 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:44 2005
    [Thr 1188] *** ERROR => MsIAttachEx: NiBufConnect to toshiba-user/3601 failed (rc=NIECONN_REFUSED) [msxxi.c      633]
    [Thr 1188] *** WARNING => Can't reconnect to message server (toshiba-user/3601) [rc = -100]-> reconnect [jcntrms.c    295]
    [Thr 1188] Tue Aug 09 14:42:49 2005
    [Thr 1188] JControlMSConnect: reconnected to message server (toshiba-user/3601)
    [Thr 1188] Tue Aug 09 14:48:11 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:53:12 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    [Thr 1188] Tue Aug 09 14:58:32 2005
    [Thr 1188] JControlMSReadMessage: NiPeek() returns -5 NIETIMEOUT
    I try to login the visual admin again and gives me the following error: "Cannot open connection on host: 191.9.6.22 and port: 50004"
    Looking the log and trace files i see the following errors:
    - SAPEngine_System_Thread[impl:5]_5##0#0#Error#1#/System/Server#Plain###Encomi: failed to connect to toshiba-user/3201(Connection refused: connect)#
    - java.net.SocketException: socket closed
         at java.net.PlainSocketImpl.socketAccept(Native Method)
         at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353)
         at java.net.ServerSocket.implAccept(ServerSocket.java:448)
         at java.net.ServerSocket.accept(ServerSocket.java:419)
         at com.sap.engine.core.port.impl0.ServerSocketListener.run(ServerSocketListener.java:87)
    - erver socket listener opened by service on socket encountered error. The listener will be stopped.#2#p4#ServerSocket[addr=/0.0.0.0,port=0,localport=50004]
    I dont know whats happening, if somebody knows i hope that helps me. Please is urgent.
    Thx and Rgds.
    Gregory

    Hi, thx a lot both.
    Respect the link
    http://<hostname>:50<instanceno>00/sap/monitoring/SystemInfo , i cant access it. I cant access by telnet, by visual admin.
    In the work folder under \usr\sap\<sid>\JC00 i found that the last updated files are:
    - available.txt that contains the following data:
        Unavailable 08.08.2005 10:46:53 - 08.08.2005 10:58:54
        Available   08.08.2005 10:59:54 - 08.08.2005 13:52:54
        Unavailable 08.08.2005 13:53:54 - 08.08.2005 13:53:54
        Available   08.08.2005 13:54:54 - 08.08.2005 14:03:54
        Unavailable 08.08.2005 14:04:54 - 08.08.2005 14:04:54
        Available   08.08.2005 14:05:54 - 08.08.2005 14:34:54
        Unavailable 08.08.2005 14:35:54 - 08.08.2005 14:39:44
        Unavailable 08.08.2005 14:56:17 - 08.08.2005 16:24:13
        Unavailable 08.08.2005 16:28:07 - 08.08.2005 16:29:07
        Unavailable 08.08.2005 16:34:36 - 08.08.2005 17:17:58
        Unavailable 09.08.2005 08:13:36 - 09.08.2005 08:54:33
        Unavailable 09.08.2005 08:57:04 - 09.08.2005 12:46:25
        Available   09.08.2005 12:47:25 - 09.08.2005 13:26:25
        Available   09.08.2005 13:43:56 - 09.08.2005 13:55:56
        Unavailable 09.08.2005 13:56:40 - 09.08.2005 14:04:57
        Available   09.08.2005 14:05:57 - 09.08.2005 16:16:57
        Unavailable 09.08.2005 16:17:57 - 09.08.2005 17:27:12
        Unavailable 10.08.2005 08:10:30 - 10.08.2005 08:35:39
        Available   10.08.2005 08:36:39 - 10.08.2005 09:16:39
        Available   10.08.2005 12:33:51 - 10.08.2005 14:01:51
    - dev_jcontrol that contains the information displayed in the developer trace of jcontrol process(and y mentioned above)
    - dev_dispatcher that contains the following info:
        [Thr 2664] Wed Aug 10 08:33:04 2005
        [Thr 2664] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2664] JLaunchISetClusterId: set cluster id 5761000
        [Thr 2664] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2664] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 3320] Wed Aug 10 08:33:21 2005
        [Thr 3320] JLaunchISetP4Port: set p4 port 50004
        [Thr 3528] Wed Aug 10 08:33:26 2005
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3528] JLaunchISetTelnetPort: set telnet port 50008
        [Thr 3584] Wed Aug 10 08:33:55 2005
        [Thr 3584] JLaunchISetHttpPort: set http port 50000
        [Thr 2664] Wed Aug 10 08:34:02 2005
        [Thr 2664] JLaunchISetState: change state from [Starting (2)] to [Running (3)]
        [Thr 2568] Wed Aug 10 08:34:08 2005
        [Thr 2568] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 3660] Wed Aug 10 08:35:07 2005
        [Thr 3660] JLaunchISetP4Port: set p4 port 50004
        [Thr 3600] Wed Aug 10 08:36:34 2005
        [Thr 3600] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] Wed Aug 10 12:43:40 2005
        [Thr 3612] JLaunchISetHttpPort: set http port 50000
        [Thr 3612] JLaunchISetP4Port: set p4 port 50004
        [Thr 3612] JLaunchISetTelnetPort: set telnet port 50008
    - dev_server0 that contains:
        [Thr 2676] Wed Aug 10 08:33:06 2005
        [Thr 2676] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
        [Thr 2676] JLaunchISetClusterId: set cluster id 5761050
        [Thr 2676] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
        [Thr 2676] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
        [Thr 4296] Wed Aug 10 08:34:58 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
        [Thr 4296] Wed Aug 10 08:35:00 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPConverters
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPCharToNUCByteConverter
        [Thr 4296] Wed Aug 10 08:35:01 2005
        [Thr 4296] JHVM_RegisterNatives: registering methods in com.sap.mw.jco.util.SAPNUCByteToCharConverter
        [Thr 2676] Wed Aug 10 08:35:07 2005
        [Thr 2676] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
        [Thr 208] Wed Aug 10 08:36:34 2005
        [Thr 208] JLaunchISetState: change state from [Starting applications (10)] to [Running (3)]
    I still dont know whats happening. And i need to solve the problem urgent. I hope u can help me.
    Thx and Rgds.
    Gregory.

Maybe you are looking for

  • ITunes 6.0.3 upgrade complaint

    I would like to complain about the recent upgrade to iTunes 6.0.3. During installation the installer clearly said that with iTunes 6.0.3 I would be able to buy from a selection of over 2000 music videos and TV shows. It even said so in Norwegian. I'm

  • Changing modifier keys on only  external keyboad

    There was a similar post that was labelled as solved, but in fact did not address the greater problem. I have the same problem as the original poster in this thread: http://discussions.apple.com/thread.jspa?threadID=778597&tstart=0 but the solution p

  • Can notifications be kept permanently open

    can notifications be kept permanently open in 10.10.3

  • ITunes can't sync photos from my iPhoto after update

    Hello, after update my iTunes can't sync my photos from my iPhoto. I'm with Mavericks and iTunes 11.0.5. Thank you and have a nice day

  • XCEPTION_FLT_STACK_CHECK at ~RuntimeStub::load_klass_patching

    Occasionally Tomcat crashes with EXCEPTION_FLT_STACK_CHECK at ~RuntimeStub::load_klass_patching Runtime1 stub always in the same method. This method connect with HTTP with a ASP application. The class Cls0490P.java has this code: URL url = new URL(ur