ObjC Question with CS193p assignment (handling variables)

Ok, im working on Assignment 2B (HelloPolly) for the Stanford CS193P course work from Spring '09. Per the assignment, i invoke a new instance of the "PolygonShape" class that is used for storing the polygon sides in the awakefromNib method. I would like to directly access the number of sides of that instance (in this case polygon.numberOfSides) later on in the code but the issue i run into is that technically at compile time, polygon object is not created yet.
Here is my code:
// Awaking from Nib method for HelloPolly2B
- (void)awakeFromNib; {
// Invoking a new instance of PolygonShape known as polygon
PolygonShape *polygon = [[PolygonShape alloc] initWithNumberOfSides: [NumberOfSides.text integerValue] minimumNumberOfSides: 3 maximumNumberOfSides: 12];
NSLog(@"My Polygon: %@", [polygon name]);
// Decrease method activated by interface button.
- (IBAction)decrease:(id)sender {
NSLog(@"Decrease Method");
// Compile fails here since technically, polygon is undeclared
if (polygon.numberOfSides > polygon.minimumNumberOfSides){
polygon.numberOfSides - 1;
interfaceUpdate;
NSLog(polygon.numberOfSides);
So how could i do this? I would like to avoid using the interface label text since it seems like bad practice to use that as a variable. I appreciate any suggestions or ideas on how i can handel this problem.
Thank you!
Message was edited by: RombusRK, Did not wrap code in proper tag

Ray, Thanks for the warm welcome and the dead on answer! So its not that that the variable is not setup yet, but that its local to that method, i figured it was something simple.
After reading though your suggestion, i looked back over the code and realized i was already declaring a global variable. Then as part of the implementation i was trying to redeclare the variable rather than use the one i already had.
Here is my corrected code for anyones future reference.
controller.h
#import <UIKit/UIKit.h>
#import <Foundation/Foundation.h>
#import "PolygonShape.h"
@interface Controller : NSObject {
IBOutlet UILabel *AngleInDegrees;
IBOutlet UILabel *AngleInRadians;
IBOutlet UILabel *NameOfPolygon;
IBOutlet UILabel *NumberOfSides;
IBOutlet UIButton *decreaseButton;
IBOutlet UIButton *increaseButton;
IBOutlet PolygonShape *shape;
- (IBAction)decrease:(id)sender;
- (IBAction)increase:(id)sender;
@end
controller.m
#import "Controller.h"
@implementation Controller
// Awaking from Nib method for HelloPolly2B
- (void)awakeFromNib; {
[shape initWithNumberOfSides: [NumberOfSides.text integerValue] minimumNumberOfSides: 3 maximumNumberOfSides: 12];
NSLog(@"My Polygon: %@", [shape name]);
void interfaceUpdate(){
- (IBAction)decrease:(id)sender {
NSLog(@"Decrease Method");
if (shape.numberOfSides > shape.minimumNumberOfSides){
shape.numberOfSides - 1;
interfaceUpdate;
NSLog(shape.numberOfSides);
- (IBAction)increase:(id)sender {
NSLog(@"Inrease Method");
@end

Similar Messages

  • Assign task with use a document variable

    Hi,
      if i'm assigning a pdf document in assign task operation with use a document variable instead of application asset, I see the same old blank form after user submits the form.
    what ever typed in the form is not seen in the output variable assigned in Assign user task.
    If I use application asset and provide input xml, then I could see the filled form as output when user submits.
    What should I do to get the filled data in the form?
    Note: Reason for using document variable is I want to dynamically assign the form created in the process to assign task instead of getting from repository.
    Highly appreciate your assistance.
    Thanks,
    kc

    Ok. So are you populating document with the values entered by user in process before assigning.
    Best approach is to xml and application asset.
    And do you have your pdf document binded with xml schema. If not then you wont have fields populated in any way.
    Thanks,
    Prashast

  • Help me with  this assignment

    can anyone out there help me with this assignment ????? i`ll attach the file to this topic
    In this assignment, you are to write a Java applet, using arrays, to simulate the functions of a drinks-vending machine.
    The assignment requirements described below are broken down into 2 stages of development, described in this document
    as 'Basic Requirements' and 'Additional Features'. You are advised to do your programming progressively in these
    stages. An Activity Plan has also been specified for you to follow. Refer to the 'Grading Criteria' on page 5 to have
    an idea of how the different components are graded.
    1.     1. BACKGROUND
    A company intends to build computerised drinks-vending machines to enlarge its business portfolio. You have been tasked to develop a
    Java applet that simulates the operation of such a machine to determine if it will meet their needs.
    2.     1. BASIC REQUIREMENTS
    The machine should have a wide range of drinks available. A customer can choose a drink according to the following criteria:
    a)     a) Category of Drinks
    �     � Beverages
    �     � Soft Drinks
    (For beverages, there is choice of whether sugar and/or creamer is required, for which there is an additional charge.)
    b)     b) Type of Beverages
    �     � Hot
    �     � Cold
    Once a customer has specified the drink he wants, the amount payable is displayed. The unit prices to be displayed are as follows:
    Drinks     Price per Cup/Packet ($)
    Beverage:     Coffee     1.00
         Tea     1.20
         Milo     1.40
         Horlicks     1.35
         Chrysanthemum     1.00
         Ginger     0.80
    Soft Drinks:     Apple     1.40
         Orange     1.40
         Pineapple     1.50
         Carrot     2.00
         Longan     1.20
         Bandung     1.00
    (For beverages, a request for sugar or creamer attracts an additional charge of $0.10 each. Creamer is not applicable for
    chrysanthemum and ginger.)
    The customer may then confirm his order by entering the amount payable (this symbolises his payment for the drink). Whenever the
    payment input is not correct, an appropriate error message is displayed, whereupon the customer has to re-enter the amount again.
    When the correct amount is paid, the required drink is dispensed.
    For any drink that is out of stock, a message is shown, stating that it is not available. Each time a drink is dispensed, the stock for that
    drink is updated (For beverages, the stock is stored in units of servings for each cup.) To simplify the testing, you may start the simulation
    by setting the stock for each drink to 10 packets or cup-servings.
    3.     2. ADDITIONAL FEATURES
    In addition, the simulator can have the following features:
    a)     a) Smart Graphical User-Interface (GUI)
    You may build upon the basic requirements by recommending alternative drinks of the same category, whenever a requested
    drink is not available (as signified from the stock). In this case, only drinks which are available (i.e., in sufficient stock) are
    displayed for the customer to choose. And if only soft drinks are available, the selections for creamer and sugar should be disabled.
    b)     b) Multiple Orders
    A customer could order more than one drink. The system could allow him to specify as many drinks as he wants, prompting him
    for an appropriate payment, and then dispensing the drinks accordingly, subject to availability. This may also entail the extension
    of the graphical user-interface.
    c)     c) Sales Analysis
    Periodically, the total revenue accumulated since the last collection is printed in descending order of sales for each drink sold,
    together with a grand total. The cash is then cleared from the machine. This feature requires password-protection.
    d)     d) Replenishment of Stock
    Periodically, the stock is checked to determine how much of each drink needs to be replenished. For this purpose, a list of the
    drinks with the corresponding quantity on hand is printed in ascending order of stock level. Drinks with insufficient stock are
    topped up to a level of 10 servings or packets. This feature also requires password-protection.
    e)     e) Any other relevant features
    You are limited only by your creativity. You can add any other relevant features for this project. Please consult your tutor before
    you proceed.
    To qualify for the full marks for this section, you need to implement 2 features, at least one of which must be either (a) or (b) above.
    4.     3. ACTIVITY PLAN
    Suggestions for Getting Started
    There are many ways that you could complete this assignment. The most important part is to think about the entire project first so that
    it is easy to integrate the various pieces. You should also consider what type of graphics you want to incorporate.
    a)     a) Analysis
    1. Understand the program specification and the requirements before attempting the project.
    b)     b) Program Design
    2.     Work out the GUI components (e.g., TextFields, CheckBoxes, ChoiceBoxes, Buttons, etc.) needed to get the user input.
    3.     3. Work out the main logic of the program using modular programming techniques; i.e. use methods appropriately. E.g., tasks that perform
    4.     4. a well-defined function or those that are repeated should be coded as methods. For example, you can write the methods, displayBill(),
    5.     5. makePayment(), computeTotal(), dispenseDrink(), etc. You need to think carefully about the return type and the parameters of each
    6.     6. method.
    7.     7. You are required to use arrays appropriately for this assignment. Marks will be deducted for inefficient use or non-usage of arrays.
    c) Implementation & Testing
    8.     8. Write the method definition of each method ONE at a time.
    9.     9. Test your program logic to make sure that it works. In the interim, you can use �g.drawString(�);� or �System.out.println(�);� to print
    10.     10. out intermediate results so that you can see whether your program is working correctly. You may not want to bother about error-checking
    11.     11. at this point. You should test each method as soon as it is written, as it is much easier to debug your program in this way.
    5.     4. DELIVERABLES
    By Monday, 25th February before 5:00 p.m., hand in the following to the School of ICT Administrative Office at Block 31, level 8:
    �     � A copy of the printout of your .java file.
    �     � A diskette labelled with your name, group, student ID. The diskette should contain ALL the necessary files (.java, .html, and .class)
    to run your applet.
    �     � The above in an envelope topped with the Assignment Completion Report (see pages 6, 7 & 8). Page 6 is for you to paste on top
    of your envelope whilst pages 7 and 8 are for you to document your Test Plan, and write your comments (including any
    special instructions to run your program) - to be inserted into the envelope.
    In your .java program, you are to include a blocked comment at the top stating:
    q     q Your name, group, student ID.
    q     q Assumptions (if any) or any deviations from the specified requirements.
    q     q Any features that you would like to highlight.
    6.     5. WALK-THROUGH OF PROGRAM
    Monday 25th February at 9:30 a.m. SHARP
    In the walk-through, you will be asked to give short, written answers to some questions about your program. These questions will assess
    your basic understanding of the code that you are handing in. If you fail to display adequate understanding of your own program, you can
    be down-graded by up to two letter grades from what you would have normally received. It is also possible that you will be called to
    perform a demonstration cum explanation of your work if it is suspected that you have copied someone else�s work. Lesson: do your own
    work and you will have no problem!
    7.     6. GRADING CRITERIA FOR PROGRAMMING
    Correct and robust implementation of basic features     55 %
    Additional features     20 %
    Programming style:�     � Program design�     � Appropriate use of arrays�     � Appropriate use of variables, methods, and parameters�     � Proper usage of control structures (e.g. if/else, loops)     15 %
    Good programming practice:�     � Meaningful variable names �     � Proper indentations�     � Useful and neat comments     5 %
    Adequate (black-box) testing:�     � Suitably-designed test plan     5 %
    Total:     100 %
    PROBLEM SOLVING & PROGRAMMING II
    (Dip IT/MMC/EI, Year 1, Semester 2)
    Assignment Completion Report (to be attached to cover of envelope)
    Name: ___________________________________ Group: ________
    ID: ___________________ Date & Time submitted: ____________
    Requirements     % Done (0-100)     Remarks
    BASIC FEATURES          
    �     � Can choose category (and select appropriate additives)          
    �     � Can choose drink (with error checking)          
    �     � Can display amount payable          
    �     � Can indicate availability of drink (with error checking)          
    �     � Can accept payment for drink (with error checking)          
    �     � Can dispense drink          
    �     � Can update stock          
    ADDITIONAL FEATURES          
    �     � Smart GUI          
    �     � Multiple Orders          
    �     � Sales Analysis (with password checking)          
    �     � Stock Replenishment(with password checking)          
    �     � Any other relevant features          
    Test Plan
    Using black-box testing, record your test specification and the results according to the following format (the examples here are provided
    for your reference only):
    Test No.     Purpose     Test Shot/Data     Expected Result     Actual Result
    E.g. 1a)     Check whether beverage can be selected      Click on �Chrysanthe-mum� button     Checkbox for �Sugar� but not �Creamer� appear     �Sugar� and checkboxes appeared
    E.g. 1b)     Check whether chrysanthemum with sugar can be ordered      Select sugar and click on �Order� button     Amount payable appears as �$1.10� (i.e., $1.00 + $0.10)     Amount payable shown as $1.10
    E.g. 1c)     Check whether correct payment can be accepted      Enter �1.00� in �Payment� textfield     Error message �Insufficient payment - $0.10 short� appears     Confirmation message �Drink being dispensed� appeared � ERROR!
    E.g. 1d)     Re-test 1c), after amending program      As above     As above     Error message �Insufficient payment - $0.10 short� appeared
    etc.                    
    etc.                    
    Remember to hand in this test plan together with the other deliverables in the envelope.
    Have you�
    1.     1. Checked to make sure program still works properly even with windows resized?
    2.     2. Tested your program thoroughly, as if you're trying to break it?
    Any comments about this assignment? Any special instructions to run your program? Write it here.

    public class testing1 {
    String gg;
    public void testing3() {
    System.out.print(gg); }
    // this is are constructor for the object and method we are going to make
    next code
    class testing {
    public static void main(String[] args) {
    testing1 tes = new testing1();
    tes.gg = "hello there";
    tes.testing3(); //here we have made a object and a method
    hope this helps

  • Unable to assign the variable value

    Hi,
    I am trying to capture the error message into a variable using statement in the Refreshing tab :
    Select '<%=odiRef.getPrevStepLog("MESSAGE")%>' from dual
    After getting the error log into variable, I am making a call to Scenario which will generate a file and email it stating the error log.
    Now the issue is when i assign this variable to the Scenario variable it throws the following error:
    com.sunopsis.tools.core.exception.SnpsSimpleMessageException: Invalid parameter
         at com.sunopsis.dwg.function.SnpsFunctionBase.getSunopsisApi(SnpsFunctionBase.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.execIntegratedFunction(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTaskTrt(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSqlS.treatTaskTrt(SnpSessTaskSqlS.java)
         at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java)
         at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java)
         at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
         at com.sunopsis.dwg.cmd.DwgCommandBase.execute(DwgCommandBase.java)
         at com.sunopsis.dwg.cmd.e.i(e.java)
         at com.sunopsis.dwg.cmd.g.y(g.java)
         at com.sunopsis.dwg.cmd.e.run(e.java)
         at java.lang.Thread.run(Unknown Source)
    If i set the variable with any default value, it successfully makes a call to the scenario and generates the file.
    Please help!
    Thanks,
    Ritika

    Hi,
    i created a variable and assigned the value to another variable in a procedure, am getting the following error, as it says in the error i don't have any ";" that is causing the problem.
    the variable name is table_nm
    inside the procedure am assigning the value to lv_table_nm :=#SESSNAME.table_nm;
    If i change the variable name tos ome constant or any other value, the package is working fine. Any ideas why am getting error assigning the variable?
    6550 : 65000 : java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:
    ( - + case mod new not null <an identifier>
    <a double-quoted delimited-identifier> <a bind variable>
    continue avg count current exists max min prior sql stddev
    sum variance execute forall merge time timestamp interval
    date <a string literal with character set specification>
    <a number> <a single-quoted SQL string> pipe
    <an alternatively-quoted string literal with character set specification>
    <an alternatively
    java.sql.SQLException: ORA-06550: line 1, column 294:
    PLS-00103: Encountered the symbol ";" when expecting one of the following:

  • Exchange rate problem between GR&IR for PO with account assignment category

    ear SAP experts.
    We have used expense puchase order through account assignment category.
    the cost object include cost center,sale order,order.because we don’t use Fixed assets module in SAP,when purchase fixed assets,we also use account assignment category but no need to fill assets number(Not use account assignment category A).
    the processing in current system when there is exchange rate difference between GR&IR  as follows.
    purchase order Currency :USD  company code currency:HKD
    example 1-- when something purchased into expense account,
    Good receipt  (1USD=7.75HKD)
    Dr :expense account  100USD    775HKD
      Cr: GR/IR        100USD    775HKD
    Invoice receipt
    Dr : GR/IR         100USD    775HKD
        Expense account            25HKD
    CR: Vendor        100USD    800HKD
    Example 2-- when something purchased into Fixed assets account,
    purchase order :USD  company code currency:HKD
    Good receipt on Oct .01. 2007  (1USD=7.75HKD)
    Dr :Fixed assets account  100USD    775HKD
      Cr: GR/IR           100USD    775HKD
    Invoice receipt on Dec.01.2007  (1USD= 8HKD)
    Dr: GR/IR              100USD     775HKD
       Fixed assets account                25HKD
      Cr: Vendor            100USD     780HKD     
    The fixed assets is depreciated from Nov,2007.
    There is one problem that after the fixed assets is depreciated, the value for the fixed assets is added , the finance clerk have to adjust the added value from fixed assets account to Exchange Difference-Gain/Loss account by manual.
    Our problem is
    How to configure in order to make  the exchage rate difference into Exchange Difference-Gain/Loss account for purchase order with account assignment category,not the original assigned account in purchase order item.
    Many thanks
    Fanny

    Hi Fanny
    Even though the question is bit unclear, I guess you are looking for the T-Code OBYC. Use transaction key KDM for configuring the exchange gain/loss
    S Jayaram

  • Having a weird issue with my assign after java embedding

    hi,
    I'm having a weird issue with my assign activity, i am using a Java Embedding wherin i access a variable and assign it some data, later in next step when i try to assign some other data to this same variable in assign activity i get a Error message as below.
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} parts: {{ summary=Invalid to part type. When performing the assign operation, the to node THIS,IS,,TEST is invalid. The node named in the error message was either null or an empty node set, and it was not an instance of org.w3c.Element. Verify the node value at line number 795 is not null and is an instance of org.w3c.Element. } .
    i'm using soa 11.1.1.5
    Can anyone please help ?
    - Thanks
    Shirish

    Shirish,
    It's a bug and you will need to apply a patch for that.
    You can find all explanation in Oracle Support Id ID 1194228.1.
    Arik

  • WLPI - Problem with AI Service Call in Task with AI Service start - Variables

    Within WLPI I cannot succesfully call an AI service with variables that have been
    collected via an AI start. These variables have been collected ok as I have done
    an XPath on the variable and succesfully stored them in a string Variable. So
    a succesfully AI start is working. The issue is when I try to pass these values
    I have collected in their respective string variables to the next task which I
    will be executing an AI Service. I do this by setting a workflow variable and
    using the schema for the AI service. In the XML structure screen, I have put the
    string variable at the respective element. So on the left I have my element and
    on the right I have inserted my value (i.e, $strLastName).
    When I run the workflow, I do not see any inserts on the AI service I am calling.
    However, when I hard code a value in the XML schema "HELLO " + strFirstName it
    of course inserts Hello but not the value (i.e, strFirstName). So I know I have
    the correct assignment of variable to be set etc. Also, without the hardcoding
    it is inserting a blank row (i.e, value='').
    Please, help with this issue.

    Dear anonymous,
    I have created an AI application view and a BPM workflow that demonstrates how to
    populate an AI service call with strings extracted from an AI event response
    document. This workflow also demonstrates concatination of literal strings with
    string variables.
    Here are some steps that you will need to follow to setup this AI application view
    and workflow:
    1. startweblogic from either the
    'samples' or 'mydomain' found under WLI_HOME/applinteg/config. (Note, if you start
    from 'mydomain', be sure to populate your database repository with the scripts in
    WLI_HOME/repository/, WLI_HOME/processintegrator/ddl, and
    WLI_HOME/applinteg/dev/dbms/src/sql.)
    2. Open a web browser to http://<machine>:<port>/wlai
    Examples:
    from samples domain
    http://localhost:7603/wlai
    Login as system/system
    from mydomain
    http://localhost:7601/wlai
    Login as admin/security
    3. Create a folder named 'DBMS' and go into that folder
    4. Create a folder in the 'DBMS' folder named 'DBMS_A' and go into that folder
    5. Create an application view named 'db_av1'
    6. Add an event that triggers on insert named 'insEvt'
    7. Add a service named 'updTemp' that executes the following SQL...
    UPDATE <db info>.CUSTOMER_TABLE SET CITY=[CITY VARCHAR]WHERE LASTNAME=[LASTNAME
    VARCHAR]
    (Note: Replace '<db info>' your database schema and/or catalog information)
    8. Add a service named 'insSvc' that executes the following SQL...
    INSERT INTO <db info>.CUSTOMER_TABLE (FIRSTNAME, LASTNAME, CITY, EMAIL) VALUES
    ([FIRSTNAME VARCHAR],[LASTNAME VARCHAR],[CITY VARCHAR],[EMAIL VARCHAR])
    (Note: Replace '<db info>' your database schema and/or catalog information)
    9. Add a service named 'listCustomers' that executes the following SQL...
    SELECT * FROM <db info>.CUSTOMER_TABLE
    (Note: Replace '<db info>' your database schema and/or catalog information)
    10. Click 'Continue' deploy the the application view
    11. In the Deploy Application View screen make sure to specify an event router with
    the port corresponding to your domain. (e.g.
    http://localhost:7603/DbmsEventRouter/EventRouter)
    12. Bring up studio using 'studio_wlai.cmd/sh'
    13. Import the attached workflow package 'TestXmlVar.jar'
    14. Trigger the workflow my testing 'insSvc' from the Application View Summary web
    page. Fill in the service parameters with a firstname, lastname, city, and email.
    Press test to start the test.
    15. List the contents of CUSTOMER_TABLE by testing the 'listCusomers' AI service or
    by doing a select on that table in your database.
    Results:
    You should notice that the customer you inserted has a city name that is now in the
    form "New "<city>" City".
    Look at the Start node actions to see the population of the city and lastname string
    variables. Look at the request cocument in the AddToCity task for the updTemp
    service call by clicking edit on the request document variable. You will notice that
    the LASTNAME field was populated with the strLastName variable and the CITY element
    is populated with the strCity variable with "New " and " City" appended to both ends.
    Hope this works for you,
    Jim
    anonymous wrote:
    Within WLPI I cannot succesfully call an AI service with variables that have been
    collected via an AI start. These variables have been collected ok as I have done
    an XPath on the variable and succesfully stored them in a string Variable. So
    a succesfully AI start is working. The issue is when I try to pass these values
    I have collected in their respective string variables to the next task which I
    will be executing an AI Service. I do this by setting a workflow variable and
    using the schema for the AI service. In the XML structure screen, I have put the
    string variable at the respective element. So on the left I have my element and
    on the right I have inserted my value (i.e, $strLastName).
    When I run the workflow, I do not see any inserts on the AI service I am calling.
    However, when I hard code a value in the XML schema "HELLO " + strFirstName it
    of course inserts Hello but not the value (i.e, strFirstName). So I know I have
    the correct assignment of variable to be set etc. Also, without the hardcoding
    it is inserting a blank row (i.e, value='').
    Please, help with this issue.[att1.html]
    [TestXmlVar.jar]
    [jhinkey.vcf]

  • Procurement with account assignment category F

    Hiiiiiiiiiiiiiiiiii Experts,
    I have a requirement.I am making a PO with account assignment category 'F'. There i am giving production order in account assignment tab of item in PO.Now after doing GRN with movement type 103 and QI with mov. type 105 it is not going to stock.It is getting consumed.
    My question is can we procure material and stock it with account assignment category 'F' and production order.If yes, how.What I am missing.please guide.
    SPRO>MM>Purchasing>Account Assignment>Maintain Acc Assign Categories
    Here check box "Goods Receipt" is ticked
    production order in CO02, on Goods receipt tab  the same indicator is ticked
    for material storage location is maintained in stor. loc.stock. view
    Regards
    Brijesh

    Thanks for the answer.But it is not the case always, when you give account assignment category as Q-PROJECT -MAKE-TO-ORDER.Than it does not get consumed it goes to project stock.
    Regards
    Brijesh

  • A question about users assigned roles extraction

    Dear all,
    I have a question about users assigned roles list extraction. I need the list of the users who have already been created along with their assigned roles. According to what I found on Google, there is a table named AGR_USERS which provides the roles assigned to each user. Yet, this table provides only the SAP ID of each user along with the assigned roles. What I need more is to have also the first name and second name of each user.
    So, do you know any table providing at least the following information:
    1) First name of each user
    2) Second name of each user
    3) SAP ID of each user
    4) All assigned roles to each user.
    NOTE: I really need to have first name and second name in separate columns
    Thanks in advance,
    Dariyoosh

    >
    Shekar.J wrote:
    > Agr_users for the user ID and role assignments
    > USR02 to check the validity of the User ID
    > and USER_ADDR for the first name and last name
    >
    > You can create a Table join of the above 3 tables to retrieve the data you require
    Thanks to you and others for your attention to my problem
    I don't know anything about ABAP programming, is there any transaction allowing to create this join? As it seems to me the column "UNAME" in the table "AGR_USERS" and the column "BNAME" in the table "USER_ADDR", both refer to the SAP ID of the user. As a result the condition of the join would be "WHERE (UNAME = BNAME)", is there  any transaction/programme allowing to create this join?
    Thanks in advance,
    Dariyoosh

  • Pseudo delta with ABAP or OLAP variables

    Hey gurus!
    Since I have to post my first question at SDN one day, it may better be now! I'm rather new to SAP BI, therefore your help is requested:
    I'm currently implementing a pseudo delta, a full data load from ODS to ODS and subsequently ODS to Cube. The data requested should consist of yesterdays records, which was relatively easy in SAP BW 3.5.
    Since it is not possible anymore to, and I quote, choose one of the following selections in the Type (Variable Changing of Selections with Background Processing) entry column from the Data Selection tab page (numbers 0-7, 0 is required), I can now only solve it with creating another OLAP variable or ABAP coding.
    Is there anyone that can give me some advice or provide me with some basic ABAP coding which selects data from 'yesterday?'
    Your help is appreciated!
    Regards,
    Joost

    Thanks for your reply Pom!
    I'm not sure where to insert the '0' as type in my case. I've created a data transfer process instead of an infopackage now, but when setting up my filter there is nowhere to select the type. Or do I have to create an 'old fashioned' infopackage?!
    Your help is appreciated, please provide some directions.
    Regards,
    Joost

  • The type of the value being assigned to variable ... differs from the current variable type

    I am trying to load a variable on SSIS Execute SQL Task with a string value. I keep on getting an error message :-
    “The type of the value being assigned to variable “User::LegacyColumns” differs from the current variable type”.
    Below are the settings on my package:
    Execute SQL Task Result Set –
    Single Row
    Variable Data Type –
    String
    The data to be loaded on the variable is a single row shown below:
    FirstName,LastName,MiddleName,PatientType,Title
    Can someone kindly help me to solve this as I’m lost for ideas.
    Thanks,
    Mpumelelo

    Thank you Sorna. I think I have managed to solve it. After a long search I have found a solution which advises that I should use a Foreach Loop Container. The help is on this link:
    https://social.msdn.microsoft.com/Forums/en-US/f46dea91-c26b-4ffe-ab1c-ebeef57c90b6/error-0xc001f009-at-mypackage-the-type-of-the-value-being-assigned-to-variable?forum=sqlintegrationservices
    Mpumelelo

  • Oracle XML processor is not handling variable properly

    I use the XML Parser 2.0.2.7 to process an XML transformation but I don't get the expected result. Running this example with other XML Processor get the job done (IBM, Excelon, Microsoft). I read again the normative document on www.w3c.org on XSL and I believe that your processor fail to render my XSL transformation because it doesn't handle variable properly.
    So, here is my XML document and my XSL stylesheet:
    XML Document:
    <Results>
    <Usager>
    <IdUsager>34</IdUsager>
    <NomUsager>NomUsager</NomUsager>
    <PrenomUsager>Le prenom de l'usager</PrenomUsager>
    <NoAssuranceMaladie>ZZZZ12121212</NoAssuranceMaladie>
    <dossiersommaire_view>
    <UsagerSommaire>
    <IdEven>2</IdEven>
    <TypeElement>16</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>1998-04-05</DateDebut>
    <IdDoc>5</IdDoc>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <IdTypeElement>16</IdTypeElement>
    <IdCatgElement1>6</IdCatgElement1>
    <Description1>Bilan mitastatique initial</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>16</TypeElement1>
    <DroitAcces>M</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>30</IdEven>
    <TypeElement>15</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-06-08</DateDebut>
    <IdDoc>31</IdDoc>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <IdTypeElement>15</IdTypeElement>
    <IdCatgElement1>6</IdCatgElement1>
    <Description1>Sommaire initial</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>15</TypeElement1>
    <DroitAcces>M</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>7</IdEven>
    <TypeElement>6</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-04-15</DateDebut>
    <IdDoc>1</IdDoc>
    <IdCatgElement>2</IdCatgElement>
    <Description>Examens</Description>
    <IdTypeElement>6</IdTypeElement>
    <IdCatgElement1>2</IdCatgElement1>
    <Description1>Examens numirisis</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>6</TypeElement1>
    <DroitAcces>C</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>9</IdEven>
    <TypeElement>2</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-03-14</DateDebut>
    <IdDoc>1</IdDoc>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi</Description>
    <IdTypeElement>2</IdTypeElement>
    <IdCatgElement1>1</IdCatgElement1>
    <Description1>Suivi oncologique</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>2</TypeElement1>
    <DroitAcces>C</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>10</IdEven>
    <TypeElement>2</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-03-27</DateDebut>
    <IdDoc>1</Id Doc>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi</Description>
    <IdTypeElement>2</IdTypeElement>
    <IdCatgElement1>1</IdCatgElement1>
    <Description1>Suivi oncologique</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>2</TypeElement1>
    <DroitAcces>C</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>16</IdEven>
    <TypeElement>16</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-06-05</DateDebut>
    <IdDoc>46</IdDoc>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <IdTypeElement>16</IdTypeElement>
    <IdCatgElement1>6</IdCatgElement1>
    <Description1>Bilan mitastatique initial</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>16</TypeElement1>
    <DroitAcces>M</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>26</IdEven>
    <TypeElement>15</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-06-07</DateDebut>
    <IdDoc>32</IdDoc>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <IdTypeElement>15</IdTypeElement>
    <IdCatgElement1>6</IdCatgElement1>
    <Description1>Sommaire initial</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>15</TypeElement1>
    <DroitAcces>M</DroitAcces>
    </UsagerSommaire>
    <UsagerSommaire>
    <IdEven>37</IdEven>
    <TypeElement>15</TypeElement>
    <IdUsager>34</IdUsager>
    <IdUtilisateur>1</IdUtilisateur>
    <DateDebut>2000-06-08</DateDebut>
    <IdDoc>32</IdDoc>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <IdTypeElement>15</IdTypeElement>
    <IdCatgElement1>6</IdCatgElement1>
    <Description1>Sommaire initial</Description1>
    <IdUtilisateur1>1</IdUtilisateur1>
    <CodeProfil>3</CodeProfil>
    <CodeProfil1>3</CodeProfil1>
    <TypeElement1>15</TypeElement1>
    <DroitAcces>M</DroitAcces>
    </UsagerSommaire>
    </dossiersommaire_view>
    <categorie_view>
    <CatgElement>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>2</IdTypeElement>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi oncologique</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>2</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>5</IdTypeElement>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi pharmaceutique</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>5</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>3</IdTypeElement>
    <IdCatgElement>1</IdCatgElement>
    <Description>Suivi avec chimiothirapie</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>3</TypeEleme nt>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>4</IdTypeElement>
    <IdCatgElement>1</IdCatgElement>
    <Description>Evaluation psychosociale</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>4</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>2</IdCatgElement>
    <Description>Examens</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>6</IdTypeElement>
    <IdCatgElement>2</IdCatgElement>
    <Description>Examens numirisis</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>6</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>3</IdCatgElement>
    <Description>Ricidive</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>7</IdTypeElement>
    <IdCatgElement>3</IdCatgElement>
    <Description>Ricidives</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>7</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>4</IdCatgElement>
    <Description>Mitastase</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>8</IdTypeElement>
    <IdCatgElement>4</IdCatgElement>
    <Description>Mitastases</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>8</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Traitement</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>9</IdTypeElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Chimiothirapie (nursing onco)</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>9</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>10</IdTypeElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Hormonothirapie (nursing onco)</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>10</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>12</IdTypeElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Radiothirapie - plan de traitement</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>12</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>13</IdTypeElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Radiothirapie - note de fin de traitement (rapport numirisi)</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement&gt ;13</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>14</IdTypeElement>
    <IdCatgElement>5</IdCatgElement>
    <Description>Chirurgie (rapport numirisi)</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>14</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>6</IdCatgElement>
    <Description>Initial</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>15</IdTypeElement>
    <IdCatgElement>6</IdCatgElement>
    <Description>Sommaire initial</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>15</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    <TypeElement>
    <IdTypeElement>16</IdTypeElement>
    <IdCatgElement>6</IdCatgElement>
    <Description>Bilan mitastatique initial</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>16</TypeElement>
    <DroitAcces>M</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    <CatgElement>
    <IdCatgElement>7</IdCatgElement>
    <Description>Autre</Description>
    <type_view>
    <TypeElement>
    <IdTypeElement>17</IdTypeElement>
    <IdCatgElement>7</IdCatgElement>
    <Description>Note du midecin</Description>
    <CodeProfil>3</CodeProfil>
    <TypeElement>17</TypeElement>
    <DroitAcces>C</DroitAcces>
    <IdUtilisateur>1</IdUtilisateur>
    <CodeProfil1>3</CodeProfil1>
    </TypeElement>
    </type_view>
    </CatgElement>
    </categorie_view>
    </Usager>
    </Results>
    XSL Stylesheet:
    <?xml version="1.0" encoding='ISO-8859-1'?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output indent="yes" method="text" encoding='ISO-8859-1'/>
    <xsl:template match="*|/"><xsl:apply-templates/></xsl:template>
    <xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>
    <xsl:template match="/"><xsl:text><html>
    </xsl:text>
    <xsl:text><BODY BGCOLOR= "#CEDFC6">
    </xsl:text>
    <xsl:text><APPLET CODEBASE="/applets/" CODE="SIRtree.class" WIDTH=200 HEIGHT=380>
    </xsl:text>
    <xsl:text><PARAM NAME="TITLEFONT" VALUE="0">
    </xsl:text>
    <xsl:text><PARAM NAME="ICONS" VALUE="/applets/DRQICON.gif">
    </xsl:text>
    <xsl:text><PARAM NAME="BGCOLOR" VALUE="8">
    </xsl:text>
    <xsl:text><PARAM NAME="NODEFONT" VALUE="3">
    </xsl:text>
    <xsl:text><PARAM NAME="HBGCOLOR" VALUE="2">
    </xsl:text>
    <xsl:text><PARAM NAME="TXTCOLOR" VALUE="2">
    </xsl:text>
    <xsl:text><PARAM NAME="HTXTCOLOR" VALUE="10">
    </xsl:text>
    <xsl:text><PARAM NAME="FONT1" VALUE="Helvetica|B">
    </xsl:text>
    <xsl:text><PARAM NAME="FONT2" VALUE="Helvetica|N">
    </xsl:text>
    <xsl:text><PARAM NAME="FONT3" VALUE="Arial|N">
    </xsl:text>
    <xsl:text><!-- Medium Grey -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color1" VALUE="150|150|150">
    </xsl:text>
    <xsl:text><!-- Black -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color2" VALUE="0|0|0">
    </xsl:text>
    <xsl:te xt><!-- Blue -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color3" VALUE="0|0|255">
    </xsl:text>
    <xsl:text><!-- Red -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color4" VALUE="255|0|0">
    </xsl:text>
    <xsl:text><!-- Orange -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color5" VALUE="255|128|0">
    </xsl:text>
    <xsl:text><!-- Dark Grey -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color6" VALUE="100|100|100">
    </xsl:text>
    <xsl:text><!-- Light Grey -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color7" VALUE="200|200|200">
    </xsl:text>
    <xsl:text><!-- Light Green -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color8" VALUE="206|223|198">
    </xsl:text>
    <xsl:text><!-- Yellow -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color9" VALUE="255|255|0">
    </xsl:text>
    <xsl:text><!-- White -->
    </xsl:text>
    <xsl:text><PARAM NAME="Color10" VALUE="255|255|255">
    </xsl:text>
    <xsl:text><PARAM NAME="BORDER" VALUE="0">
    </xsl:text>
    <xsl:text><!-- Menu principal -->
    </xsl:text>
    <xsl:variable name="NodeCPT" select='3'/>
    <xsl:text><PARAM NAME="NODE0" VALUE="ROOT|</xsl:text><xsl:value-of select="Results/Usager/NomUsager"/><xsl:text>"|1| | | | |0|-1">
    </xsl:text>
    <xsl:text><PARAM NAME="NODE1" VALUE="ROOT|</xsl:text><xsl:value-of select="Results/Usager/PrenomUsager"/><xsl:text>"|1| | | | |0|-1">
    </xsl:text>
    <xsl:text><PARAM NAME="NODE2" VALUE="ROOT|</xsl:text><xsl:value-of select="Results/Usager/NoAssuranceMaladie"/><xsl:text>"|1| | | | |0|-1">
    </xsl:text>
    <xsl:for-each select="/Results/Usager/categorie_view/CatgElement">
    <xsl:variable name="Racine" select="Description"/>
    <xsl:text><PARAM NAME="NODE</xsl:text><xsl:value-of select="$NodeCPT"/><xsl:text>" VALUE="ROOT|</xsl:text><xsl:value-of select="$Racine"/><xsl:text>|1| |mainFrame| | |1|-1|4">
    </xsl:text>
    <xsl:variable name="NodeCPT" select="$NodeCPT+1"/>
    <xsl:text>
    // Ajouter les Types d'iliment
    </xsl:text>
    <xsl:for-each select="type_view/TypeElement">
    <xsl:variable name="Feuille" select="Description"/>
    <xsl:text><PARAM NAME="NODE</xsl:text><xsl:value-of select="$NodeCPT"/><xsl:text>" VALUE="</xsl:text><xsl:value-of select="$Racine"/><xsl:text>|</xsl:text><xsl:value-of select="Description"/><xsl:text>|1| |mainFrame| | |1|-1|4">
    </xsl:text>
    <xsl:variable name="NodeCPT" select="$NodeCPT+1"/>
    <xsl:variable name="DroitAcces" select="DroitAcces"/>
    <xsl:if test="$DroitAcces = 'M'">
    <xsl:text><PARAM NAME="NODE</xsl:text><xsl:value-of select="$NodeCPT"/><xsl:text>" VALUE="</xsl:text><xsl:value-of select="$Feuille"/><xsl:text>|Ajouter...|3|http://drioq.qc.cgi.ca/jspdrioq/Elem_Query.jsp?IdTypeElem=</xsl:text><xsl:value-of select="TypeElementId"/><xsl:text>|mainFrame| | |0">
    </xsl:text>
    <xsl:variable name="NodeCPT" select="$NodeCPT+1"/>
    </xsl:if>
    <xsl:variable name="TypeElement" select="IdTypeElement"/>
    <xsl:for-each select="//Results/Usager/dossiersommaire_view/UsagerSommaire[TypeElement=$TypeElement]">
    <xsl:text><PARAM NAME="NODE</xsl:text><xsl:value-of select="$NodeCPT"/><xsl:text>" VALUE="</xsl:text><xsl:value-of select="$Feuille"/><xsl:text>|</xsl:text><xsl:value-of select="Description"/><xsl:text> du </xsl:text><xsl:value-of select="DateDebut"/><xsl:text>|2|http://drioq.qc.cgi.ca/jspdrioq/Elem_Query.jsp?IdEven=</xsl:text><xsl:value-of select="I dEven"/><xsl:text>|mainFrame| | |0">
    </xsl:text>
    <xsl:variable name="NodeCPT" select="$NodeCPT+1"/>
    </xsl:for-each>
    <xsl:if test="($DroitAcces = 'C')">
    <xsl:if test="(count(//Results/Usager/dossiersommaire_view/UsagerSommaire[TypeElement=$TypeElement]) = 0)">
    <xsl:text><PARAM NAME="NODE</xsl:text><xsl:value-of select="$NodeCPT"/><xsl:text>" VALUE="</xsl:text><xsl:value-of select="$Feuille"/><xsl:text>|Aucun Dossier |5| | | | |0">
    </xsl:text>
    <xsl:variable name="NodeCPT" select="$NodeCPT+1"/>
    </xsl:if>
    </xsl:if>
    </xsl:for-each>
    </xsl:for-each>
    <xsl:text>
    //-----------------------------------PAS TOUCHE----------------------------------------------------------
    </xsl:text>
    <xsl:text></BODY>
    </xsl:text>
    <xsl:text></html>
    </xsl:text>
    </xsl:template>
    </xsl:stylesheet>
    null

    First of all, thank for Steve and Micheal for your help.
    Well, it's that I don't read section 11.5 before I posted my last messages(I don't know how I did that??? may be to much nightly development) Also I think that xsl:variable just lead to misunderstanding. I would prefere the "xsl:constant" label.
    In neither way, I'm still looking for a solution to number my parameter because I don't each time how many parameter I'll have to pass to my applets. I'm now looking for pure JSP.
    Steve you also pointed out that the use of <xsl:text> is very strange! You're right! The main reason why I'm working that way is because we need to generate JavaScript based on the XML Data. So I start my stylesheet in text mode because I need to generate text (JavaScript) and not only tag like "PARAM". But to simply this example and focus on the problem I retired the JavaScript Part and any other not relevent tag! If there is a way to change the output mode after generating the JavaScript I would like to know about it.
    Ok, everyone thanks again!

  • Can anyone explain with senairio for formula variables with replacement  pa

    can anyone explain with senairio for formula variables with replacement  path?

    See the below link
    An Example for Replacement path
    http://www.sd-solutions.com/documents/SDS_BW_Replacement%20Path%20Variables.html
    Document Count using Replacement path
    I've explained the steps in this thread.
    Query formula-Counter???
    Example for Replacement Path: Characteristic Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/78a03c1178ad2ce10000000a114084/content.htm
    Variable Replacement Example
    http://help.sap.com/saphelp_nw04/helpdata/en/af/809528939d5b4fbff7e16a5bdc0d85/content.htm
    Formula Variable.
    http://help.sap.com/saphelp_nw04/helpdata/en/ca/5f9ac61a205a459d0e7ef313d10321/content.htm
    Regs
    Gopi
    Assign points if it helps

  • Question: How to assign number ranges to the Official Excise Document Numbe

    Question: How to assign number ranges to the Official Excise Document Number
    Field name is: EXNUM, table name: J_1IEXCHDR
    SAP CIN
    Dear expert,
    I will briefly explain the scenario:
    I have created return po.
    Process MIGO w.r.t. return PO- Material document generated.
    Process: J1IS - excise invoice other movement create.
    --> Now I want to print the document --> I m trying with T-code J1IP --> entered all the required data --. Used out put type - J1I0
    But I am not getting the list of document for printing and even print is not coming.
    There is no print document getting for a printing.
    When I checked in an above said table (mentioned in question), I found that for transaction type OTHR, there is no number ranges defined for official document no.
    And because of this reason I m not getting any document in the print.
    Can you Pl extend Ur help and Pl suggest me where (path or transaction) the number ranges can be maintained for the official excise document No.
    Thanking you all n advance and expecting your earliest response.
    Regards
    om

    Dear Friend,
    J_1IEXCHDR this table stores the all the excise documents created while excise transactions are done ,
    for that Goto j1i9 or SNRO  in these transaction you maintiane the number ranges  for the
    J_1IPLA2     PLA part II number range object
    J_1IRG1     RG1 Number range object
    J_1IRG1_T     No. Range for RG1 - Excise group / Material
    J_1IRG23A1     RG23A part 1 no. range object
    J_1IRG23A2     RG23A part II number range object
    J_1IRG23C1     RG23C part I number range object
    J_1IRG23C2     RG23C part II number range object
    J_1IRG23D     Folio Numbers for RG 23D
    like these  lot of objects are there  for them u maintiane the no. ranges
    Regards
    Pramod

  • PR: Procurement w/o material from vendor with plant assignment not defined

    Hi,
    Getting the error message:  06806 - Procurement w/o material from vendor with plant assignment not defined
    while creating the PR with account assingment (P- project) & without material no. instead entering the short text in the PR.
    this issue (Error message) is getting to only one user.
    question-1:  Is it possible to set the Error messages to the user specific. Because other users are able to create the PR with the above inputs, but the one user is not able to create instead getting the above E- Msg.
    question-2: Is it possible to set the messages to Plant specific instead quesiton -1 or both
    Or else, please let me know how to deactivate the above E-msg to the specific user.
    Please do the needful asap.
    Regards,
    Sapsrin

    Hi,
    As you noticed, note 856962 has changed the system behaviour
    when you are working with procurement w/o material from vendor with
    plant assignment.
    Items without a material master record can only be ordered from vendors
    without a plant assignment.
    This note will stop your users from creating service purchase orders
    for a vendor who has a Plant assigned in the vendor master, issuing
    the error message 06 806.
    you can check the below code:-
    LMEPOF23
      IF ekpo-ematn IS INITIAL AND
          (  aktyp EQ hin OR ekko-reswk NE oekko-reswk  OR      "856962
         (  aktyp EQ hin OR NOT ekko-reswk IS INITIAL OR        "856962
            ekko-bsakz NE oekko-bsakz OR
            gf_extended_check NE space ).
        PERFORM enaco_2(sapfmmex) USING '06' '806'.
    regards,
    Lalita

Maybe you are looking for