Can macros be nested???

Hi,
In my HR Report,I have to get the active employee details of an Org Unit and in selection i have OU field
I have used the macros to solve this
GET PERNR.
RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA
IF PNP-SW-FOUND EQ 1.
   IF P0000-STAT2 = '3'. -
>here i m checkin whether the employee is active
   ELSE.
       EXIT.
   ENDIF.
ENDIF.
RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA. -->using this macro i m gettin      
IF PNP-SW-FOUND EQ 1.                                                         employee position nd other field value
ENDIF
Instead of using like mentioned above, shall i nest the macros as shown below :
GET PERNR.
RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA
IF PNP-SW-FOUND EQ 1.
   IF P0000-STAT2 = '3'. -
>check employee is active and if so get the p0001 value..
        RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA
        IF PNP-SW-FOUND EQ 1.
        ENDIF
    ELSE.
       EXIT.
   ENDIF.
ENDIF
nd I like to know there s any performance factor associated with this nested macros??
Regards,
Kiruthi

>
kiruthiga balusamy wrote:
> Hi,
>
> In my HR Report,I have to get the active employee details of an Org Unit and in selection i have OU field
> I have used the macros to solve this
>
> GET PERNR.
> RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA
> IF PNP-SW-FOUND EQ 1.
>    IF P0000-STAT2 = '3'. -
>here i m checkin whether the employee is active
>    ELSE.
>        EXIT.
>    ENDIF.
> ENDIF.
>
> RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA. -->using this macro i m gettin      
> IF PNP-SW-FOUND EQ 1.                                                         employee position nd other field value
> ENDIF
>
> Instead of using like mentioned above, shall i nest the macros as shown below :
>
> GET PERNR.
>
> RP-PROVIDE-FROM-LAST P0000 SPACE PN-BEGDA PN-ENDDA
> IF PNP-SW-FOUND EQ 1.
>    IF P0000-STAT2 = '3'. -
>check employee is active and if so get the p0001 value..
>         RP-PROVIDE-FROM-LAST P0001 SPACE PN-BEGDA PN-ENDDA
>         IF PNP-SW-FOUND EQ 1.
>         ENDIF
>     ELSE.
>        EXIT.
>    ENDIF.
> ENDIF
>
> nd I like to know there s any performance factor associated with this nested macros??
>
> Regards,
>
> Kiruthi
hi kiruthiga balusamy
    Yes u can write the program as u have written and there won't be any performance issue. Hey Krithiga r u from KV No.1 Uppal. If so I am Srinivas from 12 C
Regards,
Srinivas
09836093634

Similar Messages

  • Cann't extend a inner class where as can Implement a nested Interface

    i cann't extend a inner class in some other outer class . Where as i can implement the nested Interface in some other class. Why????
    for example:-
    class ABC
    class Inner
    /* class body */
    interface TempInterface
    /* interfacebody */
    class OuterClass
    class InnerTwo extends ABC.inner //(line 1)Will give error
    class InnerTwo implements ABC.TempInterface //(line 2)Will run fine
    the line 1 is going to give compilation error i.e not in the scope but the line 2 will run fine .
    Both of the things are in the same class but giving 2 other results.
    I am not getting sufficient reasons for it.
    Can any one help me????
    Reagrds
    Arunabh

    As far as the language is concerned, the classonly
    exists in the context of an instance of theenclosing
    class.This still exhibits a class/object confusion to me.
    It should be 'instance only exists ...' or 'instance
    can only exist'. The class only exists in the
    scope of the enclosing class, but this is another
    issue.I'm not following what you're saying. The second sentence sounds like you're disagreeing with me. The last sentence sounds like you're agreeing with me.
    A non-static nested class is an instance member, just like an instance method or instance variable. As such, as far as the language is concerned, that class only exists in the context of an instance of the enlcosing class.It's not just instances of the nested class--its the class definition itself that only exists within the context of an instance of the enclosing class. That's why you have to do anEclosingIntstance.NestedClass and can't do EnclosingClass.NestedClass.

  • How can I close nested folders in mail

    I use folders in Outlook. LOTS of folders. They Re carefully arranged and nested for easy navigation. When I open Mail on the iPad I see ALL of my folders by default. There does not seem to be an option to collapse the view. This makes the Mail program almost unusable for anything other than reading and responding. No management is practicable.
    Is there something I missed? Surely Apple's attention to user experience thought of this!
    HELP.
    gll

    You can't.  You have to do that on your computer, then sync.
    However, if your email service provides web access, then use Safari to get there - then you can do whatever management tasks are generally allowed at that site, including adding folders.

  • Can you create nested condition in merge(e.g. insert/update) using owb

    Hi,
    Does OWB9iR2 allow you to build in nested condition in merge. such as
    If no match on col1 and col2 then
    if col3 match then no new sequence insert <---
    else insert new sequence;
    else (there is match on col1 and col2)
    update col3 and sequence.
    I have an incremental load for a lookup table, where insert/update is used. There are two match columns and surrogate key is used. When there is no match, it shall not insert a sequence when there is a match on third column. I can not use the 3rd column in the original match because it shall be updated where there is a match for the two match column.
    I am trying to avoid using transformant for performance impact. Thanks

    HIi I think the misleading thing is that in PL/SQL you can use booleans, which is not possible in SQL. So in a PL/SQL tranformation, this is OK:
    a:= case when not orgid_lkup( INGRP1.ORG_ID )
    then get_supid(..)
    else ...
    but, the following SQL does not work:
    select case when not orgid_lkup( INGRP1.ORG_ID )
    then get_supid(..)
    else ...
    into a
    from dual;
    I ended up using only 0/1 as boolean return values for these reasons;
    so I can have:
    select
    case when orgid_lkup( INGRP1.ORG_ID ) = 0 then ...
    though true booleans are better if you don't have to embed them in SQL.
    Antonio

  • Can macros be executed everytime a planning book is opened?

    Hi experts,
    I am new to APO,can anyone let me know if it is possible to execute the macros by default evrytime the Planning book is opened. In my case i get junk data when i open the planning book for the first time and the values get computed only when  i change some cell and hit Enter .
    Kindly help me with this problem
    regards
    Ashwin
    Edited by: Wilian Segatto on Jan 19, 2010 3:52 PM

    Thanks a lot for the reply.
       As i told i am new to APO,can you kindly elaborate on how can i add a default macro to start macro also. How will i find which macro gets triggered when i hit enter in the planning book ?
    Kindly help
    regards
    Ashwin

  • Can you use nested sql statements in jsp??

    HI, I was wondering if you can use nexted sql statements...
    example...
    <%@ page language="java" contentType="text/html" %>
    <%@ page import="java.sql.*" %>
    <%@ page import="forum.DataAccess" %>
    <%
         // Create a new instance of the DataAccess Class
              DataAccess d = new DataAccess();
         // This call the database connection method from the DataAccess Class
              d.ConnectDatabase();
         /* This gets the threads from database for the categories */
              // This is initilzing the variables
                   String threadname = null;
                   int threadid = 0;
              // This sets the sql variable to nothing
                   String sql = "";
                   String sql1 = "";
              // This sets the rs variable to null
                   ResultSet rs = null;
                   ResultSet rs1 = null;
              // This is doing a SELECT on the thread table based on the category id
                   sql += "select * from forum_threads where ft_catid = 2";
                   rs = d.SQLQuery(sql);
         /* End of categories */
         while (rs.next()){
                                       threadid = rs.getInt("ft_threadid");
                                       threadname = rs.getString("ft_threadname");
         sql1 += "select * from forum_messages where fm_catid = 2 and fm_threadid = " + threadid + "";
         rs1 = d.SQLQuery(sql1);
    %>
    THis is the error I get.....
    javax.servlet.ServletException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt
    I know what that is.. it is because I am trying to open another result set before the first one is closed... but I need that one open cause I need to loop through the ids and run it against the second query??
    Any suggestions...

    I am not positive but it seems from your error message you will not be able to use the nested SQL. Another option would be to store the values of the ResultSet in a Vector (or Array), and then close your ResultSet and loop through the vector or array instead...
    Zac

  • Can we avoice Nesting IF statement

    Hi All,
    I want to process a code if 3 internal tables are empty.
    I am doing like this
      IF NOT PI_ASSIGNMENT IS INITIAL.
        IF NOT PI_CONTRACT IS INITIAL.
          IF NOT PI_PO_DETAILS IS INITIAL.
          ENDIF
      ENDIF
    ENDIF
    Can we write this in one single statement instead of writing in nested IF's.
    If it is possible please help me.
    Thanks in Advance
    Ranjith.

    if a[] is initial and b[] is initial and c[] is inital.
      write:/ 'All three tables are empty'.
    endif.

  • Can I create nested address lists?

    I want to create a set of nested address lists so that I can manage a largish group of contacts in a voluntary organisation with a hierarchy, rather like the way I manage contacts in Work using MS Outlook (sorry for mentioing the competition!). I tried adding an existing list (call it List1) to a new list (call it List2) which also has to carry some additional individual contacts. When I do this, "List2" shows the individual contacts and "List1" as well; when I select it for the "To:" line in a new email, "List2" appears OK, however when I send the email it is only sent to the individuals and does not go to the members of "List1".
    Am I doing something wrong or does Thunderbird not support this?

    Basic info on 'Address Book'.
    There are two default address books which you cannot delete.
    'Personal Address Book' and 'Collected Addresses'.
    You can add further 'address books'.
    File > New > Address Book.
    Enter a name and click on OK
    Address books can be created to hold specific contacts eg: Family, Clients or if you have a lot of people you can sub divide them.
    eg: A - M in one and N-Z in another
    You can also create 'Mailing Lists'.
    Mailing Lists are sub groups to an address book.
    Mailing lists are designed to allow selected contacts that are already in the address book be grouped together so that you can send one email to that group of people in your address book.
    So, a person in a 'Mailing List' must also be in the associated address book and must have a valid email address.
    More info on Mailing Lists here:
    * https://support.mozilla.org/en-US/kb/how-create-and-use-mailing-lists

  • Can't get nested movie clip to play

    Hi everyone,
    I have a movieclip on one of the frames on the maintimeline.
    Within this movieclip is a nested movieclip which itself is
    contained by another clip. The first movie clip plays to a certain
    frame where I've got some code telling the nested movie clip to
    play at that frame but this nested clip doesn't play. I'm not sure
    if I'm targetting the nested clip incorrectly or whether something
    else is wrong with the code.
    The .fla file can be downloaded at:
    http://www.officelinkonline.com.au/Ad/
    if someone would take a look. The movie clip in question is
    on the layer called text5, and within this mc on frame 15 is the
    code I'm trying to use to get the nested movieclip to play at that
    point. The code used on that frame is:
    this.innerText5_mc.free_mc.play();
    stop();
    pauseAnim = setInterval (this, "nextFrame", 4000);
    I wondered if someone could take a look and see what I might
    be doing wrong? Basically the free_mc clip just makes the word
    "FREE" scale up.
    Would really appreciated any advice.
    Thanks

    Thanks again. I'm a bit worried that you weren't able to see
    the font that I used. All of the text used in the animations are
    static text fields. I don't seem to have the option to embed these
    characters since it's static text. It'll only let me embed if the
    text fields are dynamic. Does this mean I have to change them all
    to dynamic text fields, and if so do I need to embed the font in
    every text field in every frame of the animation or can you do this
    in one place?
    Appreciate your continued help.

  • Can you have nested event loops?

    I am trying to use a nested event structure and am have a lot of trouble getting it to work right. On the block diagram I have 5 events that I am looking for. When I hit the baseline button I have an abort button become visible and I want that button to control the vi that I have running in that event, but once the baseline event starts I am not able to push the abort button or any other button for that matter. I started with the user event handler template. Attached you will find a copy of my program, If you decide to run it you need to choose comm port 0 when it asks or else the program will hang. Should I be using a different type of template for this program? This is also a problem when the assay button and save buttons ar
    e pressed.
    THanks
    Attachments:
    labview.zip ‏277 KB

    I opened the code and was missing a DLL and some controls so I was not able to run it. However I still may be able to help.
    Basically I have never had a need for impeded event structures because they are very hard to get right, and in general are not needed. I believe some of the event structure caveats mention this, or the 2 events in a loop are similar.
    Anyways the reason it is dangerous is that they can lock each other. As soon as your VI starts running the structures start watching for value changes. They all share the same event queue so they are all watching the same stack of events.
    So in your code if I hit the Buttons.Save Data button and then I decide to hit it again, or I decide to hit the Buttons.Stop your VI will lock up. If I then hit the S
    aveAssay button it does not matter.
    Here is the reasoning. The queue of events looks like: Save Data, then Stop, and then SaveAssay. The SaveData is handled first so I enter that case. Now before I finish that events code, I must run the impeded event structure due to dataflow. However because I hit Stop next, it is the next thing in the event queue. The impeded event structure is waiting for a SaveAssay or SaveBaseline event, and will not finish until it can process that event.
    However LabVIEW events can not be thrown away so the Stop MUST be handled before the SaveAssay can. So in your case the event structure is waiting to handle the SaveAssay but the Stop must be handled first. However the stop can not be handled until the SaveData finishes, which it can�t.
    Therefore you end up locked. LabVIEW can not finish the handling of one event until another is handled, and data flow won�t allow that.
    Sorry for the novel here. If you have any questions let me know, I real
    ize this is a confusing answer, but the issue is complicated.

  • How can I access nested symbol details such as offset and name dynamically

    Hey friendly Edge Animate experts!
    I'm very new to Edge Animate, and appear to have run into some startup problems that I am unable to find a good way around.
    I have setup a small demo project with several levels, and am trying to get details from symbols on 2nd or 3rd level dynamically with little luck.
    To test that I fetch the correct details, and have the pathing correct, I have added a text option in each symbol.
    I can access and alter the value of the text fields - but I can't access the symbol data such as offset, position, ID, name etc.
    For simplicity, imagine a project with a symbol "FirstLevel" that has a symbol "SecondLevel" inside it.
    "SecondLevel" has three symbols that each have 2 text layers FirstTextField and SecondTextField  in addition to a symbol that has a png image.
    My code:
    // Get all the 3rd level symbols that I want to get details on (works perfectly)
    var childSymbols = sym.getComposition().getStage().getSymbol("FirstLevel").getSymbol("SecondLevel").getChild Symbols();
    // Loop through all the children (works perfectly)
    for(var i=0; i<childSymbols.length; i++){
    // Add the looping counter to a text field just to test if all is ok (works perfectly)
       childSymbols[i].$("FirstTextField").html(""+i)
    So... I can access the symbols, change a text without problems.
    Now i would like to get the symbol details such as offset().left or position().top
    and add that info to SecondTextField and I just can crack that nut!!!
      childSymbols[i].$("SecondTextField").html(""+childSymbols[i].position().left); // not working
      childSymbols[i].$("SecondTextField").html("TEST VALUE"); // working, TEST VALUE is shown
    // Not working
    var ChildPos = sym.getSymbol(childSymbols[i]).position();
    childSymbols[i].$("SecondTextField").html(""+ChildPos.left);
    // Not working
      childSymbols[i].$("SecondTextField").html(""+getVariable(childSymbols[i]).position().left ));
    I have tried this and that for hours and hours
    I feel that i have searched high and low
    I must have tried all the wrong options
    But I'm still looking for the one correct way to do thi...
    Any help, tips, tricks or read-up directions would be much apreciated.

    Hey Darrell,
    Thank you very much for taking the time to look into this.
    I have uploaded a simplified version (without any png files) at:
    http://www.lokehansen.com/blog/wp-content/uploads/2012/12/helpwanted.zip
    Best wishes
    Loke Krongaard Hansen

  • CSS in CS4: Can I create "nested styles" similar to InDesign's?

    I am working on the obituary archive section of a newspaper website. I have lists of similar 3-line "units", and I have a different class style set up for each line. A typical "unit" would be:
    (Person's name) - bold weight, soft return
    (Person's age/residence) - regular weight, soft return
    (Date of obit publication) - smaller text, hard return
    In InDesign, I could easily set up a nested paragraph style (with the help of defined character styles) to automatically format this, but I haven't been able to figure out a quick way to do so in Dreamweaver. So I waste a lot of time selecting different class styles for each line to make it look how I want it. Is it possible to make this simpler? Am I making it too hard?

    Am I making it too hard?
    You are in a way.  What are your skills with HTML and CSS?  If 'minimal' then you are in for a rough ride.  DW doesn't take kindly to that....
    It would be a simple matter to define a few descendent selectors that would style everything in each of those units automatically.  Does that mean anything to you?
    For example -
    #obitUnit { .... }
    #obitUnit div { ... }
    #obitUnit h1 { font-size:1.6em;margin:1em 0 0; /* gives a 'soft return' along with the next rule */ }
    #obitUnit h1+p { margin:0 0 1em; }
    #obitUnit p+p { font-size:x-small; }
    would style -
    <div id="obitUnit">
         <h1>Person's Name</h1>
         <p>Person's age/residence</p>
         <p>Date of publication</p>
    </div>

  • How can i understand nested application module?

    Is there inherit relation between root application module and child application module?
    jiayu
    thanks

    Hi,
    no, they are not inheriting from each other but share the same transactional context. Nested AM are also loaded lazily, which means you minimize the footprint of your app.
    Check
    http://radio.weblogs.com/0118231/
    for good information on ADF BC
    Frank

  • How can I show/hide a nested composition during entire video?

    I cannot figure out how to hide a nested composition/layer during the main composition.  I want to hide it at the beginning, show it during part of the video, and then hide it for the rest of the time.  How is this done?  Is there a better way of doing this?  I'm a rookie with After Effects, so please keep your explanations in detail.  Thanks.

    You can treat a nested composition or a precomp in the same way you treat any footage. You can split the layer (Ctrl/Cmnd + Shift + D), or simply duplicate the layer (Ctrl/Cmnd + D) and adjust the in our out points of the duplicate (Alt/Option + [ or ]), set keyframes for opacity (T). This is extremely basic stuff. Have you read Todd's Getting Started with After Effects?
    If you just want to show or hide a layer and still keep it in the composition then you use the shy switch. The shy switch has nothing to do with layer visibility, it just makes it easier at times to navigate around the timeline.

  • Can you create a ToC with nested character styles?

    I'm creating a technical guide document, and for ease of formatting within document creation I've used nesting character styles within the 'Body' paragraph style. I need to reference the second level headings within the ToC, but I since I can only use the 'Paragraph' styles in ToC creation - can I do this? (I'm using InDesign CC)
    The document looks something like this, with the italics indicating the nesting structure and the ** indicating what needs to go in ToC.
    1. Our Story (separate paragraph style, not an issue)
    1.1 Random Title Goes Here ("Body" paragraph style, nested "Heading 2")**
    Body text now, all over here, several paragraphs, etc. ("Body" paragraph style, nested "Body")
    Subheadings - not required in ToC ("Body paragraph style," nested "Subheading")
    1.2 Random Section Title goes here ("Body" paragraph style, nested "Heading 2")**
    More body text, you get the gist. ("Body paragraph style, nested "Body")
    Basically, I need to build my ToC with the Heading 1 and the Heading 2, but Heading 2 is nested in "Body" paragraph style.

    Nested styles are NOT a TOC style function, it is only available in a paragraph style. But when you choose a paragraph style to be written into your TOC based on another Para Style, most likely a headline, you can define such nested styles in this para style.
    But a TOC entry can only include a complete paragraph, a single one. You can make a Para Style, let's name it TOC1 which draws the information from Headline 1, but not for headline 2.
    This TOC1 can include nested styles (or GREP styles).
    Another way to define chara styles automatically is via the TOC style definition. Styles there will override any styles which come from nested and GREP styles. (But this does not necessary mean, that they have no functionality any more, because ID's styles are only partially defined and leave room for other elements of a style to be used together.)

Maybe you are looking for

  • Not able to see the values properly

    Hi,, I am using Jdev 11.1.1.5. I see the value of "val.toString()" is correct and the Sql of the view is fine. Then what can be the reasons that no values come out in the popup? Why do I get "No data to display" within the popup once I clicked the li

  • Is there a way to calibrate gps on ipad?

    Hi, I purchased an iPad Mini 2 (cellular version) a couple of weeks ago to use on my boat with the Navionics chart plotter app.  The app shows the boat location as a triangle and a number of ways to view it, one of which is the boat heading view wher

  • My new iPhone is not showing up in iTunes

    My new iPhone 4 is not showing up as a device in iTunes anyone have any remedies?

  • Places location labels not accurate

    I have been busy geotagging my photos using Places, but am realising now that the black bubble name is not acurately reflecting the pins geo location. For example I think I must have entered a custom name for a place entitled "whitechappel road marke

  • Updating properties by name

    I have a need to update the property of a class given its name. I have found that if I used the notation : obj["name"] = "hello world!" that this does not update the property 'name' of sealed class instance 'obj'. To be more explicit, suppose I have