NWDS Webdynpro Code Generator overwrites custom source with old fragements

Hello,
I am developing Web Dynpro Components in Java with NWDS 7.1. and I am experiencing a strange behavoiur of the code generator. After I save the changes I made to a View in the "View Editor" the View is rebuild and the corresponding Java Source Code gets overwritten with an older version of it.
The same thing happens after editing the model or context bindings of the view controller, except that in this case all Java Sources are rebuild and overwritten. Its not that all method implementations are deleted, itu2019s the matter that they are replaced by older versions.
As a developer I think thatu2019s very dangerous, because sometimes I don't recognize which code areas are rewritten by designtime - I get Null Pointer Exu2019s by runtime.
Does anyone of you have an advice for me how to avoid these problems? Does anyone of you experienced the same behaviour before?
Thanks in advance!
Kind regards
Andreas Horn

Your question is not NWDI related. Post it in the [Web Dynpro for Java|Web Dynpro Java; forum or the [Java EE 5 @ SAP forum|Java Development;.

Similar Messages

  • BlueScreen error intelppm.sys when trying to generate a custom.wim with WDS

    I have 20 Toshiba Portege R700 and when I try to generate a custom wim file with all my apps, the system crash and a wonderfull blue screen appears with error at intelppm.sys. The capture of the image starts but never ends, and crashes not always at the same porcentage. The BIOS and the drivers are updated. Can someone help me?

    Hello
    What is wim file and what program you are using for creating this file?
    Are you do this on preinstalled Windows version from Toshiba?

  • Remove configuration custom STS with old web application using powershell ?

    HI
    i configured a custom sts with sharepoint 2010 web application using following commands,
    $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("c:\signing.cer")
    $map1 = New-SPClaimTypeMapping -IncomingClaimType "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress" -IncomingClaimTypeDisplayName "EmailAddress" –SameAsIncoming
    $map2=New-SPClaimTypeMapping -IncomingClaimType "http://schemas.microsoft.com/ws/2008/06/identity/claims/role" -IncomingClaimTypeDisplayName "Role" –SameAsIncoming
    $realm=”http://claimauthweb/_trust/default.aspx”
    $ap=New-SPTrustedIdentityTokenIssuer -Name "SimplePassiveSTS" -Description "A simple Asp.Net STS on DevBox." –Realm $realm -ClaimsMappings $map1,$map2 -ImportTrustCertificate $cert -SignInUrl "https://devbox/SimpleSTS/default.aspx" -IdentifierClaim $map1.InputClaimType
    after that i create the new web application with claimauthweb and selected trusted identity provider. 
    but when i create again new web application with different name and ip , after when i login to new web application using custom
    sts it redirects to sts login page and after it goes to claimauthweb application not the new web application.
    so here how i unregister with old web application and again register sts with new web applicatio?
    adil

    I believe if you want to run this you will need to remove the provider from all Web Applications in CA. Then you should be able to run Remove-SPTrustedIdentityTokenIssuer.
    If this is helpful please mark it so. Also if this solved your problem mark as answer.

  • How to generate a customized report with a table

    I have a table with two columns: month, count. The values are like the following:
    Jan-2007 50
    Feb-2007 46
    Mar-2007 55
    Apr-2007 76
    Jan-2009 67
    Feb-2009 86
    Mar-2009 55
    I want to generate a report like this:
    Month 2007 2008 2009
    January 50 76 67
    Febuary 46 45 86
    How to do that?
    Thanks.
    Jen

    Jen,
    This is the best way I could come up with. It is a little clunky but it gets the job done. Basically it buckets each group by month and then unions each month together. I used the column names and formats you specified so you should only have to change the table name.
    EDIT
    You may want to do a nvl on each decode that way the sums will work correctly for nulls. Also, you could generate this sql statement procedurally and save yourself some maintenance time. This was just to show you how it could be approached.
    SELECT 'January' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'JAN'
      GROUP BY 'January'
    UNION ALL
    SELECT 'February' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'FEB'
      GROUP BY 'February'
    UNION ALL
    SELECT 'March' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'MAR'
      GROUP BY 'March'
    UNION ALL
    SELECT 'April' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'APR'
      GROUP BY 'April'
    UNION ALL
    SELECT 'May' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'MAY'
      GROUP BY 'May'
    UNION ALL
    SELECT 'June' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'JUN'
      GROUP BY 'June'
    UNION ALL
    SELECT 'July' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'JUL'
      GROUP BY 'July'
    UNION ALL
    SELECT 'August' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'AUG'
      GROUP BY 'August'
    UNION ALL
    SELECT 'September' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'SEP'
      GROUP BY 'September'
    UNION ALL
    SELECT 'October' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'OCT'
      GROUP BY 'October'
    UNION ALL
    SELECT 'November' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE substr(month,1,3) = 'NOV'
      GROUP BY 'November'
    UNION ALL
    SELECT 'December' "Month",
           SUM(DECODE(substr(month,5,4),2000,count)) "2000",
           SUM(DECODE(substr(month,5,4),2001,count))"2001",
           SUM(DECODE(substr(month,5,4),2002,count))"2002",
           SUM(DECODE(substr(month,5,4),2003,count))"2003",
           SUM(DECODE(substr(month,5,4),2004,count))"2004",
           SUM(DECODE(substr(month,5,4),2005,count))"2005",
           SUM(DECODE(substr(month,5,4),2006,count))"2006",
           SUM(DECODE(substr(month,5,4),2007,count))"2007",
           SUM(DECODE(substr(month,5,4),2008,count))"2008",
           SUM(DECODE(substr(month,5,4),2009,count))"2009" FROM TYSON_TEST_TABLE
      WHERE UPPER(substr(month,1,3)) = 'DEC'
      GROUP BY 'December'Edited by: Tyson Jouglet on Mar 17, 2009 9:27 AM

  • Customer Statement with opening and closing balances

    Dear Forum,
    The users want to generate the Customer Statement with opening and closing balances like the traditional one. The statement now generated gives the list of all open items as on date, but the users want the statement with opening balances as on the date of the begining of the range specified and the closing balance at the end of the period for which the statement is generated. Is there a way to generate the same from the system.
    Thanks for the help.
    Regards,

    Hi,
    SPRO> Financial Accounting (New) > Accounts Receivable and Accounts Payable > Customer Accounts > Line Items > Correspondence > Make and Check Settings for Correspondence
    You can use the program RFKORD10 with correspondance type SAP06 for your company code
    This program prints account statements and open items lists for customers and vendors in letter form. For account statements, all postings between two key dates, as well as the opening and closing balance, are listed.
    Regards,
    Gaurav

  • SLA Custom source for Receivable Tax line

    Hi All,
    I defined a custom source with a cutstom funtion. I have taken paramter as 'Distribution Line Identifier' and did some logic to extract a value
    I have NOT entered any values to Segment, Lookup and Valueset.
    Next I developed custom Account derivation rule, selecting Value set into the 'Output type' (I have taken same value set as the line of business valueset)
    Into the priorities I have taken the above custom source
    Now in Journal Line Definitions for my required definition and required line type
    i tried to assign the above custom rule to line of business segment
    Here I could not find my custom rule at all.
    I did same way for Payables, it is working fine. Not sure where I did the worng.
    If I have to select 'Segment' options in custom source. I could not find line of business option in lov.
    Please let me know what I have to do with this.
    Thanks in advance
    Edited by: DharV on Aug 30, 2012 10:25 PM

    From the window help of JLD / JLT / ADR assignment screen:The list of values includes the following:All account derivation rules associated with the application for which the journal lines definition is created
    Sources that belong to the event class for which the line assignment is created and which meet the conditions described in the table below.Check all the sources used in custom source and ADR are related to the event class of the JLD, to which you are assigning the ADR.By
    Vamsi

  • Generating a blank document with custom code

    Is there a way I can generate a blank document with custom code in it?  I have been looking at several methods of doing this but so far I have been unsuccessful.  So any assistance here would be appreciated.  This is for an extension I am currently working on.
    Many thanks

    This is a public forum; please do not post your email address or other private data (by sending the forum notification with all its headers back to the forum).

  • Want to Generate custom logs with Log4J within Java Embedding activity

    Hi Gurus,
    i want to Generate custom logs with Log4J within Java Embedding activity. For that i have performed some steps, but the log file has not been created.
    ServerSide Configuration:
    *===============*
    1. I have copied the log4j-1.2.15.jar file to the "oracle.soa.ext_11.1.1" location and recreate the oracle.soa.ext.jar file using an-script, which appends the log4j.jar file to the classpath.( That was created successfully)
    2. Specify a File location in log4j.xml for creating the log file. (e.g. (<middleware_home>/config/customLog.log)
    3. Then create a folder and add log4j.xml and log4j.dtd file under the folder.
    4. Modify the startManagedWeblogicServer by adding JAVA_OPTIONS="-Dlog4j.configuration=<middleware_home>/config/log4j.debug.xml”
    5. Then restart the SOA server.
    log4j.xml :
    I have used fileAppender.
    DevelopmentSide Configuration:
    *===================*
    1. Create synchronous BPEL process and Add "JAVA Embedding Activity" inbetween receiveInput and replyOutput activity.
    2.Import the log4j-1.2.15.jar to the project libs
    3.In the BPEL source code, import the Logger class.
    4.Insert the code in the JAVA Embedding Activity
    Logger logger = Logger.getLogger("CustomLog");
    logger.info("CustomeLog " + getTitle());
    Compile and deploy the project into the SOA_server and test it. Test status is completed but log is not created in the mentioned location.
    Ref: http://blog.andrade.inf.br/search/label/Log4j
    Is there any other way to achieve this requirement. Please suggest.
    Thanks in Advance,
    Sharmistha

    You can try this.
    http://veejai24.blogspot.co.uk/2008/04/simple-way-to-implement-log4j-in-your.html
    Thanks,
    Vijay

  • What is wrong with the idl code generated by packager.exe?

    Hello everybody,
    I am trying to figure out what is wrong with the idl code generated by packager.exe. In the evaluation for the bug posted at http://developer.java.sun.com/developer/bugParade/bugs/4964563.html it says that the IDispatch interface is not exposed correctly and thus early binding of java objects is not possible using the current activex bridge implementation.
    As I am no idl expert I have no idea what that means. However, I managed to dig out the idl code generated by packager.exe for the following example bean:
    package test;
    public class MyBean
         protected int value;
         public MyBean()
         public void setMyValue(int _value)
              value = _value;
         public int getMyValue()
              return value;
         public MyBean getSelfReference()
              return this;
    }The corresponding idl code generated by packager.exe is
    uuid(81B0BF63-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    library MyBean
    importlib("Stdole2.tlb");
    dispinterface MyBeanSource;
    dispinterface MyBeanDispatch;
    uuid(81B0BF64-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanSource {
    properties:
    methods:
    uuid(81B0BF65-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    dispinterface MyBeanDispatch {
    properties:
    [id(4097)]
    int myValue;
    methods:
    [id(32768)]
    VARIANT_BOOL equals(IDispatch* arg0);
    [id(32769)]
    IDispatch* getClass();
    [id(32770)]
    int getMyValue();
    [id(32771)]
    IDispatch* getSelfReference();
    [id(32772)]
    int hashCode();
    [id(32773)]
    void notify();
    [id(32774)]
    void notifyAll();
    [id(32775)]
    void setMyValue(int arg0);
    [id(32776)]
    BSTR toString();
    [id(32779)]
    VARIANT wait([optional] VARIANT var0, [optional] VARIANT var1);
    uuid(81B0BF62-2A55-11D8-A73E-000475EBF021),
    version(1.0)
    coclass MyBean {
    [default, source] dispinterface MyBeanSource;
    [default] dispinterface MyBeanDispatch;
    };Does anyone know what is wrong with this code and maybe how to fix the idl code? Generating the dll should then be easy (I already tried several variations of the idl code but as my idl knowledge is limited it didn't really do what I wanted).

    Then the question is why it does work with visual controls (even if you set them to non-visible)?

  • Program LPC2378 with code generated by LabView ARM embedded, without using LabView

    I would like to use the C files that are originally generated in LabVIEW ARM embedded module, and use Keil software (or other lower cost) to load these files into custom boards with LPC2378 controller without LabView.  Are there detailed instuctions for this?  I am using version 8.6 and the ARM embedded module is 1.1.  
    My reason for this task is boards are being made in a maufacturing facility oversees, and they need to be programmed at their end. 
    I read a forum describing the use of  hex files, but not enough detail for me to figure this out.
    Thanks in advance.

    Hey Bob,
    What you're looking to do should be possible. You'll just need to build the application in LabVIEW, then you should be able to use the uVisions command line to deploy the system. As for the C code itself, it gets generated when you build your build specification and you should see it placed in the same directory as your labview project in a folder named the name of your project. For example, if your project were called My ARM Project, you'll see a folder called "My ARM Project" created/updated whenever you build the build specification in that project and it will contain the C Code. To see the code organized logically, after building your build specification, right-click on the ARM target and select "Show Keil uVision". This will open a uVision window in "LabVIEW mode" and you'll be able to see all of the C files associated with you application; your VI specific code will be under a folder titled "VIs". You could also just open the C code files from disk in uVision, which is what you'll need to do if LabVIEW isn't installed. The main LabVIEW project can be found in the built directory described above as the LabVIEW.uvproj file in the "target"/Application/"uvision version"/Project directory. For example my main file was built in MyProject\EK_LM3S8962\Application\4.01\Project. From there, you'll need to follow uVision's process for compiling and deploying the target code from their command line:
    Command Line
    http://www.keil.com/support/man/docs/uv4/uv4_comma​ndline.htm
    Hope this helps!
    --Ryan_S

  • Create feature for generate new collection having separate content database by using custom coding with C#

    Hi all My self ArunDarly .Iam using share point 2010 ,I want below task solve by  using custom coding with
    C#
    I have one task that create new site collection having separate content database. and that content database site collection limit  should be only one  (it must contain one site collection and note more than one  )
    This total functionality should happen when I am saving one list item (dynamically generate new site collection ) 
    If any body know this Please give me your guidance  
    Thanking  You,
    Arun Darly

    Hey Arun,
    I have done the same job. Hope this code will help you.
    using (SPSite siteCollectionOuter = new SPSite("Any SC url in which u want to create site."))
    SPWebApplication webApp = siteCollectionOuter.WebApplication;
    SPSiteCollection siteCollection = webApp.Sites;
    SPContentDatabase contentDatabase =
    siteCollection.WebApplication.ContentDatabases.Add(ServerName, New Database Name, Admin Name,
    "Admin Password",25,50, 0);
    //Above line will create new content DB
    contentDatabase.Update();
    siteCollection.WebApplication.Update();
    SPSite newSite = contentDatabase.Sites.Add("New SC Url", "SC Title", SC Desctipyion, 1033,
    15, "STS#0", "SC Admin", "Admin", "admin password",
    "User 2", "User NAme", "Password");
    //Ablove line will create new SC in to the Content DB
    //add the upper limit for the site collection
    SPQuota quota;
    quota = new SPQuota {StorageMaximumLevel = 2510220};
    newSite.Quota = quota;
    // And update the site collection and the content database
    newSite.RootWeb.Update();
    contentDatabase.Update();

  • How to Generate a Custom Message for A Custom Code.

    Hello,
    Can anyone guide me on this -
    Application : 11.5.10.2
    We have a cutom Trigger through which we want to display a custom message.
    We have re-generated the .msb, but it seems that something is missing.
    Following are the Steps We have followed to generate a custom message.
    1. Responsibility "Application Developer"
    2. Go to Applications
    3. Select Message
    4. Define a new custom message.
    5. Save
    6. Run Request " Generate Message"
    Now when the trigger gets fired , we are not able to see our Custom message.
    How do we call this messge in the custom code.
    Pl. help on this , also can i get some reference note id's on this.
    Thanks in advance.
    Regards,
    Jenny

    CREATE OR REPLACE TRIGGER KPC_RCV_TRANSACTIONS_INTERFACE
         AFTER INSERT OR UPDATE ON APPS.RCV_TRANSACTIONS_INTERFACE
         REFERENCING NEW AS NEW OLD AS OLD
         FOR EACH ROW
    ---     This Trigger Validates following things
    ---     1.     Creation date is not modified and is greater than system date.
    ---     2.     RTV should not be possible before ERS is generated.
    ---     3.     Inspection should not be possible through Deliver Transactions Responsibility
    ---     4.     Delivery of Material should not be possible through Inspection Responsibility
    ---     5.     Item is Excisable and Excise Invoice No Or Excise Invoice Date is Missing
    ---     6.     Only Inspected and Accepted material is Delivered to Subinventory
    ---     7.     Check for Existance of 57F4 for Subcon Job Receipts
    ---     8.     Check Taxes are not Missing
    ---     9.     Check Taxes are Correct
    ---     Declaring The Variables
    DECLARE
         v_grade                    number          :=     0;
         v_employee_id               number          :=     0;
         v_responsibility          varchar2(100)     :=     'Z';
         v_closed_taxes_count          number          :=     0;
         v_taxes_count               number          :=     0;
         v_invoiced_status_code          varchar2(01)     :=     'N';
         v_57f4_id               number          :=     0;
         l_date_ok               varchar2(01)     :=     'N';
         l_gate_date_ok               varchar2(01)     :=     'N';
         l_cenvatable_flag          varchar2(01)     :=     'N';
         l_excise_ok               varchar2(01)     :=     'N';
         l_rtv_ok               varchar2(01)     :=     'N';
         l_inspection_ok               varchar2(01)     :=     'N';
         l_delivery_ok               varchar2(01)     :=     'N';
         l_rej_delivery_ok          varchar2(01)     :=     'N';
    BEGIN     
    --      Get Looged in Responsibility Name
         begin
              SELECT      upper(responsibility_name)
                   INTO v_responsibility
              FROM      apps.fnd_responsibility_vl
              WHERE      responsibility_id = apps.fnd_global.resp_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_responsibility := 'Z';
              WHEN      OTHERS THEN
                   v_responsibility := 'Z';
         END;
    ---     Modifications Done by SMT to Bypass checking for following Users
         if     (apps.fnd_global.user_id     <     1091)     then
              return;
         end     if;
    ---     if     (apps.fnd_global.user_id     in     (1090,1111,1112,1126,1540,1591,1570,1881))     then
    ---          return;
    ---     end     if;
    ----     Collect the Information Required from Other Tables
    ---     Check whether item is cenvatable
         l_cenvatable_flag     :=     'N';
         begin
              select     'Y'
              into     l_cenvatable_flag
              from     apps.ja_in_po_line_location_taxes     jipll
              where     upper(jipll.tax_type)          in     ('EXCISE','CVD')
              and     jipll.po_header_id          =     :new.po_header_id
              and     jipll.po_line_id          =     :new.po_line_id
              and     jipll.line_location_id          =     :New.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   l_cenvatable_flag     :=     'N';
              WHEN      OTHERS THEN
                   l_cenvatable_flag     :=     'N';
         end;
    ---     Check whether Taxes are closed
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_closed_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_closed_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_closed_taxes_count     :=     0;
         end;
    ---     Check Existance of Taxes
         v_closed_taxes_count     :=     0;
         begin
              select     count(distinct jit.tax_id)
              into     v_taxes_count
              from     apps.ja_in_tax_codes               jit,
                   apps.ja_in_po_line_location_taxes     jipl     
              where     nvl(jit.end_date,sysdate)<     sysdate               
              and     jit.tax_id          =     jipl.tax_id
              and     po_header_id          =     :new.po_header_id
              and     po_line_id          =     :new.po_line_id
              and     line_location_id     =     :new.po_line_location_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_taxes_count     :=     0;
              WHEN      OTHERS THEN
                   v_taxes_count     :=     0;
         end;
    ---     Modifications Done by SMT to Get Invoice Status Code of the Original Transaction
         v_invoiced_status_code     :=     'N';
         BEGIN
              SELECT      'Y'
              INTO      v_invoiced_status_code
              FROM      apps.ap_invoices_all          ap,
                   apps.rcv_shipment_headers     rcv
              WHERE      ap.invoice_num               like     '%'||rcv.receipt_num||'%'
              AND     ap.org_id               =     rcv.ship_to_org_id
              AND     rcv.shipment_header_id          =     :NEW.shipment_header_id;
         EXCEPTION
              WHEN      NO_DATA_FOUND THEN
                   v_invoiced_status_code          :=     'N';
              WHEN      OTHERS THEN
                   v_invoiced_status_code          :=     'N';
         END;
    ---     RAISE_APPLICATION_ERROR(-200151,'Incorrect Transaction Date...');     
    ---     Check the transaction_date is correct or not
         l_gate_date_ok          :=     'Y';
         IF     ((:new.ship_head_attribute6     is     null)                                        or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     <     (sysdate-3))                    or
              (to_date(:new.ship_head_attribute7,'DD-MON-YYYY')     >     sysdate))                    then
              l_gate_date_ok     :=     'N';
         END      IF;
    ---     Check the transaction_date is correct or not
         l_date_ok          :=     'Y';
         IF     (to_date(:new.transaction_date,'DD-MON-YYYY')     <     to_char(sysdate,'DD-MON-YYYY'))     then
              l_date_ok     :=     'N';
         END      IF;
    ---     Check whether Excise Invoice No and Excise Date is present
         l_excise_ok          :=     'Y';     
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute1          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
         if     (l_cenvatable_flag               =     'Y'               and
              :new.ship_head_attribute2          is     null               and
              upper(:new.destination_type_code)     =     'RECEIVING')          then
              l_excise_ok          :=     'N';
         end     if;
    ---     Check whether Inspection transaction is being made in correct Responsibility
         l_inspection_ok               :=     'Y';
         if     (upper(:new.destination_type_code) = 'RECEIVING')               then
              if     (v_responsibility like '%RECEIPT%QA%')                    then
                   l_inspection_ok     :=     'Y';
              else
                   l_inspection_ok     :=     'N';
              end     if;
         else     l_inspection_ok          :=     'Y';
         end     if;
    ---     Check whether Delivery transaction is being made in correct Responsibility
         l_delivery_ok               :=     'Y';
         if     (upper(:new.destination_type_code) in ('INVENTORY','SHOP FLOOR'))          then
              if     (v_responsibility not like ('%RECEIPT%QA%'))     then
                   l_delivery_ok     :=     'Y';
              else
                   l_delivery_ok     :=     'N';
              end     if;
         else     l_delivery_ok          :=     'Y';
         end     if;
    ---     Check whether RTV is made prior to generating the ERS Invoice
         l_rtv_ok               :=     'Y';
         if     (upper(:new.transaction_type) in ('REJECT','RETURN TO VENDOR'))          then
              if     (v_invoiced_status_code = 'INVOICED')                    then
                   l_rtv_ok     :=     'Y';
              else
                   l_rtv_ok     :=     'N';
              end     if;
         else     l_rtv_ok          :=     'Y';
         end     if;
    ---     Check Error and Display Proper error message
    ---     Transaction Date Error
         if     (nvl(l_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','Wrong GRR Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Gate Entry Date Error
         if     (nvl(l_gate_date_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Wrong Gate Entry Date');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return CENVAT Error
         if     (nvl(l_excise_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Enter Excise Invoice No');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Closed Taxex Error
         if     (nvl(v_closed_taxes_count,1) != 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Wrong');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Taxes Missing Error
         if     (nvl(v_taxes_count,0) = 0)     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Taxes Missing');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return from trigger, if Transaction Type = 'RECEIVE'
         if     (upper(:new.transaction_type) = 'RECEIVE')     then
              return;
         end     if;
    ---     Return Inspection Error
         if     (nvl(l_inspection_ok,'N') != 'Y')     then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Inspection Not Allowed');
              apps.fnd_message.raise_error;
         end     if;
    ---     Return Material Delivery Error
         if     (nvl(l_delivery_ok,'N') != 'Y')          then
              apps.fnd_message.set_name('FND','KPC_RCV_CHEK:Delivery not Allowed');
              apps.fnd_message.raise_error;
         end     if;
         return;
    END KPC_RCV_TRANSACTIONS_INTERFACE;

  • [svn:osmf:] 15867: asdocs: Update to accomodate generating OSMF for Flex 4. 0 asdocs from OSMF 1.0 source with as few changes as possible.

    Revision: 15867
    Revision: 15867
    Author:   [email protected]
    Date:     2010-05-02 19:36:51 -0700 (Sun, 02 May 2010)
    Log Message:
    asdocs: Update to accomodate generating OSMF for Flex 4.0 asdocs from OSMF 1.0 source with as few changes as possible.
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/display/ScaleMode.as

    bringrags wrote:
    We do indeed recommend replacing the osmf.swc from a Flex 4 project if you're going to use OSMF in Flex 4, but you may (will?) run into issues if you attempt to use Flex's VideoPlayer within that project.  Note also that you'll need to replace osmf.swc for each individual project (or edit your flex-config.xml file to point to the updated SWC).
    In terms of future plans, we are working closely with the Flex team to ensure that their next release ships with the latest OSMF version.  No ETA on that though.
    I have followed the recommendations and removed the old version of swc and replaced it with the release version. And so far the video and audio players work fine without errors.
    But looking at the flex-config.xml I see that it still points to the old version.
    <!-- OSMF SWC -->
        <runtime-shared-library-path>
    <path-element>libs/osmf.swc</path-element>
    <rsl-url>http://fpdownload.adobe.com/pub/swz/flex/4.0.0.14159/osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url>http://fpdownload.adobe.com/pub/swz/crossdomain.xml</policy-file-url>
    <rsl-url>osmf_flex.4.0.0.13495.swz</rsl-url>
    <policy-file-url></policy-file-url>
    </runtime-shared-library-path>
    Could you elaborate a little bit more on editing this part of flex-config.xml?
    Thanks,
    FTQuest

  • Problem with .c code generated from proc compiler.

    I am having a problem compiling the c code generated from the proc pre-compiler.
    First some info on my system.
    [root@dell-xps-420-22 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Client release 5.4 (Tikanga)
    [root@dell-xps-420-22 ~]# cat /proc/version
    Linux version 2.6.18-164.11.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 6 13:26:04 EST 2010
    [root@dell-xps-420-22 ~]# uname -a
    Linux dell-xps-420-22.drew.com 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    I have written a simple PRO*C program to test the compile.
    [oracle@dell-xps-420-22 etl]$ cat Test.pc
    #include <stdio.h>
    main(int argc,char **argv)
    printf("Testing ........\n");
    [oracle@dell-xps-420-22 admin]$ cat pcscfg.cfg
    sys_include=(/usr/include,/usr/include/linux,/build/s630/precomp/public,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
    include=$(ORACLE_HOME)/precomp/public
    include=$(ORACLE_HOME)/precomp/hdrs
    include=$(ORACLE_HOME)/precomp/include
    CODE=cpp
    TYPE_CODE=ORACLE
    DEF_SQLCODE=YES
    VARCHAR=YES
    LTYPE=short
    define=__x86_64__
    When compiling the Test.pc program with the pcscfg.cfg file above.
    [oracle@dell-xps-420-22 etl]$ proc Test.pc
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Feb 21 19:51:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    [oracle@dell-xps-420-22 etl]$ gcc -c ./Test.c -I . -I$ORACLE_HOME/precomp/public
    ./Test.c:117: error: expected identifier or '(' before string constant
    ./Test.c:131: error: expected identifier or '(' before string constant
    The code generated by the proc compiler that has problems is below.
    //File Test.c
    // Prototypes
    Line 117: extern "C" {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    // Forms Interface
    Line 131: extern "C" { void sqliem(char *, int *); }
    It seems like the compiler is generating c++ code but the gcc compiler is only compiling in cc mode. I've tried a number of options in the pcscfg.cfg file to no avail. I have tried the different options for the CODE=cpp in the pcscfg.cfg file but still get the same error and/or multiple errors. I have also tried to compile the oracle demo programs using the demo_proc.mk file and also get the same error.
    The install of Oracle is fine. I can start the database and have created a needed user and tables but cannot successfully compile the pro*C code.

    My proc is also compiling for cpp code but in the pcscfg.cfg file there is no "CODE=cpp"

  • SAP Query Custom Field with ABAP Code

    Hi All,
    I have a custom field in my SAP query which has some ABAP code under it. The code finally writes some value to a variable. My question is do i need to explicitly link the variable in the ABAP code to the custom field OR it's done automatically. For some reason i don't see any value for this custom field. Thanks.

    Thanks Sandra

Maybe you are looking for