Getting Error while creating multiple Orders using Sales order Create BAPI

Hi,
I am trying to create 2 orders thru the Sales order create BAPI before I commit and save the orders. The Orders are getting created and the BAPI is coming back with success, but it is not setting the system status on the line items of the 1st order. So when I try to cancel the line items on the first order I get the error 'No status object is available for SDI 4924/10' . I would really appreciate if anyone has encountered such error before and could help me out with the reason for this error and the possible solution.
Thanks in advance,
David.

Hi,
Check the following link:
http://www.sap-img.com/bapi.htm
Regards,
Bhaskar

Similar Messages

  • Getting error while uploading multiple files in sharepoint hosted app in 2013 with REST API

    Hi All,
    In one of my tasks, I was struck with one issue, that is "While uploading multiple files into custom list with REST API".
    Iam trying to upload multiple files in library with REST calls for an APP development, my issue is if i wants to upload 4 image at once its storing only
    3 image file and further giving "Conflict" error". Below is the attached screenshot of exact error.
    Error within screenshot are : status Code : 409
    status Text :conflict
    For this operation i am uploading different files as an attachment to an list item, below is the code used for uploading multiple files.
    my code is
    function PerformUpload(listName, fileName, listItem, fileData)
        var urlOfAttachment="";
       // var itemId = listItem.get_id();
        urlOfAttachment = appWebUrl + "/_api/web/lists/GetByTitle('" + listName + "')/items(" + listItem + ")/AttachmentFiles/add(FileName='" + fileName + "')"
        // use the request executor (cross domain library) to perform the upload
        var reqExecutor = new SP.RequestExecutor(appWebUrl);
        reqExecutor.executeAsync({
            url: urlOfAttachment,
            method: "POST",
            headers: {
                "Accept": "application/json; odata=verbose",
                "X-RequestDigest": digest              
            contentType: "application/json;odata=verbose",
            binaryStringRequestBody: true,
            body: fileData,
            success: function (x, y, z) {
                alert("Success!");
            error: function (x, y, z) {
                alert(z);

    Hi,
    THis is common issue if your file size exceeds 
     upload a document of size more than 1mb. worksss well for kb files.
    https://social.technet.microsoft.com/Forums/office/en-US/b888ac78-eb4e-4653-b69d-1917c84cc777/getting-error-while-uploading-multiple-files-in-sharepoint-hosted-app-in-2013-with-rest-api?forum=sharepointdevelopment
    or try the below method
    https://social.technet.microsoft.com/Forums/office/en-US/40b0cb04-1fbb-4639-96f3-a95fe3bdbd78/upload-files-using-rest-api-in-sharepoint-2013?forum=sharepointdevelopment
    Please remember to click 'Mark as Answer' on the answer if it helps you

  • Error while executing the RA of Sale order

    Hi,
    While executing the RA of sale order, we are getting the error-Cost element 50XXXXX (line ID CPR) already used for line ID RPC. As per our configuration Cost element-50XXXXX is assigned to the Line ID CPR only and there is no where assignment to line item-RPC. In the change log of OKG4 and OKG5, there is no assignment of CE-50XXXX to line id-RPC.
    Could you suggest where could be problem for this issue.
    Thanks & Regards,
    Ranjan

    You must have assigned cost element  in OKG5. You also need to assign in OKG4 same line ID to secondary cost element.OR else remove the cost element assignment in OKG5.
    Regards,
    Mahendra

  • Getting Error while accessing the data using odata service

    Hi All,
    Iam new to SAP FIORI. 
    Iam getting the below error while accessing the data using odata service.
    "Failed to load resource: the server responded with a status of 404 (Not found)"
    "No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin "
    i have tried all the solutions like changing the url pattern "proxy/htttp".
    and disabled - security in chrome (Chrome is Updated version).
    i tried with IE still got the same problem.
    And installed all the required software in eclipse
    While installing GWPA plugin i got the following error.
    let me know if any one have idea.
    Thanks in advance.

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • How to prevent from creating multiple deliveries per sales order

    Hi,
    Appreciate your help on the below.,
    I do not want the users to create multiple deliveries for a single sales order. They should only be allowed to create one delivery and it can either be a full delivery or a partial delivery.
    Is there any possibility in configuration to do this? I checked the customer master configuration, but it is only for sales order line item.. I only need one delivery for the entire order, regardless of whether it included all line items or not.
    If the user tries to create a second delivery for the same order, it should ideally give an error message and stop the system from creating the second delivery
    Appreciate your help.
    Thank you.
    Keshini

    Thanks Marian for your feedback.
    I tried this again, however it still works only at item level.
    Say i have a sales order, with 2 line items with 50 each.
    Say i create an delivery for only the first line item for 20, delivery gets created.. It doesnt allow to create the delivery for rest of the 30 on that line item,
    However if i try to create a delivery for the second line item, it allows and the delivery gets created.
    I only want one single delivery for the entire order.
    Thanks,
    Keshini

  • Error while inbound creation for return sales order

    Hi all,
             We are in the process of creating return sales order for invoice cancelation.
             We have created return sales order.
             we have made settings for automatic inbound creation.
             While creating inbound delivery system giving following error,
    <b>Material cannot be used for inbound delivery because QM is active.</b>
    Please help in solving error.
    regards,
    Mona

    dear  kiran,
                        Tcode is for job planning,where can i make the required setting.
                        Can you explain in detail?
    regards,
    Mona

  • Getting error while running the Interface using AGENT

    Hi All,
    i am not able to run the interface using Agent service which running in the another machine, while running i am getting error message like
    java.lang.Exception: Error during Session launching
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    i ran the Agent services in Comment prompt, there i am getting the error like follows
    java.lang.NullPointerException
    at com.sunopsis.dwg.cmd.DwgCommandSession.treatCommand(DwgCommandSession.java)
    at com.sunopsis.dwg.cmd.DwgCommandBase.prepare(DwgCommandBase.java)
    at com.sunopsis.dwg.cmd.e.t(e.java)
    at com.sunopsis.dwg.cmd.h.y(h.java)
    at com.sunopsis.dwg.cmd.e.run(e.java)
    at java.lang.Thread.run(Unknown Source)
    here i have mentioned the steps which i followed for creating agent service.
    i have two machine namely A and B both having the ODI
    i am going to use the B machine as a centralized server. so i edited the odiparams.bat file in B machine in ODI locaiton and filled the repository information
    from A machine i opened the Topology and created the Agent service there i mentioned the HOST name as "B" and port number 20300. and i configure the logical agent aswell
    from B machine i started the Agent service like agentscheduler "-port=20300".
    Agent service launched seccessfully.
    From A machine i tested the Agent. that also shown the successful window message.
    then i started running the interface using the agent i am getting the error which i have mention in the beginging.
    Interface which i ran will do the text file to table loading, so i kept that file in particular location in B machine( i have configure this location when i created the file data store in topology in A machine).
    Please help me to solve the problem...
    thanks
    nidhi
    Edited by: knidhi on Nov 26, 2009 6:54 PM

    Thanks For your Reply,
    I ran the agent as you said. here is my observation
    from the Machine B where agent is actually running, i could able to run the interface using agent service.
    but from the machine A while running the interface i am getting the following error message
    java.lang.Exception: Error during Session launching : Error during Session Preparation : You are trying to execute a session with an agent that is undefined in your repository. Please check the agent -NAME parameter.
         at com.sunopsis.dwg.dbobj.SnpSession.remoteExecute(SnpSession.java)
         at com.sunopsis.graphical.l.or.e(or.java)
         at com.sunopsis.graphical.r.z.actionPerformed(z.java)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.AbstractButton.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
         at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    i have created both physical and logical agent with the same name "DEMO_AGENT", and i ran the agent in the Machine B like
    agentscheduler "-port=20301" "-name=DEMO_AGENT"
    Please help me to solvethe issue...
    Thanks
    Nidhi
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:04 AM
    Edited by: knidhi on Nov 27, 2009 11:05 AM

  • Getting error while updating data element using Xquery Automator

    Hi,
    I am getting following error while i am trying to update a data element in my task.
    <Nov 28, 2011 5:02:40 PM IST> <Error> <oms> <BEA-000000> <automation.AutomationDispatcher: Failed to execute
    on/plugin/external/ACOI_TMIP_POC/1.0.0/CLARIFY_Task.automatedtask.acoi_tmip_poc.ResponseAutomation] due to E
    hile running Script resource [file:///D:/AshishWorkspace_WithOrchestration/ACOI_TMIP_POC/resources/CLARIFY_R
    exception location: ; SystemID: module with no systemId*; Line#: 15; Column#: -1*
    com.mslv.oms.automation.AutomationException: Exception thrown while running Script resource [file:///D:/Ashi
    rchestration/ACOI_TMIP_POC/resources/CLARIFY_Response.xquery]; exception location: ; SystemID: *module with
    e#: 15; Column#: -1
    the Xquery that i am using is pretty simple:
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
    declare namespace context = "java:com.mslv.oms.automation.TaskContext";
    declare namespace log = "java:org.apache.commons.logging.Log";
    declare namespace oms="urn:com:metasolv:oms:xmlapi:1";
    declare namespace prop = "OSM_POC";
    declare variable $xmlnsosm7POC := "";
    declare variable $log external;
    declare variable $automator external;
    declare variable $context external;
    let $CLFY_XML := //CLFY_XML
    let $Id_Number :=//Id_Number
    return
    automator:setUpdateOrder($automator,"true"),
    log:info($log,fn:concat('ID request number is: ', $Id_Number)),
    <ord:OrderDataUpdate xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:odu="http://www.oracle.com/OMS/OrderDataUpdate" targetNameSpace="http://www.oracle.com/OMS/OrderDataUpdate" xmlns:ord="urn:com:metasolv:oms:xmlapi:1">
    <ord:Add path="/CLFY_ID">{data($Id_Number)}</ord:Add>
    </ord:OrderDataUpdate>
    Can anyone please tell me the reason due to which this error is coming.
    Thanking in advance
    Ashish Garg

    Hello.
    Ok I need you to tell me a little bit more about your automator, did you config an Xquery Automator with Event Type: Internal?
    You should declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptReceiverContextInvocation";
    instead of
    declare namespace automator = "java:oracle.communications.ordermanagement.automation.plugin.ScriptSenderContextInvocation";
    And let my ask you, what are you trying to do with the next lines:
    let $CLFY_XML := //CLFY_XML
    let $Id_Number :=//Id_Number
    Becouse I think you are trying to acces the data on the task, If that is the reason, you should better use something like:
    let $order := ..//oms:GetOrder.Response
    let $orderId := $order/oms:_root/oms:orderHeader/oms:orderId
    with the above lines you are accesing the data that has been added to the task and the just acces the node that you nedd, for example here Im accesig the node
    orderId under OrderHeader
    Another thing is that if you want to update node which already exists in the task data, then you have to use something like:
    <OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
    <Update path="/orderHeader/orderId">{$orderId}</Update>
    </OrderDataUpdate>
    But if you have to add a new path you should have something like this:
    <OrderDataUpdate xmlns="http://www.metasolv.com/OMS/OrderDataUpdate/2002/10/25">
         <Add path="/OrderHeader">
              <Transaction>
                   <Name>{$orderId/text())}</Name>
              <ComponentKey>{$controlData/text()}</ComponentKey>
              </Transaction>
         </Add>
    </OrderDataUpdate>
    For the above transaction you should have in the dictionary the structure, OrderHeader in the root, and inside this the structure another node with the respective names
    <Transaction>
                   <Name>{$orderId/text())}</Name>
              <ComponentKey>{$controlData/text()}</ComponentKey>
              </Transaction>
    Another thing is that you should have all this structures in the Task Data of this Task.
    Hope this help
    Lucas.

  • I am getting error in creation of third party sales order-----

    Hello,
    I maintained all the configuration setting related to third party scenario. But when I create the sales order, I am getting following message. I beleave this si not related to configuration.
    "Material purchase requisition" nicht erlaubt (User Status BRNA, Objekt TM0000000001VB)
    Message no. BS051
    I do not understand why this message is coming? Where can I  re-set the user status and object?
    Thanks,

    Check this thread
    [Sales order costing error  |Sales order costing error;
    thanks
    G. Lakshmipathi

  • New Error in Adding Multiple Partner to Sales Order

    I get this error, "
    Partner Function WE can only occur 1 times in procedure TA (Sales
    Document Header)"
    When i try to add the Partner Function once again, Ssay etierh SHip-to, Payer, Foreign Destination e.tc.
    I checked the group and got one from archive to check TPAR_STEIN ( Multiple occurence). that field is also blank for Partner function to allow multiple times.
    Still this error occurs.
    Your help is highly appreciated.
    Thanks

    Hi Ashwini
    I donot understand the reason behind having multiple ship to parties on the sales order at header or line level. This does not make sense because the system will be unable to determine who the ship to is on the delivery.
    Please provide the business reason for this if possible.
    Thanks

  • Update termination error while parking multiple items using BAPI fn module

    hi experts,
       i am facing a problem with bapi_incominginvoice_park.when i am trying to park invoice for single item for the po the invoice number is generating and getting updated in database in the same way when i am trying to park for multiple items the invoice number is genrating but not getting updated in database table.Here i am getting error 'Express document update terminated BY THE user'.How to solve this problem to find these error i have gone to se13 transaction,there it is showing SAQCL_DUPRC.it is saying duplicate errors in table but there are no duplicates in table.
    Thanks,
    Vinod

    hi vinod ....i tried the following it worked...
    while sending tax info dont send any tax table manually  i.e updating the vit_tax table using append statement
    also while testing function module for multiple PO , no need to provide the tax info in the tax table
    what we have to do is only to provide 'X' In the tax calculation option in the header details
    HEADERDATA-CALC_TAX_IND = 'X'.
    1.this will enable tax
    2. will make the po status green so that the parked document can be posted .

  • Getting Error while Publishing Web Application using weblogic workshop 10.2

    Hi all,
    I am trying to create a simple webapplication using the weblogic workshop studio for weblogic. I have created a domain using the configration wizard.
    when i am trying to deploy the newly created dynamic web project EAR in to the server, its throwing a error
    !MESSAGE Referenced library module 'weblogic-controls-10.0#[email protected]' failed to deploy.
    !SUBENTRY 2 com.bea.workshop.wls.core 4 4000 2008-05-21 15:32:06.117
    !MESSAGE java.net.MalformedURLException: no protocol: 10.2/wlserver_10.0/platform/lib/p13n/p13n_common.jar
    !STACK 0
    java.lang.Exception: Exception received from deployment driver. See Error Log view for more detail.
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper$DeploymentProgressListener.watch(WlsJ2EEDeploymentHelper.java:1459)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployLibrary(WlsJ2EEDeploymentHelper.java:1200)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployLibraryModules(WlsJ2EEDeploymentHelper.java:1079)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deployAllLibraryModules(WlsJ2EEDeploymentHelper.java:1046)
         at com.bea.workshop.wls.core.server.internal.WlsJ2EEDeploymentHelper.deploy(WlsJ2EEDeploymentHelper.java:710)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishWeblogicModules(WeblogicServerBehaviour.java:1195)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publishOnce(WeblogicServerBehaviour.java:657)
         at com.bea.workshop.wls.core.server.internal.WeblogicServerBehaviour.publish(WeblogicServerBehaviour.java:486)
         at org.eclipse.wst.server.core.internal.Server.doPublish(Server.java:875)
         at org.eclipse.wst.server.core.internal.Server.publish(Server.java:863)
         at org.eclipse.wst.server.core.internal.PublishServerJob.run(PublishServerJob.java:142)
         at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
    Caused by: java.net.MalformedURLException: no protocol: 10.2/wlserver_10.0/platform/lib/p13n/p13n_common.jar
         at java.net.URL.<init>(URL.java:567)
         at java.net.URL.<init>(URL.java:464)
         at java.net.URL.<init>(URL.java:413)
         at sun.rmi.server.LoaderHandler.pathToURLs(LoaderHandler.java:747)
         at sun.rmi.server.LoaderHandler.loadClass(LoaderHandler.java:147)
         at java.rmi.server.RMIClassLoader$2.loadClass(RMIClassLoader.java:620)
         at java.rmi.server.RMIClassLoader.loadClass(RMIClassLoader.java:247)
         at sun.rmi.server.MarshalInputStream.resolveClass(MarshalInputStream.java:197)
         at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1544)
         at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1466)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1699)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
         at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1634)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
         at java.rmi.MarshalledObject.get(MarshalledObject.java:135)
         at javax.management.remote.rmi.RMIConnectionImpl$6.run(RMIConnectionImpl.java:1595)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1586)
         at javax.management.remote.rmi.RMIConnectionImpl.access$600(RMIConnectionImpl.java:81)
         at javax.management.remote.rmi.RMIConnectionImpl$7.run(RMIConnectionImpl.java:1631)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.management.remote.rmi.RMIConnectionImpl.unwrap(RMIConnectionImpl.java:1627)
         at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:766)
         at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
         at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
         at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
         at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
    Any help on this is welcomed
    Thanks and regards
    Vishnu

    If you don't mind can you please provide a more step-by-step instructions to reproduce.

  • Getting error while fetching Log data using B1TE Tools

    Hi,
    i am using B1TE Tools to test an add on which generating an error while fetching the Log File using DI Logs Reader. The error is below:
    "Wrong Xml file format. "The data at the root level is invalid, Line 1, position 1.".
    please report it on B1TE blog"
    Please help..
    Regards,
    Sunita

    > Do you want to add and/or update the data in the already existing tables or do you want to replace the content completely?
    >
    > so in that way :
    > bot the options are fine what ever take less time.
    Sorry mate, but YOU have to know what you want here.
    I gave you an easy to follow set of steps.
    As you don't seam to mind the outcome, just might just use them...
    > I wanted to know weathe i can use the  loadercli for thie export import or not? if yes then is there any new steps to do before i do the export import?
    We had this discussion before...
    >
    > For that the easiest option would be just to drop the tables of SAPR3 and run the import again.
    >
    > For ease of use you could also just do:
    > - logon as superdba
    > - drop user SAPR3
    > - create user SAPR3 password SOMEPW not exclusive dba
    >
    > After these steps you can easily pump the data into the database again.
    >
    > So here in th above given steps , i am creating a new SAPR3 user and why it is not exclusive dba ?
    >  i already have that user SAPR3 can i use the same.
    Yes, you do have the SAPR3 user.
    But you don't seem to like to read documentation or learn about how the tools work or anything like that.
    Therefore I gave you s simple way to reach your goal.
    Of course it's possible to reuse the user.
    But then you would have to deal with already existing tables, already existing data etc.
    You don't seem to be able to do that. So, the easy steps might be better suited for your needs.
    regards,
    Lars

  • Error while recording multiple screens using AVFoundation

    Hi All,
    I am trying to record primary and secondary monitor screens into two separate files using below code.
    const uint32_t MAX_DISPLAY = 2;
    CGDirectDisplayID displays[MAX_DISPLAY] = {0};
    CGGetActiveDisplayList(MAX_DISPLAY, displays, &m_nDisplays);
    NSString* dest_file[2] = {0};
    NSURL* dest_path[2] = {0};
    AVCaptureConnection *CaptureConnection[2] = {0};
    NSDictionary *videoCleanApertureSettings = [NSDictionary dictionaryWithObjectsAndKeys:
       @2048, AVVideoCleanApertureWidthKey,
       @1152, AVVideoCleanApertureHeightKey,
       @0, AVVideoCleanApertureHorizontalOffsetKey,
       @0, AVVideoCleanApertureVerticalOffsetKey,
      nil];
    NSDictionary *videoAspectRatioSettings = [NSDictionary dictionaryWithObjectsAndKeys:
       @3,AVVideoPixelAspectRatioHorizontalSpacingKey,
       @3,AVVideoPixelAspectRatioVerticalSpacingKey,
      nil];
    NSNumber* bitsPerSecond = [NSNumber numberWithDouble:1024*1000];
    NSDictionary *codecSettings =  [NSDictionary dictionaryWithObjectsAndKeys:
      bitsPerSecond, AVVideoAverageBitRateKey,
      videoCleanApertureSettings, AVVideoCleanApertureKey,
      videoAspectRatioSettings, AVVideoPixelAspectRatioKey,
      nil];
    NSDictionary *videoSettings = [NSDictionary dictionaryWithObjectsAndKeys:
       AVVideoCodecH264, AVVideoCodecKey,
      codecSettings,AVVideoCompressionPropertiesKey,
       AVVideoScalingModeResize,AVVideoScalingModeKey,
       @2048, AVVideoWidthKey,
       @1152, AVVideoHeightKey,
      nil];
    for( int nIdx = 0; nIdx < m_nDisplays; ++nIdx )
      m_session[nIdx] = [[AVCaptureSession alloc] init];
      dest_file[nIdx] = [NSString stringWithFormat:@"%@_%d.MOV",destination_path,nIdx];
      dest_path[nIdx] = [NSURL fileURLWithPath: dest_file[nIdx] ];
       // Create a ScreenInput with the display and add it to the session
      m_movie_file_input[nIdx] = [[[AVCaptureScreenInput alloc] initWithDisplayID:displays[nIdx]] autorelease];  
       [m_movie_file_input[nIdx] removesDuplicateFrames ];
       if ([m_session[nIdx] canAddInput:m_movie_file_input[nIdx]])
       [m_session[nIdx] addInput:m_movie_file_input[nIdx]];
       // Create a MovieFileOutput and add it to the session
      m_movie_file_output[nIdx] = [[[AVCaptureMovieFileOutput alloc] init] autorelease];
       if ([m_session[nIdx] canAddOutput:m_movie_file_output[nIdx]])
       [m_session[nIdx] addOutput:m_movie_file_output[nIdx]];
       CaptureConnection[nIdx] = [m_movie_file_output[nIdx] connectionWithMediaType:AVMediaTypeVideo];
       [m_movie_file_output[nIdx] setOutputSettings : videoSettings forConnection : CaptureConnection[nIdx]];
       // Start running the session
       [m_session[nIdx] startRunning];
       [m_movie_file_output[nIdx] startRecordingToOutputFileURL:dest_path[nIdx]  recordingDelegate:self];
    I am getting both the screens saved into two separate files. But while calling startRecordingToOutputFileURL API for the secondary monitor i.e. for the second pass of loop, I am getting an error as shown below :
    VTCompressionSessionCreate signalled err=-8973 (err) (VTVideoEncoderStartSession failed) at /SourceCache/CoreMedia_frameworks/CoreMedia-1562.19/Sources/VideoToolbox/VTComp ressionSession.c line 897
    Also compression parameters(bitrate) are not setting properly for Secondary monitor, it takes some different values other than the one I have specified in the program.
    Can somebody please help me on this ? Also please let me know this is the proper way of doing this.
    Thanks in Advance
    George

    Hi,
    Check the following link:
    http://www.sap-img.com/bapi.htm
    Regards,
    Bhaskar

  • Getting Error while decrypt a file using Blowfish algorithm

    I am using blowfish algorithm for encrypt and decrypt my file. this is my code for encrypting decrypting .
    while i am running program i am getting an Exception
    Exception in thread "main" javax.crypto.BadPaddingException: Given final block not properly padded
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
    at com.sun.crypto.provider.BlowfishCipher.engineDoFinal(DashoA6275)
    at javax.crypto.Cipher.doFinal(DashoA12275)
    at Blowfishexe.main(Blowfishexe.java:65)
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    import java.io.*;
    import org.bouncycastle.crypto.CryptoException;
    import org.bouncycastle.crypto.KeyGenerationParameters;
    import org.bouncycastle.crypto.engines.DESedeEngine;
    import org.bouncycastle.crypto.generators.DESedeKeyGenerator;
    import org.bouncycastle.crypto.modes.CBCBlockCipher;
    import org.bouncycastle.crypto.paddings.PaddedBufferedBlockCipher;
    import org.bouncycastle.crypto.params.DESedeParameters;
    import org.bouncycastle.crypto.params.KeyParameter;
    import org.bouncycastle.util.encoders.Hex;
    public class Blowfishexe {
    public static void main(String[] args) throws Exception {
    KeyGenerator kgen = KeyGenerator.getInstance("Blowfish");
              kgen.init(128);
              String keyfile="C:\\Encryption\\BlowfishKey.dat";
    SecretKey skey = kgen.generateKey();
    byte[] raw = skey.getEncoded();
    SecretKeySpec skeySpec = new SecretKeySpec(raw, "Blowfish");
              System.out.println("key"+raw);
                   byte[] keyBytes = skey.getEncoded();
                   byte[] keyhex = Hex.encode(keyBytes);
                   BufferedOutputStream keystream =
    new BufferedOutputStream(new FileOutputStream(keyfile));
                        keystream.write(keyhex, 0, keyhex.length);
    keystream.flush();
    keystream.close();
    Cipher cipher = Cipher.getInstance("Blowfish");
    cipher.init(Cipher.ENCRYPT_MODE, skeySpec);
              System.out.println("secretKey"+skeySpec);
    FileOutputStream fos=new FileOutputStream("C:\\Encryption\\credit11.txt");
              BufferedReader br=new BufferedReader(new FileReader("C:\\Encryption\\credit.txt"));
              String text=null;
              byte[] plainText=null;
              byte[] cipherText=null;
              while((text=br.readLine())!=null)
              System.out.println(text);
              plainText = text.getBytes();
              cipherText = cipher.doFinal(plainText);
              fos.write(cipherText);
              br.close();
              fos.close();
              cipher.init(Cipher.DECRYPT_MODE, skeySpec);
              FileOutputStream fos1=new FileOutputStream("C:\\Encryption\\BlowfishOutput.txt");
              BufferedReader br1=new BufferedReader(new FileReader("C:\\Encryption\\credit11.txt"));
              String text1=null;
              /*while((text1=br1.readLine())!=null)
                   System.out.println("text is"+text1);
                   plainText=text1.getBytes("UTF8");
                   cipherText=cipher.doFinal(plainText);
                   fos1.write(cipherText);
              br1.close();
              fos1.close();
    //byte[] encrypted = cipher.doFinal("This is just an example".getBytes());
              //System.out.println("encrypted value"+encrypted);*/
    Any one pls tell me how to slove my problem
    thanks in advance

    hi
    i got the solution. its working now
    but blowfish key ranges from 56 to448
    while i am writing the code as
    KeyGenerator keyGenerator = KeyGenerator.getInstance("Blowfish");
    keyGenerator.init(448);
    this code is generating the key upto 448 bits
    but coming to encoding or decode section key length is not accepting
    cipher.init(Cipher.ENCRYPT_MODE, key);
    Exception in thread "main" java.security.InvalidKeyException: Illegal key size or default parameters
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.a(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at javax.crypto.Cipher.init(DashoA12275)
    at Blowfish1.main(Blowfish1.java:46)
    i am getting this error
    what is the solution for this type of exception.
    thank you

Maybe you are looking for

  • Adobe photoshop elements 4

    i want to install adobe photoshop elements 4 from a cd on my imac with version os x 10.9.5. but it can't instal. it says installation failed,there was an unknown error in the installer after the installation failed. contact the software manufacturer

  • Dynamic Text in Adobe forms

    hi all, I am working o adobe forms, i have to print a paragraph text which has both dymanic and static elemets in it. By putting all the text in a static text it works fine, but allignment does not happen properly. do we have something like  &.....&

  • Problem with Grouping Query

    I am having trouble with a query. Table 1 id     status 1      STARTED 2      STARTED 3      STARTED 4      STARTED 5      STARTED 6      INCOMPLETE 7      INPROGRESS Table 2 id     individual 1      MMJ 1      JBJ 2      MKJ 3     MKJ 3      LJJ 4  

  • Report in EBP

    Hi All, Iam new to EBP, I need to code a report output fields shopping cart number,PO number,created by,Amount, currency,shopping cart creation date, type of approval and Po creation date, Please let me know the fields and table names for the above.

  • How can I disable phone number recognition in the built-in Notes app for iPhone 4S?

    I don't want 7-digit numbers to be automatically recognized as phone numbers. It's too easy to inadvertently tap a number and summon a dialog box asking if I want to place a call. I don't routinely keep phone numbers in Notes, so this feature isn't o