Sample code snippet needed to provision appinstance with child data in R2

Gurus,
I have developed some code to provision an application instance to a user using API but it is not working.
Can you please provide me some sample code to provision with child data this using API.
Here are the errors.
oracle.iam.provisioning.exception.GenericProvisioningException: An error occurred in oracle.iam.provisioning.spi.DOBProvisioningMechanism/provision while provisioning application instance with key 16907 to user with name TESETUSER the cause of error is oracle.iam.provisioning.exception.GenericProvisioningConfigException: Entitlement attribute not marked as key in reconciliation field mapping for UD_ADUSRC.
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at oracle.iam.provisioning.api.ProvisioningService_p7m7x_ProvisioningServiceRemoteImpl_1036_WLStub.provisionx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
at $Proxy2.provisionx(Unknown Source)
at oracle.iam.provisioning.api.ProvisioningServiceDelegate.provision(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
at $Proxy3.provision(Unknown Source)
at OIM.provisioning.DirectProvisionApplicationInstance.provisionResource(DirectProvisionApplicationInstance.java:118)
at OIM.provisioning.DirectProvisionApplicationInstance.main(DirectProvisionApplicationInstance.java:179)
Caused by: oracle.iam.provisioning.exception.GenericProvisioningException: An error occurred in oracle.iam.provisioning.spi.DOBProvisioningMechanism/provision while provisioning application instance with key 16907 to user with name TESETUSER the cause of error is oracle.iam.provisioning.exception.GenericProvisioningConfigException: Entitlement attribute not marked as key in reconciliation field mapping for UD_ADUSRC.
at oracle.iam.provisioning.util.ProvisioningUtil.throwGenericProvisioningException(ProvisioningUtil.java:216)
at oracle.iam.provisioning.spi.DOBProvisioningMechanism.provision(DOBProvisioningMechanism.java:401)
at oracle.iam.provisioning.impl.ProvisioningServiceImpl$4.process(ProvisioningServiceImpl.java:488)

I am new to the Windows programming environment (I'm running Windows 7).
I am looking for sample code that will do the following:
1.
12.
If you expect a useful answer here, you'll have to narrow your thread(s) to one specific
issue. Posting a (virtually) complete application specification is far too broad and
comprehensive for any one thread in these forums.
Pick *one* aspect of this project and describe what problems you're having writing the code.
Post a new thread for each specific problem.
As posted, you appear to be hoping to find code already completely written for this project.
Most sample code illustrates *one* task, not a dozen. If you aren't able or willing to do
the lion's share of the coding yourself, you may have to consider contracting a developer.
- Wayne

Similar Messages

  • Sample report for filling the database table with test data .

    Hi ,
    Can anyone provide me sample report for filling the database table with test data ?
    Thanks ,
    Abhi.

    hi
    the code
    data : itab type table of Z6731_DEPTDETAIL,
           wa type Z6731_DEPTDETAIL.
    wa-DEPT_ID = 'z897hkjh'.
    wa-DESCRIPTION = 'computer'.
    append wa to itab.
    wa-DEPT_ID = 'z897hkjhd'.
    wa-DESCRIPTION = 'computer'.
    append wa to itab.
    loop at itab into wa.
    insert z6731_DEPTDETAIL from wa.
    endloop.
    rewards if helpful

  • Status Reconciliation, Resource with child data

    Hello Guys,
    I am trying to reconcile a resource which have child data.
    The connector used is the DB application TAble GTC.
    If I decide to not reconcile the status of the resource everythings goes well.
    When I try to reconcile the status, too, Mapping the resource status on the
    OIM_OBJECT_STATUS field, I get the following error:
    <Apr 16, 2012 1:06:34 PM BST> <Error> <oracle.iam.reconciliation.impl> <IAM-5012244> <Matching rule where clause is null >
    <Apr 16, 2012 1:06:34 PM BST> <Error> <oracle.iam.reconciliation.impl> <IAM-5010000> <Generic Information: {0}
    Thor.API.Exceptions.tcAPIException: Matching rule where clause is null
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEventAttributeData(ReconOperationsServiceImpl.java:834)
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.ignoreEventAttributeData(ReconOperationsServiceImpl.java:865)
    at Thor.API.Operations.tcReconciliationOperationsIntfEJB.ignoreEventAttributeDatax(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    I am able to reconcile the status when I have to deal with resources that dont have child data. I thought that the same mapping was enough
    when I have to deal with resources that have child data, but it seems I was wrong.
    My oim is 11.1.1.5.2
    Has anyone else encountered this problem?
    Could you share any help on this?
    Regards,
    Eugert

    Hello Nayan,
    I tried it, but still the same result.
    I even tried creating another user on the target resource (since old users remain connected to the old form version)
    but still no progress. However I have to mention that I am not having this problem when using target resources that don't
    have multiple-value attributes (process form without child data). I have this problem only when I have resources with multiple-value data.
    Thanks,
    Eugert

  • EXC_BAD_ACCESS - sample code - just need pointing in the right direction

    Hi all
    I've been trying to add groupins and a floating A-Z listing to my UITableView.
    I found a great article on the web but the setup of my code differs slightly (probably because I got some of the architecture wrong to start with!).
    Anyhow, I'm getting an EXCBADACCESS error on the following code at this line
    NSArray *tempAuthors = [dictionary objectForKey:@"Authors"];
    Here's the full function...
    -(NSInteger)tableView:(UITableView *)tv numberOfRowsInSection:(NSInteger)section {
    NavControllerAppDelegate *appDelegate = (NavControllerAppDelegate *)[[UIApplication sharedApplication] delegate];
    NSDictionary *dictionary = [appDelegate.authors objectAtIndex:section];
    NSArray *tempAuthors = [dictionary objectForKey:@"Authors"];
    return [tempAuthors count];
    appDelegate.authors is declared in the interface as follows:-
    NSMutableArray *authors;
    @property (nonatomic, retain) NSMutableArray *manufacturers;
    ...and then in the implementation:-
    @synthesize authors;
    I don't fully understand what the @synthesize or @property does so maybe I've done something wrong here?
    Any help much appreciated.
    Regards
    Wayne

    Hi Eric
    Here's what I've been able to figure out.
    "authors" is a NSMutableArray declared in my AppDelegate. I successfully fill this with NSDictionary objects via a method in the AppDelegate. Each Dictionary object contains the key and the value of each is set to another NSMutableArray of "author" objects.
    Using the debugger I can step through and watch the initial "authors" array being built and I can see that at the end of the code it contains 21 objects of type NSDictionary - all good so far.
    My code then moves to a UITableViewController where the "numberOfRowsInSection" code is called.
    This is where the trouble begins. Stepping through the dbugger once more I can now see that my original "authors" array (which is exposed from the appDelegate as a property) still contains 21 objects however they are now of differing types!!!
    Some are still NSDictionary objects but some are wrongly showing as NSObjects - the NSObject ones also have "invalid" in the summary field of the debugger window.
    Somehow, the objects which were all created in the same way (via a loop through a database set of records) and added to the "authors" array in the same fashion are now not the same...***?!
    Obviously I'm a bit new to all of this but what strikes me is the randomness of the objects in the array which are no longer of the correct type.
    btw, let me know what code you would like to see and I shall post it.
    Regards
    Wayne

  • Need to find rows with overlapping dates

    I have a table that has FirstName, LastName, EnrollmentFrom and EnrollmentTo
    I need to find all names where they have overlapping dates.  For example this is invalid:
    Name       EnrollmentFrom     EnrollmentTo
    John Doe   1/1/2014              1/1/2015
    John Doe   2/5/2014              2/5/2014
    This would be valid:
    John Doe   1/1/2014              1/1/2015
    John Doe   1/2/2015              1/1/2016
    This is just an example as the dates could be anything in one of the other enrollments.
    Any help is greatly appreciated.

    Here is what I have based on the last post but it also returns ones that are valid:
    SELECT ffev.PatientLastName, ffev.PatientFirstName, ffev.EnrollmentFrom, ffev.EnrollmentTo
    FROM PAPPortal..FeedFileEnrollmentValues ffev
    OUTER APPLY (select top 1 b.* from PAPPortal..FeedFileEnrollmentValues b where ffev.PatientID = b.PatientID and b.EnrollmentFrom < ffev.EnrollmentTo and b.EnrollmentTo > ffev.EnrollmentFrom and ffev.PatientID <> b.PatientID) overlap
    WHERE ffev.EnrollmentTo IS NOT NULL
    GROUP BY ffev.PatientLastName, ffev.PatientFirstName, ffev.EnrollmentFrom, ffev.EnrollmentTo
    ORDER BY ffev.PatientLastName, ffev.PatientFirstName, ffev.EnrollmentFrom, ffev.EnrollmentTo
    Name              EnrollmentFrom         EnrollmentTo
    John Doe            2013-02-08            2014-02-07
    John Doe            2014-08-15            2015-08-15
    hi
    it seems you have given (= and <>) which is always return false(no records)
     where ffev.PatientID = b.PatientID and b.EnrollmentFrom < ffev.EnrollmentTo and b.EnrollmentTo > ffev.EnrollmentFrom and
           ffev.PatientID <> b.PatientID
    Note : i have given
    where a.ID=b.ID and b.DateFrom<a.DateTo and b.DateTo>a.DateFrom and
    a.rno<>b.rno
    If you don't have any unique column to differentiate you  can create rno with CTE and use like below
    DECLARE @Data AS TABLE
    -- rno int identity(1,1),
    ID int,
    DateFrom datetime,
    DateTo datetime
    INSERT INTO @Data VALUES (1, '1/1/2014', '1/1/2015')
    INSERT INTO @Data VALUES (1, '2/5/2014', '2/5/2014')
    INSERT INTO @Data VALUES (2, '1/1/2014', '12/31/2014')
    INSERT INTO @Data VALUES (2, '1/2/2015', '12/31/2016')
    ;WITH CTE1 as
    SELECT ROW_NUMBER() over(PARTITION by ID order by DateFrom,DateTo ) rno,* FROM @Data
    SELECT a.*, overlap.rno,overlap.DateFrom,overlap.DateTo
    FROM CTE1 a
    OUTER APPLY (select top 1 b.* from CTE1 b where a.ID=b.ID
    and b.DateFrom<a.DateTo
    and b.DateTo>a.DateFrom and a.rno<>b.rno) overlapwhere overlap.ID is not null
    Thanks
    Saravana Kumar C

  • Newbie needs help creating folder with different date buckets

    A simplification my scenario, I have a table, Invoice, which contains invoice amounts and invoice dates. I want to break up the invoices amounts into date buckets, such that my target report should look something like this:
    Invoices<30 Invoices<60 Invoices<90 Invoices>90
    $100 $250 $500 $1000
    I have created a folder from the Invoice table, and would like to know if it is possible to create new items within this folder to allow me to sum invoice amounts over the 0-30, 30-60, 60-90, 90+ invoice date ranges. In other words, can I create new items that each have their own condition?
    I have seen other solutions that use a custom folder backed by a SQL query using case statements to break a table down into its date range buckets. Is this considered the "right" approach to the problem?
    A simpler solution I've thought of is creating a folder for each date range (Invoices30, Invoices60, etc), and setting the condition of the folder to do the date filtering. The item "Invoice Amount" in each folder ends up being the bucket I want, and I would put them together in a complex folder, and build the report off the complex folder. Although inelegant and a bit redundant, would this solution work?
    Thanks everybody!

    Hi Newbie
    You can do this right inside Discoverer using a couple of calculations.
    Calc 1:
    =====
    Calculate the invoice date variance, let's say you will use TRUNC(SYSDATE) - TRUNC(INVOICE DATE). This gives you a number and let's call this new calculation VARIANCE.
    Calc 2:
    =====
    This second calculation created the buckets themself. Let's do it using a CASE statement and we'll call the calculation TIME BUCKET.
    CASE
    WHEN VARIANCE <= 30 THEN "0 to 30"
    WHEN VARIANCE <= 60 THEN "30 to 60"
    WHEN VARIANCE <= 90 THEN "60 to 90"
    ELSE "More than 90"
    END
    You now display only TIME BUCKET in your workbook. The other calculation, VARIANCE, will be used but not displayed on screen in the final answer.
    If you don't like CASE, here's the same answer using DECODE:
    DECODE(VARIANCE,
    LEAST(VARIANCE,30), "0 to 30",
    LEAST(VARIANCE,60), "30 to 60",
    LEAST(VARIANCE,90), "60 to 90","More than 90")
    By the way, when you do this you will find that Discoverer runs your report very fast. This is because it can handle these types of queries exceptionally well.
    I hope this helps
    Regards
    Michael

  • Error: custom reconciliation (with child data)

    I have "HR System" Resource Object (Allow Multiple, Allow All).
    Reconciliation Fields:
    -HR Tab No [String]
    -HR FirstName [String]
    -HR LastName [String]
    -HR Department [String]
    -HR Position [String]
    -HR Location [String]
    -HR Manager [String]
    -Role [Multi-Valued]
    ---Role [String]
    Code:
    Hashtable ht = new Hashtable();
    Hashtable htc = new Hashtable();
    ht.put("HR Tab No" , "1368");
    ht.put("HR FirstName" , "ReconUser2");
    ht.put("HR LastName" , "ReconUser2");
    ht.put("HR Department" , "test");
    ht.put("HR Position" , "test");
    ht.put("HR Location" , "test");
    ht.put("HR Manager" , "test");
    long result = l_tcRecon.createReconciliationEvent("HR System", ht, false);
    System.out.println("recon key: " + result);
    htc.put("Role" , "Role1");
    htc.put("Role" , "Role2");
    long resultc = l_tcRecon.addMultiAttributeData(result, "Role", htc);
    System.out.println("child recon key: " + resultc);
    l_tcRecon.providingAllMultiAttributeData(result, "Role", true);
    l_tcRecon.finishReconciliationEvent(result);
    ReconOperationsService l_objReconService = oimClient.getService(ReconOperationsService.class);
    l_objReconService.processReconciliationEvent(result);
    Error:
    +<Sep 3, 2012 6:39:21 PM GMT+04:00> <Warning> <JNDI> <BEA-050006> <An attempt was made to look up versioned object "ejb.stateless.ClientLoginSessionService#oracle.iam.platformservice.api.ClientLoginSessionServiceRemote" from an external client or another application. This can potentially cause in-flight work of the application version not being tracked properly and thus being retired prematurely.>+
    +<Sep 3, 2012 6:39:23 PM GMT+04:00> <Error> <oracle.iam.reconciliation.dao> <IAM-5010001> <Calling stored procedure - XL_SP_RECONEVALUATEACCOUNT+
    intUserKey_in = 1
    intEventKey_in = 720563
    strRequiredAttributesList_in =
    strMappedTableName_in = UD_HRSYS
    strTargetTableName_in = RA_HRSYSTEM220
    strEntityTableName_in = USR
    strAccountMatchingRule_in = ((UD_HRSYS.UD_HRSYS_PERSONID=RA_HRSYSTEM220.RECON_HRTABNO2B020A42))
    strEntityMatchingRule_in =
    strChildTargetTableName_in =
    strChildReqAttributesList_in = >
    +<Sep 3, 2012 6:39:23 PM GMT+04:00> <Error> <oracle.iam.reconciliation.impl> <IAM-5010000> <Generic Information: {0}+
    oracle.iam.platform.utils.SuperRuntimeException: oracle.iam.platform.utils.SuperRuntimeException: Error occured in XL_SP_RECONEVALUATEACCOUNT while processing Event  No 720563  Error occurred in XL_SP_RECONUSERMATCH while processing Event No 720563    One or more input parameter passed as null
    at oracle.iam.reconciliation.impl.ActionEngine.processEvent(ActionEngine.java:239)
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.processReconciliationEvent(ReconOperationsServiceImpl.java:982)
    at oracle.iam.reconciliation.api.ReconOperationsServiceEJB.processReconciliationEventx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy350.processReconciliationEventx(Unknown Source)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.processReconciliationEventx(Unknown Source)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused By: oracle.iam.platform.utils.SuperRuntimeException: Error occured in XL_SP_RECONEVALUATEACCOUNT while processing Event  No 720563  Error occurred in XL_SP_RECONUSERMATCH while processing Event No 720563    One or more input parameter passed as null
    at oracle.iam.reconciliation.dao.ReconActionDao.executeAccountMatch(ReconActionDao.java:482)
    at oracle.iam.reconciliation.dao.ReconActionDao.executeAccountMatch(ReconActionDao.java:404)
    at oracle.iam.reconciliation.impl.AccountHandler.process(AccountHandler.java:203)
    at oracle.iam.reconciliation.impl.ActionEngine.processEvent(ActionEngine.java:197)
    at oracle.iam.reconciliation.impl.ReconOperationsServiceImpl.processReconciliationEvent(ReconOperationsServiceImpl.java:982)
    at oracle.iam.reconciliation.api.ReconOperationsServiceEJB.processReconciliationEventx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at $Proxy350.processReconciliationEventx(Unknown Source)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl.processReconciliationEventx(Unknown Source)
    at oracle.iam.reconciliation.api.ReconOperationsService_emc07d_ReconOperationsServiceRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Please, help!

    A_Sergey wrote:
    Thanks, but how can I set this parameter?Really do not know. I've just traced your problem down to the PL/SQL procedure, that generates the error message.
    I suppose you have no means to set the name explicitly. Rather something is wrong with your configuration.
    Regards,
    Vladimir

  • I just need a little help to connect with eCommerce API. Could anyone please give a JAVA sample code

    Hi All,
    I am looking for a sample code to just to connect with Business Catalyst eCommerce API. My aim is to simply retirieve the list of the products and update them.
    It would be really helpful, if anyone please provide me a sample code in JAVA, just to connect with the API.
    Thanks
    Ani

    public static void main(String[] args) throws RemoteException, MalformedURLException {
                        String endpoint = "https://CC.sys.com/CatalystWebS1ervice/CatalystEcommerceWebservice.asmx?WSDL"; // endpoint url can be found under Site Settings -> API -> click on eCommerce and copy the URL on the browser here.
                        CatalystEcommerceWebserviceSoapProxy sq = new CatalystEcommerceWebserviceSoapProxy(endpoint);
                        Products[] prod = new Products[2];
                        prod = sq.product_ListRetrieve(Username , Password, SiteID, CatalogueID);
                        System.out.println(prod[1].getDescription());

  • URGENT : Need java code snippet to retrieve uniquemember values OID 11g API

    Hi All,
    We have a requirement to retrieve the uniquemember attribute values using OID 11g API. We are using labeleduri approach for dynamic groups and thus all the uniquemember values are created using dynamic groups.
    When we are trying to retrieve the uniquemember values using Java code snippet, it is not returning the values. The strange thing is: The uniquemember values created using dynamic groups are not visible in ODSM OID console or JExplorer tool. However those values are visible in LDAP Browser v2.8.1 tool.
    So can somebody throw light on this? Any pointers or sample code snippet to retrieve uniquemember values would be grateful.
    Thanks
    Mahendra.

    Hi All,
    We have a requirement to retrieve the uniquemember attribute values using OID 11g API. We are using labeleduri approach for dynamic groups and thus all the uniquemember values are created using dynamic groups.
    When we are trying to retrieve the uniquemember values using Java code snippet, it is not returning the values. The strange thing is: The uniquemember values created using dynamic groups are not visible in ODSM OID console or JExplorer tool. However those values are visible in LDAP Browser v2.8.1 tool.
    So can somebody throw light on this? Any pointers or sample code snippet to retrieve uniquemember values would be grateful.
    Thanks
    Mahendra.

  • Request for sample code, Validating XML Schema

    Does anyone have some sample code to validate
    an XML Schema with the Oracle parser?
    Also, the classgen code seems to have more XML Schema classes in it. There is an xschema.jar full of XML Schema related code. Would it be possible to use this code?
    I've tried DOMSample.java with the v2 parser. It seems to happily echo Schema based XML files that are obviously wrong. (I use Tibco's XML Authority to verify the XML file and XML Schema).

    I do not have sample code but it is not a difficult API to call. I have worked on it before, so if you have a specific question on it, happy to help out if I can.

  • Assert error/hangs running the performance sample code

    Hi,
    I'm doing some work to understand how fast I can expect Berkeley DB to run and I found the 2006 white paper on [Performance Metrics and Benchmarks|http://www.oracle.com/technology/products/berkeley-db/pdf/berkeley-db-perf.pdf] so I downloaded the [sample code|http://www.oracle.com/technology/products/berkeley-db/files/perf.zip] and made a couple of fixes to make it run with 4.7.25 (shown at the end).
    When I run 'make test' it frequently hangs on the "Transactional Data Store (write, in-memory logging)" test under OS X 10.5.7 and under Debian lenny (kernel 2.6.26-1-amd64).
    If I rebuild BDB with --enable-diagnostic I get this assertion error.
    jmeredith@op:~/src/perf$ rm -rf TESTDIR ; ./t
    Using Berkeley DB 4.7.25 - ops: 1000000; keysize: 8; datasize: 32
    Data Store (read):
    elapsed time: 0.392573 seconds : 2.5473e+06 key/data pairs per sec
    Data Store (bulk read):
    elapsed time: 1.615233 seconds : 2.66339e+07 key/data pairs per sec
    Data Store (write):
    elapsed time: 0.629771 seconds : 1.58788e+06 key/data pairs per sec
    Transactional Data Store (read):
    elapsed time: 2.413665 seconds : 414308 key/data pairs per sec
    assert failure: ../dist/../txn/txn_region.c/451: "td->mvcc_ref > 0"
    [0x4f431d]
    [0x4f41a9]
    [0x44cdff]
    [0x4f2e1e]
    [0x42f0d3]
    [0x4f3faf]
    [0x4fddee]
    [0x4f8dde]
    [0x4d975c]
    [0x4c9991]
    [0x4e417d]
    [0x40137c]
    [0x40198e]
    [0x52613b]
    [0x4001b9]
    Aborted (core dumped)
    Here are the changes to get the code to build.
    --- perf/t.c 2006-06-28 17:15:47.000000000 -0600
    +++ perf-fixed/t.c 2009-07-06 09:44:43.000000000 -0600
    @@ -1,4 +1,5 @@
    #include <sys/types.h>
    +#include <sys/time.h>
    #include <stdio.h>
    #include <stdlib.h>
    @@ -38,7 +39,15 @@
    char *progname;
    -extern void __os_clock(DB_ENV *, u_int32_t *, u_int32_t *);
    +void
    +__os_clock(DB_ENV e, u_int32_t secs_ptr, u_int32_t *usecs_ptr)
    +{
    + struct timeval t;
    +
    + gettimeofday(&t, NULL);
    + *secs_ptr = (u_int32_t) t.tv_sec;
    + *usecs_ptr = (u_int32_t) t.tv_usec;
    +}
    void cleanup(void);
    void op_ds(u_int, int);
    @@ -364,7 +373,7 @@
    op_tds(ops, 0, 0);
    res("Transactional Data Store (read):", ops);
    - op_tds(ops, 1, DB_LOG_INMEMORY);
    + op_tds(ops, 1, DB_LOG_IN_MEMORY);
    res("Transactional Data Store (write, in-memory logging):", ops);
    op_tds(ops, 1, DB_TXN_NOSYNC);

    Hi,
    I reproduced your problem on Ubuntu 4.2.3 with db 4.7.25 and saw the same assert error as you. From the error message, the program asserts error/hangs at the "Transactional Data Store (write, in-memory logging)", that is calling op_tds() with DB_LOG_IN_MEMORY as the flags.
    The problem comes from your change on the sample code that the DB_LOG_IN_MEMORY is set with wrong API. The DB_LOG_IN_MEMORY should be set in DB_ENV->log_set_config(). Please refer to [DB_ENV->log_set_config|http://www.oracle.com/technology/documentation/berkeley-db/db/api_c/env_log_set_config.html] and its flag DB_LOG_IN_MEMORY.
    I change env's setting flags in op_tds() as follows. In this way, the error I saw is eliminated and the program works as expected.
    The original code is:
    PERF_CHECK(
            dbenv->set_flags(dbenv, DB_AUTO_COMMIT | txn_flags, 1) == 0);"
    {code}
    I change it to:
    {code}
    if (txn_flags == DB_LOG_IN_MEMORY) {
            PERF_CHECK(
               dbenv->log_set_config(dbenv, DB_LOG_IN_MEMORY, 1) == 0);
            txn_flags = 0;
    PERF_CHECK(
            dbenv->set_flags(dbenv, DB_AUTO_COMMIT | txn_flags, 1) == 0);
    {code}
    Please apply the change and l*et us know if it works on your machine.
    Regards,
    Emily Fu, Oracle Berkeley DB                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Where to download the sample code of Expense Tracker application

    Several JSC2 tutorial articles mention a sample application called Expense Tracker. Does anyone know where to download it? The links in the articles are invalid now.
    Thanks in advance

    Sorry for the inconvenience. The sample code is getting updated to work with the latest release of Creator. It will be replaced soon.

  • How to use Db Provider Factories with System.Data.SqlServerCe

    I'm using SQL Server Compact Edition, but in the future I would like to be able to switch to another SQL Server Edition or even a different database. To achieve this, Microsoft recommends using DB Provider Factories (see: Writing Provider Independent Code in ADO.NET, http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=674426&SiteID=1).
    I enumerated the available data providers on my PC with:
    Code Snippet
    System.Reflection.Assembly[] myAssemblies = System.Threading.Thread.GetDomain().GetAssemblies();
    The important entry is:
    "SQL Server CE Data Provider"
    ".NET Framework Data Provider for Microsoft SQL Server 2005 Mobile Edition"
    "Microsoft.SqlServerCe.Client"
    "Microsoft.SqlServerCe.Client.SqlCeClientFactory, Microsoft.SqlServerCe.Client, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91"
    When executing:
    Code SnippetdataFactory = DbProviderFactories.GetFactory("System.Data.SqlServerCe");
    I got at first this error run time message:
    Failed to find or load the registered .Net Framework Data Provider.
    I added a reference to "Microsoft.SqlServerCe.Client" at C:\Programme\Microsoft Visual Studio 8\Common7\IDE\Microsoft.SqlServerCe.Client.dll and the program runs.
    Of course, it uses "Microsoft.SqlServerCe.Client" instead of "System.Data.SqlServerCe". Laxmi Narsimha Rao ORUGANTI from Microsoft writes in the post  "SSev and Enterprise Library" that "Microsoft.SqlServerCe.Client" is not meant to be used and that we should add the following entry to the machine.config file:
    Code Snippet<add name="SQL Server Everywhere Edition Data Provider" invariant="System.Data.SqlServerCe" description=".NET Framework Data Provider for Microsoft SQL Server Everywhere Edition" type="System.Data.SqlServerCe.SqlCeProviderFactory, System.Data.SqlServerCe, Version=9.0.242.0, Culture=neutral, PublicKeyToken=89845dcd8080cc91" />
    After changing the code to:
    Code Snippet
    dataFactory = DbProviderFactories.GetFactory("Microsoft.SqlServerCe.Client");
    I get the same error message as before, even after adding a reference to "System.Data.SqlServerCe"  at C:\Programme\Microsoft Visual Studio 8\Common7\IDE\System.Data.SqlServerCe.dll.
    Any suggestion what I should do ? Just use "Microsoft.SqlServerCe.Client" ? Anyway, I don’t like the idea that I have to change the machine.config file, since I want to use click once deployment.

    It seems there is no DbProviderFactory for System.Data.SqlServerCe. At least I couldn’t find one, no matter how hard I searched on the Internet. I only found Microsoft.SqlServerCe.Client.SqlCeClientFactory. But we are not supposed to use Microsoft.SqlServerCe.Client and the 2 classes do have quiet some differences among their members. So I decided to write my own factory:
    Code Snippet
    public class SqlCeClientFactory: DbProviderFactory {
    public static readonly SqlCeClientFactory Instance = new SqlCeClientFactory();
    public override DbCommand CreateCommand() {
    return new SqlCeCommand();
    public override DbCommandBuilder CreateCommandBuilder() {
    return new SqlCeCommandBuilder();
    public override DbConnection CreateConnection() {
    return new SqlCeConnection();
    public override DbDataAdapter CreateDataAdapter() {
    return new SqlCeDataAdapter();
    public override DbParameter CreateParameter() {
    return new SqlCeParameter();
    That was easy enough, right ? I spent 1 week investigating the problem, 10 minutes solving it. I wonder why Microsoft didn’t include this class, because they have already the code in Microsoft.SqlServerCe.Client. I guess they have their reasons, but of course, they don’t tell us. After wasting one more month, I probably can tell. Oh, how I hate this.
    Or has anyone an idea what might be the problem ?

  • Need sample code with RV_INVOICE_CREATE used

    Hi everybody!
    I need sample code with RV_INVOICE_CREATE or similar FMs used.
    The thing is that I do not know how to populate parametres of this and other invoicing FMs....
    For example, there are some tables to be passed to RV_INVOICE_CREATE
         TABLES
              XKOMFK     = XKOMFK
              XKOMV       = XKOMV
              XTHEAD      = XTHEAD
              XVBFS        = XVBFS
              XVBPA        = XVBPA
              XVBRK        = XVBRK
              XVBRP        = XVBRP
              XVBSS        = XVBSS
    How to populate them? I mean how to fill them with needed values?
    Useful answers will be awarded.
    Kind regards, M.

    RV_INVOICE_CREATE is the function module to create invoice based on delivery .
    when you pass delivery number ,it will create invoice ,see the invoice number in vf02,vf03 transaction. and also see the data vbrk,vbrp tables
    I have done this development and i have cancelled invoice,reverse goods issue,updated the delivery and again i am createing invoice..see the below progrm to get better understanding.
    REPORT ZWM_OVERWEIGHT_FIX  no standard page heading
                               message-id zwm.
    ======================================================================
    Program Name : ZWM_OVERWEIGHT_FIX                                    *
    Description  : Tool to fix Overweight in delivery line item,         *
                   Used All Function module to cancel invoice ,          *
                   Reverse the goods issue  ,Update Delivery qty,Create  *
                   invoice                                               *
    Author       : Seshu                                                 *
    Date         : 05/08/2007                                            *
    MODIFICATION HISTORY                                                 *
    DATE    | AUTHOR   | CHANGE #   | DESCRIPTION OF MODIFICATION        *
    --|||--
    05/08/07| Seshu    | DEVK921979 | Initial                            *
    D A T A - D E C L A R A T I O N     *******************
    Tables
    Tables : vbak,
             vbap,
             vbfa,
             likp,
             lips,
             vbrk,
             vbrp.
    Internal Tables
    data : i_lips like lips occurs 0 with header line,
           i_vbap like vbap occurs 0 with header line.
    Variables
    data : v_deliv like vbfa-vbelv,
           v_invoic like vbfa-vbelv.
    Data Declaration Part for Post Goods Issue
    DATA: l_vbeln LIKE likp-vbeln,
          l_vbkok LIKE vbkok,
          i_prot LIKE prott OCCURS 0 WITH HEADER LINE,
          ef_error_any_0 TYPE c,
          ef_error_in_item_deletion_0 TYPE c,
          ef_error_in_pod_update_0 TYPE c,
          ef_error_in_interface_0 TYPE c,
          ef_error_in_goods_issue_0 TYPE c,
          ef_error_in_final_check_0 TYPE c,
          d_return   LIKE bapireturn1.
    Internal tables for BAPI Function Module
    data : i_cret like BAPIRETURN1 occurs 0 with header line,
           i_csucess like BAPIVBRKSUCcESS occurs 0 with header line,
           i_ret2 like bapiret2 ,
           flag type c,
           i_mesg like mesg occurs 0 with header line.
    Data Declaration for Invoice Creation
    DATA: VBSK_I     LIKE  VBSK.
    data: d_success  type  c.
    DATA: XKOMFK LIKE      KOMFK   OCCURS 0 WITH HEADER LINE,
          XKOMV  LIKE      KOMV    OCCURS 0 WITH HEADER LINE,
          XTHEAD LIKE      THEADVB OCCURS 0 WITH HEADER LINE,
          XVBFS  LIKE      VBFS    OCCURS 0 WITH HEADER LINE,
          XVBPA  LIKE      VBPAVB  OCCURS 0 WITH HEADER LINE,
          XVBRK  LIKE      VBRKVB  OCCURS 0 WITH HEADER LINE,
          XVBRP  LIKE      VBRPVB  OCCURS 0 WITH HEADER LINE,
          XVBSS  LIKE      VBSS    OCCURS 0 WITH HEADER LINE,
          XKOMFKGN LIKE    KOMFKGN OCCURS 0 WITH HEADER LINE.
    S E L E C T I O N  -  S C R E E N   ******************
    Selection-screen
    Selection-screen : begin of block blk with frame title text-001.
    parameters : p_vbeln like vbak-vbeln obligatory.
    selection-screen : end of block blk.
    A T -  S E L E C T I O N  - S C R E E N ***************
    Validation on Sales order
    at selection-screen on p_vbeln.
    Check the data on VBAK Table
      select single vbeln from vbak into vbak-vbeln
                                where vbeln = p_vbeln.
      if sy-subrc ne 0.
        message e006 with p_vbeln.
      endif.
    S T A R T  - O F - S E L E C T I O N *******************
    Start-of-selection.
      break sreddy.
    Get the Invoice Number corresponding Sales Order Number
      perform get_invoice.
    Step 1.
    Cancel the Invoice  - Transaction VF11
      perform cancel_invoice.
    Reverse the goods issue
      perform reverse_goodsissue.
    Get the Order and Delivery Items
      perform get_sales_deliv.
    Delivery Change
      perform Delivery_change.
    Create Invoice document
      perform invoice_create.
    E N D  -  O F -  S E L E C T I O N  *******************
    end-of-selection.
    if flag = 'X'.
    message i012 with p_vbeln.
    endif.
    *&      Form  get_invoice
          Get Invoice Number
    FORM get_invoice.
    Clear Variables
      clear : v_deliv,
              v_invoic,
              flag.
    Get the Delivery Number First
      select single vbeln from vbfa into v_deliv
                               where vbelv = p_vbeln
                               and   vbtyp_n = 'J'.
      if sy-subrc ne 0.
        message i004 with p_vbeln.
        stop.
      endif.
    Get the Invoice Number
      select single vbeln from vbfa into v_invoic
                               where vbelv = p_vbeln
                               and   vbtyp_n = 'M'.
      if sy-subrc ne 0.
        message i003 with p_vbeln.
        stop.
      endif.
    ENDFORM.                    " get_invoice
    *&      Form  cancel_invoice
          Cancel the Invoice
    FORM cancel_invoice.
      clear : i_ret2,
              i_cret,
              i_csucess.
      refresh : i_cret,
                i_csucess.
      CALL FUNCTION 'BAPI_BILLINGDOC_CANCEL1'
        EXPORTING
          BILLINGDOCUMENT       = v_invoic
      TESTRUN               =
      NO_COMMIT             =
      BILLINGDATE           =
        TABLES
          RETURN                = i_cret
          SUCCESS               = i_csucess
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
           EXPORTING
                WAIT   = space
           IMPORTING
                RETURN = i_ret2.
    read table i_cret with key type = 'E'.
      if sy-subrc ne 0.
        message i005 with v_invoic.
        stop.
      endif.
    ENDFORM.                    " cancel_invoice
    *&      Form  reverse_goodsissue
          Reverse the goods Issue
    FORM reverse_goodsissue.
    Local Variable
      data : lv_vbtyp like likp-vbtyp.
      clear : i_mesg,
              lv_vbtyp.
      refresh : i_mesg.
      select single vbtyp from likp into lv_vbtyp
                               where vbeln = v_deliv.
      CALL FUNCTION 'WS_REVERSE_GOODS_ISSUE'
        EXPORTING
          I_VBELN                         = v_deliv
          I_BUDAT                         = sy-datum
        I_COUNT                         =
        I_MBLNR                         =
        I_TCODE                         =
          I_VBTYP                         = lv_vbtyp
        TABLES
          T_MESG                          = i_mesg
       EXCEPTIONS
         ERROR_REVERSE_GOODS_ISSUE       = 1
         OTHERS                          = 2
      if sy-subrc ne 0.
        message i007 with v_deliv.
      endif.
    ENDFORM.                    " reverse_goodsissue
    *&      Form  get_sales_deliv
          Get the Sales order and Deliv Items
    FORM get_sales_deliv.
    Local Variables
      data : lv_kwmeng like vbap-kwmeng.
      clear : i_lips,
              i_vbap.
      refresh : i_lips,
                i_vbap.
    Select the data from LIPS
      select * from lips into table i_lips
                         where vbeln = v_deliv.
      if sy-subrc ne 0.
        message i008 with v_deliv.
        stop.
      endif.
      sort i_lips by vbeln posnr.
      Get the Sales order Item Data.
      select * from vbap into table i_vbap
                              where vbeln = p_vbeln.
      if sy-subrc ne 0.
        message i006 with p_vbeln.
        stop.
      endif.
      sort i_vbap by vbeln posnr.
    Compare delivery Item and Order Items
      loop at i_lips.
        clear lv_kwmeng.
        read table i_vbap with key posnr = i_lips-posnr.
        if sy-subrc eq 0.
          lv_kwmeng = i_vbap-kwmeng * 2.
          if lv_kwmeng >= i_lips-lfimg.
            i_lips-lfimg = i_vbap-kwmeng.
            modify i_lips.
          endif.
        endif.
      endloop.
    ENDFORM.                    " get_sales_deliv
    *&      Form  Delivery_change
          Delivery Update
    FORM Delivery_change.
      Clear : i_prot.
      refresh : i_prot.
    Delivery Update
      CALL FUNCTION 'LE_MOB_DELIVERY_UPDATE'
           EXPORTING
                do_commit                = 'X'
           TABLES
                t_delivery_items         = i_lips
                prot                     = i_prot
           EXCEPTIONS
                conversion_overflow      = 1
                essential_data_missing   = 2
                error                    = 3
                nothing_to_update        = 4
                lock_after_update_failed = 5
                error_in_delivery_update = 6
                OTHERS                   = 7.
      COMMIT WORK.
      IF sy-subrc <> 0.
        MESSAGE i009 with v_deliv.
      endif.
    Post Goods Issue
      CLEAR:    d_return,
                i_prot,
                l_vbeln,
                l_vbkok.
      REFRESH i_prot.
      CLEAR:  ef_error_in_item_deletion_0    ,
              ef_error_in_pod_update_0       ,
              ef_error_in_interface_0        ,
              ef_error_in_goods_issue_0      ,
              ef_error_in_final_check_0      .
    carry out goods issue
      l_vbeln          = v_deliv.
      l_vbkok-vbeln_vl = l_vbeln.
      l_vbkok-wabuc    = 'X'.
    carry out goods issue
      l_vbeln          = v_deliv.
      l_vbkok-vbeln_vl = l_vbeln.
      l_vbkok-wabuc    = 'X'.
    SET UPDATE TASK LOCAL.
      CALL FUNCTION 'WS_DELIVERY_UPDATE'
           EXPORTING
                vbkok_wa                    = l_vbkok
                synchron                    = 'X'
                no_messages_update          = ' '
                update_picking              = 'X'
                commit                      = 'X'
                delivery                    = l_vbeln
                nicht_sperren               = 'X'
                if_error_messages_send_0    = space
           IMPORTING
                ef_error_any_0              = ef_error_any_0
                ef_error_in_item_deletion_0 = ef_error_in_item_deletion_0
                ef_error_in_pod_update_0    = ef_error_in_pod_update_0
                ef_error_in_interface_0     = ef_error_in_interface_0
                ef_error_in_goods_issue_0   = ef_error_in_goods_issue_0
                ef_error_in_final_check_0   = ef_error_in_final_check_0
           TABLES
                prot                        = i_prot
           EXCEPTIONS
                error_message               = 1
                OTHERS                      = 2.
      if sy-subrc ne 0.
        message i010 with v_deliv.
      else.
        COMMIT WORK .
      endif.
    ENDFORM.                    " Delivery_change
    *&      Form  invoice_create
          Invoice Creation
    FORM invoice_create.
      refresh: XKOMFK, XKOMV,
               XTHEAD, XVBFS,
               XVBPA,  XVBRK,
               XVBRP,  XVBSS.
      clear  : XKOMFK, XKOMV,
               XTHEAD, XVBFS,
               XVBPA,  XVBRK,
               XVBRP,  XVBSS,
               VBSK_I.
      VBSK_I-SMART = 'F'.
      XKOMFK-VBELN =  v_deliv.
      XKOMFK-VBTYP = 'J'.
      APPEND XKOMFK.
      CALL FUNCTION 'RV_INVOICE_CREATE'
           EXPORTING
                VBSK_I       = VBSK_I
                WITH_POSTING = 'C'
           TABLES
                XKOMFK       = XKOMFK
                XKOMV        = XKOMV
                XTHEAD       = XTHEAD
                XVBFS        = XVBFS
                XVBPA        = XVBPA
                XVBRK        = XVBRK
                XVBRP        = XVBRP
                XVBSS        = XVBSS.
      if sy-subrc eq 0.
        COMMIT WORK.
       flag = 'X'.
      else.
      message i011 with p_vbeln.
      endif.
    ENDFORM.                    " invoice_create
    Reward Points if it is helpful
    Thanks
    Seshu

  • Need help with API and sample code for checking a user's rights on a folder

    Hi All,
    I am working on an UCM integration where user supplies a folderpath (ucm folders), and a file is later uploaded to this location.
    Since a user can provide a folderpath where he has only Read Access or no access at all, we are trying to work out a way to pre-check his permissions on the folder.
    Since we have Entity Security enabled, we have 5 security fields to rely on Account, Security Group, User Access List, Group Access List, Role Access List.
    Writing custom code for this security check is second on our agenda.
    Firstly, we wish to know the API and sample code that typically performs this Security Check in UCM.
    We could find intradoc.shared.SecurityUtils which has methods to check security on SGroup and Account, but we couldn't find anything for:
    1) Overall security check
    2) ACL security check on top of sgroup and account security check

    Any ideas anyone?!
    I am looking forward to some pointers here. :(

Maybe you are looking for

  • I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version

    I am unable to open the microsoft word and excel and pdf files after upgratding to 4.3.3 os version. I was able to access them in 4.3.1 . Can anybody tell when is this getting resolved.

  • Special field in FBL3N

    Hello, Would You help me the next problem: I've added new field to GL line item report, which is vendor number (this is not offsetting account number). Is it possible to add description from vendor master data? BR, Natalija

  • Problem with version 8.1.1 deleting photos?

    Hello, I just upgraded to iPhoto 8.1.1 and am having the first problems with iPhoto I have ever experienced. When I attempt to delete certain photos, the thumbnail remains. If I highlight the thumbnail, the information box in lower left corner refere

  • Random viewing of photos on iPod - help

    I have a 20GB iPod photo and trying to look at my photo collection from a recent vacation. If I view the photos on my iPod they display in what seems like a random sequence. I want to see them in chronological order. I have tried renaming all the pho

  • Warning about drop-down html widget

    There's a widget to add a drop-down menu on iWeb pages that's available on this site: <http://allaboutiweb.com/index.php/2009/04/add-a-drop-down-menu-to-your-iweb-pag es/> It works! However, you can't change the color (pale blue) or the text style (s