Navigate to Package from Code Inspection results

Hi,
I created a simple Code Inspector check to see whether our packages have the right Transport Layer and Software Component. The check works fine, but I'd like to add navigation (so when I click the link "Display Object" in the result list, the package is displayed).
But it doesn't. It only says "Program <Package name> not found.
There is one note 1762948, but it doesn't look very promising, since in method CL_CI_RESULT_PROGRAM->IF_CI_TEST~NAVIGATE, RESULT-SOBJTYPE is not correct (PROG instead of DEVC).
I also implemented the NAVIGATE-Method in my test class, but to no avail (it is not called when I trigger navigation, or at least no breakpoint is reached there).
So before I open a ticket for this, I'd like to know whether anybody has managed to navigate to a package from Code Inspector using this way. I know it is possible if I just click on the package name in the result list. That is a workaround, but not a usable solution.
Thanks in advance
Ole

Take a look at
CL_CI_RESULT_ABAP_COMPLEXITY and
CL_CI_TEST_ABAP_COMPLEXITY
In the test class the method GET_RESULT_NODE binds it to the RESULT class. Then the NAVIGATE method is implemented in the RESULT class. Use the parameters to transfer additional information to the result class.

Similar Messages

  • C# package - from code to sequence diagram

    i am currently developing a package using c#, the main objective of it is to come up with a sequence diagram after the user has finished coding. any suggestion on how am i able to do it? is there any available APIs? i am currently reading up on StarUML to
    see if it is useful. Can anyone point me towards the right direction and what should i search for?
    Any help will be appreciated, thank you in advance.
     

    Hi Tan,
    You may need the help of Visualization and Modeling SDK, check if these document are useful:
    Extending UML Models and Diagrams
    How to: Edit Sequence Diagrams by Using the UML API
    About the UML API:
    Programming with the UML API
    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.

  • Getting error code 1 when calling SSIS package from a stored procedure (SQL Server 2008 R2)

    Hello,
    I am trying to execute a SSIS package from SQL Server 2008 R2 stored procedure but getting error code 1 (as per my knowledge, error code description is as below:
    0 The package executed successfully.
    1 The package failed.
    3 The package was canceled by the user.
    4 The utility was unable to locate the requested package. The package could not be found.
    5 The utility was unable to load the requested package. The package could not be loaded.
    6 The utility encountered an internal error of syntactic or semantic errors in the command line.
    Details:
    I have a stored procedure named "Execute_SSIS_Package" (see below sp) which executes 'Import_EMS_Response' SSIS package (when I execute this package directly from SQL Server BID it works fine it means package itself is correct) and calling
    it from SQL as:- EXEC Execute_SSIS_Package 'Import_EMS_Response'.
    Here I receives error code 1.
    Can anyone help me to resolve this issue please?
    Thanks in advance!
    CREATE PROCEDURE [dbo].[Execute_SSIS_Package]
     @strPackage nvarchar(100)
    AS
    BEGIN
     -- SET NOCOUNT ON added to prevent extra result sets from
     -- interfering with SELECT statements.
     SET NOCOUNT ON;
     DECLARE @cmd VARCHAR(8000)
     DECLARE @Result int
     DECLARE @Environment VARCHAR(100)
        SELECT @Environment = Waarde
     FROM  Sys_Settings
     WHERE Optie = 'Omgeving'
     --print @Environment
     SET @strPackage = '"\W2250_NGSQLSERVER\BVT\' + @Environment + '\' + @strPackage + '"'
     SET @cmd = 'dtexec /SQL ' + @strPackage +  ' /SERVER "w2250\NGSQLSERVER"  /Decrypt "BVT_SSIS" /CHECKPOINTING OFF /REPORTING E'
     --print @cmd
     EXECUTE @Result = master..xp_cmdshell @cmd, NO_OUTPUT
     --print @Result
    END

    It has something to do with the security.
    E.g. cmdshell is not enabled or the caller has not rights over the package.
    There could be a syntax error, too.
    I suggest you make the package runnable off a SQL Agent job then trigger the job from the stored proc with
    sp_start_job <job name>
    Arthur
    MyBlog
    Twitter

  • Copying Inspection results from inspection lot.

    Dear All,
    Please explain me the process of copying inspection results in QM. Following is my clients requirement:
    During receiving inspection they receive the same material in say 10 batches (coils). They want to create the independent batch for  each coils of same material for tracking mechanism, so I  don't have any option to generate that many number of lots.
    Out of this 10 lots, say there are 2 masters (mother coils). Means there are two set of characteristics only which i need to copy for 5 lots each.
    As I  learn from SDN, EA - PLM  need to be activated . But I don't know what are the  adverse effects of activating  same.
    Please explain me the process.
    Best Regards.
    Shekhar Mokashi

    Hi Shekhar,
    Refer the OSS note 855959 - Activation of Extension Sets via SPRO not successful.
    I think all your doubts regarding to this Enhancement package will get resolved.
    The big warning is given there in that note itself about implementing the EA-PLM enhancement is.....
    Once an Enterprise extension set has been activated, it cannot be de-activated by de-selecting the option in the SPRO or otherwise, because BC Set activations cannot be undone.
    Appart from that note refer the document for
    Release Notes
    SAP ERP Corporate Services
    SAP enhancement package 2 for SAP ERP 6.01.
    the link for the same is pasted here FYI.
    [Chap_04_RNCorporateService|http://www.id.uzh.ch/dl/sw/sap/upgrade/Chap_04_RNCorporateService.pdf]
    Even after this much stuff completion, you don't have your doubt cleared up then I would advice you to ask the question in [ SAP Enhancement Packages|/community [original link is broken]; forum.
    Regards with lots of good luck wishes.
    Shyamal.
    Edited by: Shyamal Joshi on Jul 26, 2008 12:19 PM
    Edited by: Shyamal Joshi on Jul 26, 2008 3:06 PM

  • Copy the inspection  result  from one lot to multiples lots!!

    Hi SAP expert,
    I want to copy the inspection  result  from one lot to multiples lots, currently i know how to setup  the copy to another lot(SAML Response from SAP ID Service ) , but  i dont know to do to multiples lot.
    ¿Someone can help me?
    Thank you

    First you have to customizing the functionality of Copy of Inspection Results using the following path, where you have to entry the inspection types, plant .etc., where you want to have the functionality.
    SPRO -> Quality Management -> Quality Inspection -> Make Settings for Copy of Inspection Results
    Then when you are in Record Result screen you select Menu -> Edit -> Copy Inspection Results ,
    then a pop-up window is displayed and you filled in with the inspection lot which has the results and then another pop-up window is displayed to select the characteristics that you want to copy.
    A.P.

  • Reg: Copying inspection results from inspection( 04) to inspection type (!0

    Dear Friends ,
    I have configured for Quality certificate.
    At the time of delivery , the system will create an inspection lot.
    To make delivery we need to carry out RR and UD once again.
    Can we copy inspection results of inspection type (04) to inspection type 10 , as we are maintaining  the same results of inspection type (04). Also can we sit as background whenever a lot is created with lot origin(10) , automatically it has to copy the results from inspection  type 04 .
    Thanks in advance.

    HI Dear,
    As you said  , it is for COA.
    And the materials are not batch manged.
    Is there any possibility  of copying the results of 04 inspection lot to inspection type 10 lot  , which is created at the time of PGI.
    Because untill and unless RR and UD is made sales people will be not able to  make the delivery . if there are multiple lots , it takes
    time for them to carry out RR and UD.
    Thanks for your reply!!!

  • I can't find the appx or xap package from windows app studio souce code in visual studio 2015

    I created a project from Windows App Studio then downloaded the source code and modify it. I set all configuration to Release Any CPU. But after rebuilding solutions several times there are no appx or xap package files found. How to create appx package
    from windows app studio source code using visual studio 2015?

    For that right click on the solution folder in Visual Studio, and you would find an option to create App Packages. 
    Hope this might help! 
    Create an app package
    Happy Coding!

  • Must load packages from file 2x before compl insght works in code editor

    I am used to editing packages from file instead from database, which is good practice I assume.
    When I first load a package from file, completion insight does not work.
    For example i do not get table names or column names after typing select t.<list expected> from <list expected initially> tab1 t
    When I close the file/tab and reopen the file completion insight suddenly works.
    Could you please fix this so that I only have to open the file once.
    Edited by: user10216416 on Nov 2, 2010 3:33 AM

    What version of SQL Developer are you using?
    Sue

  • Getting Error while Execute SSIS Package from Console Application

    Dear All,
    SSIS package working fine directly.
    I got following error while execute SSIS package from C# console application.
    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    OLE DB Destination failed validation and returned error code 0xC004800B.
    One or more component failed validation.
    There were errors during task validation.
    Code : 
       public static string RunDTSPackage()
                Package pkg;
                Application app;
                DTSExecResult pkgResults;
                Variables vars;
                app = new Application();
                pkg = app.LoadPackage(@"D:\WORK\Package.dtsx", null);
         Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = pkg.Execute();
    I have recreate the application with again new connection in SSIS.
    Still not working, Please provide solution if any one have.
    DB : SQL Server 2008 R2
    Thanks and regards,
    Hardik Ramwani

    The connection "{79D920D4-9229-46CA-9018-235B711F04D9}" is not found. This error is thrown by Connections collection when the specific connection element is not found.
    Cannot find the connection manager with ID "{79D920D4-9229-46CA-9018-235B711F04D9}" in the connection manager collection due to error code 0xC0010009. That connection manager is needed by "OLE DB Destination.Connections[OleDbConnection]"
    in the connection manager collection of "OLE DB Destination". Verify that a connection manager in the connection manager collection, Connections, has been created with that ID.
    Are you sure that you are running the same package via .NET which works fine from Visual Studio?
    By reading error message, I can say that you have copied OLEDB task from another package OR you have deleted one OLEDB connection manager. Now when package is run this task tries to use the connection manager and not found thus throws error message.
    Open all OLEDB destination tasks and you find connection manager missing. Connection Manager name should be provided there
    Cheers,
    Vaibhav Chaudhari
    MCSA - SQL Server 2012

  • How to Return List of Packages from Pacman/Yaourt Search

    ----EDIT----
    Changed the name of the script from pacsearch to pacdot.
    Apparently yaourt -Ssaq does this, so this script isn't as necessary as I thought. Although, I still find using pacdot -w to open the results in a text document helpful.
    ----/EDIT----
    This isn't a question; it's a script I wrote. I thought someone else might find this useful.
    I keep finding myself searching with pacman or yaourt and wishing I could get just the package names, not all of the extra stuff. For example, I'd love to be able to run yaourt -Sa $(yaourt -Ssa package). It doesn't seem like pacman and yaourt have an option for this (not that I can tell, at least), so I wrote a python script to do it. Copy it if you'd like. You can name it what you want, but I'll refer to it as pacdot.py.
    pacdot.py package will be like yaourt -Ssa package but only list the package names.
    I added a few extra options:
    pacdot.py -o package will only list results from the official Arch repositories, not the AUR.
    pacdot.py -i package will install all the found packages. If you've ever thought about running something like yaourt -Sa $(yaourt -Ssa package), that's what this command does.
    pacdot.py -w package will:
    Create a file called 'the-package-you-searched.txt',
    Write an example command that would install the found packages,
    (yaourt -Sa all-of-the-results),
    Write each result on a new line, and
    Open the file for you (with your default text editor).
    Here's the code:
    #!/bin/python3
    import argparse
    import re
    from subprocess import Popen, PIPE, call
    from collections import deque
    desc = ''.join(('Search the official Arch and AUR databases ',
    'and return package names only. ',
    'e.g.: `pacdot.py arch` will return "arch", ',
    'whereas `$ yaourt -Ssa arch` will return ',
    '"community/arch 1.3.5-10',
    ' A modern and remarkable revision control system."'
    parser = argparse.ArgumentParser(description=desc)
    parser.add_argument('package',
    help='Package to search with pacman')
    parser.add_argument('-o', '--official', action='store_true',
    help='Search official repositories only, not the AUR')
    parser.add_argument('-i', '--install', action='store_true',
    help='Install found packages')
    parser.add_argument('-w', '--write', action='store_true',
    help='Write to file')
    #Set args strings.
    args = parser.parse_args()
    pkg = args.package
    official_only = args.official
    install = args.install
    write = args.write
    # Do yaourt search.
    package_search = Popen(['yaourt', '-Ssa', '%s' % pkg], stdout=PIPE).communicate()
    # Put each found package into a list.
    package_titles_descs = str(package_search[0]).split('\\n')
    # Strip off the packages descriptions.
    package_titles = [package_titles_descs[i]
    for i in range(0, len(package_titles_descs), 2)]
    # Remove empty item in list.
    del(package_titles[-1])
    # Make a separate list of the non-aur packages.
    package_titles_official = deque(package_titles)
    [package_titles_official.remove(p)
    for p in package_titles if p.startswith('aur')]
    # Strip off extra stuff like repository names and version numbers.
    packages_all = [re.sub('([^/]+)/([^\s]+) (.*)',
    r'\2', str(p))
    for p in package_titles]
    packages_official = [re.sub('([^/]+)/([^\s]+) (.*)',
    r'\2', str(p))
    for p in package_titles_official]
    # Mark the aur packages.
    # (Not needed, just in case you want to modify this script.)
    #packages_aur = packages_all[len(packages_official):]
    # Set target packages to 'all' or 'official repos only'
    # based on argparse arguments.
    if official_only:
    packages = packages_official
    else:
    packages = packages_all
    # Print the good stuff.
    for p in packages:
    print(p)
    if write:
    # Write results to file.
    filename = ''.join((pkg, '.txt'))
    with open(filename, 'a') as f:
    print(''.join(('Yaourt search for "', pkg, '"\n')), file=f)
    print('To install:', file=f)
    packages_string = ' '.join(packages)
    print(' '.join(('yaourt -Sa', packages_string)), file=f)
    print('\nPackage list:', file=f)
    for p in packages:
    print(p, file=f)
    # Open file.
    call(('xdg-open', filename))
    if install:
    # Install packages with yaourt.
    for p in packages:
    print(''.join(('\n\033[1;32m==> ', '\033[1;37m', p,
    '\033[0m')))
    Popen(['yaourt', '-Sa', '%s' % p]).communicate()
    Last edited by GreenRaccoon23 (2014-12-22 19:17:37)

    expac works only with official and unofficial repos, not with the AUR, but it's very nice.
    Adding  '-q' should help, grep to weed out false positives.
    yaourt -Sa $(yaourt -Ssaq pulse)
    works, but
    $ yaourt -Sa $(yaourt -Ssaq chrome)
    resolving dependencies...
    looking for inter-conflicts...
    warning: removing 'chromium' from target list because it conflicts with 'chromium-no-sse2'
    error: unresolvable package conflicts detected
    error: failed to prepare transaction (conflicting dependencies)
    :: chromium-no-sse2 and chromium-scroll-pixelGs are in conflict
    so at least
    $ yaourt -Sa $(yaourt -Ssaq chrome|grep google)
    is needed.
    Edit: Also:
    $ LC_ALL=C TZ=GMT0 diff -Naur /usr/bin/pacsearch /usr/local/bin/pacsearch
    --- /usr/bin/pacsearch 2014-11-21 11:20:37.000000000 +0000
    +++ /usr/local/bin/pacsearch 2014-12-21 08:21:14.758856006 +0000
    @@ -84,7 +84,7 @@
    my %allpkgs = ();
    -my $syncout = `pacman -Ss '@ARGV'`;
    +my $syncout = `pacman -Ssq '@ARGV'`;
    # split each sync search entry into its own array entry
    my @syncpkgs = split(/\n^(?=\w)/m, $syncout);
    # remove the extra \n from the last desc entry
    @@ -110,7 +110,7 @@
    $allpkgs{$pkgfields[1]} = [ @pkgfields ];
    -my $queryout = `pacman -Qs '@ARGV'`;
    +my $queryout = `pacman -Qqs '@ARGV'`;
    # split each querysearch entry into its own array entry
    my @querypkgs = split(/\n^(?=\w)/m, $queryout);
    # remove the extra \n from the last desc entry
    $ /usr/local/bin/pacsearch pulse
    libpulse
    pulseaudio
    libao
    libcanberra-pulse
    libpulse
    paprefs
    pavucontrol
    pulseaudio
    pulseaudio-alsa
    floyd
    libcec
    mate-media-pulseaudio
    mate-settings-daemon-pulseaudio
    ponymix
    projectm-pulseaudio
    Although why not simply use pacman or expac?
    Last edited by karol (2014-12-21 08:26:48)

  • Calling SSIS package from C# Windows Service Fails

    Hi All.
    I've got an SSIS package that reads from an Excel file and populates a database. The Excel file location gets passed in to the package as a variable. Also the Protection Level of the package is set to EncryptSensitiveWithPassword.
    This all works fine when I run the package from Visual Studio or using DTEXEC. When I try to run it from a C# Windows Service though I get the following exception:
    SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft Office Access Database Engine"  Hresult: 0x80004005  Description: "The Microsoft Office Access database engine cannot open or write to the file ''. It is already opened exclusively
    by another user, or you need permission to view and write its data.".
    SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "Input Excel Connection" failed with error code 0xC0202009.  There may be error messages posted before this
    with more information on why the AcquireConnection method call failed.
    Dedupe Worksheet failed validation and returned error code 0xC020801C.
    One or more component failed validation.
    There were errors during task validation.
    The windows service runs with LocalSystem account and the following code is used to call the SSIS Package:
                    Application app = new Application();
                    Package package = null;
                    app.PackagePassword = "*******";
                    //Load the SSIS Package which will be executed
                    package = app.LoadPackage(@"C:\Projects\DataDedupeMatch\DataDedupeMatch\DataDedupe.dtsx", null);
                    //Pass the varibles into SSIS Package
                    package.Variables["User::FilePath"].Value = e.FullPath.Replace(@"\\", @"\");
                    Microsoft.SqlServer.Dts.Runtime.DTSExecResult results = package.Execute();
    I would really appreciate if someone could help me out with this.
    Thanks in advance,
    Deon

    Instead of hosting the SSIS runtime in your service, you should use a separate host process for your SSIS package.  You're using the Office drivers, which aren't designed or supported for running in long-lived unattended processes like a Windows Service. 
    You can use your own SSIS hosting code, or just use dtexec.exe to host your package.  In either case you would start the child process with
    Process.Start. 
    David
    David http://blogs.msdn.com/b/dbrowne/

  • Material to material transfer with inspection results

    Hi,
    Could you please suggest me, how to tranfer inspection results from material to material?
    Thanks & Regards,
    Nataraj

    Hi,
    once list of inspection lots are generated, the data may contain  several results as opted, incldung Start date and end date for the inspection, Plant, Processing status of the inspection lot  and Material description. from the data generated, the transfer of inspection results may be taken up as the generation of lot results are not completed till usage decision code is entered. u may try with following link
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/2d/351bb1448c11d189420000e829fbbd/frameset.htm]
    [http://help.sap.com/erp2005_ehp_04/helpdata/EN/2d/351bb1448c11d189420000e829fbbd/frameset.htm]
    i think the link-1 will be more useful to solve ur que.
    with regards,
    mahesh.

  • Uploading/Interfacing Inspection Results

    HI QM Users,
    Our manufacturer is planning to send the inspection results using XML, ASCII file and we need to upload that in our SAP QM system.  What is the best way to achieve this?   Does anyone has done results recording by reading from a input file before?  Is it simple to do?
    I also have following concerns about this process-
    1. How to match all insp. plan (characteristics, possible code values, sampling and possibly the valuation mode etc.) per SAP requirements.  How to define the file structure for such file transfer.
    2.  How to validate the accuracy of the data in the source system. i.e. possible values/parameters for each characteristics.
    Regards,

    Usually you set the inspection up that you expect to have data uploaded to from an external system with a QDR system assigned to the workcenter.  This cause the characteristics to be identified as going to be recorded from an exrternal system such as a LIMS.
    LIMS vendors usually provide the interface to perform the function of loading the data to SAP. In your case you will have to design that piece.  SAP provides the routines to do this.  You'll need to design a way to get the file from your vendor into the format needed to to load.
    The info below should help you get started.
    Craig
    Communication with External Systems
    RFC function modules are available in QM for communication with external systems. The names of all the function modules begin with QIRF_, which makes them easy to find within the development environment.
    QIRF_SEND... These function modules allow you to download data from an ERP system to a subsystem.
    QIRF_GET... These function modules allow you to upload data from a subsystem to an ERP system.
    For further details on the function modules, see the documentation for QM.
    QIRF_SEND_REQUIRMENTS_GET_DATA
    You use this function module to download operation and characteristics data to the subsystem. Ensure that the Record Type field in the I_QUAILS input structure is empty and that the SUBSYS (Subsystem) field is filled.
    QIRF_GET_ORIGINAL_VALUES
    You use this function module to upload inspection data recorded in the subsystem to an ERP system.
    For quantitative characteristics, use record type Q51. For qualitative characteristics, use record type Q52.

  • Sharepoint designer 2013 workflow kickoff issue from code

    Problem Statement: Start a  SharePoint 2013 designer Reusable Workflow with STS Authenticated User. We are trying to start to SharePoint 2013 designer Reusable Workflow with
    STS authenticated user using code but when we do that, we get following error. RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: RequestorId: a3ce6dc6-31ec-23f3-0000-000000000000. Details: An unhandled exception occurred during the
    execution of the workflow instance. Exception details: System.ApplicationException: HTTP 401 {"error_description":"The server was unable to process the request due to an internal error. For more information about the error, either turn on IncludeExceptionDetailInFaults
    (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect
    the server trace logs."} {"x-ms-diagnostics":["3001000;reason=\"There has been an error authenticating the request.\";category=\"invalid_client\""],"SPRequestGuid":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"request-id":["a3ce6dc6-31ec-23f3-b3ab-aef56fc7e299"],"X-FRAME-OPTIONS":["SAMEORIGIN"],"SPRequestDuration":["65"],"SPIisLatency":["0"],"Server":["Microsoft-IIS\/8.0"],"WWW-Authenticate":["Bearer
    realm=\"de9da885-f7bf-4564-a3a5-
    Alternate approach we are following : We have created a windows authenticated user and gave him all the necessary permission to trigger the workflow(contribute, full control). Then we are creating the User token
    for that user and opening the site with the help of the generated user token. By this approach workflow is getting triggered.
    The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
    InvalidOperationException:
    Operation is not valid due to the current state of the object
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

    There is a userprofile for the user and the issue is not a userprofile. We are using direct AD import and we have full sync every 5 minutes. The workflow gets kicked off using a fix user who never logs in but after 4/5 days the token or something gets expired
    and then we have to manually login with that user and then only code can kickoff workflow with that particular user.
    The problem in this approach is after ¾ days it gives error when trying to kick off workflow from code with user who has not logged in as we are using this AD user only for kickoff purpose.
    InvalidOperationException:
    Operation is not valid due to the current state of the object
    We can not kickoff with current user as current user can not be given contribute rights and we can not do it with system account as its not able to kickoff using system account by design of sp2013 workflow.
    So we need to know how to kcikoff workflow with a user who never logs in or logs in only for the first time and then never in production.
    Below code works for few days and then as user does not login with which we kick off workflow the token or something gets expired after 4/5 days.
    userToken = oSPWeb.EnsureUser(“UserAccountName”).UserToken;
    using (SPSite
    oSPSite = new
    SPSite(SPContext.Current.Web.Url,
    userToken))  //Site collection URL
    using (SPWeb
    oSPWeb = oSPSite.OpenWeb())  //Subsite URL
    SPList list = oSPWeb.Lists["Proposal"];
    try
                                oSPWeb.AllowUnsafeUpdates =
    true;
    SPListItem item = list.GetItemById(proposalID);
    var workflowServiceManager =
    new
    WorkflowServicesManager(oSPWeb);
    var workflowSubscriptionService = workflowServiceManager.GetWorkflowSubscriptionService();
                                //get
    all workflows associated with the list
    var subscriptions = workflowSubscriptionService.EnumerateSubscriptionsByList(list.ID);
    foreach (var
    workflowSubscription in subscriptions)
    if (workflowSubscription.Name ==
    "Proposal Workflow")
    //initiation parameters
    var inputParameters =
    new
    Dictionary<string,
    object>();
    inputParameters.Add("Comments",
    "TEST");
    inputParameters.Add("ItemId", item.ID);
    inputParameters.Add("WorkflowStart",
    "StartWorkflow");
    workflowServiceManager.GetWorkflowInstanceService().StartWorkflowOnListItem(workflowSubscription, item.ID, inputParameters);
    break;
                                oSPWeb.AllowUnsafeUpdates =
    false;
    catch (Exception
    ex)
                                Classes.Logger.WriteErrorLog("Sumbit",
    "kickoffWorkflow1", ex,
    MCTS Sharepoint 2010, MCAD dotnet, MCPDEA, SharePoint Lead

  • Copy Inspection Results of one lot to other lots at a time

    Dear Experts,
                         As per settings made under "Make Settings for Copy of Inspection Results" I am able to copy inspection results but still I am not getting what I exactly want. Below are different requirements explained in details
    1. I am not able to copy twice on the same lot. e.g. if a lot has status RREC i.e. RR has been done then if at a later time I want to copy some other results over here then it's not happening.
    In help.sap page somewhere it is mentioned that copy is possible if lot has status CALC. I want to have some configuration which I don't know for which SAP should allow the copy functionality with status RREC also.
    2. By above functionality I want to do RR for several lots collectively at a time. E.g. if I have 100 lots then with same quality results it's tedious to copy results for each one by one. Like "QA16 - Collective Usage Decision" I didn't find any similar transaction for results recording(collectively).
    3. Although my results are being copied from one lot another but MIC valuation are not being transferred given that I am not using any sampling procedure. I want manual valuation to be copied to the destination lots.
    Any valuable suggestion will be highly appreciated.
    Regards,

    Dear,
    it is not clear from your question.
    Please get more details,
    In which release you are working?
    In SPRO what special setting you made for this special case
    Inspection origin is linked with no range/TL type/insp type.
    Wher exactly you set this new configuration.
    Please let us know so that we can simulate and help you out

Maybe you are looking for

  • VERY URGENT!! How to Pass a "% " symbol from form to Report

    Hi I am using oracle 10g and passing a symbol "%" as a parameter to the report from a form. But it shows error as follows: REP-52006: Failed to decode the specified URL PARAMETER1=%. But it is working when it runs in the Report directly. Then Why we

  • Error while starting WebLogic 8.1 SP4

    Hello All, Here is the error I get when I restart the WebLogic Server 8.1 SP4. No idea, Why? Any clue to resolve this issue would be highly appreciated. The WebLogic Server did not start up properly. java.lang.ArrayIndexOutOfBoundsException: 9 at com

  • Since I've uploaded IOS 7 and can't open PDFs now. Please help.

    Since I've uploaded IOS 7 and can't open PDFs now. Please help.

  • Nokia 2690 buttons problem

    My mobile's keypad is not working. If i press the soft keys and navigation keys It's showing the number 4 and 7. What i do now-

  • Problems after reinstalling Sun One

    I've just reinstalled my machine. But after installing Sun One nothing works When I try to run my classes, I get this error java.lang.NoClassDefFoundError: dir1/MySystem (wrong name: dir1/MySystem) What have I done wrong