How to set NC Log API

Hi all,
I want to use the following NC log API,but I don't know how to initialize the interface's java object and set the parameter "ApplicationVO".
Interface LogNCApplicationInterface
Method ApplicationVO addNDone(ApplicationVO applicationvo)
Please help me.Thank you!
Qiang Liu

if you just need to log an NC the minimum fields you need to set are the following:
CreateNCRequest ncRequest = new CreateNCRequest();
ncRequest.setActivity("NC500"); // activity where NC is logged - can be any name
ncRequest.setSfcRef(new SFCBOHandle(site, sfcParent).toString());// the SFC for which you are reporting an NC
// ncRequest.setValidateNCCodeOperation(true); // no need to set it, it's true by default
// nc code reference for nc code that is reported
// nc code must exist in the system
ncRequest.setNcCodeRef(new NCCodeBOHandle(site,"NCCODE").toString());
// required custom fields must be set
CreateNCResponse ncResponse = ncPSI.createNC(ncRequest);

Similar Messages

  • How to set server log file severity

    Will some one suggest how to set the severity for messages logged by server to server log file. The admin console consists of setting "Stdout Severity Threshold" which is applicable only to standard out. I need to restrict info messages to be logged in server log file.

    Which release of WebLogic Server are you using? In WebLogic 9.0 there is an attribute on the LogMBean called LogFileSeverity which could be configured to "Warning" so it will not allow Debug and Info level messages to be written to the server log file. In the 8.1 release you would need to do this programatically using a startup class, by getting a reference to the server Logger by invoking weblogic/logging/LoggingHelper.getServerLogger() and setting the appropriate weblogic/logging/WLLevel on the weblogic/logging/FilestreamHandler that writes to the server log file.
    Hope this helps
    Sandeep

  • How to set the Logging in SAP Web AS through Netweaver 7.1 ?

    Hi,
    Can you please help us with the steps to set the Log Level and Log files using SAP Netweaver 7.1
    Thanks

    WHat kind of logs are you trying to set? If these are work process logs you can set on SM50, for example.
    Regards,
    Tiago

  • How to set access.log format to "combined"

    Hello,
    I'm trying to get AWStats working on Solaris and have that working fine, but to get more information, I need to set the log format to "combined".
    Question is: is there a way to modify what is output in the access.log?

    SHOULD I RECOMPILE and specify the access method?
    Should i change line 1131 in db4.cpp to DBTYPE type = DB_QUEUE; ???

  • Setting Logging API config file

    Hi,
    Is there a way I can set the Logging API's config file (java.util.logging.config.file) from within my program? I have tried using System.setProperty but it doesn't seem to work. The only way I seem to be able to set the property is with -D on the command line.
    Thanks
    Rob

    Is there a way I can set the Logging API's config file (java.util.logging.config.file) from within my program? I have tried using System.setProperty but it doesn't seem to work. The only way I seem to be able to set the property is with -D on the command line.Read the Logging Overview Dokumentation
    anyway
    InputStream inputStream = new FileInputStream("logging.properties");
    LogManager.getLogManager().readConfiguration(inputStream);
    ...

  • How do I set the logging level with the plug-in 1.4

    I am writing an applet that will be hosted in the plug-in version 1.4. I'd like to set up some logging statements using the java.util.logging API. I have successfully got it to print out log messages, but it is not printing anything below level INFO. How can I set it up to print out log statements at the FINEST level?

    If you are using the default logger for logging from the applet, the default log level from the logging.properties file in your JRE lib directory is the place. There is an entry
        .level= INFO In this file. You can modify this entry.
    This is a a roundabout way of achieving it. since we are modifying the default log level here, it will be used by other java applications as well. I am looking for a better solution.

  • How to Set Image to Lock Screen and Background in Windows Store API?

    How to set an image to windows lock screen and desktop background for windows store app in c#?
    if changing lock screen is available in windows store C# how about changing the desktop background using Windows store C#?

    Hi icce cage,
    To change the Windows lock screen we can use this API:
    LockScreen class with set image methods.
    To change the desktop background, it is not possible as I know.
    --James
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to set and retrive the index log path stored by parameter LOG_DIRECTORY

    how to set and retrive the index log path stored by parameter LOG_DIRECTORY.

    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/lsnrctl.htm#sthref72
    http://download-west.oracle.com/docs/cd/B19306_01/network.102/b14213/cmctl.htm#sthref239

  • How to set up PopProxy* log file size ?

    Dear All,
    Does anybody know how to set up MMP PopProxy* log file size and rollovertime ?
    ./imsimta version
    Sun Java(tm) System Messaging Server 7.0-3.01 64bit (built Dec 9 2008)
    libimta.so 7.0-3.01 64bit (built 09:24:13, Dec 9 2008)
    Steve

    SteveHibox wrote:
    Does anybody know how to set up MMP PopProxy* log file size and rollovertime ?Details on these settings are available here:
    http://wikis.sun.com/display/CommSuite6U1/Communications+Suite+6+Update+1+What%27s+New#CommunicationsSuite6Update1What%27sNew-MMPLogging
    Regards,
    Shane.

  • How to set no archive log in MS SQL

    Dear Gurus,
    I'll already did the support package upgrade and need to run the SGEN.But before that I'll need to set the archive log in MS SQL 2005 database.
    Kindly please help me,how to set "no archive log " in MS SQL .Then I can run the SGEN.After that how to revert back to "enable archive log mode".
    All the posting told about the archive log with Oracle.
    Thanks
    /Shah

    Hi Shah,
    In MS SQL Server, Transaction log is used to write log files.
    For eg., Intially if you allocate 10GB to the Tr.Log and can set the limit based on your requirement, say as 11GB. It means it wont grow beyond the point 11GB.
    If you take a transactional log backup, the data present in the 10GB file is freed up, but the size of the file would remain same.
    This can be truncated by shrinking the log file.
    1. Open SQL Mgmt studio.
    2. Right click on the DB(SID)> Tasks>Shrink-->Files.
    3. Choose "Log" in the file type and "Log File Name" in the Filename column.
    4. Shrink Action should be "Release Unused Space"
    5. Then Click Ok. The unused space will be released.
    The Transaction log can be switched off by changing the Recovery Model to "SIMPLE"
    1. Click on the DB(SID)
    2. Properties>Options>Recovery Model.
    3. If the recovery model is set to Simple, the Transaction log wont be written.
    Hope this would help you. Revert for any other clarification.
    Regards,
    Kamesh

  • How to set more detail log level for http

    Hi,
    With Java Enterprise System 2003 I want to see when a user login to the Messenger Express in the http log. How could I set a log level so I can see this?
    I do not know the the default log level for http and I would like to set a log level that show me more information
    could this be the command?
    configutil -o logfile.http.loglevel -v level Information

    configutil -o logfile.http.loglevel -v Information
    would be the correct command to set the log level to "information".
    Other valid levels include, "debug", "notice" (this is the default), "warning".
    You have t restart the webmail daemon to make this take effect.
    stop-msg http; start-msg http

  • How to set portal context using Java/JPDK api.

    Hi,
    I am in the process of converting pl/sql based database provider contect portlets to Java based JPDK. I ran into issue where the database provider portlet users were getting context auto matically. Now with Java/JPDK portlets , I am receiving no data found error, since the context is not set. The pl/sql is setting wwctx_private_api.set_context ('portal') to set the context. From Java if we call this api, it is taking a toll on the performance and the portlet times out.
    Can any help how to set the context for a web provider using JPDK or any other better solution. Any immediate help is highly appreciated.
    Thanks,
    Rav.

    Hi
    We are trying to access content views for e.g portal.wwsbr_all_items s, portal.wwsbr_all_content_areas c,portal.wwsbr_all_folders f, from aweb provider portlet. When we do a select on those objects , we are getting java sql exception saying "ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1745
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1579
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1834
    ORA-06512: at "PORTAL.WWCTX_API", line 199
    We need to know how to accesss the above views from a jsp based portlet.
    A

  • How to set local currency in AR/Invoice through DI API SAP B1?

    Dear Expert,
    I am using DI API to add AR/Invoice document, but I can't find how to set local currency for BP with foreign currency.
    This my code snip :
            oSO = oCompany.GetBusinessObject(BoObjectTypes.oInvoices)
            oSO.DocDate = dtpPostDate.Value
            oSO.DocDueDate = dtpDueDate.Value
            oSO.TaxDate = dtpDocDate.Value
            oSO.Series = cSeries
            oSO.DocNum = txtNumber.Text
            oSO.DocCurrency = doccur
            oSO.CardCode = txtBP.Text
            oSO.CardName = txtName.Text
            oSO.ContactPersonCode = cntctCode
            oSO.JournalMemo = txtRemarks.Text
            For i = 0 To dgv.RowCount - 2
                oSO.Lines.SetCurrentLine(i)
                oSO.Lines.ItemCode = dgv.Item(0, i).Value
                oSO.Lines.ItemDescription = dgv.Item(2, i).Value
                oSO.Lines.Quantity = dgv.Item(4, i).Value
                oSO.Lines.Price = dgv.Item(5, i).Value
                oSO.Lines.DiscountPercent = dgv.Item(6, i).Value
                oSO.Lines.TaxCode = dgv.Item(7, i).Value
                oSO.Lines.LineTotal = dgv.Item(9, i).Value
                oSO.Lines.Currency = doccur
                oSO.Lines.Add()
            Next
            lRetCode = oSO.Add()
            If lRetCode <> 0 Then
                oCompany.GetLastError(lErrCode, sErrMsg)
                MsgBox(sErrMsg, 16, "Attention")
            Else
                MsgBox("Operation completed successfully.", 64, "Information")
             End If
    When trying to Add, system show error message " Enter valid currency code [OINV.DocCur][Line:1], '$' "
    I am not lucky after trying for a day , wish enlightenment from the experts here, Thank you.
    My machine : SAP B1 9 PL 4
    Best Regards,
    Muh.Ulfah

    Hi
    In the other thread I suggested that you can add document using interface first because there is a possibility that B1 doesn't accept this currency code not because you set it improperly in your code but because of some other reason, for example this currency is not valid for this particular business partner. Despite the fact that this way you can eliminate other possible problems you can also use DI to save an existing document as XML and check what is the actual currency code that B1 itself placed in the document lines object.
    Afterwards you can again try to add document using DI.
    btw
    check this thread:
    How to set local currency in sales order for BP with foreign currency through DI?
    Kind regards,
    Radek

  • How to disable BPEL java api logging in SOAP mode?

    Hi,
    I have build an 11g ADF based application using the Oracle BPEL java API to access the BPEL and workflow engine. Since i am unable to make it running with the REMOTE_CLIENT on Weblogic 10.3 we run it in SOAP_CLIENT mode. This generates a lot of logging which i want to turn of in our production environment. Does anybody know how to achieve that? Or even better, how to use the bpel api in REMOTE_CLIENT mode from a 11g adf application?
    Kind Regards,
    Andre

    No you dont have to change your startManagedServer.cmd/.sh everytime you need to have a Java Embedding activity. You only need it in case of using Log4J. As log4j requires a configuration xml viz log4j.debug.xml and log4j.dtd you need to let the soa managed server know about it. The best way to load this configuration files is using the JAVA_OPTIONS command during server startup.
    Hope the explanation helps.

  • How come logging is so hard? - JDK1.4 Logging API

    Have a small project on hand. A standalone java program trigged by unix cron job and do some data cleaning. Need to implement a very simple logger. Tried to use JDK1.4 Logging API, here's my code:
    public class MyLogManager {
         public final static String NAME = "mylog";
         public final static String LOG_FILE_NAME = "C:/my.log";
         private static Logger logger;
         static {
              try {
                   logger = Logger.getLogger(NAME);
                   Handler fh = new FileHandler(LOG_FILE_NAME);
                   fh.setFormatter(new SimpleFormatter());
                   logger.addHandler(fh);
                   logger.setLevel(Level.ALL);
              } catch (Exception e) {
                   System.out.println("Unable to initialize logger: " + e.toString());
                   System.exit(1);
         public static Logger getLogger() {
              return logger;
    and use MyLogManager.getLogger().info("message") to log message.
    It works and my.log was generated with log message. However, the problem is everytime a new job (java myprogam ...) runs, it deletes the old log file and create a new one.
    I want the message to be appended by the end of old log file. What should I do? Any help?

    Use log4j (google for it - it's on http://jakarta.apache.org).
    If log4j.jar is in your classpath, the JDK 1.4 logging framework will use it automatically. Then all you have to do is to configure a log4j.properties file in your classpath to log wherever you want it to.
    And log4j is sorta-smart about multiple programs logging to the same file.

Maybe you are looking for

  • Trigger Automatic Search Help in WebDynpro for ABAP

    I have a WDA application for creating a Purchase Order. The first screen has 2 options - one for creating a PO from scratch; and one for copying an original PO. The second view ('Copy PO') for copying a PO has a single field (PO document) with a Sear

  • How I fixed broken Home Share under iTunes in Windows

    Every once in a while my "Airplay" icon disapears under Windows iTunes. I have no clue why but it happens but it does. My guess is too many ios devices connecting and syncing at once somehow corrupts a config file. Even after a reboot its still gone.

  • FCE 4.0 And AVCHD Importing

    I have been using FCE 4.0 for a long time and recently have tried to give Final Cut Pro a shot. As increduous as this sounds I have been told that one cannot insert text at random or titles other than (with respect to the former) what are in the prov

  • Blown highlights on export, how do I adjust clipping in LR to avoid

    I found the thread that explained WHY the highlight were showing in range in LR2 and blown in Cs2.  It a matter of LR using a larger color space, profoto rgb and CS using srgb color.  I get that.  BUT I don't want to deal with changing color space at

  • Some questions and observations.

    Every time I use the BTW tester it gives different results for download/ping and upload,none of which are accurate. The quoted line below is what the so called futher diagnotics screem deplays at the bottom. "If you continue to encounter a problem wi