AS 2.0 to AS 3.0 coding help!

im  new to flash and all this, so can someone please translate this code to AS3.0 coding, before i kill myself
_root.onEnterFrame = function ()
if (_root.mouseX<50){
imgBar.prevFrame();
imgBar.prevFrame();
if (MovieClip(root).mouseX<550){
imgBar.nextFrame();
imgBar.nextFrame();
I know i have to change _root with MovieClip(root) but after that im just stuck  help please. thy!

if, when your mouseX is less than 50, you want imgBar to move to its previous frame use:
imgBar.addEventListener(Event.ENTER_FRAME,onEnterFrame)
function onEnterFrame()
if (MovieClip(root).mouseX<50){
imgBar.prevFrame();
} else {
imgBar.nextFrame();

Similar Messages

  • ECR/ECO Authorization on system statuses - Coding help requested

    HI PLM Gurus,
    Unfortunately ( or that ,,,Iam not aware of)There is no SAP standard Authorization object to control a user setting a particular system status in ECR/ECO. This means by SAP's standard functionality any user who is authorized  with authorization objects  ECM_REQ and ECM_ORD  in their role  and all activities allowed, can set any statuses in ECR /ECO.
    But typical business requirment in any change management requires the control status wise and so do we have one.
    We knew this can be achieved by a custom authorization object. We have created a manual object  but need help with coding to get the current status of the object for matching the authorization (allowed) values .
    Any help is appreciated.
    Thanks,
    Satya

    Thanks Pranav,
    Just to clarify ,I knew about the exit  and  Iam using the same exit, I was trying to get help on the coding part . Identifying Exit is not a problem .( we have used this exit a number of times for different requirements in ECM, like checking the lab/office field for an object before setting a system status , defaulting a  new version of document  etc)
    Update : Got a parameter ( a dynamic field value)which helped us code very easily
    ,,,,Can share with you .
    For system level authorization checks ,one can use Digital signatures and this might be the reason for not having(SAP not providing) a standard authorization object for "system status check "in Standard SAP ECM Authorizations.
    Thanks a bunch for the response.
    Rgds,
    Satya.

  • Coding Help Needed

    My problem is this...
    On our website, viewers have an option to view anonymously or
    sign in for better functionality.
    If they choose to sign in, I want them to be able to return
    to the page they were just on.
    Is there a simple way to do that in the PHP coding?

    Simple:
    So you have your page that does something:
    Inserts into database or just posts to a specific page and
    point it to
    "redirect.php"
    Now you have a page called redirect.php
    In there you add the code of the page it needs to go to.
    <?php
    header('Location: index.php');
    ?>
    So if you came from index.php then your code in redirect.php
    would read:
    <?php
    header('Location: index.php');
    ?>
    Problem solved.
    "Les_S" <[email protected]> wrote in message
    news:ff2e4f$6fn$[email protected]..
    > That didn't seem to work.
    >
    > Here is what I have working now....
    >
    >
    > if (isset($_POST['username'])) {
    > $loginUsername=$_POST['username'];
    > $password=$_POST['password'];
    > $MM_fldUserAuthorization = "";
    > $MM_redirectLoginSuccess = "
    http://www.mysite.com/success.php";
    <---
    > this
    > line is what I would like to change.
    > $MM_redirectLoginFailed = $_SERVER['HTTP_REFERER'];
    <-- hopefully to
    > something similar to this.
    > $MM_redirecttoReferrer = false;
    >
    > Using the code method from your reply, the page did not
    load at all.
    >
    > Any other ideas?
    >
    > Please help.
    >
    >

  • Coding help reqd

    Hi friends,
    In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
    the field is cs_goitem-erfmg....
    FYI.
    I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
    Pls do reply, if anyone have sample code or have solutions how to declare it.
    thanks & regards
    sankar.

    Hi Sankar,
    Please post your coding and explain what "is not coming perfectly" and we might be able to help you.
    Regards,
    John.

  • Coding help please - changing image using links

    Hi there,
    I wonder if anyone could help me? I'm designing a website at
    the moment, but being a traditional print designer, I'm finding it
    quite difficult to get use to the coding at first. What I have is a
    page (which is shown in the link below with what i'm after) with
    six links, some text and a default image which I want the user to
    be able to click on the 'linked text' and change the main image so
    if 1.jpg was the main image, when they click 'cover 2' they get
    2.jpg and so on in the same frame that the main image is kept in.
    I've tried some javascript code I found on another help site
    but it just messes the frames up and only seems to work if the code
    is as one rather than pasted in my pages code?
    Please, please, please can someone help as it's driving me
    mad and the boss is getting closer to the room :-)
    Below is a screenshot of my page and written in red on it is
    the various bits I need to work out with your help.
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    http://i7.photobucket.com/albums/y254/080780/help.jpg

    Select a link, and apply a DW Image Swap behavior to swap the
    main image to
    the one desired. Do not use the automatic restore.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Gavin Wood" <[email protected]> wrote in
    message
    news:fhegg8$o4s$[email protected]..
    > Hi there,
    >
    > I wonder if anyone could help me? I'm designing a
    website at the moment,
    > but
    > being a traditional print designer, I'm finding it quite
    difficult to get
    > use
    > to the coding at first. What I have is a page (which is
    shown in the link
    > below
    > with what i'm after) with six links, some text and a
    default image which I
    > want
    > the user to be able to click on the 'linked text' and
    change the main
    > image so
    > if 1.jpg was the main image, when they click 'cover 2'
    they get 2.jpg and
    > so on
    > in the same frame that the main image is kept in.
    >
    > I've tried some javascript code I found on another help
    site but it just
    > messes the frames up and only seems to work if the code
    is as one rather
    > than
    > pasted in my pages code?
    >
    > Please, please, please can someone help as it's driving
    me mad and the
    > boss is
    > getting closer to the room :-)
    >
    > Below is a screenshot of my page and written in red on
    it is the various
    > bits
    > I need to work out with your help.
    >
    >
    [IMG]http://i7.photobucket.com/albums/y254/080780/help.jpg[/IMG]
    > http://i7.photobucket.com/albums/y254/080780/help.jpg
    >
    >
    >

  • Javascript Coding Help: Checkbox

    I am not familiar with coding except to say that I know what the possibilities are. I work for a small business and I need help adding a javascript code to a writeable PDF form we are using in Adobe Acrobat Pro.
    If a check box (Checkbox1) is clicked then I would like this text (PAID IN FULL) to appear in a text box named (Paid In Full1). If the check box is not clicked then the text box remains empty.
    Can someone help write this code for me?
    Thank you for your time and patience.

    You can use something like this as the text field custom calculation script, then:
    event.value = this.getField("Checkbox1").value=="Off" ? "" : "PAID IN FULL";

  • Java J2EE coding help

    I would need to know how to set up server or something to get my java code working next to my website without needing access to that website.
    (I have Java code to create game coins in my java game on my site but I don't know how to get it working without needing to access to my website to store code there.)
    1) I haven't put my game up yet so unfortunately you can't see it online
    2) I have java code to create coins inside my game.
    3) It doesn't work because I don't know what to do after I have coded it.
    4) How to make it work without needing access to my site?

    It would be alot easyer to use my code from outside
    then from web and from outside it's secured so even
    if someone gets inside my website then they can't get
    code ; )Have you thought this through? What are you going to do to make your code more secure on your PC than it would be on some other server? How do you plan to facilitate communication between your app and the web server?

  • Internet exporer coding, Help

    Your coding skills are needed, why is my website working on every browser except ie. http://www.kidztar.com/zcom.html
    <html>
    <head>
    <title>Preview Book</title>
    <link rel="shortcut icon" href="KIDICON.ico" />
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <style type="text/css">
    <!--
    #apDiv1 {
        position:absolute;
        left:210px;
        top:25px;
        width:581px;
        height:497px;
        z-index:0;
    -->
    </style>
    </head>
    <body bgcolor="#0033CC">
    <!-- ImageReady Slices (1home.psd) -->
    <div id="apDiv1">
    <title>Kidztar Publishing</title>
    <style type="text/css">
    .buttons {
        font-family: arial;
        font-size: 8pt;
        border-bottom:1px solid #282828;
        border-right:1px solid #282828;
        border-top:1px solid #8794A0;
        border-left:1px solid #8794A0;
        background-color: #FFEA01;
    </style>
    <script type="text/javascript" src="bookflip.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <div align="right" style="position:fixed; width:700px; height:590px; margin:0;">
      <div id="myBook" style="display:none;">
            <div id="Home" style="background:#055123 url('btcover.gif');color:#ffffff;" name="Home">
              <div align=center>
                <h1></h1>
              </div>
            </div>
      <div name="Page 1" style="background:#256974 url('bt1.png');color:#ffffff;">     
                <div align=center>            </div>
          </div>
        <div name="Page 2" style="background:#785165 url('btp2.png');color:#ffffff;">
            <div align=center>        </div>
          </div>
        <div name="Page 3" style="background:#785165 url('bt3.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 4" style="background:#785165 url('bt4.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 5" style="background:#785165 url('bt5.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 6" style="background:#785165 url('bt6.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 7" style="background:#785165 url('p7.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 8" style="background:#785165 url('p8.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 9" style="background:#785165 url('p9.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 10" style="background:#785165 url('p10.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 11" style="background:#785165 url('p11.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 12" style="background:#785165 url('p12.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 13" style="background:#785165 url('p14.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
         <div name="Page 13" style="background:#785165 url('op.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
            <div name="Page 13" style="background:#785165 url('pq.png');color:#ffffff;">
            <div align=center>        </div>
         </div>
    </style>
         <body leftmargin="20" topmargin="20" marginwidth="20" marginheight="20"><div id="apDiv1 name="Page Order Book">
      <iframe src='contactus.php' frameborder='0'width='100%' height='502' allowtransparency='true'></iframe></div>
            <div align=center>    </div>
    <div id="apDiv1">    </div>
      </div>
      </div>
    <br>
    </div>
    <script type="text/javascript">
    //get querystring to obtain autoflip value
    function autoflipFromUrl(){
        var pos;
        var searchStr = window.location.search;
        var searchArray = searchStr.substring(1,searchStr.length).split('&');
        var result = '';
        for (var i=0; i<searchArray.length; i++) {
            result = searchArray[i].split('=');
            if(result[0]=="autoflip"){
                result=result[1];
                break;
        return(result);
    //** Software License Agreement (BSD License)
    //** Book Flip slideshow script- Copyright 2008, Will Jones (coastworx.com)
    //** This Script is wholly developed and owned by CoastWorx.com
    //** Copywrite: http://wwww.coastworx.com/
    //** You are free to use this script so long as this coptwrite notice
    //** stays intact in its entirety
    //** You are NOT Permitted to claim this script as your own or
    //** use this script for commercial purposes without the express
    //** permission of CoastWorx Technologies!
    //** Full credit to Scott Schiller (schillmania.com) for soundManager
    var myPageW=360; //page width
    var myPageH=504; //page height
    var pageBorderWidth=1; //adjust border width
    var pageBorderColor="#000000"; //border color
    var pageBorderStyle="solid"; //border style eg. solid, dashed or dotted.
    var pSpeed=20; //page speed, 20 is best for Opera browser. Less is faster
    var pSound=false; //change to true for flip sound effect, if true, install SoundManager from schillmania.com
    var showBinder=false; //change to false for no binder
    var binderImage = "parchmentring2.gif"; //location of center binder
    var binderWidth = 20; //width of center binder image
    var numPixelsToMove = 20;//number of pixels to move per frame, more is faster but less smooth
    //You must create the place holder for the dropdown on this page with an id attribute, eg. <select id="flipSelect" style="display:none;"></select>
    var selectNavigation=true; //this builds a drop down list of pages for auto navigation.
    allowPageClick=true; //allow clicking page directly
    doIncrementalAutoFlip = false; //set this to true if you want to flip to selected page incrementally(ie.see each page turn)
    pageShadow=true; //true or false, display shadow along the length of inside right page
    ini();
    x=autoflipFromUrl(); //get querystring autoflip value
    if( x ){autoFlip(x);};
    </script>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#0033CC" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (kcom.psd) -->
    <table width="1024" height="768" border="0" align="center" cellpadding="0" cellspacing="0" id="Table_01">
        <tr>
            <td colspan="2">
                <img src="images/zcom_01.png" width="1024" height="191" alt=""></td>
        </tr>
        <tr>
            <td><img src="images/home.png" width="102" height="29"></td>
    <td rowspan="6"><img src="images/zcom_03.png" width="922" height="432" alt=""></td>
      </tr>
        <tr>
            <td><img src="images/cus.png" width="102" height="29"></td>
      </tr>
        <tr>
            <td><img src="images/aus.png" width="102" height="29"></td>
      </tr>
        <tr>
            <td>
                <img src="images/zcom_06.png" width="102" height="1" alt=""></td>
        </tr>
        <tr>
            <td><img src="images/prev.png" width="102" height="29"></td>
      </tr>
        <tr>
            <td>
                <img src="images/zcom_08.png" width="102" height="315" alt=""></td>
        </tr>
        <tr>
            <td colspan="2"><img src="images/zcom_09.png" width="1024" height="15"></td>
      </tr>
        <tr>
            <td colspan="2">
                <img src="images/pp.png" width="1024" height="130" alt=""></td>
        </tr>
    </table>
    <!-- End ImageReady Slices -->
    </body>
    </html>

    It could be due to coding errors. You have over 30 problems in your html. Run your pages through the validator here:
    http://validator.w3.org
    If it is still acting up in IE (the most strict of the browssers on html errors) after you clean it up, post back and we can take a closer look.

  • Coding help w/ CC email on a livecycle form

    After reviewing this forum for hours last year I was able to get my form to work to email to a specific to address from the form data with a prescribed subject and body. However, I was never able to get the cc function to work.
    Here's my code that currently works just fine (with a few changes for privacy). I want to add a cc: function to fixed email address ([email protected]). I have limited knowledge about coding so as specific as you can be is much appreciated.
    button/>
                </ui>
                <font typeface="Myriad Pro"/>
                <caption>
                   <value>
                      <text>Request Approved</text>
                   </value>
                   <para hAlign="center" vAlign="middle"/>
                   <font typeface="Myriad Pro"/>
                </caption>
                <border hand="right">
                   <?templateDesigner StyleID apbx2?>
                   <edge cap="butt" stroke="raised"/>
                   <fill>
                      <color value="212,208,200"/>
                   </fill>
                </border>
                <bind match="none"/>
                <event activity="click">
                   <script contentType="application/x-javascript">event.target.submitForm({cURL:"mailto:"+ Email.rawValue +"?subject="+Student.rawValue +"'s Override Request for "+Course.rawValue +" Approved  &amp;body=Your request to enroll in "+Course.rawValue +" has been approved. An electronic override has been issued for you. Please note that this approval/override DOES NOT enroll you in the course automatically. You are responsible for logging into myBanner and adding this course to your schedule. If you are experiencing registration issues, please review this website for more information first: http://www.xxxxxxxxx.edu. If you need further assistance, please contact the Registrar's office at 123-456-7890.",cSubmitAs:"PDF",cCharset:"utf-8"});</script>
                </event>
             </field>
             <field h="6mm" name="Button2" w="28.6851mm" x="172.7175mm" y="268.9341mm">
                <ui>
                   <button/>

    No, a radio button can have only one value.
    Use conditional logic in your processing to assign the price.
    switch ($_POST['option') {
      case 'Cotton':
        $price = 10;
        break;
      case 'Suede':
        $price = 15;
        break;
      default:
        $price = 20;

  • Coding help reqd for cs_goitem-erfmg

    Hi friends,
    In MIGO, and Qty field ERFMG...i want to put a coding check that it should display a message as "Quantity should be minimum of 10% less and maximum of 20% high only",whenever the user tries to change the value of the field(existing value from the order #).
    the field is cs_goitem-erfmg....
    FYI.
    I know the badi implementation and assinged it also.the coding part is not coming perfectly what i needed.
    Pls do reply, if anyone have sample code or have solutions how to declare it.
    thanks & regards
    sankar.

    hi,
              I have the same requirement please can u tel me how did u solve it....
    thanks and regards...
    Mady

  • Coding help reqd for BADI

    HI Friends,
    Im working on MB_MIGO_BADI object for MType: 261.Here, im facing a problem to call a info msg with coding effect.i.e, I've to give a conditional message says that if the user tries to change the quantity (changing the existing/available in the field text of MIGO), then it'll give a window pop-up message or info msg like "Quantity should not be changed". Pls reply ur post how to fix this.
    The fields are
    1) cs_goitem-bwart " MType
    2) cs_goitem-erfmg "Quantity
    Note: A) It'll be applied only for MType:261.
              B) Pls advise, Here, shall I declare the export and import memory id concept?
    FYI
    ******Below is the coding part declared inside the method function.
    method IF_EX_MB_MIGO_BADI~LINE_MODIFY.
    if cs_goitem-bwart eq '261'.
    *cs_goitem-erfmg is not initial and
    *call function 'CUSTOMIZED_MESSAGE'
    *exporting
    Message i006(zmsg).
    endif.
    endmethod.
    Above, it helps only showing the info msg while entering the mtype: 261.But i need to display it only if the cursor comes into Qty (ERFMG) field. Pls advise me how to fix with ur coding example.
    mail me:[email protected]

    Posted newly since one of the issue got solved.
    thanks

  • Advanced Coding help

    Ok here's what I am trying to find out if it is possible, Now I know connecting to the internet via coding on an offline php document may be hard, but it is what I need to complete what I need to do, so heres what Im trying to achive, right I allow people to download my website and get updates for it, themes ETC, but what now need is to be able to stop people from robbing my website, and I got an idea, if I was to find out how to link up my mysql database which all my members infomation is located in and add a new coloum into it, which were a code will reside and the code is generated for each member not one being the same, and so when the member logs on he/she has to download the website and a seprate php/html/java (whichever I need for it) which will contain the generated code. So when they put the file with the website in a folder, the website when opend up will search for that file, look at that code, see if it is matches one with the mysql database and if someone else is using it (at the same time) they who opened it up secound will be promted with a message telling them that they havent got a genuine file and will have to register, download their file and all will be good. Now reading what I have just wrote, I know notice that it is cery advanced thing i am asking for and it may not even be possible, but if anyone knows how to do it or knows where I can find it out, can you tell me. Thank you.

    It's kind of difficult to read your post because it's a grammatical mess and there seem to be words missing, but if you are looking for a way to safeguard code you write, there are two possible solutions I know of.
    Firstly, there are products like Zend Guard that will encode all or part of your code. You can therefore distribute code that can only be used on a particular server, or you can set code to expire after a given length of time. Zend Guard costs about $600/year. There are cheaper alternatives, but you should compare features carefully.
    The second method is to make sure all the websites that use your code are on a server you control, then you can hide a code library deep in the server where programmers who only have FTP access to particular accounts can't access it.
    The problem with the method you describe (if I understand it correctly) is that a competent coder could eaily disable your security meature.

  • Socket private chat coding help!!!

    any one get the private chat coding in TCP/IP(socket connection). I have coding the chat program that can public chat but the private chat get problem.
    anyone get the private chat tutorial and comment.....pls help me....
    hong

    Try searching around with Google. There are millions of chat programs all over the net with source.

  • Coding Help in Expert Routine

    Dear Guru's
    We have a Expert Routine to Fill Data from a ODS to CUBE.
    i am facing problem in selection of DTP, When i mention CALDAY as eg:01.03.2009 - 31.03.2009.
    i Dont get only MARCH data in Cube but all the complete Data which is in ODS . i mean my Expert Routine  does not recognise my selection.
    Here is the Code
        DATA:
        BEGIN OF ls_ztwr_o13comp,
          calday          TYPE     /bi0/oicalday,
          co_area         TYPE     /bi0/oico_area,
          /bic/zcostcent  TYPE     /bic/oizcostcent,
          UNIT            TYPE     /bi0/oiunit,
          /bic/zacthours  TYPE     /bic/oizacthours,
          /bic/ztarhours  TYPE     /bic/oiztarhours,
          /bic/zprodvity  TYPE     /bic/oizprodvity,
          /bic/zcumachrs  TYPE     /bic/oizcumachrs,
          /bic/zcumbuhrs  TYPE     /bic/oizcumbuhrs,
          /bic/zprodcum   TYPE      /bic/oizprodcum,
        END OF ls_ztwr_o13comp,
        lt_ztwr_o13comp   LIKE TABLE OF ls_ztwr_o13comp
          WITH KEY co_area /bic/zcostcent calday UNIT,
        lt_ztwr_o13comp1  LIKE TABLE OF ls_ztwr_o13comp
          WITH KEY co_area /bic/zcostcent calday UNIT,
          wa_year TYPE n LENGTH 4,
          wa_month TYPE n LENGTH 2,
          wa_calmonth TYPE n LENGTH 6.
    $$ begin of routine - insert your code only below this line        -
        ... "insert your code here
        SELECT *
          FROM /bic/aztwr_o1300(ods)
          INTO CORRESPONDING FIELDS OF ls_ztwr_o13comp.
          COLLECT ls_ztwr_o13comp INTO lt_ztwr_o13comp.
        ENDSELECT.
        CLEAR ls_ztwr_o13comp.
        LOOP AT lt_ztwr_o13comp
         INTO ls_ztwr_o13comp.
          IF ls_ztwr_o13comp-/bic/zcumachrs = 0.
            ls_ztwr_o13comp-/bic/zprodcum = 0.
          ELSE.
            ls_ztwr_o13comp-/bic/zprodcum = ls_ztwr_o13comp-/bic/zcumbuhrs /
            ls_ztwr_o13comp-/bic/zcumachrs * 100.
          ENDIF.
          CLEAR:
          ls_ztwr_o13comp-unit,
          ls_ztwr_o13comp-/bic/ztarhours,
          ls_ztwr_o13comp-/bic/zacthours,
          ls_ztwr_o13comp-/bic/zcumbuhrs,
          ls_ztwr_o13comp-/bic/zcumachrs,
          ls_ztwr_o13comp-/bic/zprodvity.
          APPEND ls_ztwr_o13comp TO lt_ztwr_o13comp1.
        ENDLOOP.
        CLEAR ls_ztwr_o13comp.
        LOOP AT lt_ztwr_o13comp1
         INTO ls_ztwr_o13comp.
          COLLECT ls_ztwr_o13comp INTO lt_ztwr_o13comp.
        ENDLOOP.
        CLEAR:
        ls_ztwr_o13comp,
        lt_ztwr_o13comp1.
        LOOP AT lt_ztwr_o13comp
         INTO ls_ztwr_o13comp.
          wa_year = ls_ztwr_o13comp-calday(4).
          wa_month = ls_ztwr_o13comp-calday+4(2).
          CONCATENATE wa_year wa_month INTO wa_calmonth.
          MOVE-CORRESPONDING ls_ztwr_o13comp TO RESULT_FIELDS.
          RESULT_FIELDS-calmonth = wa_calmonth.
          RESULT_FIELDS-calyear = wa_year.
          APPEND RESULT_FIELDS TO RESULT_PACKAGE.
        ENDLOOP.
    Can any one please tell me where i should change the code, So that i get data for only those month which is mentioned in my DTP.
    Thanks in adv,
    Dev

    Hi Srinivas,
    You are selecting data from your DSO and then processsing it and then appending it in RESULT_PACKAGE.
    Now the data which will be selected because of the filter in the DTP will be in the internal table SOURCE_PACKAGE.
    So you should base your select on the DSO for all entries in Source_package. This will ensure you process only those records which are selected with the filter.
    Regards,
    Mansi

  • XSLT coding help

    Hi,
    XSLT Code.
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:template match="/">
              <ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
                   <SUCCESS>
                        <xsl:value-of select="soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification"/>
                   </SUCCESS>
    ----pseudo code starts-------------
    if SUCCESS eq 1,
    then move "Y" to SUCCESS.
    elseif SUCCESS eq 0,
    then move "N" to SUCCESS
    ----pseudo code ends-------------
              </ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
         </xsl:template>
    </xsl:stylesheet>
    Could someone help to put the  pseudo code in XSLT syntax.
    Thanks,
    -santosh
    Edited by: santosh koraddi on Mar 24, 2011 1:23 AM

    Below is the solution......
    <?xml version="1.0" encoding="utf-8"?>
    <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fn="http://www.w3.org/2005/xpath-functions" xmlns:ns0="http://peoplesoft.com/APC_WORKER2_CI" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
         <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>
         <xsl:template match="/">
              <ns1:Z_HPA_357_PROVISION_USER_IMS.Response xmlns:ns1="urn:sap-com:document:sap:rfc:functions">
                   <SUCCESS>
    <xsl:choose>
              <xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification  = 1">
          <SUCCESS>Y</SUCCESS>
              </xsl:when>
              <xsl:when test = "soap:Envelope/ soap:Body/ Create__CompIntfc__APC_WORKER2_CIResponse/ notification =  0">
          <SUCCESS>N</SUCCESS>
              </xsl:when>
         </xsl:choose>                    
                   </SUCCESS>
              </ns1:Z_HPA_357_PROVISION_USER_IMS.Response>
         </xsl:template>
    </xsl:stylesheet>

Maybe you are looking for

  • Tax Procedures are empty

    Dear Experts We have to implement SAP ECC 6.0 for a German client. I've run the Country installation program to start with organisational set up but when I check the tax procedures including TAXD for Germany they dont have any default tax conditions

  • Image mask

    I am working on a custom sized video in FCPX. File size is 8150 x 1200. Everything seems to go on but image mask, when i load a same size png mask is appears stretched. I test it on a standard video size 4K and it works fine. Is image mask not workin

  • Can see windows file system, its in the grub menu, can't load it.

    Hello. I can mount and access my window file system. I can also see it's entry in the grub menu, but I cannot load it. I used os-prober to detect the windows installation and then install grub. Does anyone know what the problem might be? This is my f

  • Mac Mini Server and Windows SBS

    I am running an aging Dell server with SBS 2003 and wondered whether it would be possible to use one or perhaps two Mac Mini Servers for my needs.  I used to host my own Exchange on this server but I was running out of HD space and it was not easily

  • RowFilter: any lib with a richer set of predefined filters?

    the core RowFilters are ... well .. a very limited set. Pretty sure that nearly everybody using filters has to re-implement very basic stuff. Like f.i. a ComparableFilter analog to NumberFilter/DateFilter plus the Less/GreaterEqual and ranges and ...