Unary operators and implicit struct creation

The increment operator is not working correctly when I am
attempting to assign an implicit structure to an array element. In
the first section of the attached code, the variable "x" is never
incremented when assigning an implicit structure to the array.
However, in the second section of the attached code, the variable
"x" increments correctly. The only difference between the two is
that the first is trying to assign an implicitly created structure
to an array element, and the second is assigning a scalar value to
the array element. Is this a known defect and/or is there a way
around this issue?
Thanks in advance.
Jon

I'm seeing the same thing.
I've raised it as an issue with the Adobe bods.
Adam

Similar Messages

  • Dynamic Implicit Structure Creation Question

    Hello,
    I was curious if it was possible to dynamically create an implicit structure where you might occasionally want to omit some keys from being added to the structure?
    I played around with using ternary operators in the structure creation with no luck.
    <cfset temp = {
         name = "Dave",
         (1 IS 1 ? "" : Job  =  "Superhero")
      } />
    The only way I can see doing this now would be to create the structure and then use StructKeyDelete on the keys I want to remove OR build structures the traditional way and cfif my way around the keys I don't want to add."
    Ex: <cfset structKeyDelete(temp,"Job") />
    or
    <cfset temp = structNew() />
    <cfset temp.name = "Dave" />
    <cfif 1 NEQ 1>
          <cfset temp.job = "Superhero" />
    </cfif>
    Does anyone know how to create dynamic keys in a structure while defining it implicitly?
    Thanks!

    I can think of at least one reason why this fails. If there is just one key-value pair, there will be a comma stranded at the end.
    You can of course tinker dynamically with the content of the keys of a struct and their respective values. However, a struct is an object, with set characteristics such as number of key-value pairs. So, it would be difficult to dynamically change the number of key-value pairs 'from within' the struct. Even if what you are trying to do were possible, it would be more complex, and would certainly involve more code, than the ordinary alternative you mention.
    In any case, here is a version of your original idea that works:
    <cfset temp = (1 IS 2 ? {name="Dave"} : {name="Dave",Job="Superhero"})>
    <cfdump var="#temp#">

  • The Increment and Decrement Operators (++ and - - )

    Hi all !
    Even if i do understand how ++ and -- operators works fine (as a pre-modifers and post-modifers) but i can't understand how do they got the HIGHTEST precedence (unary operators) over than other operators , consider the follwing examples :
    Ex(1):
    ======
    initially : x = 5 & y = 0;
    y = x++ ;
    i know the process goes like this :
    - Evaluation : Left-to-Right (y is 0 and x is 5)
    - Operation : assignement of x to y , then increment x by 1.
    Q(1) is : why do assignment first then increment even if operator ++ has higher precendence than "=" operator.
    (i understand that that is true if y=++x, but why? ).
    Ex(2):
    ======
    initially : x=5 & y =0;
    y = x++ + 5;
    y now is 10 , x now is 6
    Q(2) is : even if the ++ operator is higher in precedence ,the arithmetic operator "+" is evaluated first, why?
    (same applies to the -- operator)
    Thanks ...

    Q(1) is : why do assignment first then increment even
    if operator ++ has higher precendence than "="
    operator.
    (i understand that that is true if y=++x, but why? ).The assignment is not performed first:
    (1) Memory is reserved to store the result of the expression on the right hand side.
    (2) The expression evaluates to the current value of x, which is 5. This value is stored away.
    (3) x is incremented, and is now equal to 6.
    (4) The value previously stored away is assigned to y. y is now 5.
    Q(2) is : even if the ++ operator is higher in
    precedence ,the arithmetic operator "+" is evaluated
    first, why?The + operator is not evaluated first:
    (1) Memory is reserved to store the result of the expression on the right hand side.
    (2) The current value of x is stored in that reserved memory. The value is 5.
    (3) x is incremented to 6.
    (4) 5 is added to the expression result, and the result is now 10.
    (5) The expression result is assigned to y. y is now 10.
    Note that the implementation is free to perform the calculation however it wishes, so long as it is done such that the user/programmer can not tell the difference.

  • Autorization of Sales District and Price List Creation to the User

    Dear Experts,
    At Present the end user (customer) is sending the request of New Sales District and Price List Creation to SAP SD Consultant and the consultant creates the same in Development Client SPRO through T code OVR0 etc. and then transports the same to Quality and Production Server. This Process takes a lot of time
    We want to provide the direct access of Sales district and Price List creation to the user in PRD.
    Kindly Let me know what is the best way in which we can handle this situation.
    Regards,
    Ranjan Singh

    Are you sure you want to do that? You will create inconsistencies between the systems which will jepardise future tests. I suggest you just train end-user to do the procedure him/her self. I don't think it costs so much time to transport a couple of requests.

  • Query form requires Logical operators and/or Quotes

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

    In ORACLE 9I Jdeveloper beta I used the BC4J JSP wizard to create a - Query Form. The query form looks nice and runs except I have to also include the logical operators (= > <) and Quotes. For example to query on the name Joe I have to enter it as ="JOE". If I use JOE it gives me a JSP error. The error message shows the generated Select statment with the where clause JOE but is missing the "=" and quotes.
    How do I hard code the "=" and quotes around strings so that the user doesn't have to?

  • What is the best Apple notebook for video editing and pro music creation?

    What is the best Apple notebook for video editing and pro music creation?
    I know I could opt for the most expensive and probably get what I want that way, but I´m not made of money, so what are your suggestions for minimum criteria and which would you recommend?

    MacBooks Pro are great Macs with a good hardware, so all of them will work for the use you want, but I think that you want the biggest display possible because of your uses. In this case, it has to be a 15-inch non-Retina MacBook Pro, with the settings you want. Note that, after buying the Mac, you can upgrade the HDD and memory without voiding the warranty, so you are free to install as much memory and the HDD size you want after buying it. It's my opinion, but you are free to do whatever you think it's better

  • Sales order, Delivery and Billing document creation

    Hello Experts,
    I am working on credit management and am in need of creating sales order, delivery and billing document.
    Can some one send me the screen shots or any doc which outlines order,delivery and billing document creation.
    Will award points definitely.
    Also what are the t.codes for these creation?
    Regards,
    Sriram

    Order Create:
    Transaction VA01
    Give the order type , If standard order use OR or ZOR, which ever is maintained
    Then give the sold to and press enter
    In the Items screen Give the material and quantity and press enter. This should be enough to create an order, if u need u can give order reasons...etc. Then save the Order. Note down the order number.
    Go to VL01N-
    and give the above order for which u are doing delivery, In the pick quantity enter the amount in the order and press enter. and make sure the delievry date should be the same in the Sales Order Schedule line- REquested delivery date. Save the document.Note down the document number
    Go to VL02N - Open the above delivery document and click on PGI - done
    Now go to VF01 and this should bring up the delivery document number., If it doesnt , give the delivery document number and hit enter. then save the document. Billing is done.
    Regards
    Sai

  • Number of SNP tables created during master and work repository creation

    Hi All,
    I would like to know how many SNP tables are created during Master and work repository creation in
    10.1.3.5 v as I remember it was around 147 in earlier version .
    Any help will be appreciated
    regards,
    Palash Chatterjee

    Hi Palash ,
    ODI master repository have 58 SNP tables
    where as work repository have 88 SNP tables
    So in total 146 SNP tables are created during Master and work repository creation in
    10.1.3.5 .
    Thanks,
    Sutirtha

  • Extracting operators and operands from the source code

    Hi there,
    I am looking for a way to extract operators and operands from a source code to do a complexity analysis of the code. The final outcome I am expecting is to get the number of operators and operands in the code, to perform a Halstead Complexity Analysis.
    Please let me know how this parsing can be done apart from just doing a sequential search of the content in the file.
    Any samples and references are highly appreciated.
    Thanks in advance!
    Regards,
    Aravinda777

    Common way to analyze code is to defining the things you are interested in using some approproate language and then using a parser generator (or compiler compiler = cc). I used antlr some time ago for this reason. Perhaps you want to take a look at it:
    http://www.antlr.org/

  • System and System Alias Creation

    Hi all,
    we have developed iViews in EP5. Now we want to migrate all our iViews to Ep6.. we have problem in EP6 for system and system alias creation..
    in EP5 we have 2 files called System.xml for defining the system and JCODestination.xml..
    after creating systems in System.xml.. we will define   all system properties in  like router string ,client no,and system number for each sap system in JCODestination.xml ..  
    and these systems we will map to the user in which will come all the defined Systems to combo box
    and we will define the systems in default.properties file and we will use in the par development...
    I heared that there are no System.xml and JCODestination.xml files in EP6 Netweaver Component....
    can you please any one advise me how to get configured System and System Alias in EP6 NetWever... and how to call in coding...
    I need a detailed steps how to create SAP System Alias.. since i am connecting to SAP System and Calling Function Modules and BAPIS From My Application(iViews).....
    I need a Detailed Explaination Step by Step Explanation ..
    your help will be required for me.. and appreciated to the great extent......
    Thanks and Regards
    Prasad.Y

    After following the steps above in system landscape
    please do the following to fill in the parameters
    Select connector under the property category.
    PlZ make sure that you have provided ApplicationHost(the host name of backend system), LogicalSystemName(can be found from transaction scc4,just dounle click on the client to see the logical name use saplogon and logon to the backend system R3 in this case) ,SAP Client(can be found from transaction code scc4), SAP SystenID,SAP System Number and Server port.
    After that create a System Alias for that system by selecting System Aliases under display.( This is important. I had the same kind of problem this should slove it).
    Now make sure that you have user mapping set for the backend R3 System(User Administration-->User Maping search for the user and choose edit. Then choose the system alias name form the drop down box and provide the login details for the backend system).
    Try to test the connection by selecting connection tests under display. If it doesnot work plz copy paste the whole error message.
    The message should look something like the one below
    Test Connection with Connector - Jan 1, 1970 2:35:42 PM
    Test Details:
    The test consists of the following steps:
    1. Retrieve the default alias of the system
    2. Check the connection to the backend application using the connector defined in this system object
    Results
    Retrieval of default alias successful
    Connection successful
    Let me know if you need any more details
    - Sheshu

  • LE-TRM: automatic and immediate TASK creation at TO creation

    Hi guys,
    Up to know, I succeed in creating TASK either manually in the TRM monitor or by running the report RLTRQSCHEDULER.
    I'd like to know how to get the following behavior in SAP LE-TRM (Task and Resource Management) module : automatic and immediate task creation in TRM at TO (transfer order) creation in LE.
    Does anyone know how to set this up?
    Thx a lot in advance for your valuable inputs.

    Activate this BADI and set up Request Scheduler program as a background Job.
    method IF_EX_LTRM_RQST_GLOBL_SCAN~RQST_GLOBL_SCAN.
      TYPE-POOLS: TRMGC.
      DATA: lt_where_tab   TYPE ltrqt_it_where,
            lv_where_line  TYPE ltrqt_where.
      data: lv_pick(3).
      clear: lv_where_line.
    lv_where_line = 'rqact IN (trmgc_rqact_removal, trmgc_rqact_putaway, trmgc_rqact_replen, trmgc_rqact_move)'.
    append lv_where_line to et_where_tab.
    lv_where_line = 'rqact IN (trmgc_rqact_removal, trmgc_rqact_putaway,'.
      append lv_where_line to et_where_tab.
       clear: lv_where_line.
    lv_where_line = 'trmgc_rqact_replen, trmgc_rqact_move)'.
      append lv_where_line to et_where_tab.
    endmethod.

  • Table Filter Problem with Operators And ,Or

    Hi ,
    Version : Jdeveloper 11.1.1.5
    I Created one view object based on query( Select Empno,Ename From Emp)
    Based on View Object - I created adf table .
    In Emp table data is as shown below
    Empno Ename
    1 Hari
    2 Ramu and Hari
    I made "Filterable" Property true and FilterFeature is CaseInsensitive
    When i query 'Ramu a' it will retrive correctly,if i query 'Ramu and' it will show no data to display
    Please suggest me how to solve
    Note : What i noticed is and ,or are treating as operators
    Thanks
    Sk

    Hi,
    tried the same with JDeveloper 11.1.1.6 and it works without problems. The only problem that will arise is if you search for e.g. "Mickey and" to find Mickey and Mouse. Here "and" is recognized as a reserved keyword. However, you work around this by using "Mickey an". Note that you can intercept the table query using a QueryListener to handle cases where key words are used within a string
    Frank
    Edited by: Frank Nimphius on Apr 27, 2012 7:55 AM

  • Cat2 badis and implicit and explicit "Z " enhancement

    Hi
    We have many badis and enhancements in cat2 we can find the badi in se24 CL_EXITHANDLER by setting break point in GET_INSTANCE but how to find the “Z “ Implicit enhancements for cat2.
    Thanks,

    Hi Swaminath ,
    Go through the following Blogs  on enhancement Frame work. It will help u in understanding This concept in detail.
    /people/thomas.weiss/blog/2007/12/12/the-three-use-cases-of-the-enhancement-and-switch-framework--part-1
    /people/thomas.weiss/blog/2008/01/07/the-three-use-cases-of-the-enhancement-and-switch-framework--part-2
    /people/thomas.weiss/blog/2008/01/14/the-three-use-cases-of-the-enhancement-and-switch-framework--part-3
    /people/thomas.weiss/blog/2008/01/23/the-three-use-cases-of-the-enhancement-and-switch-framework--part-4-the-many-ways-to-enhance-a-sap-application-with-the-new-framework
    /people/thomas.weiss/blog/2008/02/04/the-three-use-cases-of-the-enhancement-and-switch-framework--part-5-the-basics-about-switching
    /people/thomas.weiss/blog/2008/02/29/second-try-the-three-use-cases-of-the-enhancement-and-switch-framework--part-6-the-re-integration-of-the-sap-industry-solutions-into-the-erp-core
    /people/thomas.weiss/blog/2008/03/11/the-three-use-cases-of-the-enhancement-and-switch-framework-part-7--the-enhancement-package-strategy-of-sap-erp-60
    /people/thomas.weiss/blog/2009/01/15/how-to-get-the-most-from-the-enhancement-and-switch-framework-as-a-customer-or-partner--tips-from-the-experts
    Regards,
    Eswar

  • SCHEDULING AGREEMENT AND SCHEDULING LINE CREATION

    Hello Guys,
    I trying creating a scheduling agreement(SA) for vendor & material combination.
    I have created a Scheduling agreement in ME31L then maintained in ME38.
    In ME38 i have also mentioned the delivery date. when i am checking EKKO for Purchasing document , its created with the delivery date specified.
    My question is how to create a schedule line ? Do we need to maintain a source list of that material, plant and vendor.
    If we have the source list maintained, then what is the next step after SA is created and maintained.
    Do we need to do MIGO? because i tested by creating one SA in ME31L and maintained in ME38. I mentioned the delivery date as today and when i checked EKKO table the Purchasing document is created.
    Do i need to create a Purchase Order?
    If no then do i need to do MIGO? If i need to do MIGO, for what reference do i need to do MIGO???
    My client never maintained a Scheduling agreement, they want the scheduled lines to be created and sent to vendor and we need to receive  the goods on specified delivery date.
    Help will be appreciated.
    Thanks.

    Hi,
    You need to make a distinction between the scheduling agreement (ME31L/ME32L) and the delivery schedule creation (ME38/ME84)
    With ME31L you create the scheduling agreement. In the scheduling agreement which is created for a vendor you maintain the parts that you will order at this vendor, the target quantity that you will order over a certain period and the price.
    In ME38 you use the scheduling agreement number that is created with ME31L to create schedule lines (manually). These schedule lines consist of a date and an quantity. This is the data that needs to be transmitted to the vendor and against which the vendor is shipping the ordered materials.
    Once the vendor ships the materials you post the goods receipt in Migo against the scheduling agreement number.
    That is the basic working of the scheduling agreement and the delivery schedule.
    Now some remarks.
    You need to set-up the required output conditions for transmitting the data to the vendor either via print, fax, email or EDI.
    You can do this manually in each scheduling agreement and each release but typically you maintain the output condition records.
    For scheduling agreement contract (ME31L) you use transaction MN07.
    For the delivery schedule (ME38/ME84) you use transaction MN10.
    In order for you to be able to post the goods receipt the delivery schedule needs to have been transmitted otherwise you will get a message that not requirement are found when trying to post goods receipt.
    Also the goods receipt can only be posted if the requirements are valid on the day that you are performing MIGO. This means if you would post GR today then the open requirements in the scheduling agreement need to be for today or already from previous dates. The system will not allow you to post GR for quantities that are only due tomorrow (if this is required a user exit needs to be set-up).
    If you want schedule lines created via MRP then you need to set-up a source list using ME01. You have to make sure that the MRP key is set to 2 in orer for the system to generate schedule lines and you also have to make sure that you have the correct MRP parameters set-up.
    You can use ME84 to transmit the delivery schedule lines generated by MRP if no changes are required. With the ME84 you can transmit multiple releases at once, however this transaction can not be used to make manual changes to the MRP proposal.
    The scheduling agreement offers lot's more possibilities but the above should get you going with the basics.
    Hope this will help you on your way.

  • Return process in Scheduling agreement and correction delivery creation

    Hi Experts,
    I have couple of Questions:
    1) I want to know the return process in case of scheduling agreement, how exactly we should go about it.
    2) Regarding creation correction deliveries in the scheduling agreements.
    I enter in a valid scheduling agreement number into transaction VA32, click the "JIT DlSch" button, click "Corr. Delivery" button and then enter in a date and quantity.
    After I hit "Save" button, I am taken back to the initial VA32 screen and see the following message...
    Sched. Agr. w/ Rel. ####### has been saved (no delivery created)
    Message no. V1261
    Does anybody have any insight to why this is happening? Thanks in advance.
    Sourabh

    Whether it is a scheduling agreement or sale order, in case of returns, you need to generate the following:-
    a)  Return Sale order or scheduling agreement referencing the parent billing document
    b)  Return delivery if goods are taken back in parent plant via VL01N
    c)  Credit note to customer via VF01
    d)  Excise credit via J1IH
    Last but not least, please spell the name correctly.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Sale Order Deleted .

    Hello Please guide me how to check deleted salesorders in the databse . any table . @sakhi

  • Oracle vm 3.1.x : does not recognize local storage

    Hi There My VM manager does not recognize the local storage however I have a second HDD on my VM server: [root@myserver ~]# fdisk -l Disk /dev/sda: 320.0 GB, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders Units = cylinders of 16065 *

  • Layout of excel exports look like #+% !!!

    Hi everyone, i want to create an agent session, which sends excel exports via mail. This is working, but ... - the layout isn't useable ! - it seems to haven't any kind of format. --> Is there a possibility of customisation? That's really important .

  • J2EE GUI client login

    Hi: I wrote a GUI client for a EJB running on SJSAS7. It works fine. Now I would like to put some security on it. How do I let users login? Do I create a JAAS module or just set up the security restrictions on the EJB's methods? Sam

  • How to Generate an A/R Invoice from a DO automatically

    Dear all, Is there a way to generate an A/R Invoice automatically right after a user add an approved DO? Once hi clicks the <b>Add</b> button in Delivery screen, I want to show him the A/R Invoice screen completed with all items from the  base Delive