Hide statement not working

Hi experts,
i am using hide statement but it is not working..The problem with it is that after line selection the variable on which i have used hide is carrying the last value of internal table always..<< Removed >>
Regards,
Raman
Edited by: Rob Burbank on Jun 30, 2009 10:41 AM

I am sending a test program with same problem...iin this after line selection the field variable emp-name is displayin only last entry of internal table...
*& Report  ZBASICX12
REPORT  ZBASICX12.
INITIALIZATION.
  DATA: BEGIN OF ITAB OCCURS 0,
        EMPID  TYPE ZTEMP-EMPID,
        EMPNAME TYPE ZTEMP-EMPNAME,
        END OF ITAB.
START-OF-SELECTION.
  SELECT EMPID EMPNAME FROM ZTEMP INTO TABLE ITAB.
  SORT ITAB BY EMPID.
  LOOP AT ITAB.
    WRITE: / ITAB-EMPID HOTSPOT.
    HIDE ITAB-EMPID.
  ENDLOOP.
END-OF-SELECTION.
AT LINE-SELECTION.
  CASE SY-LSIND.
    WHEN 1.
      WRITE: ITAB-EMPNAME.
  ENDCASE.

Similar Messages

  • Select statement not working

    hi to all,
    I am trying to write use inner joining . here is code
    DATA:tabname LIKE dd02L-tabname,
         table_disc LIKE dd02t-ddtext.
      SELECT  dd02ltabname dd02tddtext INTO (tabname,table_disc)
        FROM dd02l INNER JOIN dd02t on dd02ltabname = dd02ttabname
              WHERE dd02tddlanguage = 'E' AND dd02ltabclass = 'TRANSP'
                                AND dd02L~tabname = 'ZANKI*'.
        endselect.
          write : tabname.
    I also checked in tables dd02t and dd02l for the table zanki* and data available in both table . but here select statement not working .do u have any idea about this. thank you

    Hi,
    I executed the ur inner join conditin by commenting 'z*' it's working fine.
    I think  where condition is not getting satisfied so u r not getting any data.
    Please conform in where condition you need * 'AND'* or OR
    I change decalration as below.
    DATA:tabname    type TABNAME,
          table_disc type AS4TEXT.
    SELECT dd02l~tabname
           dd02t~ddtext  INTO (tabname, table_disc)
    FROM dd02l  INNER JOIN dd02t on dd02l~tabname = dd02t~tabname
    WHERE dd02t~ddlanguage = 'E' AND
          dd02l~tabclass = 'TRANSP'AND
        dd02L~tabname = 'ZANKI*'.
    endselect.
    write : tabname.
    Regards,
    Pravin

  • Auto hide taskbar not working with iTunes 10.5 & Windows 7

    Anyone else having problems with Auto-hide Taskbar not working when iTunes is open and the active window? Was working fine with previous versions including the beta of 10.5 I had. Is this a general problem or just me? Im using Windows 7 64bit for what its worth.

    Chiming in with the same problem. 64-bit Win 7 Professional, taskbar set to auto-hide, newest version of iTunes (actually uninstalled and reinstalled via the website download earlier today to see if that would fix it; nope). I normally use the Alt+Tab keys to navigate between windows anyway, so it's not inconveniencing me too much, but it's still irritating when I'm trying to use the mouse to switch windows (or check the time) and realize I can't. Definitely fix this one soon. We'll all be very grateful

  • Case when statement not working

    hi there, I am trying to work out how to get my case statement to work.
    I have got the following code. 
    select pthproto.pthdbo.cnarole.tpkcnarole, pthproto.pthdbo.cnaidta.formataddr as formataddr, cnaidta.dateeffect as maxdate, isnull(cast (pthproto.pthdbo.cnaaddr.prefix1key as varchar (50)),'') + ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix2key
    as varchar (50)),'')+ ' ' + isnull(cast (pthproto.pthdbo.cnaaddr.prefix3key as varchar (50)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.houseidkey as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component1
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component2 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component3 as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component4
    as varchar (100)),'') + ' ' + isnull (cast (pthproto.pthdbo.cnaaddr.component5 as varchar (100)),'') as mailaddress, row_number() over(partition by pthproto.pthdbo.cnarole.tpkcnarole order by cnaidta.dateeffect desc) as rn into #address from pthproto.pthdbo.cnarole
    inner join pthproto.pthdbo.cnaidty on cnarole.tfkcnaidty =cnaidty.tpkcnaidty inner join pthproto.pthdbo.cnaidta on cnaidty.tpkcnaidty = cnaidta.tfkcnaidty inner join pthproto.pthdbo.cnaaddr on cnaidta.tfkcnaaddr = cnaaddr.tpkcnaaddr order by cnaidta.dateeffect
    select *, case when mailaddress is not null then mailaddress else formataddr end as test from #address where tpkcnarole = '18306695'
    The case when statement is struggling with how i have created the column mailaddress.  As it does seem to understand when it is null.  In the example I have got there is no value in any of the columns to create
    the mailaddress.  Hence why I am referencing it from elsewhere.  Due to having a way on the system where it picks up data from 2 different places.    The mailaddress is always correct if there is one, hence why
    trying to reference that one first.  So how do i change this case when statement to work ?            

    It's ok I have fixed my own problem
    when
    (mailaddress
    is
    null 
    or mailaddress

    then formataddr
    else mailaddress
    end
    as test
    case

  • Active state not working in scrolling site (with anchor links)

    I'm design a scrolling site with anchor links and an horizontal menu on the top.
    when i publish the site and click on the menu buttons the site scrolling to the place of the anchor but the active state in the menu is not working.
    now... when i leave the main page (were the scrolling site is) and then return back to it all active states are working perfectly
    anyone have this bug? or any one know how to fix it ?

    Hmmm...I've just been playing around, and I think I got the Active State to work correctly.  I think my problem was not understand what Active State means.
    To answer your question, I was changing the Font Color and Box Fill Color of the Active State.
    I did not understand that Active State means the look of the Menu Item when the PAGE is active.  I thought it meant the look of the Menu item when the cursor is scrolling down the Menu (i.e. when the MENU is Active, not the page).
    Look at this page for an example of what I'm trying to achieve...
    http://www.pgavdestinations.com
    When you hover over the "Work" menu item, and move the cursor down the menu, the state of "Work" remains changed until you move the cursor off of that menu column. It does NOT return back to it's Normal state until you are off of that menu column.
    Is there a way to achieve this with the menu states in Muse?
    Thanks for the replies!
    Dave.

  • Show/hide bahavior not working in firefox or safari

    Here is my problem. The show hide behavior incorporated in DW
    CS3 is working fine in IE6 and 7 but not working at all in firefox
    and safari (both latest version). I have tried it on different
    event but nothing.
    My web site is configured that if someone click on details, a
    layer will become visible and the details will be showed. I know
    there is a work around and the simplest would be to have a new
    window open but this is not the style I want.
    Any help would be much appreciated.
    Thanks
    ASP

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1" />
    <title>Untitled Document</title>
    <style type="text/css">
    <!--
    #apDiv1 {
    position:absolute;
    visibility:hidden;
    left:16px;
    top:14px;
    width:512px;
    height:394px;
    z-index:1;
    background-color: #FFFF00;
    #apDiv2 {
    position:absolute;
    left:14px;
    top:431px;
    width:513px;
    height:88px;
    z-index:2;
    -->
    </style>
    <script type="text/javascript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4
    resized
    if (init==true) with (navigator) {if
    ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
    onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW ||
    innerHeight!=document.MM_pgH) location.reload();
    MM_reloadPage(true);
    function MM_showHideLayers() { //v9.0
    var i,p,v,obj,args=MM_showHideLayers.arguments;
    for (i=0; i<(args.length-2); i+=3)
    with (document) if (getElementById &&
    ((obj=getElementById(args
    ))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style;
    v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
    //-->
    </script>
    <script src="../Scripts/AC_RunActiveContent.js"
    type="text/javascript"></script>
    </head>
    <body>
    <div id="apDiv1"></div>
    <div id="apDiv2">
    <p>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','130','height','20','title','test','onfocus','MM_showHideLayers(\'apDiv1\',\'\',\'show \')','src','../Flash/liendurabilte','quality','high','pluginspage','http://www.adobe.com/s hockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Flash/liendurab ilte'
    ); //end AC code
    </script>
    <noscript>
    <object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="130" height="20" title="test"
    onfocus="MM_showHideLayers('apDiv1','','show')">
    <param name="movie" value="../Flash/liendurabilte.swf"
    />
    <param name="quality" value="high" />
    <embed src="../Flash/liendurabilte.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="130"
    height="20"></embed>
    </object>
    </noscript>
    Click here to show layer</p>
    <p>
    <script type="text/javascript">
    AC_FL_RunContent( 'codebase','
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','wid th','130','height','20','onfocus','MM_showHideLayers(\'apDiv1\',\'\',\'hide\')','src','../ Flash/lienGarantie','quality','high','pluginspage','http://www.adobe.com/shockwave/downloa d/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../Flash/lienGarantie'
    ); //end AC code
    </script><noscript><object
    classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
    http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0"
    width="130" height="20"
    onfocus="MM_showHideLayers('apDiv1','','hide')">
    <param name="movie" value="../Flash/lienGarantie.swf"
    />
    <param name="quality" value="high" />
    <embed src="../Flash/lienGarantie.swf" quality="high"
    pluginspage="
    http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"
    type="application/x-shockwave-flash" width="130"
    height="20"></embed>
    </object></noscript>
    Click here to hide layer
    </p>
    </div>
    </body>
    </html>

  • Import/Export statement  not working..

    Hi all,
       I want to export some data from BADI & Import it back in user exit.
    I wrote following line of code in BADI
           export P1 FROM xstr to memory id 'ZABHI'.
    & following line of code in User Exit
          import P1 to xstr FROM memory id 'ZABHI'.
    After export sy-subrc becomes 0 hence export statement is working fine but when aftr import xstr remains blank.(sy-subrc = 4)
    I tried to execute same code in single ztest abap program & it works fine there.
    Thanks in advance.

    hi abhijeet,
    you are most welcome....
    to delete, use
    ** deletes the data to save wastage of memory
    delete from database indx(xy)
      client sy-mandt
      id 'ZABHI'.
    you need to delete it coz, its available to all programs in the R/3
    server via the ID and you don't want anybody to view the data u are
    sending into memory.
    the statement that u used earlier was program specific and hence
    not accessible to the user exit.
    Regards,
    Samson Rodrigues.

  • UPDATE statement not working

    Hi,
    I want to modify the record of PA0009 .I want to change the enddate of personnel No.
    UPDATE PA0009 SET ENDDA = '30.10.2009'
                  WHERE PERNR = '1'
                  AND BEGDA =  '01.09.2008'.
    The above statement is not working. How to modify the enddate which is part of key table.
    Please guide.
    Thanks and Regards
    K Srinivas

    Hello,
    Set the data format to the internal date format (YYYYMMDD), so in the set and the where clause pass '20091030' as ENDA which is to be changed and BEGDA in the where clause as 20080901. Also if the after the changes if the key combination results in dupicate records then the update will faiil. Just make sure that the combination of PERNR,SUBTY,OBJPS,SPRPS,ENDDA, BEGDA and SEQNR remains unique, if a record exists with this combination then sy-subrc will be 4 and the record will not be updated.
    Regards,
    Sachin

  • Collect statement not working

    Hi,
               My collect statement is not working. Kindly let me know what is the other way to add one filed in the loop.
    thanks
    Moderator message - Please ask a specific question - post locked
    Edited by: Rob Burbank on Nov 19, 2009 9:24 AM

    Same thing i faced few days ago --. i have resolved this using following logic ... try this it will workout
    CLEAR: wa_mkpf_mseg, w_werks, w_matnr, w_lgort, w_bwart.
    LOOP AT t_mkpf_mseg INTO wa_mkpf_mseg.
    IF wa_mkpf_mseg-werks EQ w_werks AND wa_mkpf_mseg-matnr EQ w_matnr AND wa_mkpf_mseg-lgort EQ w_lgort AND wa_mkpf_mseg-bwart EQ w_bwart.
    CLEAR: wa_p_coi.
    READ TABLE t_p_coi INTO wa_p_coi WITH KEY werks = wa_mkpf_mseg-werks matnr = wa_mkpf_mseg-matnr lgort = wa_mkpf_mseg-lgort bwart = wa_mkpf_mseg-bwart.
    IF sy-subrc = 0.
    wa_p_coi-Avg Days = wa_p_coi-Avg Days + wa_mkpf_mseg-Avg Days.
    MODIFY t_p_coi FROM wa_p_coi TRANSPORTING Avg Days .
    CLEAR: wa_p_coi, wa_p_coi.
    endif.
    ELSE.
    wa_p_coi-werks = wa_mkpf_mseg-werks.
    wa_p_coi-matnr = wa_mkpf_mseg-matnr.
    wa_p_coi-bwart = wa_mkpf_mseg-bwart.
    wa_p_coi-lgort = wa_mkpf_mseg-lgort.
    wa_p_coi-Avg Days = wa_mkpf_mseg-Avg Days .
    APPEND wa_p_coi TO t_p_coi.
    CLEAR: wa_p_coi.
    ENDIF.
    w_werks = wa_mkpf_mseg-werks.
    w_matnr = wa_mkpf_mseg-matnr.
    w_lgort = wa_mkpf_mseg-lgort.
    w_bwart = wa_mkpf_mseg-bwart.
    CLEAR: wa_mkpf_mseg.
    ENDLOOP.

  • MDX simple case statement not working?

    hi all - any idea what is wrong with this MDX statement? it is returning blank. I am trying to add a calculated measure using the below code but it is not working. thanks for the help.
    CASE WHEN [Accounts].[Account Name].CURRENTMEMBER = "Cash" THEN
    ([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) END

    If you are checking for the 'Cash' member of the Account Name hierarchy, do you need to do something like this?
    CASE WHEN [Accounts].[Account Name].CURRENTMEMBER IS [Accounts].[Account Name].[Cash] THEN([Dates].[Hierarchy].currentMember.lastChild, [Measures].[Measures].[Amount]) END
    Regards,
    MrHH

  • SQL Statement not works using functions or subqueries-MAXDB

    Hello All,
    I created an ABAP program to select information about country(table: T005) with the country names (Table: T005T). I tried to create a sql query with a sql subquery to select everything but for some reason that I don't know it doesn't work. Please find the query below.
    DATA:
    resu        TYPE REF TO cl_sql_result_set ,
    stmt         TYPE REF TO cl_sql_statement ,
    qury        TYPE string .
               qury  = `SELECT land1, spras, `
               &&       `(SELECT landx `
               &&         `FROM SAPNSP.T005T `
               &&         `WHERE mandt = '` && sy-mandt && `' `
               &&           `AND spras = 'EN' `
               &&           `AND land1 = ? ), `
               &&       `(SELECT natio `
               &&         `FROM SAPNSP.T005T `
               &&         `WHERE mandt = '` && sy-mandt && `' `
               &&           `AND spras = 'EN' `
               &&           `AND land1 = ? ) `
               &&        `FROM SAPNSP.T005 `
               &&        `WHERE mandt = '` && sy-mandt && `' `
               &&          `AND land1 = ? `
               &&        `GROUP BY land1, spras` .
    resu = stmt->execute_query( qury ) .
    Well, the query above works but the fields LANDX and NATIO are in blank in ALL THE CASES, even with information registred in table T005T.
    So, exploring the SDN forum and after read some documents regarding ADBC, I create a function to handle this sql select and get the correctly the missing informations, but, still don't work. Please find the function below:
    CREATE FUNCTION select_landx (land1 CHAR(3)) RETURNS CHAR(15)
    AS
      VAR landx CHAR(15);
      DECLARE functionresult CURSOR FOR
      SELECT spras, land1, landx
         FROM SAPNSP.t005t
         WHERE spras = 'EN'
             AND land1 = :land1;
         IF $count IS NULL THEN <- | $count is always 0, my SELECT
           BEGIN                                 it's not work but I don't know why
             CLOSE functionresult;
             RETURN NULL;
           END
         ELSE
           SET $rc = 0;
           WHILE $rc = 0 DO
           BEGIN
             FETCH functionresult INTO :landx;
           END;
         CLOSE functionresult;
         RETURN landx;
    Calling the function in a SQL statement:
    DATA:
    resu        TYPE REF TO cl_sql_result_set ,
    stmt         TYPE REF TO cl_sql_statement ,
    qury        TYPE string .
               qury  = `SELECT land1, spras, select_landx(?) landx `
               &&        `FROM SAPNSP.T005 `
               &&        `WHERE mandt = '` && sy-mandt && `' `
               &&          `AND land1 = ? `
               &&        `GROUP BY land1, spras` .
    resu = stmt->execute_query( qury ) .
    Any comments ?
    Best regards,
    Arthur Silva

    Hello,
    Thank's a lot, it works. It's funny because the given solution works using only abap codes.
    It may be happens because the abap interpretor send the sql statement to the db interface that handle the code in the another way.
    Thanks again, it was driving me crazy.
    Best regards,
    Arthur Silva

  • Merge statement not working over db link

    I have a merge statement that works fine when it's run against a local table, but when I try to run it against a table over a database link, I get the following error.
    ERROR at line 1:
    ORA-01008: not all variables bound
    ORA-02063: preceding line from REPOS
    ORA-06512: at "DBADMIN.PING_DB", line 6
    ORA-06512: at line 1
    Here is the code:
    create or replace procedure ping_db
    as
    begin
    merge into availability@repos A
    using (select trunc(sysdate) from dual)
    on (trunc(A.day) = trunc(sysdate))
    when matched then update set A.uptime = A.uptime + 1
    when not matched then insert (hostname,dbname,day,uptime) values
    (utl_inaddr.get_host_name,sys.database_name,trunc(sysdate),1);
    commit;
    end;
    /Code compiles fine, but gets the error when it's executed. Any help would be appreciated.

    9.2.0.x is the version (9.2.0.4,.5 and .6)

  • Balance Sheet Statements not working

    Hello,
    I have deployed the standard scenario for the Balance Sheet statement, but unfortunately when I execute the query, the balance dependencies in the FS hierarchy are not working. They don't appear in the hierarchy nodes. I have a difference in my balance sheet due to these missing financial statements.
    I have activated 0figl_vc1, 0figl_c01 and the flow before the cubes.
    Any idea about what is happening?
    Best regards
    Sérgio

    Hello Sérgio,
    In that program are you using in the "Financial statement version" parameter the same one that you're using in BW?
    Be sure of that.
    Also compare with others "Financial statement version" (but always comparing the same between systems) to see if the result is ok.
    You should be comparing the totals and not the subtree. If the totals are ok, the hierarchy is constructed different between systems. Compare the hierarchy.
    Also for the most detailed difference you'll find compare with the data in cube 0FIGL_C01 and not the 0FIGL_VC1 to see if there the data is ok.
    Diogo.

  • Why would menu button's active state not work? Regardless if I import PSD button or use menu widget from the widget library.

    I am using Adobe Muse CC (up-to-date) and tried to troubleshoot the following: Menu button's active state is not working, both on preview and after publishing. I tried many ways to place menu-designed buttons myself using photoshop and used widgets library (buttons, compositions, menus,etc.). Lastly, in regards to buttons, one of my menu buttons appear clear and crisp (psd button) and all others are blurry (though designed,saved and imported the same way);what could be the problem? Can anyone help?Thanks.

    That line is for pop up message?You would typically use a tool tip for that.
    The "Accessibility" features are different and I believe you need additional software to take advantage of them:
    http://java.sun.com/j2se/1.5.0/docs/guide/access/index.html

  • Show/hide item not working

    Hi,
    I've designed a relatively detailed survey with multiple show/hide items, and all of a sudden they're not working despite all of the show/hide criteria being correct. Items are being shown for no reason.
    Can someone help me?
    Thanks.

    After looking at the form I have concluded that the show/hide logic is inverted.  You have fields set to be hidden if the answer to a drop down is  not 0%. The problem is that the default value of the field is null, not 0%.  The condition is met, so the fields are displayed.  The fix is to switch the show/hide logic to Show is the answer is 5%, 10%, 15% etc.
    Jeff Canepa
    Software Quality Engineer
    Adobe Systems, Inc.
    [email protected]

Maybe you are looking for

  • MB5B report values not consistent

    Hi, Everytime when run MB5B report for same set of input and periods we are getting different values for opening and end /closing value. when we execute the same report we are getting different values for opening and closing/end values this differenc

  • Live Partition Resize not working... And can't add partition to free space

    Hello everyone. I have a problem that I'm trying to sort out. I have a 500GB WD MyBook external FireWire HD. I had it partitioned into two partitions. One was a 112 GB that I used to create backup images of the 120 GB internal drive of my PB G4 (real

  • Cannot open multiple docs

    Since installing SL, I can no longer open multiple items in the same program at the same time. For instance, I used to be able to select as many JPGs as I needed to view, double click or drag them to Preview and all of them would open in Preview. OR,

  • Assigning music to tones

    Can someone please guide me on how an audio file from the iTunes library can be assigned to create custom SMS alerts, Alarm tones and Ringtones? I can't imagine Apple would've overlooked such a dead basic feature, yet it seems to be an impossibility?

  • Upgrade always ends in "Error Writing to File "

    I can get all the way to the very end of installing itunes 9 then I get this... Error writing to file:C:\ProgramFiles\Commonfiles\Apple\MobileDeviceSupport\etc\zoneinfo\Europe\ London any ideas?